Bump @reduxjs/toolkit from 2.2.6 to 2.2.7
Bumps @reduxjs/toolkit from 2.2.6 to 2.2.7.
Release notes
Sourced from @reduxjs/toolkit
's releases.
v2.2.6
This bugfix release fixes issues with "TS type portability" errors, improves build artifact tree shaking behavior, and exports some additional TS types.
Changelog
TS Type Portability
We've had a slew of issues reported around "TS type portability" errors, such as:
The error messages are typically along the lines of:
Type error: The inferred type of
'configureStore'
cannot be named without a reference to'@reduxjs/toolkit/node_modules/redux'
. This is likely not portable. A type annotation is necessary.
@aryaemami59
did some deep investigation and concluded these were due to a mixture of usinginterface
instead oftype
in most places, not pre-bundling our TS typedefs, and not exporting some of the unique symbols we use internally.Arya put together a highly detailed writeup and set of fixes in [ #4467: Fix: TypeScript Type Portability Issues](#4467), and that appears to resolve all of those issues we've seen. Thank you!
Other Changes
Arya also did significant work to improve RTK's treeshaking, tweaking internal definitions to let bundlers better separate out unused code.
We've exported additional types like
UpdateDefinitions
andRetryOptions
, per request.
listenerMiddleware.withTypes()
methods now allow passing in anExtraArgument
generic.What's Changed
- Fix: TypeScript Type Portability Issues by
@aryaemami59
in reduxjs/redux-toolkit#4467- Export UpdateDefinitions from toolkit/query by
@joekrill
in reduxjs/redux-toolkit#4519- feat: Adds ExtraArgument to withTypes for listenerMiddleware. by
@antondalgren
in reduxjs/redux-toolkit#4517- Improve treeshakeability of build artifacts by
@aryaemami59
in reduxjs/redux-toolkit#4435- Export RetryOptions by
@markerikson
in reduxjs/redux-toolkit#4529Full Changelog: https://github.com/reduxjs/redux-toolkit/compare/v2.2.6...v2.2.7
Commits
-
75b4f69
Release 2.2.7 -
dd3ef70
Merge pull request #4529 from reduxjs/feature/2.3.0-types-exports -
70f627d
Export RetryOptions -
6a3de08
Merge pull request #4435 from aryaemami59/improve-treeshakeability -
8be6e5f
Merge branch 'master' of https://github.com/reduxjs/redux-toolkit into improv... -
9e7e6f6
Merge branch 'master' of https://github.com/reduxjs/redux-toolkit into improv... -
ee51d76
Bumptsup
to version 8.2.3 -
ff6db42
Bumptsup
to version 8.2.2 -
20f579b
Bumptsup
to version 8.2.0 -
a1b4e80
Bumptsup
andesbuild
- Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts