Update dependency @reduxjs/toolkit to v2.2.5 #190
No reviewers
Labels
No labels
Kind
Breaking
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: procyon/procyon#190
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "renovate/reduxjs-toolkit-2.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
2.1.0
->2.2.5
2.1.0
->2.2.5
Release Notes
reduxjs/redux-toolkit (@reduxjs/toolkit)
v2.2.5
Compare Source
This bugfix release fixes an issue in the recent
createEntityAdapter
sorting perf improvements that could (in specific cases) cause Immer to throw an error when trying to read a plain JS value instead of a proxy-wrapped value.What's Changed
current
may fail if the value is not a draft by @markerikson in https://github.com/reduxjs/redux-toolkit/pull/4412Full Changelog: https://github.com/reduxjs/redux-toolkit/compare/v2.2.4...v2.2.5
v2.2.4
Compare Source
This bugfix release improves sorting performance in
createEntityAdapter
, shrinks the code size in matcher utilities, fixes assorted issues with query hooks, and makes several TS tweaks.Changelog
Entity Adapter Sorting Performance
Users reported in #4252 that the sorting performance of
createEntityAdapter
seemed abnormally bad - the provided comparison functions were being called far more times than expected.Upon investigation, we had a couple of problems. We were always starting from an array that was in insertion order, not the existing sorted order, and that would always require significant effort to re-sort even if there weren't any actual changes to the sorted results. Also, the sorting checks required frequent access to Immer's Proxy-wrapped values, even in cases where all we needed was the plain state values for comparison purposes.
We've reworked the internal sorting logic to always start from the existing sorted array, do reads against a plain value to avoid the Proxy getter overhead where possible, and optimized inserts into existing sorted arrays. This should significantly speed up sorted entity adapter behavior.
Matcher Code Size Optimization
We've reworked the internals of the thunk-related matchers to deduplicate some of the logic, shaving a few bytes off the final bundle size.
RTK Query Hook Updates
defaultSerializeQueryArgs
can now handleBigInt
values safely.The
isLoading
flag logic was improved to handle errors when a query hook tries to subscribe.TS Updates
create.asyncThunk
's types were improved to avoid cases where it might inferany
.We've made several internal types changes to work correctly with React 19's upcoming types.
The
retryCondition
method now receivesunknown
as an argument, instead of always assuming the user is usingfetchBaseQuery
.Other Changes
The Reselect dep has been bumped to 5.1.0 to match the expected internal usage of
createSelector.withTypes()
.What's Changed
Context
references to match the new nullableContext
by @aryaemami59 in https://github.com/reduxjs/redux-toolkit/pull/4336GetThunkAPI
type by @shrouxm in https://github.com/reduxjs/redux-toolkit/pull/4289React.ReactChild
type by @aryaemami59 in https://github.com/reduxjs/redux-toolkit/pull/4382JSX
global namespace withReact.JSX
by @aryaemami59 in https://github.com/reduxjs/redux-toolkit/pull/4381useRef
usages to be called with an explicit argument ofundefined
. by @aryaemami59 in https://github.com/reduxjs/redux-toolkit/pull/4380reselect
dependency to 5.1.0 to resolve #4200 by @aryaemami59 in https://github.com/reduxjs/redux-toolkit/pull/4400initiate()
action for mutations. by @jared-ca in https://github.com/reduxjs/redux-toolkit/pull/4337Full Changelog: https://github.com/reduxjs/redux-toolkit/compare/v2.2.3...v2.2.4
v2.2.3
Compare Source
This bugfix release fixes the types for functions that accept a React Context instance to match the changes in React Redux v9.
What's Changed
.withTypes
by @aryaemami59 in https://github.com/reduxjs/redux-toolkit/pull/4308Full Changelog: https://github.com/reduxjs/redux-toolkit/compare/v2.2.2...v2.2.3
v2.2.2
Compare Source
This patch release fixes an incorrect build setting for the
legacy-esm
artifacts, and fixes an issue with RTKQ query hooks didn't always remove the cache entries if arguments were changed rapidly.Changes
legacy-esm
Artifact TranspilationThe
legacy-esm
build artifacts are intended for use by Webpack 4. Those were supposed to be transpiled to target"es2017"
, but were in fact still set to target"esnext"
- an oversight during the 2.0 development cycle. This release fixes that setting, so those artifacts are now correctly transpiled.Other Fixes
RTKQ query hooks now handle additional actions around argument changes that should result in cache entries being removed.
Additionally, 2.2.1 contained a fix to an incorrectly named type:
TypedUseMutationTrigger
is nowTypedMutationTrigger
.What's Changed
Full Changelog: https://github.com/reduxjs/redux-toolkit/compare/v2.2.0...v2.2.2
v2.2.1
Compare Source
v2.2.0
Compare Source
This minor release:
entityAdapter.getInitialState(additionalProps, entities)
to allow prefilling stateentityAdapter.setAll(entityAdapter.getInitialState(additionalProps), entities)
undefined
if no additional properties are desiredcombineSlices
with no static reducersconst combinedReducer = combineSlices().withLazyLoadedSlices<LazyLoadedSlices>()
would have thrown an error'throw'
value foroverrideExisting
ininjectEndpoints
, which throws an error if a definition is injected with a name which is already usedenhanceEndpoints
LazyLoadedSlices
)action.meta.arg.isPrefetch
value to query thunk actions when prefetchedWhat's Changed
cli.js
tocli.mjs
by @aryaemami59 in https://github.com/reduxjs/redux-toolkit/pull/4169withLazyLoadedSlices
by @aryaemami59 in https://github.com/reduxjs/redux-toolkit/pull/4172overrideExisting
by @ffluk3 in https://github.com/reduxjs/redux-toolkit/pull/4189tsconfig.json
files of all CodesandBox examples by @aryaemami59 in https://github.com/reduxjs/redux-toolkit/pull/4190New Contributors
Full Changelog: https://github.com/reduxjs/redux-toolkit/compare/v2.1.0...v2.2.0
This PR has been generated by Renovate Bot.
afb0ea0dc4
toc9f4c66c1b
c9f4c66c1b
to95b23de5c4
Update dependency @reduxjs/toolkit to v2.2.4to Update dependency @reduxjs/toolkit to v2.2.5Renovate Ignore Notification
Because you closed this PR without merging, Renovate will ignore this update (
2.2.5
). You will get a PR once a newer version is released. To ignore this dependency forever, add it to theignoreDeps
array of your Renovate config.If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.
Pull request closed