Bump @reduxjs/toolkit from 1.9.0 to 1.9.1
Bumps @reduxjs/toolkit from 1.9.0 to 1.9.1.
Release notes
Sourced from @reduxjs/toolkit
's releases.
v1.9.1
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
- fix createAsyncThunk.withTypes by
@phryneas
in reduxjs/redux-toolkit#2885- Update timer polyfills to work in more environments by
@markerikson
in reduxjs/redux-toolkit#2887- Retry now checks whether potential retry counts are undefined, rather than boolean, in order to avoid filtering out 0's by
@OliverRadini
in reduxjs/redux-toolkit#2958- Fix multiple small issues with 1.9 by
@markerikson
in reduxjs/redux-toolkit#2964- fulfillWithValue should infer return value by
@phryneas
in reduxjs/redux-toolkit#2888- Fix Identifier/MemberExpression values in createSliceBuilder codemod by
@kyletsang
in reduxjs/redux-toolkit#2881- Additional 1.9.1 fixes by
@markerikson
in reduxjs/redux-toolkit#2965Full Changelog: https://github.com/reduxjs/redux-toolkit/compare/v1.9.0...v1.9.1
Commits
-
a87a1ba
Release 1.9.1 -
a7ceaa2
Merge pull request #2965 from reduxjs/feature/1.9.1-more-fixes -
eaf7d5e
Pass additional metadata tomerge
-
90ff485
Treat thunk abort signal the same as a false condition result -
87bebec
Merge pull request #2881 from kyletsang/fix-createslicebuilder-codemod -
b319c41
Merge pull request #2888 from reduxjs/issues/2886 -
a56a194
Merge pull request #2964 from reduxjs/feature/1.9.1-ts-fixes -
ce9e05d
Exposeendpoints.someEndpoint.name
field -
90283e9
Ensure void action creators can't be passed as event handlers -
56ed8a4
Export TagDescription type - 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