Bump @reduxjs/toolkit from 1.9.1 to 1.9.2
Bumps @reduxjs/toolkit from 1.9.1 to 1.9.2.
Release notes
Sourced from @reduxjs/toolkit
's releases.
v1.9.2
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
- fix CaseReducer to infer from argument, not return value by
@phryneas
in reduxjs/redux-toolkit#3054- fetchBaseQuery | Add jsonReplacer param by
@tophep
in reduxjs/redux-toolkit#2904- Support RegExp in ignoredPaths/ignoredActionPaths by
@markerikson
in reduxjs/redux-toolkit#3129- fix(types): export
ThunkWithReturnValue
interface by@giomogna
in reduxjs/redux-toolkit#3108- remove unnecessary fetchBaseQuery defaults by
@phryneas
in reduxjs/redux-toolkit#3062- make isAnyOf friendly for mapped matchers, but making argument optional by
@megagon
in reduxjs/redux-toolkit#3123raceWithSignal
method instead ofPromise.race
by@phryneas
in reduxjs/redux-toolkit#3021- Fix lint problems and enable linting on CI by
@thorn0
in reduxjs/redux-toolkit#2992- Add caching to serializableStateInvariantMiddleware by
@GeorchW
in reduxjs/redux-toolkit#3115- Allow TS isolatedModules flag to be set for safer transpilation by
@matmannion
in reduxjs/redux-toolkit#2911Full Changelog: https://github.com/reduxjs/redux-toolkit/compare/v1.9.1...v1.9.2
Commits
-
034b086
Release 1.9.2 -
a72bee9
Merge pull request #2911 from matmannion/isolated-modules -
67a69e8
Merge pull request #3115 from GeorchW/serializable-state-invariant-middleware... -
bcd0615
Simplify test -
f9049cc
Add caching to serializableStateInvariantMiddleware -
f5f8bc2
Merge pull request #2761 from huyenltnguyen/docs/codegen -
0678c2e
Merge pull request #2992 from thorn0/lint1 -
d9374c7
Merge pull request #3021 from reduxjs/pr/fix-signal-race-memleak -
59899f4
Merge pull request #3123 from megagon/type-error-anyoff-with-map -
f5d7d15
make isAnyOf friendly for mapped matchers, but making argument optional - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot rebase
will rebase this MR -
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts