chore(deps): bump react-router from 7.14.0 to 7.15.0#160
chore(deps): bump react-router from 7.14.0 to 7.15.0#160dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [react-router](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router) from 7.14.0 to 7.15.0. - [Release notes](https://github.com/remix-run/react-router/releases) - [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router/CHANGELOG.md) - [Commits](https://github.com/remix-run/react-router/commits/react-router@7.15.0/packages/react-router) --- updated-dependencies: - dependency-name: react-router dependency-version: 7.15.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
There was a problem hiding this comment.
Key Changes in React-Router 7.15.0
This update introduces several breaking changes for users who previously opted into unstable APIs, alongside performance improvements and bug fixes. Below is a breakdown of the most relevant changes:
Breaking Changes (Major)
-
Stabilized APIs: Several previously unstable APIs have been stabilized, requiring code updates if you were using them:
unstable_defaultShouldRevalidate→defaultShouldRevalidateunstable_mask→maskunstable_url→urlunstable_useTransitions→useTransitionsunstable_instrumentations→instrumentationsunstable_pattern→pattern
If your application uses any of these APIs, you will need to update your code to reflect the new naming conventions.
Performance Improvements (Info)
- Route Matching Optimizations: The update includes significant performance improvements for both server-side and client-side route matching:
- Pre-computing flattened/cached route branches reduces redundant calculations.
- Avoiding unnecessary calls to
matchRoutesin data router scenarios. - Benchmarks show a 10-30% improvement in request handling performance.
Security Enhancements (Minor)
- Nonce Support: The update adds
noncesupport to<Scripts>and<link rel="modulepreload">elements, which is useful for applications enforcing Content Security Policy (CSP).
Bug Fixes (Minor)
- Fixed a bug with
unstable_defaultShouldRevalidate={false}where parent routes without ashouldRevalidatefunction were incorrectly included in single fetch calls for new child route data.
Recommendations
- Review Stabilized APIs: If your application uses any of the previously unstable APIs, update them to their stabilized counterparts.
- Test Performance: While the performance improvements are significant, it is recommended to test the application under load to ensure the changes align with your expectations.
- Check for Additional Changes: Review the full changelog for any additional minor or patch changes that might impact your application.
This update is a dependency-only change and does not require modifications to application code unless you were using the stabilized APIs.
| "react-dom": "^19.0.0", | ||
| "react-i18next": "^17.0.2", | ||
| "react-router": "^7.14.0", | ||
| "react-router": "^7.15.0", |
There was a problem hiding this comment.
Breaking changes in stabilized APIs
The update stabilizes several previously unstable APIs (e.g., unstable_defaultShouldRevalidate → defaultShouldRevalidate, unstable_mask → mask). Consumers using these APIs will need to update their code to reflect the new naming conventions. This is a breaking change for those who opted into the unstable versions.
🔍 Audit Reference: SOVRI-MT-EBA2-8A69
Merging this PR will not alter performance
|
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| ❌ | from_status_code_500 |
125.3 ns | 154.4 ns | -18.88% |
| ❌ | from_status_code_404 |
154.7 ns | 183.9 ns | -15.86% |
| ⚡ | normalize_link_check_parallelism |
150 ns | 120.8 ns | +24.14% |
| ⚡ | normalize_max_concurrent |
150 ns | 120.8 ns | +24.14% |
| ⚡ | reject_invalid |
610.3 ns | 493.6 ns | +23.64% |
| ⚡ | split |
501.1 ns | 442.8 ns | +13.17% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing dependabot/npm_and_yarn/react-router-7.15.0 (86d57c6) with main (46d16cb)
Bumps react-router from 7.14.0 to 7.15.0.
Release notes
Sourced from react-router's releases.
Changelog
Sourced from react-router's changelog.
... (truncated)
Commits
97c8de7Release v7.15.0 (#15018)af5d49bUpdate change files againa993f09Update change files362635bMove chnageset to change filee756132chore: format49295b5Stabilize APIs (#14999)5f61543Client-side route matching optimizations (#14971)67518cbRemove unnecessary hasShouldRevalidate condition for opting out (#15012)6f18eddAdd nonce to scriptsmodulepreload(#15002)10a9686Migrate changeset to change fileDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.
Summary by cubic
Upgrade
react-routerfrom 7.14.0 to 7.15.0. This stabilizes previouslyunstable_*APIs and improves route matching performance; only update code if we used those unstable options.unstable_defaultShouldRevalidate→defaultShouldRevalidateunstable_instrumentations→instrumentations,unstable_pattern→pattern(types dropunstable_prefix)unstable_mask→mask;Location.unstable_mask→Location.maskunstable_normalizePath→normalizePath(static handler options)future.unstable_passThroughRequests→future.v8_passThroughRequestsunstable_url→urlunstable_useTransitions→useTransitionsunstable_subResourceIntegrityfrom runtime config; setsubResourceIntegrityinreact-router.config.tsWritten for commit 86d57c6. Summary will update on new commits.