Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update all non-major dependencies #981

Merged
merged 3 commits into from
Dec 27, 2021

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 8, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@babel/core (source) ^7.16.0 -> ^7.16.5 age adoption passing confidence
@babel/plugin-transform-runtime (source) ^7.16.4 -> ^7.16.5 age adoption passing confidence
@babel/preset-env (source) ^7.16.4 -> ^7.16.5 age adoption passing confidence
@babel/preset-react (source) ^7.16.0 -> ^7.16.5 age adoption passing confidence
@babel/preset-typescript (source) ^7.16.0 -> ^7.16.5 age adoption passing confidence
@babel/register (source) ^7.16.0 -> ^7.16.5 age adoption passing confidence
@babel/runtime (source) ^7.16.3 -> ^7.16.5 age adoption passing confidence
@chakra-ui/react (source) ^1.7.2 -> ^1.7.3 age adoption passing confidence
@emotion/react ^11.7.0 -> ^11.7.1 age adoption passing confidence
@​mswjs/data ^0.8.3 -> ^0.8.4 age adoption passing confidence
@reduxjs/toolkit (source) ^1.6.2 -> ^1.7.1 age adoption passing confidence
@storybook/addon-essentials ^6.4.8 -> ^6.4.9 age adoption passing confidence
@storybook/react ^6.4.8 -> ^6.4.9 age adoption passing confidence
@types/chrome ^0.0.168 -> ^0.0.173 age adoption passing confidence
@types/lodash ^4.14.177 -> ^4.14.178 age adoption passing confidence
@types/node ^16.11.12 -> ^16.11.17 age adoption passing confidence
@types/ramda ^0.27.60 -> ^0.27.62 age adoption passing confidence
@types/react ^17.0.37 -> ^17.0.38 age adoption passing confidence
@types/react-redux ^7.1.20 -> ^7.1.21 age adoption passing confidence
@types/styled-components ^5.1.17 -> ^5.1.19 age adoption passing confidence
@typescript-eslint/eslint-plugin ^5.6.0 -> ^5.8.0 age adoption passing confidence
@typescript-eslint/parser ^5.6.0 -> ^5.8.0 age adoption passing confidence
body-parser ^1.19.0 -> ^1.19.1 age adoption passing confidence
codemirror (source) ^5.64.0 -> ^5.65.0 age adoption passing confidence
electron ^16.0.4 -> ^16.0.5 age adoption passing confidence
eslint (source) ^8.4.1 -> ^8.5.0 age adoption passing confidence
eslint-config-airbnb ^19.0.2 -> ^19.0.4 age adoption passing confidence
eslint-plugin-react ^7.27.1 -> ^7.28.0 age adoption passing confidence
express (source) ^4.17.1 -> ^4.17.2 age adoption passing confidence
framer-motion ^5.4.3 -> ^5.5.5 age adoption passing confidence
graphql ^16.1.0 -> ^16.2.0 age adoption passing confidence
jest (source) ^27.4.3 -> ^27.4.5 age adoption passing confidence
jsan ^3.1.13 -> ^3.1.14 age adoption passing confidence
jss (source) ^10.8.2 -> ^10.9.0 age adoption passing confidence
jss-preset-default (source) ^10.8.2 -> ^10.9.0 age adoption passing confidence
knex (source) ^0.95.14 -> ^0.95.15 age adoption passing confidence
msw (source) ^0.36.1 -> ^0.36.3 age adoption passing confidence
prop-types (source) ^15.7.2 -> ^15.8.0 age adoption passing confidence
react-bootstrap (source) ^2.0.3 -> ^2.0.4 age adoption passing confidence
stylelint (source) ^14.1.0 -> ^14.2.0 age adoption passing confidence
ts-jest (source) ^27.1.0 -> ^27.1.2 age adoption passing confidence
typescript (source) ~4.5.2 -> ~4.5.4 age adoption passing confidence
webpack-dev-server ^4.6.0 -> ^4.7.1 age adoption passing confidence

Release Notes

babel/babel

v7.16.5

Compare Source

👓 Spec Compliance
  • babel-cli, babel-core, babel-helpers, babel-plugin-proposal-class-properties, babel-plugin-proposal-decorators, babel-plugin-transform-classes, babel-plugin-transform-jscript, babel-plugin-transform-parameters, babel-plugin-transform-runtime, babel-plugin-transform-spread, babel-plugin-transform-typescript, babel-preset-env
🐛 Bug Fix
  • babel-plugin-transform-parameters
  • babel-plugin-transform-arrow-functions, babel-traverse
  • babel-parser
  • babel-traverse
  • babel-generator
  • babel-plugin-transform-react-jsx
  • babel-helper-create-class-features-plugin, babel-helper-environment-visitor, babel-helper-member-expression-to-functions, babel-helper-module-transforms, babel-helper-replace-supers, babel-plugin-transform-classes, babel-traverse
💅 Polish
📝 Documentation
  • babel-compat-data, babel-helper-annotate-as-pure, babel-helper-builder-binary-assignment-operator-visitor, babel-helper-builder-react-jsx, babel-helper-compilation-targets, babel-helper-create-class-features-plugin, babel-helper-create-regexp-features-plugin, babel-helper-define-map, babel-helper-explode-assignable-expression, babel-helper-fixtures, babel-helper-function-name, babel-helper-get-function-arity, babel-helper-hoist-variables, babel-helper-member-expression-to-functions, babel-helper-module-imports, babel-helper-module-transforms, babel-helper-optimise-call-expression, babel-helper-plugin-test-runner, babel-helper-plugin-utils, babel-helper-remap-async-to-generator, babel-helper-replace-supers, babel-helper-simple-access, babel-helper-skip-transparent-expression-wrappers, babel-helper-split-export-declaration, babel-helper-transform-fixture-test-runner, babel-helper-validator-identifier, babel-helper-validator-option, babel-helper-wrap-function, babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-proposal-async-do-expressions, babel-plugin-proposal-record-and-tuple, babel-plugin-syntax-async-do-expressions, babel-plugin-syntax-module-blocks, babel-plugin-transform-react-jsx-development, babel-plugin-transform-react-pure-annotations, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime
🏠 Internal
  • babel-cli, babel-code-frame, babel-core, babel-generator, babel-helper-annotate-as-pure, babel-helper-compilation-targets, babel-helper-create-class-features-plugin, babel-helper-create-regexp-features-plugin, babel-helper-fixtures, babel-helper-module-imports, babel-helper-optimise-call-expression, babel-helper-plugin-test-runner, babel-helper-transform-fixture-test-runner, babel-helper-validator-identifier, babel-helper-validator-option, babel-helpers, babel-highlight, babel-node, babel-parser, babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-external-helpers, babel-plugin-proposal-async-do-expressions, babel-plugin-proposal-async-generator-functions, babel-plugin-proposal-class-properties, babel-plugin-proposal-class-static-block, babel-plugin-proposal-decorators, babel-plugin-proposal-do-expressions, babel-plugin-proposal-dynamic-import, babel-plugin-proposal-export-default-from, babel-plugin-proposal-export-namespace-from, babel-plugin-proposal-function-bind, babel-plugin-proposal-function-sent, babel-plugin-proposal-json-strings, babel-plugin-proposal-logical-assignment-operators, babel-plugin-proposal-nullish-coalescing-operator, babel-plugin-proposal-numeric-separator, babel-plugin-proposal-object-rest-spread, babel-plugin-proposal-optional-catch-binding, babel-plugin-proposal-optional-chaining, babel-plugin-proposal-partial-application, babel-plugin-proposal-pipeline-operator, babel-plugin-proposal-private-methods, babel-plugin-proposal-private-property-in-object, babel-plugin-proposal-record-and-tuple, babel-plugin-proposal-throw-expressions, babel-plugin-proposal-unicode-property-regex, babel-plugin-syntax-decorators, babel-plugin-syntax-typescript, babel-plugin-transform-arrow-functions, babel-plugin-transform-async-to-generator, babel-plugin-transform-block-scoped-functions, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-plugin-transform-computed-properties, babel-plugin-transform-destructuring, babel-plugin-transform-dotall-regex, babel-plugin-transform-duplicate-keys, babel-plugin-transform-exponentiation-operator, babel-plugin-transform-flow-comments, babel-plugin-transform-flow-strip-types, babel-plugin-transform-for-of, babel-plugin-transform-function-name, babel-plugin-transform-instanceof, babel-plugin-transform-jscript, babel-plugin-transform-member-expression-literals, babel-plugin-transform-modules-amd, babel-plugin-transform-modules-commonjs, babel-plugin-transform-modules-systemjs, babel-plugin-transform-modules-umd, babel-plugin-transform-named-capturing-groups-regex, babel-plugin-transform-new-target, babel-plugin-transform-object-super, babel-plugin-transform-parameters, babel-plugin-transform-property-literals, babel-plugin-transform-property-mutators, babel-plugin-transform-proto-to-assign, babel-plugin-transform-react-constant-elements, babel-plugin-transform-react-display-name, babel-plugin-transform-react-inline-elements, babel-plugin-transform-react-jsx-compat, babel-plugin-transform-react-jsx-development, babel-plugin-transform-react-jsx-self, babel-plugin-transform-react-jsx-source, babel-plugin-transform-react-jsx, babel-plugin-transform-react-pure-annotations, babel-plugin-transform-regenerator, babel-plugin-transform-reserved-words, babel-plugin-transform-runtime, babel-plugin-transform-shorthand-properties, babel-plugin-transform-spread, babel-plugin-transform-sticky-regex, babel-plugin-transform-strict-mode, babel-plugin-transform-template-literals, babel-plugin-transform-typeof-symbol, babel-plugin-transform-typescript, babel-plugin-transform-unicode-escapes, babel-plugin-transform-unicode-regex, babel-preset-env, babel-preset-flow, babel-preset-react, babel-preset-typescript, babel-register, babel-standalone, babel-template, babel-traverse, babel-types
  • babel-parser
  • babel-helpers
  • babel-plugin-proposal-object-rest-spread, babel-traverse
  • babel-parser, babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-proposal-optional-chaining, babel-preset-react, babel-preset-typescript
  • Other
🏃‍♀️ Performance
🔬 Output optimization
  • babel-helpers, babel-plugin-proposal-async-generator-functions, babel-plugin-transform-runtime, babel-preset-env, babel-runtime-corejs2, babel-runtime
chakra-ui/chakra-ui

v1.7.3

Patch Changes
emotion-js/emotion

v11.7.1

Compare Source

Patch Changes
  • #​2577 04681a5f Thanks @​Methuselah96! - Export Keyframes type to avoid TypeScript inserting import("@​emotion/serialize").Keyframes references into declaration files emitted based on a source files exporting keyframes result. This avoids issues with strict package managers that don't allow accessing undeclared dependencies.
reduxjs/redux-toolkit

v1.7.1

Compare Source

This release fixes a types issue with RTK 1.7.0 and TS 4.5, as seen in #​1829 .

What's Changed

Full Changelog: reduxjs/redux-toolkit@v1.7.0...v1.7.1

v1.7.0

Compare Source

This feature release has a wide variety of API improvements:

  • updates RTK Query with support for SSR and rehydration
  • allows sharing mutation results across components
  • adds a new currentData field to query results
  • adds several new options for customizing endpoints and base queries
  • adds support for async condition options in createAsyncThunk
  • updates createSlice/createReducer to accept a "lazy state initializer" function
  • updates createSlice to avoid potential circular dependency issues by lazy-building its reducer
  • updates Reselect and Redux-Thunk to the latest versions with much-improved TS support and new selector customization options
  • Fixes a number of small code and types issues
npm i @​reduxjs/toolkit@latest

yarn add @​reduxjs/toolkit@latest

Changelog

RTK Query
RTK Query SSR and Rehydration Support

RTK Query now has support for SSR scenarios, such as the getStaticProps/getServerSideProps APIs in Next.js. Queries can be executed on the server using the existing dispatch(someEndpoint.initiate()) thunks, and then collected using the new await Promise.all(api.getRunningOperationPromises()) method.

API definitions can then provide an extractRehydrationInfo method that looks for a specific action type containing the fetched data, and return the data to initialize the API cache section of the store state.

The related api.util.getRunningOperationPromise() API adds a building block that may enable future support for React Suspense as well, and we'd encourage users to experiment with this idea.

Sharing Mutation Results Across Components

Mutation hooks provide status of in-progress requests, but as originally designed that information was unique per-component - there was no way for another component to see that request status data. But, we had several requests to enable this use case.

useMutation hooks now support a fixedCacheKey option that will store the result status in a common location, so multiple components can read the request status if needed.

This does mean that the data cannot easily be cleaned up automatically, so the mutation status object now includes a reset() function that can be used to clear that data.

Data Loading Updates

Query results now include a currentData field, which contains the latest data cached from the server for the current query arg. Additionally, transformResponse now receives the query arg as a parameter. These can be used to add additional derivation logic in cases when a hooks query arg has changed to represent a different value and the existing data no longer conceptually makes sense to keep displaying.

Data Serialization and Base Query Improvements

RTK Query originally only did shallow checks for query arg fields to determine if values had changed. This caused issues with infinite loops depending on user input.

The query hooks now use a "serialized stable value" hook internally to do more consistent comparisons of query args and eliminate those problems.

Also, fetchBaseQuery now supports a paramsSerializer option that allows customization of query string generation from the provided arguments, which enables better interaction with some backend APIs.

The BaseQueryApi and prepareheaders args now include fields for endpoint name, type to indicate if it's a query or mutation, and forced to indicate a re-fetch even if there was already a cache entry. These can be used to help determine headers like Cache-Control: no-cache.

Other RTK Query Improvements

API objects now have a selectInvalidatedBy function that accepts a root state object and an array of query tag objects, and returns a list of details on endpoints that would be invalidated. This can be used to help implement optimistic updates of paginated lists.

Fixed an issue serializing a query arg of undefined. Related, an empty JSON body now is stored as null instead of undefined.

There are now dev warnings for potential mistakes in endpoint setup, like a query function that does not return a data field.

Lazy query trigger promises can now be unwrapped similar to mutations.

Fixed a type error that led the endpoint return type to be erroneously used as a state key, which caused generated selectors to have an inferred state: never argument.

Fixed transformResponse to correctly receive the originalArgs as its third parameter.

api.util.resetApiState will now clear out cached values in useQuery hooks.

The RetryOptions interface is now exported, which resolves a TS build error when using the hooks with TS declarations.

RTK Core
createSlice Lazy Reducers and Circular Dependencies

For the last couple years we've specifically recommended using a "feature folder" structure with a single "slice" file of logic per feature, and createSlice makes that pattern really easy - no need to have separate folders and files for /actions and /constants any more.

The one downside to the "slice file" pattern is in cases when slice A needs to import actions from slice B to respond to them, and slice B also needs to listen to slice A. This circular import then causes runtime errors, because one of the modules will not have finished initializing by the time the other executes the module body. That causes the exports to be undefined, and createSlice throws an error because you can't pass undefined to builder.addCase() in extraReducers. (Or, worse, there's no obvious error and things break later.)

There are well-known patterns for breaking circular dependencies, typically requiring extracting shared logic into a separate file. For RTK, this usually means calling createAction separately, and importing those action creators into both slices.

While this is a rarer problem, it's one that can happen in real usage, and it's also been a semi-frequently listed concern from users who didn't want to use RTK.

We've updated createSlice to now lazily create its reducer function the first time you try to call it. That delay in instantiation should eliminate circular dependencies as a runtime error in createSlice.

createAsyncThunk Improvements

The condition option may now be async, which enables scenarios like checking if an existing operation is running and resolving the promise when the other instance is done.

If an idGenerator function is provided, it will now be given the thunkArg value as a parameter, which enables generating custom IDs based on the request data.

The createAsyncThunk types were updated to correctly handle type inference when using rejectWithValue().

Other RTK Improvements

createSlice and createReducer now accept a "lazy state initializer" function as the initialState argument. If provided, the initializer will be called to produce a new initial state value any time the reducer is given undefined as its state argument. This can be useful for cases like reading from localStorage, as well as testing.

The isPlainObject util has been updated to match the implementation in other Redux libs.

The UMD builds of RTK Query now attach as window.RTKQ instead of overwriting window.RTK.

Fixed an issue with sourcemap loading due to an incorrect filename replacement.

Dependency Updates

We've updated our deps to the latest versions:

  • Reselect 4.1.x: Reselect has brand-new customization capabilities for selectors, including configuring cache sizes > 1 and the ability to run equality checks on selector results. It also now has comple

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/all-minor-patch branch 2 times, most recently from fb41a27 to eb4c508 Compare December 8, 2021 19:02
@renovate renovate bot changed the title fix(deps): update all non-major dependencies chore(deps): update all non-major dependencies Dec 9, 2021
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 5 times, most recently from 06a2f36 to 8a59cb4 Compare December 9, 2021 17:25
@renovate renovate bot changed the title chore(deps): update all non-major dependencies fix(deps): update all non-major dependencies Dec 9, 2021
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 10 times, most recently from 9830b07 to a527725 Compare December 14, 2021 01:41
@renovate renovate bot changed the title fix(deps): update all non-major dependencies chore(deps): update all non-major dependencies Dec 14, 2021
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 10 times, most recently from d5928f8 to b9a26ef Compare December 17, 2021 15:41
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 18 times, most recently from 24f4923 to 9dd989c Compare December 24, 2021 21:25
@Methuselah96 Methuselah96 enabled auto-merge (squash) December 27, 2021 01:28
@Methuselah96 Methuselah96 merged commit 9a2ece2 into main Dec 27, 2021
@Methuselah96 Methuselah96 deleted the renovate/all-minor-patch branch December 27, 2021 02:12
aliffazfar pushed a commit to aliffazfar/redux-devtools that referenced this pull request Jul 19, 2024
* chore(deps): update all non-major dependencies

* Changes

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Nathan Bierema <nbierema@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants