Update dependency remix-run/react-router to v7.12.0#132
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
7.11.0→7.12.0Release Notes
remix-run/react-router (remix-run/react-router)
v7.12.0Compare Source
Date: 2026-01-07
Security Notice
This release addresses 3 security vulnerabilities:
Minor Changes
react-router- Add additional layer of CSRF protection by rejecting submissions to UI routes from external origins (#14708)allowedActionOriginsconfig field inreact-router.config.tswhere you can specify external originsPatch Changes
react-router- FixgeneratePathwhen used with suffixed params (i.e.,/books/:id.json) (#14269)react-router- Escape HTML in scroll restoration keys (#14705)react-router- Validate redirect locations (#14706)@react-router/dev- FixMaximum call stack size exceedederrors when HMR is triggered against code with cyclic imports (#14522)@react-router/dev- Skip SSR middleware invite previewserver for SPA mode (#14673)Unstable Changes
react-router- PreserveclientLoader.hydrate=truewhen using<HydratedRouter unstable_instrumentations>(#14674)react-router- Pass<Scripts nonce>value through to the underlyingimportmapscripttag when usingfuture.unstable_subResourceIntegrity(#14675)react-router- ExportUNSAFE_createMemoryHistoryandUNSAFE_createHashHistoryalongsideUNSAFE_createBrowserHistoryfor consistency (#14663)unstable_HistoryRoutermigrate from v6->v7 so they can adopt the newer APIs@react-router/dev- Add a newfuture.unstable_trailingSlashAwareDataRequestsflag to provide consistent behavior ofrequest.pathnameinsidemiddleware,loader, andactionfunctions on document and data requests when a trailing slash is present in the browser URL. (#14644)Currently, your HTTP and
requestpathnames would be as follows for/a/b/cand/a/b/c//a/b/crequestpathname`/a/b/c/a/b/c✅/a/b/c.data/a/b/c✅/a/b/c/requestpathname`/a/b/c//a/b/c/✅/a/b/c.data/a/b/cWith this flag enabled, these pathnames will be made consistent though a new
_.dataformat for client-side.datarequests:/a/b/crequestpathname`/a/b/c/a/b/c✅/a/b/c.data/a/b/c✅/a/b/c/requestpathname`/a/b/c//a/b/c/✅/a/b/c/_.data⬅️/a/b/c/✅This a bug fix but we are putting it behind an opt-in flag because it has the potential to be a "breaking bug fix" if you are relying on the URL format for any other application or caching logic
Enabling this flag also changes the format of client side
.datarequests from/_root.datato/_.datawhen navigating to/to align with the new format - This does not impact therequestpathname which is still/in all casesFull Changelog:
v7.11.0...v7.12.0Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (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.
This PR was generated by Mend Renovate. View the repository job log.