Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 2b613ba

Browse files
build(deps): bump react-redux from 8.0.2 to 8.0.4 in /api-editor/gui (#1051)
Bumps [react-redux](https://github.com/reduxjs/react-redux) from 8.0.2 to 8.0.4. <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>v8.0.4</h2> <p>This patch release fixes some minor TS types issues, and updates the rarely-used <code>areStatesEqual</code> option for <code>connect</code> to now pass through <code>ownProps</code> for additional use in determining which pieces of state to compare if desired.</p> <blockquote> <p><strong>Note</strong>: 8.0.3 was accidentally published without one of these fixes. Use 8.0.4 instead.</p> </blockquote> <h2>Changelog</h2> <h3>TS Fixes</h3> <p>We've fixed an import of <code>React</code> that caused issues with the <code>allowSyntheticDefaultImports</code> TS compiler flag in user projects.</p> <p><code>connect</code> already accepted a custom context instance as <code>props.context</code>, and had runtime checks in case users were passing through a real value with app data as <code>props.context</code> instead. However, the TS types did not handle that case, and this would fail to compile. If your own component expects <code>props.context</code> with actual data, <code>connect</code>'s types now use that type instead.</p> <p>The <code>ConnectedProps&lt;T&gt;</code> type had a mismatch with React's built-in <code>React.ComponentProps&lt;Component&gt;</code> type, and that should now work correctly.</p> <h3>Other Changes</h3> <p>The <code>areStatesEqual</code> option to <code>connect</code> now receives <code>ownProps</code> as well, in case you need to make a more specific comparison with certain sections of state.</p> <p>The new signature is:</p> <pre lang="ts"><code>{ areStatesEqual?: ( nextState: State, prevState: State, nextOwnProps: TOwnProps, prevOwnProps: TOwnProps ) =&gt; boolean } </code></pre> <h2>What's Changed</h2> <ul> <li>Don't require allowSyntheticDefaultImports: true by <a href="https://github.com/apepper"><code>@​apepper</code></a> in <a href="https://github-redirect.dependabot.com/reduxjs/react-redux/pull/1924">reduxjs/react-redux#1924</a></li> <li>Fixed type issue with <code>ComponentProps</code> from older <code>@types/react</code> by <a href="https://github.com/Andarist"><code>@​Andarist</code></a> in <a href="https://github-redirect.dependabot.com/reduxjs/react-redux/pull/1956">reduxjs/react-redux#1956</a></li> <li>connect: pass ownProps to areStatesEqual by <a href="https://github.com/jspurlin"><code>@​jspurlin</code></a> in <a href="https://github-redirect.dependabot.com/reduxjs/react-redux/pull/1951">reduxjs/react-redux#1951</a></li> <li>Omit built-in context prop if user component props include context by <a href="https://github.com/markerikson"><code>@​markerikson</code></a> in <a href="https://github-redirect.dependabot.com/reduxjs/react-redux/pull/1958">reduxjs/react-redux#1958</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/reduxjs/react-redux/compare/v8.0.2...v8.0.4">https://github.com/reduxjs/react-redux/compare/v8.0.2...v8.0.4</a></p> <h2>v8.0.3</h2> <p><strong>This release was accidentally published without an intended fix - please use <a href="https://github.com/reduxjs/react-redux/releases/tag/v8.0.4">v8.0.4</a> instead</strong></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/reduxjs/react-redux/commit/70a167e5fa6b311338d98e26b3a855ba44d7c739"><code>70a167e</code></a> Release 8.0.4</li> <li><a href="https://github.com/reduxjs/react-redux/commit/3c9766eaebef8d79d2bef6c63e32195b3cf8edc7"><code>3c9766e</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1958">#1958</a> from reduxjs/bugfix/connect-context-prop</li> <li><a href="https://github.com/reduxjs/react-redux/commit/4fcd42c3f9ba142834d37f8059c3068283309747"><code>4fcd42c</code></a> Release 8.0.3</li> <li><a href="https://github.com/reduxjs/react-redux/commit/69413ff9c2f093aabcdbfc7a676d9b0bc37499ac"><code>69413ff</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1951">#1951</a> from jspurlin/jspurlin/passOwnPropsToASE</li> <li><a href="https://github.com/reduxjs/react-redux/commit/123686182acef8b886a00addce66c7ace2047c42"><code>1236861</code></a> Use a <code>Mapped</code> type to simplify the final displayed types for components</li> <li><a href="https://github.com/reduxjs/react-redux/commit/f40d82da138b9937c20f90a8e23043eccd67bcd5"><code>f40d82d</code></a> Omit built-in <code>context</code> prop if user component props include <code>context</code></li> <li><a href="https://github.com/reduxjs/react-redux/commit/bbc546e88bdec481e5e84e367081941a48e3be5c"><code>bbc546e</code></a> Fixed type issue with <code>ComponentProps</code> from older <code>@types/react</code> (<a href="https://github-redirect.dependabot.com/reduxjs/react-redux/issues/1956">#1956</a>)</li> <li><a href="https://github.com/reduxjs/react-redux/commit/527eb36f1af5d79e1c24ad14f88da70642c8d817"><code>527eb36</code></a> update type of actualChildProps to be more accurate</li> <li><a href="https://github.com/reduxjs/react-redux/commit/4122b1c56ad7441acbc8da6572566e5503cb0804"><code>4122b1c</code></a> Merge branch 'jspurlin/passOwnPropsToASE' of <a href="https://github.com/jspurlin/reac">https://github.com/jspurlin/reac</a>...</li> <li><a href="https://github.com/reduxjs/react-redux/commit/405d39bcbcfab1c3182a5de3f215273b4995a1f2"><code>405d39b</code></a> Update connect.md</li> <li>Additional commits viewable in <a href="https://github.com/reduxjs/react-redux/compare/v8.0.2...v8.0.4">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=8.0.2&new-version=8.0.4)](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> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent a9c572d commit 2b613ba

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

api-editor/gui/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api-editor/gui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"react-hook-form": "^7.34.0",
3434
"react-icons": "^4.4.0",
3535
"react-markdown": "^8.0.3",
36-
"react-redux": "^8.0.2",
36+
"react-redux": "^8.0.4",
3737
"react-router": "^6.3.0",
3838
"react-router-dom": "^6.4.2",
3939
"react-syntax-highlighter": "^15.5.0",

0 commit comments

Comments
 (0)