Skip to content

Commit 1cef1a5

Browse files
mcanshgithub-actions[bot]brophdawg11
authored
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]>
1 parent 6b6ce75 commit 1cef1a5

File tree

11 files changed

+137
-11
lines changed

11 files changed

+137
-11
lines changed

.changeset/pre.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,12 @@
88
"react-router-native": "6.4.5",
99
"@remix-run/router": "1.0.5"
1010
},
11-
"changesets": []
11+
"changesets": [
12+
"happy-balloons-buy",
13+
"kind-dodos-shop",
14+
"new-taxis-stare",
15+
"pretty-kiwis-study",
16+
"thin-kids-eat",
17+
"violet-rules-rest"
18+
]
1219
}

packages/react-router-dom-v5-compat/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# `react-router-dom-v5-compat`
22

3+
## 6.5.0-pre.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
9+
10+
311
## 6.4.5
412

513
### Patch Changes

packages/react-router-dom-v5-compat/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-dom-v5-compat",
3-
"version": "6.4.5",
3+
"version": "6.5.0-pre.0",
44
"description": "Migration path to React Router v6 from v4/5",
55
"keywords": [
66
"react",
@@ -24,7 +24,7 @@
2424
"types": "./dist/index.d.ts",
2525
"dependencies": {
2626
"history": "^5.3.0",
27-
"react-router": "6.4.5"
27+
"react-router": "6.5.0-pre.0"
2828
},
2929
"peerDependencies": {
3030
"react": ">=16.8",

packages/react-router-dom/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# `react-router-dom`
22

3+
## 6.5.0-pre.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
9+
- `@remix-run/[email protected]`
10+
311
## 6.4.5
412

513
### Patch Changes

packages/react-router-dom/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-dom",
3-
"version": "6.4.5",
3+
"version": "6.5.0-pre.0",
44
"description": "Declarative routing for React web applications",
55
"keywords": [
66
"react",
@@ -23,8 +23,8 @@
2323
"module": "./dist/index.js",
2424
"types": "./dist/index.d.ts",
2525
"dependencies": {
26-
"@remix-run/router": "1.0.5",
27-
"react-router": "6.4.5"
26+
"@remix-run/router": "1.1.0-pre.0",
27+
"react-router": "6.5.0-pre.0"
2828
},
2929
"devDependencies": {
3030
"react": "^18.2.0",

packages/react-router-native/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# `react-router-native`
22

3+
## 6.5.0-pre.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
9+
310
## 6.4.5
411

512
### Patch Changes

packages/react-router-native/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-native",
3-
"version": "6.4.5",
3+
"version": "6.5.0-pre.0",
44
"description": "Declarative routing for React Native applications",
55
"keywords": [
66
"react",
@@ -22,7 +22,7 @@
2222
"types": "./dist/index.d.ts",
2323
"dependencies": {
2424
"@ungap/url-search-params": "^0.1.4",
25-
"react-router": "6.4.5"
25+
"react-router": "6.5.0-pre.0"
2626
},
2727
"devDependencies": {
2828
"react": "^18.2.0",

packages/react-router/CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,52 @@
11
# `react-router`
22

3+
## 6.5.0-pre.0
4+
5+
### Minor Changes
6+
7+
- Support for optional path segments ([#9650](https://github.com/remix-run/react-router/pull/9650))
8+
- You can now denote optional path segments with a `?` as the last character in a path segment
9+
- Optional params examples
10+
- `:lang?/about` will get expanded and match:
11+
- `/:lang/about`
12+
- `/about`
13+
- `/multistep/:widget1?/widget2?/widget3?` will get expanded and match:
14+
- `/multistep/:widget1/:widget2/:widget3`
15+
- `/multistep/:widget1/:widget2`
16+
- `/multistep/:widget1`
17+
- `/multistep`
18+
- Optional static segment example
19+
- `/fr?/about` will get expanded and match:
20+
- `/fr/about`
21+
- `/about`
22+
23+
### Patch Changes
24+
25+
- 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))
26+
27+
```jsx
28+
// Old behavior at URL /prefix-123
29+
<Route path="prefix-:id" element={<Comp /> }>
30+
31+
function Comp() {
32+
let params = useParams(); // { id: '123' }
33+
let id = params.id; // "123"
34+
...
35+
}
36+
37+
// New behavior at URL /prefix-123
38+
<Route path=":id" element={<Comp /> }>
39+
40+
function Comp() {
41+
let params = useParams(); // { id: 'prefix-123' }
42+
let id = params.id.replace(/^prefix-/, ''); // "123"
43+
...
44+
}
45+
```
46+
47+
- Updated dependencies:
48+
- `@remix-run/[email protected]`
49+
350
## 6.4.5
451

552
### Patch Changes

packages/react-router/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router",
3-
"version": "6.4.5",
3+
"version": "6.5.0-pre.0",
44
"description": "Declarative routing for React",
55
"keywords": [
66
"react",
@@ -23,7 +23,7 @@
2323
"module": "./dist/index.js",
2424
"types": "./dist/index.d.ts",
2525
"dependencies": {
26-
"@remix-run/router": "1.0.5"
26+
"@remix-run/router": "1.1.0-pre.0"
2727
},
2828
"devDependencies": {
2929
"react": "^18.2.0"

packages/router/CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,54 @@
11
# `@remix-run/router`
22

3+
## 1.1.0-pre.0
4+
5+
### Minor Changes
6+
7+
- Support for optional path segments ([#9650](https://github.com/remix-run/react-router/pull/9650))
8+
- You can now denote optional path segments with a `?` as the last character in a path segment
9+
- Optional params examples
10+
- `:lang?/about` will get expanded and match:
11+
- `/:lang/about`
12+
- `/about`
13+
- `/multistep/:widget1?/widget2?/widget3?` will get expanded and match:
14+
- `/multistep/:widget1/:widget2/:widget3`
15+
- `/multistep/:widget1/:widget2`
16+
- `/multistep/:widget1`
17+
- `/multistep`
18+
- Optional static segment example
19+
- `/fr?/about` will get expanded and match:
20+
- `/fr/about`
21+
- `/about`
22+
23+
### Patch Changes
24+
25+
- 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))
26+
27+
```jsx
28+
// Old behavior at URL /prefix-123
29+
<Route path="prefix-:id" element={<Comp /> }>
30+
31+
function Comp() {
32+
let params = useParams(); // { id: '123' }
33+
let id = params.id; // "123"
34+
...
35+
}
36+
37+
// New behavior at URL /prefix-123
38+
<Route path=":id" element={<Comp /> }>
39+
40+
function Comp() {
41+
let params = useParams(); // { id: 'prefix-123' }
42+
let id = params.id.replace(/^prefix-/, ''); // "123"
43+
...
44+
}
45+
```
46+
47+
- Fix requests sent to revalidating loaders so they reflect a GET request ([#9660](https://github.com/remix-run/react-router/pull/9660))
48+
- Persist `headers` on `loader` `request`'s after SSR document `action` request ([#9721](https://github.com/remix-run/react-router/pull/9721))
49+
- `GET` forms now expose a submission on the loading navigation ([#9695](https://github.com/remix-run/react-router/pull/9695))
50+
- Fix error boundary tracking for multiple errors bubbling to the same boundary ([#9702](https://github.com/remix-run/react-router/pull/9702))
51+
352
## 1.0.5
453

554
### Patch Changes

packages/router/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@remix-run/router",
3-
"version": "1.0.5",
3+
"version": "1.1.0-pre.0",
44
"description": "Nested/Data-driven/Framework-agnostic Routing",
55
"keywords": [
66
"remix",

0 commit comments

Comments
 (0)