Skip to content

Conversation

@snyk-bot
Copy link
Contributor

Snyk has created this PR to upgrade react-redux from 8.0.2 to 8.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 21 days ago, on 2022-09-23.
Release notes
Package name: react-redux
  • 8.0.4 - 2022-09-23

    This patch release fixes some minor TS types issues, and updates the rarely-used areStatesEqual option for connect to now pass through ownProps for additional use in determining which pieces of state to compare if desired.

    Note: 8.0.3 was accidentally published without one of these fixes. Use 8.0.4 instead.

    Changelog

    TS Fixes

    We've fixed an import of React that caused issues with the allowSyntheticDefaultImports TS compiler flag in user projects.

    connect already accepted a custom context instance as props.context, and had runtime checks in case users were passing through a real value with app data as props.context instead. However, the TS types did not handle that case, and this would fail to compile. If your own component expects props.context with actual data, connect's types now use that type instead.

    The ConnectedProps<T> type had a mismatch with React's built-in React.ComponentProps<Component> type, and that should now work correctly.

    Other Changes

    The areStatesEqual option to connect now receives ownProps as well, in case you need to make a more specific comparison with certain sections of state.

    The new signature is:

    {
      areStatesEqual?: (
        nextState: State,
        prevState: State,
        nextOwnProps: TOwnProps,
        prevOwnProps: TOwnProps
      ) => boolean
    }

    What's Changed

    • Don't require allowSyntheticDefaultImports: true by @ apepper in #1924
    • Fixed type issue with ComponentProps from older @ types/react by @ Andarist in #1956
    • connect: pass ownProps to areStatesEqual by @ jspurlin in #1951
    • Omit built-in context prop if user component props include context by @ markerikson in #1958

    Full Changelog: v8.0.2...v8.0.4

  • 8.0.3 - 2022-09-23

    This release was accidentally published without an intended fix - please use v8.0.4 instead

  • 8.0.2 - 2022-05-22

    This patch release tweaks the behavior of connect to print a one-time warning when the obsolete pure option is passed in, rather than throwing an error. This fixes crashes caused by libraries such as react-beautiful-dnd continuing to pass in that option (unnecessarily) to React-Redux v8.

    What's Changed

    • Show warning instead of throwing error that pure option has been removed by @ ApacheEx in #1922

    Full Changelog: v8.0.1...v8.0.2

from react-redux GitHub release notes
Commit messages
Package name: react-redux
  • 3c9766e Merge pull request #1958 from reduxjs/bugfix/connect-context-prop
  • 4fcd42c Release 8.0.3
  • 69413ff Merge pull request #1951 from jspurlin/jspurlin/passOwnPropsToASE
  • 1236861 Use a `Mapped` type to simplify the final displayed types for components
  • f40d82d Omit built-in `context` prop if user component props include `context`
  • bbc546e Fixed type issue with `ComponentProps` from older `@ types/react` (#1956)
  • 527eb36 update type of actualChildProps to be more accurate
  • 4122b1c Merge branch 'jspurlin/passOwnPropsToASE' of https://github.com/jspurlin/react-redux into jspurlin/passOwnPropsToASE
  • 405d39b Update connect.md
  • 0846e26 update connect docs
  • a397801 Connect: pass ownProps to areStatesEqual
  • fb8cfc0 This is now known as the uSES type
  • 034e077 Update connect.md
  • 31f8b92 minor typo (#1950)
  • fa597b5 update connect docs
  • 458415b Connect: pass ownProps to areStatesEqual
  • 720f0ba add @ phryneas to FUNDING.yml
  • 2dc6c4e Merge pull request #1926 from patel-himanshu/docs/simplify-useappdispatch
  • f0a2977 Simplify the useAppDispatch definition
  • 7882dfc Don't require allowSyntheticDefaultImports: true (#1924)
  • d0311c1 Release 8.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

@vercel
Copy link

vercel bot commented Oct 14, 2022

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

Name Status Preview Updated
spotify2-0 ✅ Ready (Inspect) Visit Preview Oct 14, 2022 at 1:17PM (UTC)

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