Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump react-redux from 9.0.3 to 9.1.0 in /webapp #766

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 15, 2024

Bumps react-redux from 9.0.3 to 9.1.0.

Release notes

Sourced from react-redux's releases.

v9.1.0

This minor release adds a new syntax for pre-typing hooks.

.withTypes

Previously, the approach for "pre-typing" hooks with your app settings was a little varied. The result would look something like the below:

import type { TypedUseSelectorHook } from "react-redux"
import { useDispatch, useSelector, useStore } from "react-redux"
import type { AppDispatch, AppStore, RootState } from "./store"
export const useAppDispatch: () => AppDispatch = useDispatch
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector
export const useAppStore = useStore as () => AppStore

React Redux v9.1.0 adds a new .withTypes method to each of these hooks, analogous to the .withTypes method found on Redux Toolkit's createAsyncThunk.

The setup now becomes:

import { useDispatch, useSelector, useStore } from "react-redux"
import type { AppDispatch, AppStore, RootState } from "./store"
export const useAppDispatch = useDispatch.withTypes<AppDispatch>()
export const useAppSelector = useSelector.withTypes<RootState>()
export const useAppStore = useStore.withTypes<AppStore>()

What's Changed

New Contributors

Full Changelog: reduxjs/react-redux@v9.0.4...v9.1.0

v9.0.4

This bugfix release updates the React Native peer dependency to be >= 0.69, to better reflect the need for React 18 compat and (hopefully) resolve issues with the npm package manager throwing peer dep errors on install.

What's Changed

Full Changelog: reduxjs/react-redux@v9.0.3...v9.0.4

Commits

Dependabot compatibility score

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

Bumps [react-redux](https://github.com/reduxjs/react-redux) from 9.0.3 to 9.1.0.
- [Release notes](https://github.com/reduxjs/react-redux/releases)
- [Changelog](https://github.com/reduxjs/react-redux/blob/master/CHANGELOG.md)
- [Commits](reduxjs/react-redux@v9.0.3...v9.1.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jan 15, 2024
@github-actions github-actions bot added the webapp Pull requests that update Typescript code label Jan 15, 2024
@glahaye glahaye added this pull request to the merge queue Jan 23, 2024
Merged via the queue into main with commit 037a6a2 Jan 23, 2024
6 checks passed
@glahaye glahaye deleted the dependabot/npm_and_yarn/webapp/react-redux-9.1.0 branch January 23, 2024 20:00
teamleader-dev pushed a commit to vlink-group/chat-copilot that referenced this pull request Oct 7, 2024
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code webapp Pull requests that update Typescript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant