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.0 to 2.2.7 #800

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

jiridostal
Copy link
Contributor

snyk-top-banner

Snyk has created this PR to upgrade @reduxjs/toolkit from 2.2.0 to 2.2.7.

ℹ️ 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
  • 2.2.7 - 2024-07-27

    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 using interface instead of type 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 and RetryOptions, per request.

    listenerMiddleware.withTypes() methods now allow passing in an ExtraArgument generic.

    What's Changed

    Full Changelog: v2.2.6...v2.2.7

  • 2.2.6 - 2024-06-29

    This bugfix release:

    • Brings internal useIsomorphicLayoutEffect usage in line with React Redux in React Native environments
    • Exports FetchBaseQueryArgs type
    • Fixes an issue in recent createEntityAdapter sorting perf improvements that could (in specific cases) cause Immer to throw an error

    What's Changed

    Full Changelog: v2.2.5...v2.2.6

  • 2.2.5 - 2024-05-16
  • 2.2.4 - 2024-05-09
  • 2.2.3 - 2024-03-31
  • 2.2.2 - 2024-03-21
  • 2.2.1 - 2024-02-14
  • 2.2.0 - 2024-02-12
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.0 to 2.2.7.

See this package in npm:
@reduxjs/toolkit

See this project in Snyk:
https://app.snyk.io/org/hybrid-cloud-experience-red-hat-insights/project/90a167a6-51ac-48bc-a9a8-731ab83f03f5?utm_source=github&utm_medium=referral&page=upgrade-pr
@jiridostal jiridostal requested a review from a team as a code owner September 28, 2024 06:44
@codecov-commenter
Copy link

codecov-commenter commented Sep 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 8.27%. Comparing base (ed4b158) to head (e17111b).

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #800   +/-   ##
======================================
  Coverage    8.27%   8.27%           
======================================
  Files          68      68           
  Lines        3952    3952           
  Branches      864     864           
======================================
  Hits          327     327           
  Misses       3625    3625           
Flag Coverage Δ
8.27% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Fewwy
Copy link
Collaborator

Fewwy commented Sep 30, 2024

/retest

@Fewwy Fewwy merged commit 7a0a36f into master Oct 1, 2024
5 checks passed
@Fewwy Fewwy deleted the snyk-upgrade-7906fa62371e1ab76e3077fc5f9f7ba4 branch October 1, 2024 08:56
@gkarat
Copy link
Collaborator

gkarat commented Oct 1, 2024

🎉 This PR is included in version 1.45.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@gkarat gkarat added the released label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants