This repository was archived by the owner on Jan 19, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 4e295e8
authored
build(deps): Bump react-router from 6.16.0 to 6.20.0 in /api-editor/gui (#1471)
Bumps
[react-router](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router)
from 6.16.0 to 6.20.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.20.0</h2>
<p>Release notes are stored in the <code>CHANGELOG.md</code> file:</p>
<p><a
href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6200">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6200</a></p>
<h2>v6.19.0</h2>
<p>Release notes are stored in the <code>CHANGELOG.md</code> file:</p>
<p><a
href="https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6190">https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6190</a></p>
<h2>v6.18.0</h2>
<h2>Minor Changes</h2>
<h3>New Fetcher APIs</h3>
<p>Per this <a
href="https://github.com/remix-run/remix/discussions/7698">RFC</a>,
we've introduced some new APIs that give you more granular control over
your fetcher behaviors. (<a
href="https://redirect.github.com/remix-run/react-router/pull/10960">#10960</a>)</p>
<ul>
<li>You may now specify your own fetcher identifier via
<code>useFetcher({ key: string })</code>, which allows you to access the
same fetcher instance from different components in your application
without prop-drilling</li>
<li>Fetcher keys are now exposed on the fetchers returned from
<code>useFetchers</code> so that they can be looked up by
<code>key</code></li>
<li><code>Form</code> and <code>useSumbit</code> now support optional
<code>navigate</code>/<code>fetcherKey</code> props/params to allow
kicking off a fetcher submission under the hood with an optionally
user-specified <code>key</code>
<ul>
<li><code><Form method="post" navigate={false}
fetcherKey="my-key"></code></li>
<li><code>submit(data, { method: "post", navigate: false,
fetcherKey: "my-key" })</code></li>
<li>Invoking a fetcher in this way is ephemeral and stateless</li>
<li>If you need to access the state of one of these fetchers, you will
need to leverage <code>useFetchers()</code> or <code>useFetcher({ key
})</code> to look it up elsewhere</li>
</ul>
</li>
</ul>
<h3>Persistence Future Flag (<code>future.v7_fetcherPersist</code>)</h3>
<p>Per the same <a
href="https://github.com/remix-run/remix/discussions/7698">RFC</a> as
above, we've introduced a new <code>future.v7_fetcherPersist</code> flag
that allows you to opt-into the new fetcher persistence/cleanup
behavior. Instead of being immediately cleaned up on unmount, fetchers
will persist until they return to an <code>idle</code> state. This makes
pending/optimistic UI <em>much</em> easier in scenarios where the
originating fetcher needs to unmount. (<a
href="https://redirect.github.com/remix-run/react-router/pull/10962">#10962</a>)</p>
<ul>
<li>This is sort of a long-standing bug fix as the
<code>useFetchers()</code> API was always supposed to only reflect
<strong>in-flight</strong> fetcher information for pending/optimistic UI
-- it was not intended to reflect fetcher data or hang onto fetchers
after they returned to an <code>idle</code> state</li>
<li>Keep an eye out for the following specific behavioral changes when
opting into this flag and check your app for compatibility:
<ul>
<li>Fetchers that complete <em>while still mounted</em> will no longer
appear in <code>useFetchers()</code> after completion - they served no
purpose in there since you can access the data via
<code>useFetcher().data</code></li>
<li>Fetchers that previously unmounted <em>while in-flight</em> will not
be immediately aborted and will instead be cleaned up once they return
to an <code>idle</code> state
<ul>
<li>They will remain exposed via <code>useFetchers</code> while
in-flight so you can still access pending/optimistic data after
unmount</li>
<li>If a fetcher is no longer mounted when it completes, then it's
result will not be post processed - e.g., redirects will not be followed
and errors will not bubble up in the UI</li>
<li>However, if a fetcher was re-mounted elsewhere in the tree using the
same <code>key</code>, then it's result will be processed, even if the
originating fetcher was unmounted</li>
</ul>
</li>
</ul>
</li>
</ul>
<h3>Other Minor Changes</h3>
<ul>
<li>Add support for optional path segments in <code>matchPath</code> (<a
href="https://redirect.github.com/remix-run/react-router/pull/10768">#10768</a>)</li>
</ul>
<h2>Patch Changes</h2>
<ul>
<li>Fix the <code>future</code> prop on <code>BrowserRouter</code>,
<code>HashRouter</code> and <code>MemoryRouter</code> so that it accepts
a <code>Partial<FutureConfig></code> instead of requiring all
flags to be included (<a
href="https://redirect.github.com/remix-run/react-router/pull/10962">#10962</a>)</li>
<li>Fix <code>router.getFetcher</code>/<code>router.deleteFetcher</code>
type definitions which incorrectly specified <code>key</code> as an
optional parameter (<a
href="https://redirect.github.com/remix-run/react-router/pull/10960">#10960</a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/remix-run/react-router/compare/[email protected]@6.18.0"><code>6.17.0...6.18.0</code></a></p>
<h2>v6.17.0</h2>
<h2>Minor Changes</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</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.20.0</h2>
<h3>Minor Changes</h3>
<ul>
<li>Export the <code>PathParam</code> type from the public API (<a
href="https://redirect.github.com/remix-run/react-router/pull/10719">#10719</a>)</li>
</ul>
<h3>Patch Changes</h3>
<ul>
<li>Fix bug with <code>resolveTo</code> in splat routes (<a
href="https://redirect.github.com/remix-run/react-router/pull/11045">#11045</a>)
<ul>
<li>This is a follow up to <a
href="https://redirect.github.com/remix-run/react-router/pull/10983">#10983</a>
to handle the few other code paths using
<code>getPathContributingMatches</code></li>
<li>This removes the <code>UNSAFE_getPathContributingMatches</code>
export from <code>@remix-run/router</code> since we no longer need this
in the <code>react-router</code>/<code>react-router-dom</code>
layers</li>
</ul>
</li>
<li>Updated dependencies:
<ul>
<li><code>@remix-run/[email protected]</code></li>
</ul>
</li>
</ul>
<h2>6.19.0</h2>
<h3>Minor Changes</h3>
<ul>
<li>Add <code>unstable_flushSync</code> option to
<code>useNavigate</code>/<code>useSumbit</code>/<code>fetcher.load</code>/<code>fetcher.submit</code>
to opt-out of <code>React.startTransition</code> and into
<code>ReactDOM.flushSync</code> for state updates (<a
href="https://redirect.github.com/remix-run/react-router/pull/11005">#11005</a>)</li>
<li>Remove the <code>unstable_</code> prefix from the <a
href="https://reactrouter.com/en/main/hooks/use-blocker"><code>useBlocker</code></a>
hook as it's been in use for enough time that we are confident in the
API. We do not plan to remove the prefix from
<code>unstable_usePrompt</code> due to differences in how browsers
handle <code>window.confirm</code> that prevent React Router from
guaranteeing consistent/correct behavior. (<a
href="https://redirect.github.com/remix-run/react-router/pull/10991">#10991</a>)</li>
</ul>
<h3>Patch Changes</h3>
<ul>
<li>
<p>Fix <code>useActionData</code> so it returns proper contextual action
data and not <em>any</em> action data in the tree (<a
href="https://redirect.github.com/remix-run/react-router/pull/11023">#11023</a>)</p>
</li>
<li>
<p>Fix bug in <code>useResolvedPath</code> that would cause
<code>useResolvedPath(".")</code> in a splat route to lose the
splat portion of the URL path. (<a
href="https://redirect.github.com/remix-run/react-router/pull/10983">#10983</a>)</p>
<ul>
<li>1 parent 0465f72 commit 4e295e8Copy full SHA for 4e295e8
File tree
Expand file treeCollapse file tree
2 files changed
+16
-16
lines changedFilter options
- api-editor/gui
Expand file treeCollapse file tree
2 files changed
+16
-16
lines changedapi-editor/gui/package-lock.json
Copy file name to clipboardExpand all lines: api-editor/gui/package-lock.json+15-15Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
api-editor/gui/package.json
Copy file name to clipboardExpand all lines: api-editor/gui/package.json+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 |
| - | |
| 38 | + | |
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
|
0 commit comments