Closed jiridostal closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 8.27%. Comparing base (
ed4b158
) to head (e17111b
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
/retest
:tada: This PR is included in version 1.45.6 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Snyk has created this PR to upgrade @reduxjs/toolkit from 2.2.0 to 2.2.7.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 7 versions ahead of your current version.
The recommended version was released on 2 months ago.
Release notes
Package name: @reduxjs/toolkit
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:
@ aryaemami59 did some deep investigation and concluded these were due to a mixture of using
interface
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, 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
Full Changelog: v2.2.6...v2.2.7
This bugfix release:
useIsomorphicLayoutEffect
usage in line with React Redux in React Native environmentsFetchBaseQueryArgs
typecreateEntityAdapter
sorting perf improvements that could (in specific cases) cause Immer to throw an errorWhat's Changed
useIsomorphicLayoutEffect
usage in React Native environments by @ aryaemami59 in #4436Full Changelog: v2.2.5...v2.2.6
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: