RedHatInsights / ocp-advisor-frontend

Insights for OpenShift: OCP Advisor frontend component
https://console.redhat.com/openshift/insights/advisor
Apache License 2.0
3 stars 23 forks source link

[Snyk] Upgrade @reduxjs/toolkit from 2.2.0 to 2.2.7 #800

Closed jiridostal closed 1 month ago

jiridostal commented 1 month ago

snyk-top-banner

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.


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:

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

Additional details and impacted files ```diff @@ 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](https://app.codecov.io/gh/RedHatInsights/ocp-advisor-frontend/pull/800/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatInsights) | Coverage Δ | | |---|---|---| | [](https://app.codecov.io/gh/RedHatInsights/ocp-advisor-frontend/pull/800/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatInsights) | `8.27% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatInsights#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Fewwy commented 1 month ago

/retest

gkarat commented 1 month ago

:tada: This PR is included in version 1.45.6 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: