Sourced from react-router's releases.
v7.12.0
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v7120
v7.11.0
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v7110
v7.10.1
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v7101
v7.10.0
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v7100
v7.9.6
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v796
v7.9.5
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v795
v7.9.4
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v794
v7.9.3
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v793
v7.9.2
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v792
v7.9.1
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v791
v7.9.0
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v790
Sourced from react-router's changelog.
7.12.0
Minor Changes
- Add additional layer of CSRF protection by rejecting submissions to UI routes from external origins. If you need to permit access to specific external origins, you can specify them in the
react-router.config.tsconfigallowedActionOriginsfield. (#14708)Patch Changes
Fix
generatePathwhen used with suffixed params (i.e., "/books/:id.json") (#14269)Export
UNSAFE_createMemoryHistoryandUNSAFE_createHashHistoryalongsideUNSAFE_createBrowserHistoryfor consistency. These are not intended to be used for new apps but intended to help apps usiongunstable_HistoryRoutermigrate from v6->v7 so they can adopt the newer APIs. (#14663)Escape HTML in scroll restoration keys (#14705)
Validate redirect locations (#14706)
[UNSTABLE] Pass
<Scripts nonce>value through to the underlyingimportmapscripttag when usingfuture.unstable_subResourceIntegrity(#14675)[UNSTABLE] Add a new
future.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/
URL /a/b/cHTTP pathname requestpathname`Document /a/b/c/a/b/c✅Data /a/b/c.data/a/b/c✅
URL /a/b/c/HTTP pathname requestpathname`Document /a/b/c//a/b/c/✅Data /a/b/c.data/a/b/c⚠️With this flag enabled, these pathnames will be made consistent though a new
_.dataformat for client-side.datarequests:
URL /a/b/cHTTP pathname requestpathname`Document /a/b/c/a/b/c✅Data /a/b/c.data/a/b/c✅
URL /a/b/c/HTTP pathname requestpathname`Document /a/b/c//a/b/c/✅Data /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 cases.Preserve
clientLoader.hydrate=truewhen using<HydratedRouter unstable_instrumentations>(#14674)
... (truncated)
26653a6
chore: Update version for release (#14712)7ac2346
chore: Update version for release (pre) (#14709)75b1ef5
Add origin checks for UI route submissions (#14708)c05ef93
Validate redirect locations (#14706)c89c32c
Escape HTML in scroll restoration keys (#14705)cbcbf30
fix: pass nonce to importmap script when using subResourceIntegrity (#14675)30f6c1d
fix(react-router): handle parameters with static suffixes in
generatePath (#1...7f140e0
Handle data requests with trailing slash consistently (#14644)1954af6
Preserve hydrate property on client loaders during instrumentation (#14674)5ce5cd4
chore: formatThis version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for react-router since your current version.