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 react-redux from 9.0.2 to 9.0.4 #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Soumya-0x000
Copy link
Owner

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


Snyk has created this PR to upgrade react-redux from 9.0.2 to 9.0.4.

ℹ️ 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 2 versions ahead of your current version.
  • The recommended version was released a month ago, on 2023-12-11.
Release notes
Package name: react-redux
  • 9.0.4 - 2023-12-11

    This bugfix release updates the React Native peer dependency to be >= 0.69, to better reflect the need for React 18 compat and (hopefully) resolve issues with the npm package manager throwing peer dep errors on install.

    What's Changed

    • Allow react-native newer than 0.69 as peer dependency by @ R3DST0RM in #2107

    Full Changelog: v9.0.3...v9.0.4

  • 9.0.3 - 2023-12-10

    This bugfix release drops the ReactDOM / React Native specific use of render batching, as React 18 now automatically batches, and updates the React types dependencies

    Changelog

    Batching Dependency Updates

    React-Redux has long depended on React's unstable_batchedUpdates API to help batch renders queued by Redux updates. It also re-exported that method as a util named batch.

    However, React 18 now auto-batches all queued renders in the same event loop tick, so unstable_batchedUpdates is effectively a no-op.

    Using unstable_batchedUpdates has always been a pain point, because it's exported by the renderer package (ReactDOM or React Native), rather than the core react package. Our prior implementation relied on having separate batch.ts and batch.native.ts files in the codebase, and expecting React Native's bundler to find the right transpiled file at app build time. Now that we're pre-bundling artifacts in React-Redux v9, that approach has become a problem.

    Given that React 18 already batches by default, there's no further need to continue using unstable_batchedUpdates internally, so we've removed our use of that and simplified the internals.

    We still export a batch method, but it's effectively a no-op that just immediately runs the given callback, and we've marked it as @ deprecated.

    We've also updated the build artifacts and packaging, as there's no longer a need for an alternate-renderers entry point that omits batching, or a separate artifact that imports from "react-native".

    What's Changed

    Full Changelog: v9.0.2...v9.0.3

  • 9.0.2 - 2023-12-05

    This bugfix release makes additional tweaks to the React Native artifact filename to help resolve import and bundling issues with RN projects.

    What's Changed

    Full Changelog: v9.0.1...v9.0.2

from react-redux GitHub release notes
Commit messages
Package name: react-redux
  • 4c7fbd9 Merge pull request #2107 from R3DST0RM/react-native-peer-dependency-fix
  • ce76bf0 Build module with updated peerDependency
  • 1affb37 Allow react-native newer than 0.69 as peer dependency
  • 27d4f3f Release 9.0.3
  • 0c31f2d Restore `react-native` peer dep
  • 3da2266 Merge pull request #2105 from reduxjs/feature/9.0-lower-react-types
  • c550327 Drop `@ types/react-dom` and lower `@ types/react` to min needed
  • 5bb3c4f Merge pull request #2104 from reduxjs/feature/9.0-remove-batching
  • 6302797 Drop renderer-specific batching behavior and deprecate `batch`
  • dbdac99 Release 9.0.2

Compare


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:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Copy link

vercel bot commented Jan 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
movix ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2024 5:10pm

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.

2 participants