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

Commit 59f8982

Browse files
build(deps): Bump react-router from 6.14.1 to 6.16.0 in /api-editor/gui (#1438)
Bumps [react-router](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router) from 6.14.1 to 6.16.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/remix-run/react-router/releases">react-router's releases</a>.</em></p> <blockquote> <h2>v6.16.0</h2> <h3>Minor Changes</h3> <ul> <li>In order to move towards stricter TypeScript support in the future, we're aiming to replace current usages of <code>any</code> with <code>unknown</code> on exposed typings for user-provided data. To do this in Remix v2 without introducing breaking changes in React Router v6, we have added generics to a number of shared types. These continue to default to <code>any</code> in React Router and are overridden with <code>unknown</code> in Remix. In React Router v7 we plan to move these to <code>unknown</code> as a breaking change. (<a href="https://redirect.github.com/remix-run/react-router/pull/10843">#10843</a>) <ul> <li><code>Location</code> now accepts a generic for the <code>location.state</code> value</li> <li><code>ActionFunctionArgs</code>/<code>ActionFunction</code>/<code>LoaderFunctionArgs</code>/<code>LoaderFunction</code> now accept a generic for the <code>context</code> parameter (only used in SSR usages via <code>createStaticHandler</code>)</li> <li>The return type of <code>useMatches</code> (now exported as <code>UIMatch</code>) accepts generics for <code>match.data</code> and <code>match.handle</code> - both of which were already set to <code>unknown</code></li> </ul> </li> <li>Move the <code>@Private</code> class export <code>ErrorResponse</code> to an <code>UNSAFE_ErrorResponseImpl</code> export since it is an implementation detail and there should be no construction of <code>ErrorResponse</code> instances in userland. This frees us up to export a <code>type ErrorResponse</code> which correlates to an instance of the class via <code>InstanceType</code>. Userland code should only ever be using <code>ErrorResponse</code> as a type and should be type-narrowing via <code>isRouteErrorResponse</code>. (<a href="https://redirect.github.com/remix-run/react-router/pull/10811">#10811</a>)</li> <li>Export <code>ShouldRevalidateFunctionArgs</code> interface (<a href="https://redirect.github.com/remix-run/react-router/pull/10797">#10797</a>)</li> <li>Removed private/internal APIs only required for the Remix v1 backwards compatibility layer and no longer needed in Remix v2 (<code>_isFetchActionRedirect</code>, <code>_hasFetcherDoneAnything</code>) (<a href="https://redirect.github.com/remix-run/react-router/pull/10715">#10715</a>)</li> </ul> <h3>Patch Changes</h3> <ul> <li>Properly encode rendered URIs in server rendering to avoid hydration errors (<a href="https://redirect.github.com/remix-run/react-router/pull/10769">#10769</a>)</li> <li>Add method/url to error message on aborted <code>query</code>/<code>queryRoute</code> calls (<a href="https://redirect.github.com/remix-run/react-router/pull/10793">#10793</a>)</li> <li>Fix a race-condition with loader/action-thrown errors on <code>route.lazy</code> routes (<a href="https://redirect.github.com/remix-run/react-router/pull/10778">#10778</a>)</li> <li>Fix type for <code>actionResult</code> on the arguments object passed to <code>shouldRevalidate</code> (<a href="https://redirect.github.com/remix-run/react-router/pull/10779">#10779</a>)</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/remix-run/react-router/compare/react-router@6.15.0...react-router@6.16.0">https://github.com/remix-run/react-router/compare/react-router@6.15.0...react-router@6.16.0</a></p> <h2>v6.15.0</h2> <h3>Minor Changes</h3> <ul> <li>Add's a new <code>redirectDocument()</code> function which allows users to specify that a redirect from a <code>loader</code>/<code>action</code> should trigger a document reload (via <code>window.location</code>) instead of attempting to navigate to the redirected location via React Router (<a href="https://redirect.github.com/remix-run/react-router/pull/10705">#10705</a>)</li> </ul> <h3>Patch Changes</h3> <ul> <li>Ensure <code>useRevalidator</code> is referentially stable across re-renders if revalidations are not actively occurring (<a href="https://redirect.github.com/remix-run/react-router/pull/10707">#10707</a>)</li> <li>Ensure hash history always includes a leading slash on hash pathnames (<a href="https://redirect.github.com/remix-run/react-router/pull/10753">#10753</a>)</li> <li>Fixes an edge-case affecting web extensions in Firefox that use <code>URLSearchParams</code> and the <code>useSearchParams</code> hook (<a href="https://redirect.github.com/remix-run/react-router/pull/10620">#10620</a>)</li> <li>Reorder effects in <code>unstable_usePrompt</code> to avoid throwing an exception if the prompt is unblocked and a navigation is performed synchronously (<a href="https://redirect.github.com/remix-run/react-router/pull/10687">#10687</a>, <a href="https://redirect.github.com/remix-run/react-router/pull/10718">#10718</a>)</li> <li>SSR: Do not include hash in <code>useFormAction()</code> for unspecified actions since it cannot be determined on the server and causes hydration issues (<a href="https://redirect.github.com/remix-run/react-router/pull/10758">#10758</a>)</li> <li>SSR: Fix an issue in <code>queryRoute</code> that was not always identifying thrown <code>Response</code> instances (<a href="https://redirect.github.com/remix-run/react-router/pull/10717">#10717</a>)</li> <li><code>react-router-native</code>: Update <code>@ungap/url-search-params</code> dependency from <code>^0.1.4</code> to <code>^0.2.2</code> (<a href="https://redirect.github.com/remix-run/react-router/pull/10590">#10590</a>)</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/remix-run/react-router/compare/react-router@6.14.2...react-router@6.15.0">https://github.com/remix-run/react-router/compare/react-router@6.14.2...react-router@6.15.0</a></p> <h2>v6.14.2</h2> <h2>Patch Changes</h2> <ul> <li>Add missing <code>&lt;Form state&gt;</code> prop to populate <code>history.state</code> on submission navigations (<a href="https://redirect.github.com/remix-run/react-router/pull/10630">#10630</a>)</li> <li>Trigger an error if a <code>defer</code> promise resolves/rejects with <code>undefined</code> in order to match the behavior of loaders and actions which must return a value or <code>null</code> (<a href="https://redirect.github.com/remix-run/react-router/pull/10690">#10690</a>)</li> <li>Properly handle fetcher redirects interrupted by normal navigations (<a href="https://redirect.github.com/remix-run/react-router/pull/10674">#10674</a>)</li> <li>Initial-load fetchers should not automatically revalidate on GET navigations (<a href="https://redirect.github.com/remix-run/react-router/pull/10688">#10688</a>)</li> <li>Properly decode element id when emulating hash scrolling via <code>&lt;ScrollRestoration&gt;</code> (<a href="https://redirect.github.com/remix-run/react-router/pull/10682">#10682</a>)</li> <li>Typescript: Enhance the return type of <code>Route.lazy</code> to prohibit returning an empty object (<a href="https://redirect.github.com/remix-run/react-router/pull/10634">#10634</a>)</li> <li>SSR: Support proper hydration of <code>Error</code> subclasses such as <code>ReferenceError</code>/<code>TypeError</code> (<a href="https://redirect.github.com/remix-run/react-router/pull/10633">#10633</a>)</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/remix-run/react-router/compare/react-router@6.14.1...react-router@6.14.2">https://github.com/remix-run/react-router/compare/react-router@6.14.1...react-router@6.14.2</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/remix-run/react-router/blob/main/packages/react-router/CHANGELOG.md">react-router's changelog</a>.</em></p> <blockquote> <h2>6.16.0</h2> <h3>Minor Changes</h3> <ul> <li>In order to move towards stricter TypeScript support in the future, we're aiming to replace current usages of <code>any</code> with <code>unknown</code> on exposed typings for user-provided data. To do this in Remix v2 without introducing breaking changes in React Router v6, we have added generics to a number of shared types. These continue to default to <code>any</code> in React Router and are overridden with <code>unknown</code> in Remix. In React Router v7 we plan to move these to <code>unknown</code> as a breaking change. (<a href="https://redirect.github.com/remix-run/react-router/pull/10843">#10843</a>) <ul> <li><code>Location</code> now accepts a generic for the <code>location.state</code> value</li> <li><code>ActionFunctionArgs</code>/<code>ActionFunction</code>/<code>LoaderFunctionArgs</code>/<code>LoaderFunction</code> now accept a generic for the <code>context</code> parameter (only used in SSR usages via <code>createStaticHandler</code>)</li> <li>The return type of <code>useMatches</code> (now exported as <code>UIMatch</code>) accepts generics for <code>match.data</code> and <code>match.handle</code> - both of which were already set to <code>unknown</code></li> </ul> </li> <li>Move the <code>@Private</code> class export <code>ErrorResponse</code> to an <code>UNSAFE_ErrorResponseImpl</code> export since it is an implementation detail and there should be no construction of <code>ErrorResponse</code> instances in userland. This frees us up to export a <code>type ErrorResponse</code> which correlates to an instance of the class via <code>InstanceType</code>. Userland code should only ever be using <code>ErrorResponse</code> as a type and should be type-narrowing via <code>isRouteErrorResponse</code>. (<a href="https://redirect.github.com/remix-run/react-router/pull/10811">#10811</a>)</li> <li>Export <code>ShouldRevalidateFunctionArgs</code> interface (<a href="https://redirect.github.com/remix-run/react-router/pull/10797">#10797</a>)</li> <li>Removed private/internal APIs only required for the Remix v1 backwards compatibility layer and no longer needed in Remix v2 (<code>_isFetchActionRedirect</code>, <code>_hasFetcherDoneAnything</code>) (<a href="https://redirect.github.com/remix-run/react-router/pull/10715">#10715</a>)</li> </ul> <h3>Patch Changes</h3> <ul> <li>Updated dependencies: <ul> <li><code>@remix-run/router@1.9.0</code></li> </ul> </li> </ul> <h2>6.15.0</h2> <h3>Minor Changes</h3> <ul> <li>Add's a new <code>redirectDocument()</code> function which allows users to specify that a redirect from a <code>loader</code>/<code>action</code> should trigger a document reload (via <code>window.location</code>) instead of attempting to navigate to the redirected location via React Router (<a href="https://redirect.github.com/remix-run/react-router/pull/10705">#10705</a>)</li> </ul> <h3>Patch Changes</h3> <ul> <li>Ensure <code>useRevalidator</code> is referentially stable across re-renders if revalidations are not actively occurring (<a href="https://redirect.github.com/remix-run/react-router/pull/10707">#10707</a>)</li> <li>Updated dependencies: <ul> <li><code>@remix-run/router@1.8.0</code></li> </ul> </li> </ul> <h2>6.14.2</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies: <ul> <li><code>@remix-run/router@1.7.2</code></li> </ul> </li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/remix-run/react-router/commit/13fb25a51184f66192e023e2e18be5ff00f37827"><code>13fb25a</code></a> chore: Update version for release (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/10866">#10866</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/6bd6fb9d07e6ef9636659beb6b2660cae2a67529"><code>6bd6fb9</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/10849">#10849</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/9b1d1843d27d3bc2c749b99740ff4743af64c88e"><code>9b1d184</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/10844">#10844</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/b6614b0e9452708c0880fef46c52fb0e1805eeaf"><code>b6614b0</code></a> Add generics for Remix type enhancements (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/10843">#10843</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/3069e526d24514e368640ee7ef7e4557b1b323e2"><code>3069e52</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/10828">#10828</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/a4495dee75166546dd92a4072fedab30abce84cf"><code>a4495de</code></a> Export proper ErrorResponse type (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/10811">#10811</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/ae75cdc922485988bb21f5b7b450d787204b0787"><code>ae75cdc</code></a> Export ShouldRevalidateFunctionArgs interface (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/10797">#10797</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/6a0875773fb09f651f039522195426b0b9cd8910"><code>6a08757</code></a> Organize imports (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/10777">#10777</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/e79cb77cb566788bfa61e6f7b2d4a64e80ea56f7"><code>e79cb77</code></a> chore: Update version for release (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/10776">#10776</a>)</li> <li><a href="https://github.com/remix-run/react-router/commit/cd1e25a96eef89d880a3b78af2e1d534afdea427"><code>cd1e25a</code></a> chore: Update version for release (pre) (<a href="https://github.com/remix-run/react-router/tree/HEAD/packages/react-router/issues/10771">#10771</a>)</li> <li>Additional commits viewable in <a href="https://github.com/remix-run/react-router/commits/react-router@6.16.0/packages/react-router">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-router&package-manager=npm_and_yarn&previous-version=6.14.1&new-version=6.16.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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 23e3386 commit 59f8982

File tree

2 files changed

+50
-11
lines changed

2 files changed

+50
-11
lines changed

api-editor/gui/package-lock.json

Lines changed: 49 additions & 10 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
@@ -35,7 +35,7 @@
3535
"react-icons": "^4.10.1",
3636
"react-markdown": "^8.0.7",
3737
"react-redux": "^8.1.1",
38-
"react-router": "^6.11.2",
38+
"react-router": "^6.16.0",
3939
"react-router-dom": "^6.14.1",
4040
"react-syntax-highlighter": "^15.5.0",
4141
"react-window": "^1.8.9",

0 commit comments

Comments
 (0)