Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade @reduxjs/toolkit from 2.2.4 to 2.2.5 #840

Closed

Conversation

kabir0x23
Copy link
Member

This PR was automatically created by Snyk using the credentials of a real user.


![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)

Snyk has created this PR to upgrade @reduxjs/toolkit from 2.2.4 to 2.2.5.

ℹ️ 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 1 version ahead of your current version.

  • The recommended version was released on 22 days ago.

Release notes
Package name: @reduxjs/toolkit
  • 2.2.5 - 2024-05-16

    This bugfix release fixes an issue in the recent createEntityAdapter sorting perf improvements that could (in specific cases) cause Immer to throw an error when trying to read a plain JS value instead of a proxy-wrapped value.

    What's Changed

    • Fix missed spot where use of current may fail if the value is not a draft by @ markerikson in #4412

    Full Changelog: v2.2.4...v2.2.5

  • 2.2.4 - 2024-05-09

    This bugfix release improves sorting performance in createEntityAdapter, shrinks the code size in matcher utilities, fixes assorted issues with query hooks, and makes several TS tweaks.

    Changelog

    Entity Adapter Sorting Performance

    Users reported in #4252 that the sorting performance of createEntityAdapter seemed abnormally bad - the provided comparison functions were being called far more times than expected.

    Upon investigation, we had a couple of problems. We were always starting from an array that was in insertion order, not the existing sorted order, and that would always require significant effort to re-sort even if there weren't any actual changes to the sorted results. Also, the sorting checks required frequent access to Immer's Proxy-wrapped values, even in cases where all we needed was the plain state values for comparison purposes.

    We've reworked the internal sorting logic to always start from the existing sorted array, do reads against a plain value to avoid the Proxy getter overhead where possible, and optimized inserts into existing sorted arrays. This should significantly speed up sorted entity adapter behavior.

    Matcher Code Size Optimization

    We've reworked the internals of the thunk-related matchers to deduplicate some of the logic, shaving a few bytes off the final bundle size.

    RTK Query Hook Updates

    defaultSerializeQueryArgs can now handle BigInt values safely.

    The isLoading flag logic was improved to handle errors when a query hook tries to subscribe.

    TS Updates

    create.asyncThunk's types were improved to avoid cases where it might infer any.

    We've made several internal types changes to work correctly with React 19's upcoming types.

    The retryCondition method now receives unknown as an argument, instead of always assuming the user is using fetchBaseQuery.

    Other Changes

    The Reselect dep has been bumped to 5.1.0 to match the expected internal usage of createSelector.withTypes().

    What's Changed

    Full Changelog: v2.2.3...v2.2.4

from @reduxjs/toolkit GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

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:

Snyk has created this PR to upgrade @reduxjs/toolkit from 2.2.4 to 2.2.5.

See this package in npm:
@reduxjs/toolkit

See this project in Snyk:
https://app.snyk.io/org/kabir0x23/project/56a100f1-3b8e-4637-93f9-fe3df450cb41?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

render bot commented Jun 6, 2024

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's great having you contribute to this project

🌟 Welcome to the community 🌟

  • If you would like to continue contributing to open source and would like to do it with an awesome inclusive community.
  • You should join our Discord chat and our GitHub Organisation.
  • We help and encourage each other to contribute to open source little and often 😄.
  • Any questions let us know.

@ArkadiK94
Copy link
Contributor

new pr related to this one #856

@ArkadiK94 ArkadiK94 closed this Jun 11, 2024
@kabir0x23 kabir0x23 deleted the snyk-upgrade-e0d1215a961db66a607c804c2933985c branch September 5, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrading from version 2.0.1 to 2.1.0 or 2.2.0 breaks vite build with TS (TS7006) errors
3 participants