-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update version for release (pre) (#9723)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Matt Brophy <[email protected]>
- Loading branch information
1 parent
6b6ce75
commit 1cef1a5
Showing
11 changed files
with
137 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# `react-router-dom-v5-compat` | ||
|
||
## 6.5.0-pre.0 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies: | ||
- `[email protected]` | ||
- `[email protected]` | ||
|
||
## 6.4.5 | ||
|
||
### Patch Changes | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# `react-router-dom` | ||
|
||
## 6.5.0-pre.0 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies: | ||
- `[email protected]` | ||
- `@remix-run/[email protected]` | ||
|
||
## 6.4.5 | ||
|
||
### Patch Changes | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# `react-router-native` | ||
|
||
## 6.5.0-pre.0 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies: | ||
- `[email protected]` | ||
|
||
## 6.4.5 | ||
|
||
### Patch Changes | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,52 @@ | ||
# `react-router` | ||
|
||
## 6.5.0-pre.0 | ||
|
||
### 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` | ||
|
||
### Patch Changes | ||
|
||
- Stop incorrectly matching on partial named parameters, i.e. `<Route path="prefix-:param">`, to align with how splat parameters work. If you were previously relying on this behavior then it's recommended to extract the static portion of the path at the `useParams` call site: ([#9506](https://github.com/remix-run/react-router/pull/9506)) | ||
|
||
```jsx | ||
// Old behavior at URL /prefix-123 | ||
<Route path="prefix-:id" element={<Comp /> }> | ||
|
||
function Comp() { | ||
let params = useParams(); // { id: '123' } | ||
let id = params.id; // "123" | ||
... | ||
} | ||
|
||
// New behavior at URL /prefix-123 | ||
<Route path=":id" element={<Comp /> }> | ||
|
||
function Comp() { | ||
let params = useParams(); // { id: 'prefix-123' } | ||
let id = params.id.replace(/^prefix-/, ''); // "123" | ||
... | ||
} | ||
``` | ||
|
||
- Updated dependencies: | ||
- `@remix-run/[email protected]` | ||
|
||
## 6.4.5 | ||
|
||
### Patch Changes | ||
|
This file contains 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
This file contains 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
This file contains 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