chore(deps): bump the npm_and_yarn group across 1 directory with 2 updates
Bumps the npm_and_yarn group with 1 update in the / directory: react-router-dom.
Updates react-router-dom from 6.30.4 to 7.0.0
Changelog
Sourced from react-router-dom's changelog.
7.0.0
Major Changes
Remove the original
deferimplementation in favor of using raw promises via single fetch andturbo-stream. This removes these exports from React Router: (#11744)
deferAbortedDeferredErrortype TypedDeferredDataUNSAFE_DeferredDataUNSAFE_DEFERRED_SYMBOL,Use
createRemixRouter/RouterProviderinentry.clientinstead ofRemixBrowser(#11469)Remove single_fetch future flag. (#11522)
Remove
future.v7_startTransitionflag (#11696)Remove
future.v7_normalizeFormMethodfuture flag (#11697)Allow returning
undefinedfrom actions and loaders (#11680)update minimum node version to 18 (#11690)
Remove
future.v7_prependBasenamefrom the ionternalized@remix-run/routerpackage (#11726)Remove
future.v7_throwAbortReasonfrom internalized@remix-run/routerpackage (#11728)Add
exportsfield to all packages (#11675)node package no longer re-exports from react-router (#11702)
updates the minimum React version to 18 (#11689)
- Remove the
future.v7_partialHydrationflag (#11725)
- This also removes the
<RouterProvider fallbackElement>prop
- To migrate, move the
fallbackElementto ahydrateFallbackElement/HydrateFallbackon your root route- Also worth nothing there is a related breaking changer with this future flag:
- Without
future.v7_partialHydration(when usingfallbackElement),state.navigationwas populated during the initial load- With
future.v7_partialHydration,state.navigationremains in an"idle"state during the initial loadRemove
future.v7_fetcherPersistflag (#11731)Minor Changes
- Add prefetching support to
Link/NavLinkwhen using Remix SSR (#11402)- Enhance
ScrollRestorationso it can restore properly on an SSR'd document load (#11401)- Add built-in Remix-style hydration support to
RouterProvider. When running from a Remix-SSR'd HTML payload with the properwindowvariables (__remixContext,__remixManifest,__remixRouteModules), you don't need to pass arouterprop andRouterProviderwill create therouterfor you internally. (#11396) (#11400)Patch Changes
... (truncated)
Commits
e8e3b00chore: Update version for release (#12344)1499f3echore: Update version for release (pre) (#12315)995bcbbchore: Update version for release (pre) (#12235)0e9b346chore: Update version for release (pre) (#12205)6576bd0chore: Update version for release (pre) (#12202)8daac72Merge branch 'dev' into release-next2d5924ffeat: configure export conditions properly (#12136)18dc8b8chore: Update version for release (pre) (#12184)fde6951Merge branch 'dev' into release-next813497aDrop support for Node 18 and installGlobals (#12171)- Additional commits viewable in compare view
Attestation changes
This version has no provenance attestation, while the previous version (6.30.4) was attested. Review the package versions before updating.
Updates react-router from 6.30.4 to 7.0.0
Release notes
Sourced from react-router's releases.
v7.0.0
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v700
Changelog
Sourced from react-router's changelog.
7.0.0
Major Changes
Remove the original
deferimplementation in favor of using raw promises via single fetch andturbo-stream. This removes these exports from React Router: (#11744)
deferAbortedDeferredErrortype TypedDeferredDataUNSAFE_DeferredDataUNSAFE_DEFERRED_SYMBOL,
- Collapse
@remix-run/routerintoreact-router(#11505)- Collapse
react-router-domintoreact-router- Collapse
@remix-run/server-runtimeintoreact-router- Collapse
@remix-run/testingintoreact-routerRemove single fetch future flag. (#11522)
Drop support for Node 16, React Router SSR now requires Node 18 or higher (#11391)
Remove
future.v7_startTransitionflag (#11696)
- Expose the underlying router promises from the following APIs for compsition in React 19 APIs: (#11521)
useNavigate()useSubmituseFetcher().loaduseFetcher().submituseRevalidator.revalidateRemove
future.v7_normalizeFormMethodfuture flag (#11697)For Remix consumers migrating to React Router, the
cryptoglobal from the Web Crypto API is now required when using cookie and session APIs. This means that the following APIs are provided fromreact-routerrather than platform-specific packages: (#11837)
createCookiecreateCookieSessionStoragecreateMemorySessionStoragecreateSessionStorageFor consumers running older versions of Node, the
installGlobalsfunction from@remix-run/nodehas been updated to defineglobalThis.crypto, using Node'srequire('node:crypto').webcryptoimplementation.Since platform-specific packages no longer need to implement this API, the following low-level APIs have been removed:
createCookieFactorycreateSessionStorageFactorycreateCookieSessionStorageFactorycreateMemorySessionStorageFactoryImports/Exports cleanup (#11840)
- Removed the following exports that were previously public API from
@remix-run/router
- types
AgnosticDataIndexRouteObjectAgnosticDataNonIndexRouteObject
... (truncated)
Commits
e8e3b00chore: Update version for release (#12344)1499f3echore: Update version for release (pre) (#12315)fd76ac8Merge branch 'dev' into release-next1217253add export conditions for route module types (#12312)b0e037fun-deprecate types for library mode (#12309)144a89afix types forAwait's render prop (#12298)7d365edmatches as component prop (#12291)7d92685typegen: not ignored by skipLibCheck (#12289)2bd6740Addreact-router.config.ts(#12251)5a7b291typegen:+types.\<route>->+types/\<route>(#12284)- Additional commits viewable in compare view
Attestation changes
This version has no provenance attestation, while the previous version (6.30.4) was attested. Review the package versions before updating.
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions
You can disable automated security fix PRs for this repo from the Security Alerts page.
Summary by cubic
Upgrade routing to React Router v7 by bumping react-router-dom and react-router to 7.0.0 for the latest APIs and compatibility improvements.
-
Dependencies
react-router-dom: 6.30.4 → 7.0.0 (bringsreact-router7.0.0)- Drops
@remix-run/router; adds transitivecookie,set-cookie-parser,turbo-stream - Peer deps:
react/react-dom≥ 18
-
Migration
- Use Node 20+ in dev, CI, and production
- Remove v6-only APIs like
deferand<RouterProvider fallbackElement>; migrate to v7 patterns (raw promises; roothydrateFallbackElement) - Replace any
@remix-run/routerimports withreact-router
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.