Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Bump react-redux from 7.2.6 to 8.1.3 in /desktop #5186

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 2, 2023

Bumps react-redux from 7.2.6 to 8.1.3.

Release notes

Sourced from react-redux's releases.

v8.1.3

This bugfix release fixes an issue with subscriptions being lost when lazy-loaded components are used with React Suspense, and includes stack traces in useSelector usage warnings .

What's Changed

Full Changelog: reduxjs/react-redux@v8.1.2...v8.1.3

v8.1.2

This version changes imports from the React package to namespace imports so the package can safely be imported in React Server Components as long as you don't actually use it - this is for example important if you want to use the React-specifc createApi function from Redux Toolkit.

Some other changes:

  • The behaviour of the "React Context Singletons" from 8.1.1 has been adjusted to also work if you have multiple React instances of the same version (those will now be separated) and if you are in an environment without globalThis (in this case it will fall back to the previous behaviour).
  • We do no longer use Proxies, which should help with some very outdated consumers, e.g. smart TVs, that cannot even polyfill Proxies.

Full Changelog: reduxjs/react-redux@v8.1.1...v8.1.2

v8.1.1

This bugfix release tweaks the recent lazy context setup logic to ensure a single React context instance per React version, and removes the recently added RTK peerdep to fix an issue with Yarn workspaces.

Changelog

React Context Singletons

React Context has always relied on reference identity. If you have two different copies of React or a library in a page, that can cause multiple versions of a context instance to be created, leading to problems like the infamous "Could not find react-redux context" error.

In v8.1.0, we reworked the internals to lazily create our single ReactReduxContext instance to avoid issues in a React Server Components environment.

This release further tweaks that to stash a single context instance per React version found in the page, thus hopefully avoiding the "multiple copies of the same context" error in the future.

What's Changed

Full Changelog: reduxjs/react-redux@v8.1.0...v8.1.1

v8.1.0

This feature release adds new development-mode safety checks for common errors (like poorly-written selectors), adds a workaround to fix crash errors when React-Redux hooks are imported into React Server Component files, and updates our hooks API docs page with improved explanations and updated links.

Changelog

Development Mode Checks for useSelector

We've had a number of users tell us over time that it's common to accidentally write selectors that have bad behavior and cause performance issues. The most common causes of this are either selectors that unconditionally return a new reference (such as state => state.todos.map() without any memoization ), or selectors that actually return the entire root state ( state => state ).

... (truncated)

Commits
  • 854f3e1 Release 8.1.3
  • 2057c5e Merge pull request #2068 from jeroenpx/feature/useSelector-in-combination-wit...
  • 6ca0567 Merge pull request #2072 from reduxjs/feature/master-ci-checks
  • f0324a1 Copy CI setup for RTK examples
  • 6c0ad9e Fix useSelector() in combination with lazy loaded components breaks with reac...
  • a1a32d1 Merge pull request #2064 from reduxjs/warning-stack
  • bc328d9 Add stack to dev mode checks
  • 4a7e129 Release 8.1.2
  • 2ac527b RSC-specific workarounds (#2050)
  • a669a94 add "publish" workflow
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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 close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor 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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Oct 2, 2023
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Oct 2, 2023
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/desktop/react-redux-8.1.3 branch 8 times, most recently from 680449f to e87b1fb Compare October 10, 2023 10:44
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/desktop/react-redux-8.1.3 branch 2 times, most recently from 09c4ffd to 0dfc359 Compare October 11, 2023 11:31
@github-actions
Copy link
Contributor

Pull Request Test Coverage Report for Build 6481890082

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.007%) to 49.023%

Files with Coverage Reduction New Missed Lines %
desktop/flipper-ui-core/src/utils/pluginStats.tsx 1 55.0%
Totals Coverage Status
Change from base Build 6481842756: -0.007%
Covered Lines: 8490
Relevant Lines: 16016

💛 - Coveralls

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/desktop/react-redux-8.1.3 branch 5 times, most recently from 931775f to 6fce70a Compare October 18, 2023 17:03
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/desktop/react-redux-8.1.3 branch 6 times, most recently from da6e626 to 661fbbc Compare October 26, 2023 10:16
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/desktop/react-redux-8.1.3 branch from 661fbbc to 1792e6a Compare October 26, 2023 12:31
Bumps [react-redux](https://github.com/reduxjs/react-redux) from 7.2.6 to 8.1.3.
- [Release notes](https://github.com/reduxjs/react-redux/releases)
- [Changelog](https://github.com/reduxjs/react-redux/blob/master/CHANGELOG.md)
- [Commits](reduxjs/react-redux@v7.2.6...v8.1.3)

---
updated-dependencies:
- dependency-name: react-redux
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/desktop/react-redux-8.1.3 branch from 1792e6a to b8793b2 Compare November 1, 2023 12:20
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 4, 2023

Superseded by #5329.

@dependabot dependabot bot closed this Dec 4, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/desktop/react-redux-8.1.3 branch December 4, 2023 13:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant