Skip to content

Commit

Permalink
Bump react-redux from 9.0.3 to 9.1.0 in /webapp (microsoft#766)
Browse files Browse the repository at this point in the history
Bumps [react-redux](https://github.com/reduxjs/react-redux) from 9.0.3
to 9.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/reduxjs/react-redux/releases">react-redux's
releases</a>.</em></p>
<blockquote>
<h2>v9.1.0</h2>
<p>This <strong>minor release</strong> adds a new syntax for pre-typing
hooks.</p>
<h2><code>.withTypes</code></h2>
<p>Previously, the approach for &quot;pre-typing&quot; hooks with your
app settings was a little varied. The result would look something like
the below:</p>
<pre lang="ts"><code>import type { TypedUseSelectorHook } from
&quot;react-redux&quot;
import { useDispatch, useSelector, useStore } from
&quot;react-redux&quot;
import type { AppDispatch, AppStore, RootState } from
&quot;./store&quot;
<p>export const useAppDispatch: () =&gt; AppDispatch = useDispatch
export const useAppSelector: TypedUseSelectorHook&lt;RootState&gt; =
useSelector
export const useAppStore = useStore as () =&gt; AppStore
</code></pre></p>
<p>React Redux v9.1.0 adds a new <code>.withTypes</code> method to each
of these hooks, analogous to the <a
href="https://redux-toolkit.js.org/usage/usage-with-typescript#defining-a-pre-typed-createasyncthunk"><code>.withTypes</code></a>
method found on Redux Toolkit's <code>createAsyncThunk</code>.</p>
<p>The setup now becomes:</p>
<pre lang="ts"><code>import { useDispatch, useSelector, useStore } from
&quot;react-redux&quot;
import type { AppDispatch, AppStore, RootState } from
&quot;./store&quot;
<p>export const useAppDispatch =
useDispatch.withTypes&lt;AppDispatch&gt;()
export const useAppSelector = useSelector.withTypes&lt;RootState&gt;()
export const useAppStore = useStore.withTypes&lt;AppStore&gt;()
</code></pre></p>
<h2>What's Changed</h2>
<ul>
<li>Update hooks.md — reselect usage with multiple instances simplified
by <a
href="https://github.com/VorontsovIE"><code>@​VorontsovIE</code></a> in
<a
href="https://github.com/reduxjs/react-redux/pull/2110">reduxjs/react-redux#2110</a></li>
<li>Modernize ESLint configuration by <a
href="https://github.com/aryaemami59"><code>@​aryaemami59</code></a> in
<a
href="https://github.com/reduxjs/react-redux/pull/2115">reduxjs/react-redux#2115</a></li>
<li>Introduce pre-typed hooks via
<code>hook.withTypes&lt;RootState&gt;()</code> method by <a
href="https://github.com/aryaemami59"><code>@​aryaemami59</code></a> in
<a
href="https://github.com/reduxjs/react-redux/pull/2114">reduxjs/react-redux#2114</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/VorontsovIE"><code>@​VorontsovIE</code></a>
made their first contribution in <a
href="https://github.com/reduxjs/react-redux/pull/2110">reduxjs/react-redux#2110</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/reduxjs/react-redux/compare/v9.0.4...v9.1.0">https://github.com/reduxjs/react-redux/compare/v9.0.4...v9.1.0</a></p>
<h2>v9.0.4</h2>
<p>This <strong>bugfix release</strong> updates the React Native peer
dependency to be <code>&gt;= 0.69</code>, to better reflect the need for
React 18 compat and (hopefully) resolve issues with the <code>npm</code>
package manager throwing peer dep errors on install.</p>
<h2>What's Changed</h2>
<ul>
<li>Allow react-native newer than 0.69 as peer dependency by <a
href="https://github.com/R3DST0RM"><code>@​R3DST0RM</code></a> in <a
href="https://github.com/reduxjs/react-redux/pull/2107">reduxjs/react-redux#2107</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/reduxjs/react-redux/compare/v9.0.3...v9.0.4">https://github.com/reduxjs/react-redux/compare/v9.0.3...v9.0.4</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/reduxjs/react-redux/commit/4ebe6e98e58d47128bec1191eaa63fb07bf9aa75"><code>4ebe6e9</code></a>
version 9.1.0</li>
<li><a
href="https://github.com/reduxjs/react-redux/commit/94fc5a3151a7b078c81541ea571675ab7c22d2c0"><code>94fc5a3</code></a>
Merge pull request <a
href="https://github.com/reduxjs/react-redux/issues/2114">#2114</a>
from aryaemami59/withTypes</li>
<li><a
href="https://github.com/reduxjs/react-redux/commit/349e0f0f9d67b3b71691c8d1b2f5dcb01575128b"><code>349e0f0</code></a>
Remove unused <code>TypedUseSelectorHook</code> imports</li>
<li><a
href="https://github.com/reduxjs/react-redux/commit/78cdeac776d6cdd3b16c7aabd0e2ec4c23499088"><code>78cdeac</code></a>
Merge branch 'master' of <a
href="https://github.com/reduxjs/react-redux">https://github.com/reduxjs/react-redux</a>
into withTypes</li>
<li><a
href="https://github.com/reduxjs/react-redux/commit/4b63c88ef615b95c1f3ae4548c7f775eb9e8b167"><code>4b63c88</code></a>
Merge pull request <a
href="https://github.com/reduxjs/react-redux/issues/2115">#2115</a>
from aryaemami59/update-dev-deps</li>
<li><a
href="https://github.com/reduxjs/react-redux/commit/b3c84985b0ce5ad3921fba79ca0a17abe9154b8d"><code>b3c8498</code></a>
Update <code>.eslintrc.json</code> to remove duplicate config</li>
<li><a
href="https://github.com/reduxjs/react-redux/commit/7cf138352a9942ffd3147b314c6f51f9be14c86f"><code>7cf1383</code></a>
Add <code>hooks.withTypes()</code> to docs</li>
<li><a
href="https://github.com/reduxjs/react-redux/commit/4360ff420a1af7b2ec3f09607ba833ebea7ae29c"><code>4360ff4</code></a>
Add JSDocs for <code>useStore</code></li>
<li><a
href="https://github.com/reduxjs/react-redux/commit/8f84eb9b8784e9b4a9b687c2d34dfa096606f3c6"><code>8f84eb9</code></a>
Export <code>UseDispatch</code> type and organize exports</li>
<li><a
href="https://github.com/reduxjs/react-redux/commit/0e60aa761eae90d12315f543db904ab9770b104f"><code>0e60aa7</code></a>
Add JSDocs for <code>useDispatch</code></li>
<li>Additional commits viewable in <a
href="https://github.com/reduxjs/react-redux/compare/v9.0.3...v9.1.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-redux&package-manager=npm_and_yarn&previous-version=9.0.3&new-version=9.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 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)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Jan 23, 2024
1 parent 5634999 commit 84729f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-markdown": "^9.0.1",
"react-redux": "^9.0.3",
"react-redux": "^9.1.0",
"remark-gfm": "^4.0.0"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions webapp/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9539,10 +9539,10 @@ react-markdown@^9.0.1:
unist-util-visit "^5.0.0"
vfile "^6.0.0"

react-redux@^9.0.3:
version "9.0.3"
resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-9.0.3.tgz#3c4d77ed43b88dc15d127162e0d5c060aabcd4e6"
integrity sha512-bilZStJN00qYqAXBpu/taUXv0tcuOrhBFD86fSERgYUm0+IHi/OQnqopbNalhgSo7+KMjSW5H/UTrWasXDvtug==
react-redux@^9.1.0:
version "9.1.0"
resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-9.1.0.tgz#46a46d4cfed4e534ce5452bb39ba18e1d98a8197"
integrity sha512-6qoDzIO+gbrza8h3hjMA9aq4nwVFCKFtY2iLxCtVT38Swyy2C/dJCGBXHeHLtx6qlg/8qzc2MrhOeduf5K32wQ==
dependencies:
"@types/use-sync-external-store" "^0.0.3"
use-sync-external-store "^1.0.0"
Expand Down

0 comments on commit 84729f1

Please sign in to comment.