Skip to content
This repository was archived by the owner on Feb 26, 2020. It is now read-only.

Conversation

@dependabot-preview
Copy link
Contributor

@dependabot-preview dependabot-preview bot commented Jun 11, 2019

Bumps react-redux from 5.0.6 to 7.1.0.

Release notes

Sourced from react-redux's releases.

v7.1.0

Hooks!

After much discussion, we've decided these Hook things are probably going to stick around, so we might as well add some. Many thanks to @​MrWolfZ, @​josepot, @​perrin4869, and @​mpeyper for their contributions and to everyone else that offered feedback, ideas, and critiques as we built them out. Go open source!

Changes

v7.1.0-rc.1

⚠️We've got RC sign! ⚠️

This version is essentially the same as the previous 7.1.0-alpha.5 release. But it has an rc tag on it, so you can more easily justify the upgrade to your manager.

Get to it!

npm install react-redux@next

v7.1.0-alpha.5

We're still making changes to our hooks APIs, but I'm hopeful that we're getting close to having the behavior nailed down.

This release makes three specific changes to useSelector:

  • The deps array has been removed. If you want to ensure the same selector function reference is used, you should memoize it yourself.
  • The default equality check used to determine if a re-render is needed is now a strict === check, instead of a shallow equality check.
  • useSelector now accepts a comparison function as an optional second argument, similar to how React.memo() works conceptually. You may pass your own comparison function to customize how useSelector determines if a re-render is necessary.

In addition, we now export our internal shallowEqual utility function. If you want to return to the prior equality behavior, you may pass that as the equality comparison function:

import { shallowEqual, useSelector } from "react-redux"

// later
const selectedData = useSelector(mySelector, shallowEqual)

The optional comparison function also enables using something like Lodash's _.isEqual() or Immutable.js's comparison capabilities.

Changes

... (truncated)
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

If all status checks pass Dependabot will automatically merge this pull request.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Jun 11, 2019
@dependabot-preview dependabot-preview bot requested a review from tomusdrw June 11, 2019 11:51
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/react-redux-7.1.0 branch 6 times, most recently from 2b27494 to f740763 Compare June 18, 2019 11:17
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/react-redux-7.1.0 branch 13 times, most recently from 1de725f to a151118 Compare June 25, 2019 14:12
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/react-redux-7.1.0 branch 8 times, most recently from 198a45d to 3003df3 Compare July 2, 2019 13:16
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/react-redux-7.1.0 branch 11 times, most recently from 2bb9c7d to 2116400 Compare July 30, 2019 16:29
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/react-redux-7.1.0 branch 5 times, most recently from c4a9865 to fcab62c Compare August 6, 2019 11:37
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/react-redux-7.1.0 branch 8 times, most recently from db5c106 to 10827b7 Compare August 14, 2019 12:04
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/react-redux-7.1.0 branch from 10827b7 to 89d5d3a Compare August 20, 2019 09:10
Bumps [react-redux](https://github.com/reduxjs/react-redux) from 5.0.6 to 7.1.0.
- [Release notes](https://github.com/reduxjs/react-redux/releases)
- [Changelog](https://github.com/reduxjs/react-redux/blob/master/CHANGELOG.md)
- [Commits](reduxjs/react-redux@v5.0.6...v7.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/react-redux-7.1.0 branch from 89d5d3a to 726a41c Compare August 20, 2019 10:16
@dependabot-preview
Copy link
Contributor Author

Superseded by #496.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/react-redux-7.1.0 branch August 26, 2019 20:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant