@remix-run/router
Advanced tools
Comparing version 1.6.0-pre.0 to 1.6.0
# `@remix-run/router` | ||
## 1.6.0-pre.0 | ||
## 1.6.0 | ||
### Minor Changes | ||
- - Enable relative routing in the `@remix-run/router` when providing a source route ID from which the path is relative to: ([#10336](https://github.com/remix-run/react-router/pull/10336)) | ||
- Enable relative routing in the `@remix-run/router` when providing a source route ID from which the path is relative to: ([#10336](https://github.com/remix-run/react-router/pull/10336)) | ||
- Example: `router.navigate("../path", { fromRouteId: "some-route" })`. | ||
- This also applies to `router.fetch` which already receives a source route ID | ||
- Example: `router.navigate("../path", { fromRouteId: "some-route" })`. | ||
- This also applies to `router.fetch` which already receives a source route ID | ||
- Introduce a new `@remix-run/router` `future.v7_prependBasename` flag to enable `basename` prefixing to all paths coming into `router.navigate` and `router.fetch`. | ||
- Previously the `basename` was prepended in the React Router layer, but now that relative routing is being handled by the router we need prepend the `basename` _after_ resolving any relative paths | ||
- This also enables `basename` support in `useFetcher` as well | ||
- Introduce a new `@remix-run/router` `future.v7_prependBasename` flag to enable `basename` prefixing to all paths coming into `router.navigate` and `router.fetch`. | ||
- Previously the `basename` was prepended in the React Router layer, but now that relative routing is being handled by the router we need prepend the `basename` _after_ resolving any relative paths | ||
- This also enables `basename` support in `useFetcher` as well | ||
### Patch Changes | ||
@@ -17,0 +18,0 @@ |
/** | ||
* @remix-run/router v1.6.0-pre.0 | ||
* @remix-run/router v1.6.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
{ | ||
"name": "@remix-run/router", | ||
"version": "1.6.0-pre.0", | ||
"version": "1.6.0", | ||
"description": "Nested/Data-driven/Framework-agnostic Routing", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
2034336