Bump redux from 4.0.5 to 4.1.0 in /desktop (#2400)

Summary:
Bumps [redux](https://github.com/reduxjs/redux) from 4.0.5 to 4.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/reduxjs/redux/releases">redux's releases</a>.</em></p>
<blockquote>
<h2>v4.1.0</h2>
<p>This release shrinks our bundle size via error message extraction, updates several error messages for clarity, and optimizes our list of runtime dependencies.</p>
<p>Overall, version 4.1 shrinks from 2.6K min+gz to 1.6K min+gz thanks to these changes.</p>
<p>Be sure to check out <a href="https://github.com/reduxjs/redux-toolkit/releases/tag/v1.6.0-alpha.1">the Redux Toolkit 1.6 alpha containing our new &quot;RTK Query&quot; data fetching APIs!</a> It also includes Redux 4.1 as a dependency.</p>
<h2>Changelog</h2>
<h3>Error Message Extraction and Improvements</h3>
<p>We now extract all of our error messages from production builds in order to save on bundle size, using <a href="https://reactjs.org/blog/2016/07/11/introducing-reacts-error-code-system.html">a technique inspired from React's error code extraction</a>.  The error messages will still show as normal in development, but in production they will reference a specific numeric error code and provide a link to a Redux docs page that has the full error message.</p>
<p>An example of this is: <a href="https://redux.js.org/errors?code=5">https://redux.js.org/errors?code=5</a> , which shows the &quot;can't subscribe while reducers are executing&quot; error.</p>
<p>The error code extraction saves about 800 bytes out of a production build.</p>
<p>Thanks to <a href="https://github.com/andrewmcgivery"><code>@​andrewmcgivery</code></a> for doing all the hard work on implementing the error extraction!</p>
<p>We've also updated many of our error messages to provide additional details at runtime about what happened, especially runtime type checks such as &quot;actions must be plain objects&quot;. They now provide a more specific type for the unexpected value, such as indicating <code>promise</code> or <code>function</code>:</p>
<pre lang="js"><code>    expect(() =&gt; store.dispatch(() =&gt; {})).toThrow(
      /the actual type was: 'function'/
    )
<pre><code>expect(() =&amp;gt; store.dispatch(new Date())).toThrow(
  /the actual type was: 'date'/
)
</code></pre>
<p></code></pre></p>
<h3>Dependency Updates</h3>
<p>We've updated the list of runtime dependencies for Redux:</p>
<ul>
<li>We inlined the <code>symbol-observable</code> polyfill. This shrinks bundle size by a few bytes,</li>
<li>We've removed the legacy <code>loose-envify</code> dependency, which was only ever needed by Browserify users. If you still happen to be using Browserify, please review your build settings and see if you need to make any updates.</li>
<li>We now explicitly depend on <code>babel/runtime</code> to extract some additional helpers out of our bundle. It's likely that your app already is pulling in those helpers anyway, so that removes some potential duplication.</li>
</ul>
<h3>Typing Tweaks</h3>
<p>We've merged fixes for a couple edge cases in the 4.x TS typings related to state types.</p>
<h2>Changes</h2>
<ul>
<li>Remove symbol-observable and loose-envify deps (<a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4058">#4058</a> - <a href="https://github.com/markerikson"><code>@​markerikson</code></a>)</li>
<li>Port error extraction setup from master  (<a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4057">#4057</a> - <a href="https://github.com/markerikson"><code>@​markerikson</code></a>)</li>
<li>Port build dependencies from master into 4.x (<a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4056">#4056</a> - <a href="https://github.com/markerikson"><code>@​markerikson</code></a>)</li>
<li>Rewrite Redux core error messages (<a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4055">#4055</a> - <a href="https://github.com/markerikson"><code>@​markerikson</code></a>)</li>
<li>feat: mangle error codes to error indexes (<a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/3920">#3920</a> - <a href="https://github.com/andrewmcgivery"><code>@​andrewmcgivery</code></a>)</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="97a7798e83"><code>97a7798</code></a> 4.1.0</li>
<li><a href="32f368a2f1"><code>32f368a</code></a> 4.1.0-alpha.0</li>
<li><a href="9445d3ab3a"><code>9445d3a</code></a> Ignore Docusaurus output</li>
<li><a href="9a1d065ecf"><code>9a1d065</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4058">#4058</a> from reduxjs/feature/4x-remove-legacy-deps</li>
<li><a href="d29cbfaf57"><code>d29cbfa</code></a> Include ESM .mjs file in size comparisons</li>
<li><a href="fb5abcccc2"><code>fb5abcc</code></a> Formatting</li>
<li><a href="0d7d94d818"><code>0d7d94d</code></a> Inline the symbol-observable polyfill</li>
<li><a href="b882d9afee"><code>b882d9a</code></a> Remove symbol-observable and loose-envify deps</li>
<li><a href="f3680b5bf9"><code>f3680b5</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4057">#4057</a> from reduxjs/feature/4x-error-messages</li>
<li><a href="3ce88ddbe7"><code>3ce88dd</code></a> Formatting</li>
<li>Additional commits viewable in <a href="https://github.com/reduxjs/redux/compare/v4.0.5...v4.1.0">compare view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a href="https://www.npmjs.com/~acemarke">acemarke</a>, a new releaser for redux since your current version.</p>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=redux&package-manager=npm_and_yarn&previous-version=4.0.5&new-version=4.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

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 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)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/2400

Reviewed By: nikoant

Differential Revision: D28795377

Pulled By: passy

fbshipit-source-id: 00c213c0ba6b1df5071f48734e136a40082ee0b1
This commit is contained in:
dependabot[bot]
2021-06-02 03:44:57 -07:00
committed by Facebook GitHub Bot
parent adbcad6da1
commit 1ec791ce36
2 changed files with 2 additions and 15 deletions

View File

@@ -178,7 +178,7 @@
"react-async": "^10.0.0", "react-async": "^10.0.0",
"react-refresh": "^0.10.0", "react-refresh": "^0.10.0",
"recursive-readdir": "^2.2.2", "recursive-readdir": "^2.2.2",
"redux": "^4.0.0", "redux": "^4.1.0",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"socket.io": "^4.1.2", "socket.io": "^4.1.2",
"tmp": "^0.2.1", "tmp": "^0.2.1",

View File

@@ -11643,15 +11643,7 @@ redux-persist@*, redux-persist@^6.0.0:
resolved "https://registry.yarnpkg.com/redux-persist/-/redux-persist-6.0.0.tgz#b4d2972f9859597c130d40d4b146fecdab51b3a8" resolved "https://registry.yarnpkg.com/redux-persist/-/redux-persist-6.0.0.tgz#b4d2972f9859597c130d40d4b146fecdab51b3a8"
integrity sha512-71LLMbUq2r02ng2We9S215LtPu3fY0KgaGE0k8WRgl6RkqxtGfl7HUozz1Dftwsb0D/5mZ8dwAaPbtnzfvbEwQ== integrity sha512-71LLMbUq2r02ng2We9S215LtPu3fY0KgaGE0k8WRgl6RkqxtGfl7HUozz1Dftwsb0D/5mZ8dwAaPbtnzfvbEwQ==
redux@^4.0.0, redux@^4.0.5: redux@^4.0.0, redux@^4.0.5, redux@^4.1.0:
version "4.0.5"
resolved "https://registry.yarnpkg.com/redux/-/redux-4.0.5.tgz#4db5de5816e17891de8a80c424232d06f051d93f"
integrity sha512-VSz1uMAH24DM6MF72vcojpYPtrTUu3ByVWfPL1nPfVRb5mZVTve5GnNCUV53QM/BZ66xfWrm0CTWoM+Xlz8V1w==
dependencies:
loose-envify "^1.4.0"
symbol-observable "^1.2.0"
redux@^4.1.0:
version "4.1.0" version "4.1.0"
resolved "https://registry.yarnpkg.com/redux/-/redux-4.1.0.tgz#eb049679f2f523c379f1aff345c8612f294c88d4" resolved "https://registry.yarnpkg.com/redux/-/redux-4.1.0.tgz#eb049679f2f523c379f1aff345c8612f294c88d4"
integrity sha512-uI2dQN43zqLWCt6B/BMGRMY6db7TTY4qeHHfGeKb3EOhmOKjU3KdWvNLJyqaHRksv/ErdNH7cFZWg9jXtewy4g== integrity sha512-uI2dQN43zqLWCt6B/BMGRMY6db7TTY4qeHHfGeKb3EOhmOKjU3KdWvNLJyqaHRksv/ErdNH7cFZWg9jXtewy4g==
@@ -12824,11 +12816,6 @@ supports-hyperlinks@^2.0.0, supports-hyperlinks@^2.1.0:
has-flag "^4.0.0" has-flag "^4.0.0"
supports-color "^7.0.0" supports-color "^7.0.0"
symbol-observable@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804"
integrity sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==
symbol-tree@^3.2.4: symbol-tree@^3.2.4:
version "3.2.4" version "3.2.4"
resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2"