-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update all non-major dependencies #323
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
June 24, 2022 11:28
be02bbc
to
25e4238
Compare
renovate
bot
changed the title
Update dependency @atlaskit/theme to v12.1.9
Update all non-major dependencies
Jun 24, 2022
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
June 27, 2022 20:48
25e4238
to
a1bbe41
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
June 30, 2022 05:12
a1bbe41
to
175bddc
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
July 1, 2022 11:48
175bddc
to
0d432fa
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
July 3, 2022 04:48
0d432fa
to
0e15a12
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
July 8, 2022 12:06
0e15a12
to
472fc3e
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
July 9, 2022 18:35
472fc3e
to
1318b1b
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
July 11, 2022 16:09
1318b1b
to
ad5e6d8
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
July 14, 2022 12:36
ad5e6d8
to
a86baa9
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
July 18, 2022 10:54
a86baa9
to
94cf230
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
July 29, 2022 00:35
94cf230
to
c2e8208
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
July 31, 2022 09:34
c2e8208
to
5c7e23c
Compare
renovate
bot
changed the title
Update all non-major dependencies
Update all non-major dependencies to v12.1.9
Aug 9, 2022
renovate
bot
changed the title
Update all non-major dependencies to v12.1.9
Update all non-major dependencies
Aug 10, 2022
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
August 11, 2022 02:50
5c7e23c
to
f219035
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
August 19, 2022 23:34
f871c65
to
03691c6
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
November 20, 2022 09:42
03691c6
to
f470ace
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
March 16, 2023 17:51
f470ace
to
f77a331
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
March 23, 2023 19:29
f77a331
to
d647fe1
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
March 25, 2023 01:27
d647fe1
to
7ea2d25
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
March 26, 2023 17:02
7ea2d25
to
19579a8
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
March 28, 2023 02:17
19579a8
to
d00d427
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
March 30, 2023 22:59
d00d427
to
30dce2a
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
April 17, 2023 12:34
30dce2a
to
d3ec178
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
April 17, 2023 20:24
d3ec178
to
acd5f42
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
April 18, 2023 03:57
acd5f42
to
d32fad3
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
May 28, 2023 10:56
d32fad3
to
eb6f239
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
May 28, 2023 21:24
eb6f239
to
44c86ed
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
12.1.8
->12.5.3
7.16.7
->7.19.0
7.17.12
->7.21.0
7.18.4
->7.21.0
11.9.3
->11.11.0
11.9.3
->11.11.0
1.8.2
->1.9.5
v3.3.0
->v3.6.0
2.3.8
->2.6.3
13.1.0
->13.1.1
7.32.2
->7.44.1
8.0.2
->8.0.5
5.3.3
->5.3.4
9.22.3
->9.22.5
1.8.7
->1.8.9
4.2.0
->4.2.1
5.3.5
->5.3.11
Release Notes
babel/babel
v7.19.0
Compare Source
👓 Spec Compliance
babel-parser
babel-helpers
,babel-plugin-proposal-async-generator-functions
,babel-preset-env
,babel-runtime-corejs2
,babel-runtime-corejs3
,babel-runtime
🚀 New Feature
babel-generator
,babel-helpers
,babel-parser
,babel-plugin-proposal-decorators
,babel-plugin-syntax-decorators
,babel-runtime-corejs2
,babel-runtime-corejs3
,babel-runtime
babel-parser
decoratorsBeforeExport
default tofalse
(@nicolo-ribaudo)babel-generator
,babel-parser
babel-standalone
babel-helper-create-regexp-features-plugin
,babel-helpers
,babel-plugin-proposal-duplicate-named-capturing-groups-regex
,babel-plugin-transform-named-capturing-groups-regex
,babel-standalone
🐛 Bug Fix
babel-helper-function-name
,babel-helper-wrap-function
,babel-plugin-transform-classes
babel-plugin-transform-typescript
#privateField!
(@liuxingbaoyu)babel-parser
babel-helper-builder-react-jsx
💅 Polish
babel-core
@babel/core
functions in config errors (@nicolo-ribaudo)📝 Documentation
🏠 Internal
babel-standalone
babel-core
,babel-parser
,babel-traverse
v7.18.6
Compare Source
👓 Spec Compliance
babel-parser
...<...>
followed by newline or binary operator (@nicolo-ribaudo)babel-generator
,babel-parser
,babel-preset-env
,babel-template
🐛 Bug Fix
babel-helper-remap-async-to-generator
,babel-plugin-proposal-async-generator-functions
await
in computed class keys (@Yokubjon-J)babel-plugin-transform-parameters
babel-core
babel-core
(@liuxingbaoyu)babel-core
,babel-helper-check-duplicate-nodes
,babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression
,babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining
,babel-plugin-proposal-destructuring-private
,babel-plugin-proposal-optional-chaining
,babel-plugin-transform-runtime
import { types } from "@​babel/core"
with native ESM (@nicolo-ribaudo)🏠 Internal
babel-standalone
proposal-unicode-sets-regex
to@babel/standalone
(@nicolo-ribaudo)babel-generator
,babel-types
babel-code-frame
,babel-core
,babel-generator
,babel-helper-annotate-as-pure
,babel-helper-builder-binary-assignment-operator-visitor
,babel-helper-builder-react-jsx
,babel-helper-check-duplicate-nodes
,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-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-split-export-declaration
,babel-helper-transform-fixture-test-runner
,babel-helper-validator-option
,babel-helper-wrap-function
,babel-helpers
,babel-highlight
,babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining
,babel-plugin-external-helpers
,babel-plugin-proposal-async-generator-functions
,babel-plugin-proposal-class-static-block
,babel-plugin-proposal-decorators
,babel-plugin-proposal-destructuring-private
,babel-plugin-proposal-function-bind
,babel-plugin-proposal-function-sent
,babel-plugin-proposal-json-strings
,babel-plugin-proposal-object-rest-spread
,babel-plugin-proposal-optional-chaining
,babel-plugin-proposal-partial-application
,babel-plugin-proposal-pipeline-operator
,babel-plugin-proposal-private-property-in-object
,babel-plugin-proposal-record-and-tuple
,babel-plugin-syntax-typescript
,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-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-modules-amd
,babel-plugin-transform-modules-commonjs
,babel-plugin-transform-modules-systemjs
,babel-plugin-transform-modules-umd
,babel-plugin-transform-object-super
,babel-plugin-transform-parameters
,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-source
,babel-plugin-transform-react-jsx
,babel-plugin-transform-runtime
,babel-plugin-transform-typescript
,babel-plugin-transform-unicode-escapes
,babel-preset-env
,babel-preset-typescript
,babel-standalone
,babel-template
,babel-traverse
,babel-types
babel-core
,babel-helper-transform-fixture-test-runner
,babel-plugin-transform-destructuring
emotion-js/emotion
v11.11.0
Compare Source
Minor Changes
336f3d50
Thanks @Andarist! - Added support for cascade@layer
s by updating the underlying parser (stylis).Patch Changes
#3029
eed5e6cf
Thanks @Andarist! - Fixed importing in Node ESMUpdated dependencies [
336f3d50
,eed5e6cf
]:v11.10.8
Compare Source
Patch Changes
#3025
6bd13425
Thanks @Andarist! - Fixed a parsing issue with&
within nested functions in declaration values by updating the underlying parser (stylis).Updated dependencies [
6bd13425
,6bd13425
]:v11.10.6
Compare Source
Patch Changes
#2985
4e172c2a
Thanks @emmatown! - Remove peer dependency on@babel/core
Updated dependencies [
4e172c2a
]:v11.10.5
Compare Source
Patch Changes
#2905
4c0005f6
Thanks @p-m-p! - Do not warn about@emotion/react
being loaded twice in Vitest as that might easily happen with mocked modules.#2929
13afe030
Thanks @Andarist! - The support for@container
queries has been added by updating the underlying parser (stylis) .Updated dependencies [
13afe030
,c02b1214
,d8a13bca
]:v11.10.4
Compare Source
Patch Changes
#2867
89b6dbb3
Thanks @Andarist! - Externalized code referencingReact.useInsertionEffect
to a separate@emotion/use-insertion-effect-with-fallbacks
package. This package should be used in your defined externals if you bundle Emotion for whatever reason. It referencesuseInsertionEffect
in a very specific way that allows us to use it conditionally. However, if the code consuming Emotion is bundled as a library with Emotion in it then some bundlers might change the way in which we referenceuseInsertionEffect
and that might create problems for bundlers used to consume the said library code. By externalizing this new package you can still bundle Emotion if you want to without running into this problem as you won't "destroy" the carefully crafted reference touseInsertionEffect
in the process.Note that we don't recommend bundling Emotion. You should have very specific reasons to do so.
Updated dependencies [
89b6dbb3
]:v11.10.0
Compare Source
Minor Changes
#2819
bbad8c79
Thanks @nicksrandall! -exports
field has been added to thepackage.json
manifest. It limits what files can be imported from a package but we've tried our best to allow importing all the files that were considered to be a part of the public API.#2819
bbad8c79
Thanks @nicksrandall! - Thanks to the addedexports
field, the package now includes aworker
condition that can be utilized by properly configured bundlers when targeting worker-like environments. It fixes the issue with browser-specific files being prioritized by some bundlers when targeting workers.Patch Changes
bbad8c79
,bbad8c79
]:reduxjs/redux-toolkit
v1.9.5
Compare Source
This bugfix release includes notable improvements to TS type inference when using the
enhancers
option inconfigureStore
, and updates the listener middleware to only check predicates if the dispatched value is truly an action object.What's Changed
Full Changelog: reduxjs/redux-toolkit@v1.9.4...v1.9.5
v1.9.4
Compare Source
This bugfix release includes tweaks to RTKQ options handling, tweaks for perf updates, dependency updates, and updates to our CI tooling.
Also, please check out our ongoing RTK 2.0 alpha releases! They have significant improvements to bundle size, ESM/CJS compatibility, TS typings, and reducer update performance. We're looking for real-world feedback on behavior, performance, and any issues you might run into.
Changelog
RTK Query Options Updates
Passing
transformResponse
as part ofenhanceEndpoints
can now override the TS type of the original data.fetchBaseQuery
now properly checks for a globalresponseHandler
option.Performance and Internals
RTK Query now uses Immer's
original()
to do comparisons inside ofcopyWithStructuralSharing
, which should significantly speed up performance when applying changes from re-fetched data.RTKQ's internal
subscriptionUpdated
action is now marked as batchable.We've updated dependencies to Immer 9.0.21, Reselect 4.1.8, and Redux 4.2.1.
CI Updates
We've added a suite of example apps built with different frameworks such as CRA 4, CRA 5, Next, and Vite, as well as examples that check for compatibility in Node with CJS and ESM modes and with various TS module resolution modes.
What's Changed
arethetypeswrong
automated CLI check by @markerikson in https://github.com/reduxjs/redux-toolkit/pull/3294attw
CLI option to treat problems as non-errors by @markerikson in https://github.com/reduxjs/redux-toolkit/pull/3316responseHandler
being used infetchBaseQuery
by @praxxis in https://github.com/reduxjs/redux-toolkit/pull/3137resetApiState
by @phryneas in https://github.com/reduxjs/redux-toolkit/pull/3333subscriptionUpdated
as autobatched by @markerikson in https://github.com/reduxjs/redux-toolkit/pull/3364Full Changelog: reduxjs/redux-toolkit@v1.9.3...v1.9.4
v1.9.3
Compare Source
This release fixes a couple issues with the
skip/skipToken
options for query hooks, and makes a small perf tweak to serializing query args.Changelog
Skip Behavior
We made a change in v1.9.0 that tried to make some skip behavior more consistent, including clearing out the cached data. However, we had overlooked that our own docs actually said "skipping a query will keep the cached data", and several users pointed this out as they'd been relying on that behavior.
We've reverted that change. Now, setting
{skip: true}
orskipToken
for a query with existing results will keep thedata
value (reflecting the last successful query), butcurrentData
will be undefined (reflecting the current settings).We also identified and fixed an issue that could cause subscription entries to leak under a specific combination of timing and settings changes.
Query Arg Serialization Perf
RTKQ relies on serializing query arguments to serve as the cache keys, with the default using
JSON.stringify()
+ some logic for sorting keys. There was a report that in some apps, large query arg objects could take a while to stringify and this was being done repeatedly. We've added aWeakMap
-based cache for query args to avoid re-serializing existing arg values.What's Changed
Full Changelog: reduxjs/redux-toolkit@v1.9.2...v1.9.3
v1.9.2
Compare Source
This bugfix release fixes a memory leak in
createListenerMiddleware
, optimizes performance insideserializableMiddleware
, adds new options forfetchBaseQuery
, adds support for pathRegExp
exclusions inserializableMiddleware
andimmutabilityMiddleware
, and improves some TS types.Changelog
Bug Fixes
createListenerMiddleware
had a memory leak that turned out to be due to use ofPromise.race()
. We've restructured the logic to fix that.fetchBaseQuery
now correctly combines global options with endpoint / default options in all cases.New Options
fetchBaseQuery
now supports ajsonReplacer
option that will be used when processing JSON.Both dev check middleware now support regular expressions in the
ignoredPaths
array in addition to strings. This adds extra flexibility in skipping certain fields.TS Changes
The
CaseReducer
type was sometimes incorrectly inferring its return type in rare cases. That's been fixed.The
isAnyOf/isAllOf
matcher function TS types have been tweaked to not require an individual first parameter. This allows spreading arrays of matchers as arguments, likeconst isLoading = isAnyOf(...interestingPendingThunksArray)
.Other Changes
The
serializableMiddleware
now uses aWeakSet
if available to cache values it's seen. This should significantly speed up checks against large state values in development builds.What's Changed
ThunkWithReturnValue
interface by @giomogna in https://github.com/reduxjs/redux-toolkit/pull/3108raceWithSignal
method instead ofPromise.race
by @phryneas in https://github.com/reduxjs/redux-toolkit/pull/3021Full Changelog: reduxjs/redux-toolkit@v1.9.1...v1.9.2
v1.9.1
Compare Source
This bugfix release fixes assorted issues that were reported with RTK 1.9.0, and adds a few additional requested tweaks and improvements.
Changelog
Fixes
The
createAsyncThunk.withTypes
function was fully broken (it type-checked correctly, but pointed to the wrong function due to a name shadowing issue). That now works correctly.The
maxRetries
option for RTKQ was inadvertently filtering out0
values, and those are now accepted.fulfillWithValue
had incorrect types that made it appear as if the data was nested an additional level deeper. The types are now correct.The
ActionCreatorWithoutPayload
type was tweaked to force an error when an action creator is accidentally called with an argument, which happens in cases likeonClick={todoAdded}
. This avoids accidentally passing values like React event objects as the payload.Timer handling for
batchActions
andautoBatchEnhancer
now works in more JS runtime environments.Other Changes
The
TagDescription
type is now exported from RTKQ.API endpoints now have a
.name
field containing the endpoint name, such as"getPokemon"
.Calling
promise.abort()
on acreateAsyncThunk
promise before an asynccondition
resolves will now be treated as if thecondition
itself returnedfalse
, bailing out and not dispatching anything.The
merge
option now receives a third argument containing{arg, baseQueryMeta, fulfilledTimeStamp, requestId}
, in case that info is useful in deciding how to merge.The
@reduxjs/rtk-codemods
package has been updated to fix cases where thecreateSliceBuilder
codemod didn't preserve fields with function variable arguments, like[todoAdded]: adapter.addOne
. That package has been updated to v0.0.3.What's Changed
Full Changelog: reduxjs/redux-toolkit@v1.9.0...v1.9.1
v1.9.0
Compare Source
This feature release adds several new options for RTK Query's
createApi
andfetchBaseQuery
APIs, adds a newupsertQueryData
util, rewrites RTKQ's internals for improved performance, adds a newautoBatchEnhancer
, deprecates the "object" syntax forcreateReducer
andcreateSlice.extraReducers
, deprecates and removes broken utils for getting running query promises, improves TS inference, exports additional types, and fixes a number of reported issues.We plan to start work on RTK 2.0 in the next few weeks. RTK 2.0 will focus on dropping legacy build compatibility and deprecated APIs, with some potential new features. See the linked discussion thread and give us feedback on ideas!
Deprecations and Removals
Object Argument for
createReducer
andcreateSlice.extraReducers
RTK's
createReducer
API was originally designed to accept a lookup table of action type strings to case reducers, like{ "ADD_TODO" : (state, action) => {} }
. We later added the "builder callback" form to allow more flexibility in adding "matchers" and a default handler, and did the same forcreateSlice.extraReducers
.We intend to remove the "object" form for both
createReducer
andcreateSlice.extraReducers
in RTK 2.0. The builder callback form is effectively the same number of lines of code, and works much better with TypeScript.Starting with this release, RTK will print a one-time runtime warning for both
createReducer
andcreateSlice.extraReducers
if you pass in an object argument.As an example, this:
should be migrated to:
Codemods for Deprecated Object Reducer Syntax
To simplify upgrading codebases, we've published a set of codemods that will automatically transform the deprecated "object" syntax into the equivalent "builder" syntax.
The codemods package is available on NPM as
@reduxjs/rtk-codemods
. It currently contains two codemods:createReducerBuilder
andcreateSliceBuilder
.To run the codemods against your codebase, run
npx @​reduxjs/rtk-codemods <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
.Examples:
We also recommend re-running Prettier on the codebase before committing the changes.
These codemods should work, but we would greatly appreciate testing and feedback on more real-world codebases!
Object reducer codemod before/after examples
Before:After:
getRunningOperationPromises
Deprecation and ReplacementIn
v1.7.0
, we added anapi.util.getRunningOperationPromises()
method for use with SSR scenarios, as well as a singulargetRunningOperationPromise()
method intended for possible use with React Suspense.Unfortunately, in #2477 we realized that both those methods have a fatal flaw - they do not work with multiple stores in SSR.
As of this release, we are immediately marking
getRunningOperationPromises()
as deprecated and discouraging its use before we remove it completely in RTK 2.0! It will now throw both runtime and compile errors in development to enforce moving away from using it. However, we are leaving its existing behavior in production builds to avoid actual breakage.The
getRunningOperationPromise()
util was experimental, and as far as we can tell not actually being used by anyone, so we are removinggetRunningOperationPromise
completely in this release.As replacements, RTKQ now includes four new thunks attached to
api.util
:getRunningQueryThunk(endpointName, queryArgs)
getRunningMutationThunk(endpointName, fixedCacheKeyOrRequestId)
getRunningQueriesThunk()
getRunningMutationsThunk()
Usages would typically change like this:
Changelog
New RTK Query
createApi
OptionscreateApi
endpoints now have several additional options that can be passed in, some of which are intended to work together.merge
OptionRTKQ was built around the assumption that the server is the source of truth, and every refetch replaces the cached data on the client. There are use cases when it would be useful to merge an incoming response into the existing cached data instead, such as pagination or APIs that return varying results over time.
Query endpoints can now accept a
merge(cachedData, responseData)
callback that lets you do Immer-powered "mutations" to update the existing cached data instead of replacing it entirely.Since RTKQ assumes that each response per key should replace the existing cache entry by default, the
merge
option is expected to be used with theserializeQueryArgs
andforceRefetch
options, as described below.serializeQueryArgs
OptionRTK Query always serializes the cache key value, and uses the string as the actual key for storing the cache entry. The default serialization is the name of the endpoint, plus either the primitive value or a stable-serialized object. An example might be
state.api.queries['getPokemon("pikachu")']
.RTKQ already supported customization of this serialization behavior at the
createApi
level. Now, each endpoint can specify its ownserializeQueryArgs
method.The per-endpoint
serializeQueryArgs
may return either a string, an object, a number, or a boolean. If it's a string, that value will be used as-is. Otherwise, the return value will be run through the default serialization logic. This simplifies the common case of stripping out a couple unwanted object fields from the cache key.This option serves two main purposes: leaving out values that are passed in to an endpoint but not really part of the "key" conceptually (like a socket or client instance), and altering cache key behavior to use a single entry for the endpoint (such as in an infinite loading / pagination scenario).
Also, the
defaultSerializeQueryArgs
util is now exported.forceRefresh
optionSometimes you may want to force a refetch, even though RTKQ thinks that the serialized query args haven't changed and there's already a fulfilled cache entry.
This can be used to force RTKQ to actually refetch. One expected use case is an "infinite pagination" scenario where there is one cache entry for the endpoint, different page numbers are given as query args, and the incoming responses are merged into the existing cache entry:
transformErrorResponse
OptionSimilar to
transformResponse
, endpoints can now specify atransformErrorResponse
option as well.upsertQueryData
UtilRTKQ already has an
updateQueryData
util to synchronously modify the contents of an existing cache entry, but there was no way to create a new cache entry and its metadata programmatically.This release adds a new
api.util.upsertQueryData
API that allows creating a cache entry + its data programmatically. As with the other util methods, this is a thunk that should be dispatched, and you should pass in the exact cache key arg and complete data value you want to insert:The dispatch acts like all other RTKQ requests, so the process is async, and the thunk returns a promise that resolves when the upsert is complete.
RTK Query Performance Improvements
We've significa
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.