Skip to content

[Snyk] Upgrade react-redux from 6.0.0 to 6.0.1#2

Open
snyk-bot wants to merge 1 commit intomasterfrom
snyk-upgrade-d7f55f16460f8cbbba6784b73694d063
Open

[Snyk] Upgrade react-redux from 6.0.0 to 6.0.1#2
snyk-bot wants to merge 1 commit intomasterfrom
snyk-upgrade-d7f55f16460f8cbbba6784b73694d063

Conversation

@snyk-bot
Copy link
Copy Markdown

@snyk-bot snyk-bot commented Oct 6, 2021

Snyk has created this PR to upgrade react-redux from 6.0.0 to 6.0.1.

merge advice
ℹ️ 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 3 years ago, on 2019-02-20.
Release notes
Package name: react-redux
  • 6.0.1 - 2019-02-20

    This is a minor release with support for react-hot-loader and a few small bug fixes for edge cases.

    While you're here, please stop by #1177 to see our roadmap for the next versions of React Redux. We are aware that performance is not so hot in 6.0. Short version: We put too much traffic on React's context API, which isn't really designed for high levels of reads and writes. We're looking to reduce that load and get performance back on track in a minor release, so there won't be backwards compatibility concerns. We have a new extensive benchmark suite to keep us on track and ensure we're not regressing on speed in the future.

    And yes, we know about Hooks. Check out #1179.

    Changes

  • 6.0.0 - 2018-12-05

    🎉 This is our first big release supporting the new Context API added in React 16.4!

    As such, we now require React 16.4 or higher. Make sure to update your version when updating to this release.

    This work has been mostly lead by @ cellog and @ markerikson, with special guest appearances by yours truly and a whole cast of helpful reviewers.

    Note: If you'd like to know more about the changes in v6, and how the implementation has changed over time, see Mark's post Idiomatic Redux: The History and Implementation of React-Redux.

    Breaking Changes

    • The withRef option to connect has been replaced with forwardRef. If {forwardRef : true} has been passed to connect, adding a ref to the connected wrapper component will actually return the instance of the wrapped component.

    • Passing store as a prop to a connected component is no longer supported. Instead, you may pass a custom context={MyContext} prop to both <Provider> and <ConnectedComponent>. You may also pass {context : MyContext} as an option to connect.

    Behavior Changes

    Any library that attempts to access the store instance out of legacy context will break, because we now put the store state into a <Context.Provider> instead. Examples of this include connected-react-router and react-redux-subspace. (The current implementation does also put the store itself into that same context. While accessing the store in context is not part of our public API, we will still try to make it possible for other libraries to access it, with the understanding that this could break at any time.)

    Also, there is a behavior change around dispatching actions in constructors / componentWillMount. Previously, dispatching in a parent component's constructor would cause its children to immediately use the updated state as they mounted, because each component read from the store individually. In version 6, all components read the same current store state value from context, which means the tree will be consistent and not have "tearing". This is an improvement overall, but there may be applications that relied on the existing behavior.

    Changes

from react-redux GitHub release notes
Commit messages
Package name: react-redux
  • 162b81a 6.0.1
  • d8a7ab5 Update build deps. Add React 16.8 tests.
  • 6ad2b55 Remove --save option as it isn't required anymore (#1193)
  • fac9ad1 Update Provider.md and quick-start.md (#1182)
  • 9bf2375 Update Provider.md
  • fcd5ed8 Update Provider.md
  • c198249 Update react-router usage example (#1180)
  • ab77450 Upgrade to react-is v16.7.0 (#1174)
  • 0bf4e1f Remove duplicate line in connect api documents (#1173)
  • 6e0a106 Updated: Support React-Hot-Loader compatibility (#1168)
  • 63af52f Update accessing-store.md (#1163)
  • 5199d9d Ensure that component prop 'context' really contains a React context … (#1134)
  • e7661b3 Fix spacing issues (#1153)
  • 75b90f9 Add / change docs about v6 (#1148)
  • 5088345 Add `connect()` API doc (#1140)
  • 4b03b70 add more "air" for featureBlock (#1144)
  • 630e1be There is no dash in the React Redux name. (#1141)
  • 94799ef docs/using-react-redux: Fixes substition of `mapDispatchToProps` with `mapStateToProps` (#1135)
  • 3210a1f Update ---bug-report.md
  • 849ce41 Minor optimization: remove conditional (#1131)
  • f2ac4cc increased search input spacing on mobile and desktop (#1129)
  • 595ae8f Fix issue with isValidElementType invariant check crashing on valid type with circular structure (#1122)
  • 638ac5e Fix mapState footer link
  • 775f1ac Left-align feature text

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

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.

1 participant