Skip to content

Comments

Update dependency react-router-dom to v7#43892

Merged
tbradsha merged 5 commits intotrunkfrom
renovate/major-react-router-monorepo
Jun 13, 2025
Merged

Update dependency react-router-dom to v7#43892
tbradsha merged 5 commits intotrunkfrom
renovate/major-react-router-monorepo

Conversation

@matticbot
Copy link
Contributor

This PR contains the following updates:

Package Type Update Change
react-router-dom (source) dependencies major 6.30.0 -> 7.6.2

Release Notes

remix-run/react-router (react-router-dom)

v7.6.2

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.6.2

v7.6.1

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.6.1

v7.6.0

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.6.0

v7.5.3

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.5.3

v7.5.2

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.5.2

v7.5.1

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.5.1

v7.5.0

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.5.0

v7.4.1

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.4.1

v7.4.0

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.4.0

v7.3.0

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.3.0

v7.2.0

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.2.0

v7.1.5

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.1.5

v7.1.4

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.1.4

v7.1.3

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.1.3

v7.1.2

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.1.2

v7.1.1

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.1.1

v7.1.0

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.1.0

v7.0.2

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.0.2

v7.0.1

Compare Source

Patch Changes
  • Updated dependencies:
    • react-router@7.0.1

v7.0.0

Compare Source

Major Changes
  • Remove the original defer implementation in favor of using raw promises via single fetch and turbo-stream. This removes these exports from React Router: (#​11744)

    • defer
    • AbortedDeferredError
    • type TypedDeferredData
    • UNSAFE_DeferredData
    • UNSAFE_DEFERRED_SYMBOL,
  • Use createRemixRouter/RouterProvider in entry.client instead of RemixBrowser (#​11469)

  • Remove single fetch future flag. (#​11522)

  • Remove future.v7_startTransition flag (#​11696)

  • Remove future.v7_normalizeFormMethod future flag (#​11697)

  • Allow returning undefined from actions and loaders (#​11680)

  • update minimum node version to 18 (#​11690)

  • Remove future.v7_prependBasename from the ionternalized @remix-run/router package (#​11726)

  • Remove future.v7_throwAbortReason from internalized @remix-run/router package (#​11728)

  • Add exports field 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_partialHydration flag (#​11725)
      • This also removes the <RouterProvider fallbackElement> prop
        • To migrate, move the fallbackElement to a hydrateFallbackElement/HydrateFallback on your root route
      • Also worth nothing there is a related breaking changer with this future flag:
        • Without future.v7_partialHydration (when using fallbackElement), state.navigation was populated during the initial load
        • With future.v7_partialHydration, state.navigation remains in an "idle" state during the initial load
  • Remove future.v7_fetcherPersist flag (#​11731)

Minor Changes
  • Add prefetching support to Link/NavLink when using Remix SSR (#​11402)
  • Enhance ScrollRestoration so 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 proper window variables (__remixContext, __remixManifest, __remixRouteModules), you don't need to pass a router prop and RouterProvider will create the router for you internally. (#​11396) (#​11400)
Patch Changes
  • Memoize some RouterProvider internals to reduce uneccesary re-renders (#​11817)
  • Updated dependencies:
    • react-router@7.0.0

v6.30.1

Compare Source


Configuration

📅 Schedule: Branch creation - Between 12:00 AM and 02:59 AM, on day 1 of the month ( * 0-2 1 * * ) in timezone UTC, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@matticbot matticbot added [Status] Needs Review This PR is ready for review. [Type] Janitorial labels Jun 10, 2025
@matticbot matticbot requested a review from a team June 10, 2025 20:45
@matticbot matticbot added [Status] Needs Review This PR is ready for review. [Type] Janitorial labels Jun 10, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jun 10, 2025

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack or WordPress.com Site Helper), and enable the renovate/major-react-router-monorepo branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack renovate/major-react-router-monorepo
bin/jetpack-downloader test jetpack-mu-wpcom-plugin renovate/major-react-router-monorepo

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions github-actions bot added [Feature] Contact Form [Package] Forms [Package] My Jetpack [Package] Subscribers Dashboard [Package] VideoPress [Plugin] Boost A feature to speed up the site and improve performance. [Plugin] CRM Issues about the Jetpack CRM plugin [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] Protect A plugin with features to protect a site: brute force protection, security scanning, and a WAF. labels Jun 10, 2025
@tbradsha tbradsha self-assigned this Jun 10, 2025
@jp-launch-control
Copy link

jp-launch-control bot commented Jun 10, 2025

Code Coverage Summary

This PR did not change code coverage!

That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷

Full summary · PHP report · JS report

@matticbot
Copy link
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@tbradsha tbradsha force-pushed the renovate/major-react-router-monorepo branch from c71d2e3 to ec59453 Compare June 11, 2025 16:17
@github-actions github-actions bot added [Tests] Includes Tests Admin Page React-powered dashboard under the Jetpack menu labels Jun 11, 2025
anomiex
anomiex previously approved these changes Jun 13, 2025
Copy link
Contributor

@anomiex anomiex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, seems to work in some clicking around.

react: '>=18'
react-dom: '>=18'

react-router@6.30.0:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too bad @automattic/components still depends on v6 so we still have to have this too.

@anomiex
Copy link
Contributor

anomiex commented Jun 13, 2025

Just spotted this that might be able to be removed now that we're adding it globally

// Needed for react-dom 18
if ( ! global.TextEncoder ) {
const { TextEncoder, TextDecoder } = require( 'node:util' );
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;
}

@tbradsha
Copy link
Contributor

Just spotted this that might be able to be removed now that we're adding it globally

Consolidated the polyfill here (and included the wrapper which is unneeded for now but could prevent conflicts down the road): f2cd200

@tbradsha tbradsha merged commit 0597e87 into trunk Jun 13, 2025
74 checks passed
@tbradsha tbradsha deleted the renovate/major-react-router-monorepo branch June 13, 2025 14:47
@github-actions github-actions bot removed the [Status] Needs Review This PR is ready for review. label Jun 13, 2025
mikestottuk pushed a commit that referenced this pull request Jun 26, 2025
* Update dependency react-router-dom to v7

* Polyfill TextEncoder

* Oops, use CommonJS

* Remove now-unneeded future flags

* Consolidate polyfill

---------

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: tbradsha <32492176+tbradsha@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Admin Page React-powered dashboard under the Jetpack menu [Feature] Contact Form [Package] Forms [Package] My Jetpack [Package] Subscribers Dashboard [Package] VideoPress [Plugin] Boost A feature to speed up the site and improve performance. [Plugin] CRM Issues about the Jetpack CRM plugin [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] Protect A plugin with features to protect a site: brute force protection, security scanning, and a WAF. [Tests] Includes Tests [Type] Janitorial

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants