You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bugfix release makes an additional update to the package config to fix a regression that happened with Jest and jest-environment-jsdom.
Changes
More Package Updates
After releasing v2.8.0, we got reports that Jest tests were breaking. After investigation we concluded that jest-environment-jsdom was looking at the new browser package exports condition we'd added to better support JSPM, finding an ESM file containing the export keyword, and erroring because it doesn't support ES modules correctly.
This feature release improves React Native compatibility by updating our package exports definitions, and adds queryArg as an additional parameter to infinite query page param functions.
Changelog
Package Exports and React Native Compatibility
Expo and the Metro bundler have been adding improved support for the exports field in package.json files, but those changes started printing warnings due to how some of our package definitions were configured.
We've reworked the package definitions (again!), and this should be resolved now.
update
This release ended up causing breakage in Jest due to jest-environment-jsdom trying to read the browser package exports condition ( see https://github.com/reduxjs/redux-toolkit/issues/4971 for details). We've published v2.8.1 with an updated config that should resolve that.
Infinite Query Page Params
The signature for the getNext/PreviousPageParam functions has been:
This came directly from React Query's API and implementation.
We've had some requests to make the endpoint's queryArg available in page param functions. For React Query, that isn't necessary because the callbacks are defined inline when you call the useInfiniteQuery hook, so you've already got the query arg available in scope and can use it. Since RTK Query defines these callbacks as part of the endpoint definition, the query arg isn't in scope.
We've added queryArg as an additional 5th parameter to these functions in case it's needed.
Other Changes
We've made a few assorted docs updates, including replacing the search implementation to now use a local index generated on build (which should be more reliable and also has a nicer results list uI), and fixing some long-standing minor docs issues.
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
renovateBot
changed the title
chore(deps): update dependency @reduxjs/toolkit to v2.8.0
chore(deps): update dependency @reduxjs/toolkit to v2.8.1
May 8, 2025
renovateBot
changed the title
chore(deps): update dependency @reduxjs/toolkit to v2.8.1
chore(deps): update dependency @reduxjs/toolkit to v2.8.2
May 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.7.0->2.8.2Release Notes
reduxjs/redux-toolkit (@reduxjs/toolkit)
v2.8.2Compare Source
v2.8.1Compare Source
This bugfix release makes an additional update to the package config to fix a regression that happened with Jest and
jest-environment-jsdom.Changes
More Package Updates
After releasing v2.8.0, we got reports that Jest tests were breaking. After investigation we concluded that
jest-environment-jsdomwas looking at the newbrowserpackage exports condition we'd added to better support JSPM, finding an ESM file containing theexportkeyword, and erroring because it doesn't support ES modules correctly.https://github.com/reduxjs/redux-toolkit/issues/4971#issuecomment-2859506562 listed several viable workarounds, but this is enough of an issue we wanted to fix it directly. We've tweaked the package exports setup again, and it appears to resolve the issue with Jest.
What's Changed
browserexportscondition by @aryaemami59 in https://github.com/reduxjs/redux-toolkit/pull/4973Full Changelog: reduxjs/redux-toolkit@v2.8.0...v2.8.1
v2.8.0Compare Source
This feature release improves React Native compatibility by updating our package exports definitions, and adds
queryArgas an additional parameter to infinite query page param functions.Changelog
Package Exports and React Native Compatibility
Expo and the Metro bundler have been adding improved support for the
exportsfield inpackage.jsonfiles, but those changes started printing warnings due to how some of our package definitions were configured.We've reworked the package definitions (again!), and this should be resolved now.
update
This release ended up causing breakage in Jest due to
jest-environment-jsdomtrying to read thebrowserpackage exports condition ( see https://github.com/reduxjs/redux-toolkit/issues/4971 for details). We've published v2.8.1 with an updated config that should resolve that.Infinite Query Page Params
The signature for the
getNext/PreviousPageParamfunctions has been:This came directly from React Query's API and implementation.
We've had some requests to make the endpoint's
queryArgavailable in page param functions. For React Query, that isn't necessary because the callbacks are defined inline when you call theuseInfiniteQueryhook, so you've already got the query arg available in scope and can use it. Since RTK Query defines these callbacks as part of the endpoint definition, the query arg isn't in scope.We've added
queryArgas an additional 5th parameter to these functions in case it's needed.Other Changes
We've made a few assorted docs updates, including replacing the search implementation to now use a local index generated on build (which should be more reliable and also has a nicer results list uI), and fixing some long-standing minor docs issues.
What's Changed
Full Changelog: reduxjs/redux-toolkit@v2.7.0...v2.8.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.