@remix-run/router
Advanced tools
Comparing version 1.1.0-pre.1 to 1.1.0
# `@remix-run/router` | ||
## 1.1.0-pre.1 | ||
## 1.1.0 | ||
### Patch Changes | ||
This release introduces support for [Optional Route Segments](https://github.com/remix-run/react-router/issues/9546). Now, adding a `?` to the end of any path segment will make that entire segment optional. This works for both static segments and dynamic parameters. | ||
- Fix issue with deeply nested optional segments ([#9727](https://github.com/remix-run/react-router/pull/9727)) | ||
**Optional Params Examples** | ||
## 1.1.0-pre.0 | ||
- Path `lang?/about` will match: | ||
- `/:lang/about` | ||
- `/about` | ||
- Path `/multistep/:widget1?/widget2?/widget3?` will match: | ||
- `/multistep` | ||
- `/multistep/:widget1` | ||
- `/multistep/:widget1/:widget2` | ||
- `/multistep/:widget1/:widget2/:widget3` | ||
**Optional Static Segment Example** | ||
- Path `/home?` will match: | ||
- `/` | ||
- `/home` | ||
- Path `/fr?/about` will match: | ||
- `/about` | ||
- `/fr/about` | ||
### Minor Changes | ||
- Support for optional path segments ([#9650](https://github.com/remix-run/react-router/pull/9650)) | ||
- You can now denote optional path segments with a `?` as the last character in a path segment | ||
- Optional params examples | ||
- `:lang?/about` will get expanded and match: | ||
- `/:lang/about` | ||
- `/about` | ||
- `/multistep/:widget1?/widget2?/widget3?` will get expanded and match: | ||
- `/multistep/:widget1/:widget2/:widget3` | ||
- `/multistep/:widget1/:widget2` | ||
- `/multistep/:widget1` | ||
- `/multistep` | ||
- Optional static segment example | ||
- `/fr?/about` will get expanded and match: | ||
- `/fr/about` | ||
- `/about` | ||
- Allows optional routes and optional static segments ([#9650](https://github.com/remix-run/react-router/pull/9650)) | ||
@@ -53,5 +55,6 @@ ### Patch Changes | ||
- Persist `headers` on `loader` `request`'s after SSR document `action` request ([#9721](https://github.com/remix-run/react-router/pull/9721)) | ||
- Fix requests sent to revalidating loaders so they reflect a GET request ([#9660](https://github.com/remix-run/react-router/pull/9660)) | ||
- Persist `headers` on `loader` `request`'s after SSR document `action` request ([#9721](https://github.com/remix-run/react-router/pull/9721)) | ||
- `GET` forms now expose a submission on the loading navigation ([#9695](https://github.com/remix-run/react-router/pull/9695)) | ||
- Fix issue with deeply nested optional segments ([#9727](https://github.com/remix-run/react-router/pull/9727)) | ||
- GET forms now expose a submission on the loading navigation ([#9695](https://github.com/remix-run/react-router/pull/9695)) | ||
- Fix error boundary tracking for multiple errors bubbling to the same boundary ([#9702](https://github.com/remix-run/react-router/pull/9702)) | ||
@@ -58,0 +61,0 @@ |
/** | ||
* @remix-run/router v1.1.0-pre.1 | ||
* @remix-run/router v1.1.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
{ | ||
"name": "@remix-run/router", | ||
"version": "1.1.0-pre.1", | ||
"version": "1.1.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
1653661
1