Release notes
*Sourced from [react-redux's releases](https://github.com/reduxjs/react-redux/releases).*
> ## v7.1.0
> ### [Hooks!](https://react-redux.js.org/api/hooks)
>
> [After much discussion](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1252), we've decided these Hook things are probably going to stick around, so we might as well add some. Many thanks to [@MrWolfZ](https://github.com/MrWolfZ), [@josepot](https://github.com/josepot), [@perrin4869](https://github.com/perrin4869), and [@mpeyper](https://github.com/mpeyper) for their contributions and to everyone else that offered feedback, ideas, and critiques as we built them out. Go open source!
>
> ## [Changes](https://github.com/reduxjs/react-redux/compare/v7.0.3...v7.1.0)
>
> - Add React Hooks ([#1248](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1248) by [@MrWolfZ](https://github.com/MrWolfZ))
> - Add `deps` argument to `useSelector` ([#1251](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1251) by [@MrWolfZ](https://github.com/MrWolfZ))
> - Use react-hooks-testing-library to test hooks ([#1259](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1259) by [@mpeyper](https://github.com/mpeyper))
> - Remove `useRedux` ([@markerikson](https://github.com/markerikson))
> - Remove `useActions` ([@markerikson](https://github.com/markerikson))
> - Remove `deps` argument ([#1272](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1272) by [@josepot](https://github.com/josepot))
> - Replace `shallowEqual` with reference equality in `useSelector` ([#1288](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1288) by [@perrin4869](https://github.com/perrin4869))
> - Avoid unnecessary selector evaluations ([#1273](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1273) by [@josepot](https://github.com/josepot))
> - Minor Hook testing improvements ([#1294](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1294) by [@MrWolfZ](https://github.com/MrWolfZ))
>
> ## v7.1.0-rc.1
> ⚠️[We've got RC sign!](https://i.imgur.com/zdeC5Pd.gif) ⚠️
>
> 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
> ```
>
> ![](https://media.giphy.com/media/ykzXbY24BFqY8/giphy.gif)
>
> ## 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:
>
> ```js
> 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](https://github.com/reduxjs/react-redux/compare/v7.1.0-alpha.4...v7.1.0-alpha.5)
> ... (truncated)
Commits
- [`01966db`](https://github.com/reduxjs/react-redux/commit/01966db91e33aca533bb62f9f7a69ccd16ba6282) 7.1.0
- [`3f0933c`](https://github.com/reduxjs/react-redux/commit/3f0933c35ce41d346265e8827546fa49d5c7571f) Update docs versioning for 7.1
- [`316467a`](https://github.com/reduxjs/react-redux/commit/316467a07e29911d82ba0342364a907e05d9066c) Update deps and switch rtl to tlr.
- [`93d731b`](https://github.com/reduxjs/react-redux/commit/93d731bc1c0c9a5cb9e2235cf0426055cffcb7f6) 7.1.0-rc.1
- [`f4938d6`](https://github.com/reduxjs/react-redux/commit/f4938d644ba6e0ba45cb8d3e62b0191e8080e088) Update deps. Handle RTL@7.
- [`4649f8b`](https://github.com/reduxjs/react-redux/commit/4649f8bcf8beee86d11c64bf4c02c21be8673dc9) Update jsdocs for hooks ([#1295](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1295))
- [`18bd1aa`](https://github.com/reduxjs/react-redux/commit/18bd1aa7c8f5c10f2c30378dbbcd29da2fe7bbdf) some minor hooks updates ([#1294](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1294))
- [`9183035`](https://github.com/reduxjs/react-redux/commit/91830354b14679c7e93b1ade9a4ffc2363eac96a) 7.1.0-alpha.5
- [`4d3a7e1`](https://github.com/reduxjs/react-redux/commit/4d3a7e194c09e77206c84aa407b3d9a1bb792326) Avoid unnecessary selector evaluations ([#1273](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1273))
- [`88964e5`](https://github.com/reduxjs/react-redux/commit/88964e50bd067eb6382dc7d579bf9f6a6bfc8670) Replace shallowEqual with reference equality in useSelector ([#1288](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1288))
- Additional commits viewable in [compare view](https://github.com/reduxjs/react-redux/compare/v6.0.1...v7.1.0)
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.
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](https://app.dependabot.com):
- 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.
Bumps react-redux from 6.0.1 to 7.1.0.
Release notes
*Sourced from [react-redux's releases](https://github.com/reduxjs/react-redux/releases).* > ## v7.1.0 > ### [Hooks!](https://react-redux.js.org/api/hooks) > > [After much discussion](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1252), we've decided these Hook things are probably going to stick around, so we might as well add some. Many thanks to [@MrWolfZ](https://github.com/MrWolfZ), [@josepot](https://github.com/josepot), [@perrin4869](https://github.com/perrin4869), and [@mpeyper](https://github.com/mpeyper) for their contributions and to everyone else that offered feedback, ideas, and critiques as we built them out. Go open source! > > ## [Changes](https://github.com/reduxjs/react-redux/compare/v7.0.3...v7.1.0) > > - Add React Hooks ([#1248](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1248) by [@MrWolfZ](https://github.com/MrWolfZ)) > - Add `deps` argument to `useSelector` ([#1251](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1251) by [@MrWolfZ](https://github.com/MrWolfZ)) > - Use react-hooks-testing-library to test hooks ([#1259](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1259) by [@mpeyper](https://github.com/mpeyper)) > - Remove `useRedux` ([@markerikson](https://github.com/markerikson)) > - Remove `useActions` ([@markerikson](https://github.com/markerikson)) > - Remove `deps` argument ([#1272](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1272) by [@josepot](https://github.com/josepot)) > - Replace `shallowEqual` with reference equality in `useSelector` ([#1288](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1288) by [@perrin4869](https://github.com/perrin4869)) > - Avoid unnecessary selector evaluations ([#1273](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1273) by [@josepot](https://github.com/josepot)) > - Minor Hook testing improvements ([#1294](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1294) by [@MrWolfZ](https://github.com/MrWolfZ)) > > ## v7.1.0-rc.1 > ⚠️[We've got RC sign!](https://i.imgur.com/zdeC5Pd.gif) ⚠️ > > 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 > ``` > > ![](https://media.giphy.com/media/ykzXbY24BFqY8/giphy.gif) > > ## 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: > > ```js > 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](https://github.com/reduxjs/react-redux/compare/v7.1.0-alpha.4...v7.1.0-alpha.5) > ... (truncated)Commits
- [`01966db`](https://github.com/reduxjs/react-redux/commit/01966db91e33aca533bb62f9f7a69ccd16ba6282) 7.1.0 - [`3f0933c`](https://github.com/reduxjs/react-redux/commit/3f0933c35ce41d346265e8827546fa49d5c7571f) Update docs versioning for 7.1 - [`316467a`](https://github.com/reduxjs/react-redux/commit/316467a07e29911d82ba0342364a907e05d9066c) Update deps and switch rtl to tlr. - [`93d731b`](https://github.com/reduxjs/react-redux/commit/93d731bc1c0c9a5cb9e2235cf0426055cffcb7f6) 7.1.0-rc.1 - [`f4938d6`](https://github.com/reduxjs/react-redux/commit/f4938d644ba6e0ba45cb8d3e62b0191e8080e088) Update deps. Handle RTL@7. - [`4649f8b`](https://github.com/reduxjs/react-redux/commit/4649f8bcf8beee86d11c64bf4c02c21be8673dc9) Update jsdocs for hooks ([#1295](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1295)) - [`18bd1aa`](https://github.com/reduxjs/react-redux/commit/18bd1aa7c8f5c10f2c30378dbbcd29da2fe7bbdf) some minor hooks updates ([#1294](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1294)) - [`9183035`](https://github.com/reduxjs/react-redux/commit/91830354b14679c7e93b1ade9a4ffc2363eac96a) 7.1.0-alpha.5 - [`4d3a7e1`](https://github.com/reduxjs/react-redux/commit/4d3a7e194c09e77206c84aa407b3d9a1bb792326) Avoid unnecessary selector evaluations ([#1273](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1273)) - [`88964e5`](https://github.com/reduxjs/react-redux/commit/88964e50bd067eb6382dc7d579bf9f6a6bfc8670) Replace shallowEqual with reference equality in useSelector ([#1288](https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1288)) - Additional commits viewable in [compare view](https://github.com/reduxjs/react-redux/compare/v6.0.1...v7.1.0)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
.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](https://app.dependabot.com): - 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.