Skip to content

chore(deps): update dependency @reduxjs/toolkit to v2.8.2#273

Merged
ryanbas21 merged 1 commit into
mainfrom
renovate/reduxjs-toolkit-2.x-lockfile
May 16, 2025
Merged

chore(deps): update dependency @reduxjs/toolkit to v2.8.2#273
ryanbas21 merged 1 commit into
mainfrom
renovate/reduxjs-toolkit-2.x-lockfile

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented May 7, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@reduxjs/toolkit (source) 2.7.0 -> 2.8.2 age adoption passing confidence

Release Notes

reduxjs/redux-toolkit (@​reduxjs/toolkit)

v2.8.2

Compare Source

v2.8.1

Compare 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-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.

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

Full Changelog: reduxjs/redux-toolkit@v2.8.0...v2.8.1

v2.8.0

Compare Source

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:

(
    lastPage: DataType,
    allPages: Array<DataType>,
    lastPageParam: PageParam,
    allPageParams: Array<PageParam>,
  ) => PageParam | undefined | null

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.

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies label May 7, 2025
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 7, 2025

⚠️ No Changeset found

Latest commit: 2fd89cf

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

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented May 7, 2025

View your CI Pipeline Execution ↗ for commit 2fd89cf.

Command Status Duration Result
nx affected -t build typecheck lint test e2e-ci ✅ Succeeded 1m 24s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗

☁️ Nx Cloud last updated this comment at 2025-05-16 14:48:51 UTC

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2025

Deployed ca7aed2 to https://ForgeRock.github.io/ping-javascript-sdk/pr-273/ca7aed23e936e8608728e39eb7dfc459f90b9b88 branch gh-pages in ForgeRock/ping-javascript-sdk

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.33%. Comparing base (dd5af9a) to head (2fd89cf).
Report is 11 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #273   +/-   ##
=======================================
  Coverage   49.33%   49.33%           
=======================================
  Files          29       29           
  Lines        1571     1571           
  Branches      173      173           
=======================================
  Hits          775      775           
  Misses        796      796           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@renovate renovate Bot 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
@renovate renovate Bot force-pushed the renovate/reduxjs-toolkit-2.x-lockfile branch from 0d1ba6c to 7bf826b Compare May 14, 2025 20:44
@renovate renovate Bot 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
@ryanbas21 ryanbas21 force-pushed the renovate/reduxjs-toolkit-2.x-lockfile branch 2 times, most recently from e91b1b3 to b377651 Compare May 16, 2025 14:30
@renovate renovate Bot force-pushed the renovate/reduxjs-toolkit-2.x-lockfile branch from b377651 to 8982805 Compare May 16, 2025 14:31
@ryanbas21 ryanbas21 force-pushed the renovate/reduxjs-toolkit-2.x-lockfile branch from 8982805 to c316a67 Compare May 16, 2025 14:44
@ryanbas21 ryanbas21 force-pushed the renovate/reduxjs-toolkit-2.x-lockfile branch from c316a67 to 2fd89cf Compare May 16, 2025 14:46
@ryanbas21 ryanbas21 merged commit 8cff16c into main May 16, 2025
4 checks passed
@renovate renovate Bot deleted the renovate/reduxjs-toolkit-2.x-lockfile branch May 16, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants