Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump react-redux from 9.0.3 to 9.1.0 in /webapp (microsoft#766)
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 "pre-typing" 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 "react-redux" import { useDispatch, useSelector, useStore } from "react-redux" import type { AppDispatch, AppStore, RootState } from "./store" <p>export const useAppDispatch: () => AppDispatch = useDispatch export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector export const useAppStore = useStore as () => 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 "react-redux" import type { AppDispatch, AppStore, RootState } from "./store" <p>export const useAppDispatch = useDispatch.withTypes<AppDispatch>() export const useAppSelector = useSelector.withTypes<RootState>() export const useAppStore = useStore.withTypes<AppStore>() </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<RootState>()</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>>= 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