Skip to content

Commit 3ffc272

Browse files
chore: Update version for release (pre) (#9169)
* chore: Update version for release (pre) * update changelogs * bump bundle size Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Matt Brophy <[email protected]>
1 parent 57c0b47 commit 3ffc272

File tree

13 files changed

+125
-13
lines changed

13 files changed

+125
-13
lines changed

.changeset/big-bags-report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
feat: add `relative=path` option for url-relative routing (#9160)
88

9-
Adds a `relative=path` option to navigation aspects to allow users to opt-into paths behaving relative to the current URL instead of the current route hierarchy. This is useful if you're sharing route patterns in a non-nested for UI reasons:
9+
Adds a `relative=path` option to navigation aspects to allow users to opt-into paths behaving relative to the current URL instead of the current route hierarchy. This is useful if you're sharing route patterns in a non-nested structure for UI reasons:
1010

1111
```jsx
1212
// Contact and EditContact do not share UI layout
@@ -18,7 +18,7 @@ function EditContact() {
1818
}
1919
```
2020

21-
Without this, the user would need to reconstruct the contacts/:id url using useParams and either hardcoding the /contacts prefix or parsing it from useLocation.
21+
Without this, the user would need to reconstruct the `contacts/:id` url using `useParams` and either hardcoding the `/contacts` prefix or parsing it from `useLocation`.
2222

2323
This applies to all path-related hooks and components:
2424

.changeset/pre.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"@remix-run/router": "0.2.0-pre.0"
1010
},
1111
"changesets": [
12+
"afraid-games-laugh",
1213
"afraid-parents-laugh",
14+
"beige-buckets-lick",
15+
"big-bags-report",
1316
"brave-shirts-sneeze",
1417
"chilled-beers-sell",
1518
"cuddly-dingos-tickle",
@@ -36,11 +39,14 @@
3639
"strong-bees-pay",
3740
"stupid-dryers-shout",
3841
"sweet-books-switch",
42+
"sweet-eggs-hug",
3943
"thick-lions-taste",
4044
"thirty-monkeys-cheer",
4145
"tough-zoos-cry",
4246
"tricky-falcons-peel",
4347
"unlucky-cows-rhyme",
44-
"weak-seas-kiss"
48+
"weak-seas-kiss",
49+
"wise-scissors-hug",
50+
"yellow-cherries-tell"
4551
]
4652
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"none": "10 kB"
114114
},
115115
"packages/react-router-dom/dist/umd/react-router-dom.production.min.js": {
116-
"none": "15.5 kB"
116+
"none": "16 kB"
117117
}
118118
}
119119
}

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.4.0-pre.13
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
9+
10+
311
## 6.4.0-pre.12
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.0-pre.12",
3+
"version": "6.4.0-pre.13",
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.0-pre.12"
27+
"react-router": "6.4.0-pre.13"
2828
},
2929
"peerDependencies": {
3030
"react": ">=16.8",

packages/react-router-dom/CHANGELOG.md

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

3+
## 6.4.0-pre.13
4+
5+
### Patch Changes
6+
7+
- fix: pass `useMatches` objects to `ScrollRestoration` `getKey` (#9157)
8+
- feat: add `relative=path` option for url-relative routing (#9160)
9+
10+
Adds a `relative=path` option to navigation aspects to allow users to opt-into paths behaving relative to the current URL instead of the current route hierarchy. This is useful if you're sharing route patterns in a non-nested structure for UI reasons:
11+
12+
```jsx
13+
// Contact and EditContact do not share UI layout
14+
<Route path="contacts/:id" element={<Contact />} />
15+
<Route path="contacts:id/edit" element={<EditContact />} />
16+
17+
function EditContact() {
18+
return <Link to=".." relative="path">Cancel</Link>
19+
}
20+
```
21+
22+
Without this, the user would need to reconstruct the `contacts/:id` url using `useParams` and either hardcoding the `/contacts` prefix or parsing it from `useLocation`.
23+
24+
This applies to all path-related hooks and components:
25+
26+
- `react-router`: `useHref`, `useResolvedPath`, `useNavigate`, `Navigate`
27+
- `react-router-dom`: `useLinkClickHandler`, `useFormAction`, `useSubmit`, `Link`, `Form`
28+
- `react-router-native`: `useLinkPressHandler`, `Link`
29+
30+
- fix: `useFormAction` should not include pathless splat portion (#9144)
31+
- Updated dependencies
32+
33+
334
## 6.4.0-pre.12
435

536
### Patch Changes

packages/react-router-dom/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",
3-
"version": "6.4.0-pre.12",
3+
"version": "6.4.0-pre.13",
44
"description": "Declarative routing for React web applications",
55
"keywords": [
66
"react",
@@ -23,7 +23,7 @@
2323
"module": "./dist/index.js",
2424
"types": "./dist/index.d.ts",
2525
"dependencies": {
26-
"react-router": "6.4.0-pre.12"
26+
"react-router": "6.4.0-pre.13"
2727
},
2828
"devDependencies": {
2929
"react": "^18.2.0",

packages/react-router-native/CHANGELOG.md

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

3+
## 6.4.0-pre.13
4+
5+
### Patch Changes
6+
7+
- feat: add `relative=path` option for url-relative routing (#9160)
8+
9+
Adds a `relative=path` option to navigation aspects to allow users to opt-into paths behaving relative to the current URL instead of the current route hierarchy. This is useful if you're sharing route patterns in a non-nested structure for UI reasons:
10+
11+
```jsx
12+
// Contact and EditContact do not share UI layout
13+
<Route path="contacts/:id" element={<Contact />} />
14+
<Route path="contacts:id/edit" element={<EditContact />} />
15+
16+
function EditContact() {
17+
return <Link to=".." relative="path">Cancel</Link>
18+
}
19+
```
20+
21+
Without this, the user would need to reconstruct the `contacts/:id` url using `useParams` and either hardcoding the `/contacts` prefix or parsing it from `useLocation`.
22+
23+
This applies to all path-related hooks and components:
24+
25+
- `react-router`: `useHref`, `useResolvedPath`, `useNavigate`, `Navigate`
26+
- `react-router-dom`: `useLinkClickHandler`, `useFormAction`, `useSubmit`, `Link`, `Form`
27+
- `react-router-native`: `useLinkPressHandler`, `Link`
28+
29+
- Updated dependencies
30+
31+
332
## 6.4.0-pre.12
433

534
### 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.0-pre.12",
3+
"version": "6.4.0-pre.13",
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.0-pre.12"
25+
"react-router": "6.4.0-pre.13"
2626
},
2727
"devDependencies": {
2828
"react": "^18.2.0",

packages/react-router/CHANGELOG.md

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

3+
## 6.4.0-pre.13
4+
5+
### Patch Changes
6+
7+
- feat: add `relative=path` option for url-relative routing (#9160)
8+
9+
Adds a `relative=path` option to navigation aspects to allow users to opt-into paths behaving relative to the current URL instead of the current route hierarchy. This is useful if you're sharing route patterns in a non-nested structure UI reasons:
10+
11+
```jsx
12+
// Contact and EditContact do not share UI layout
13+
<Route path="contacts/:id" element={<Contact />} />
14+
<Route path="contacts:id/edit" element={<EditContact />} />
15+
16+
function EditContact() {
17+
return <Link to=".." relative="path">Cancel</Link>
18+
}
19+
```
20+
21+
Without this, the user would need to reconstruct the `contacts/:id` url using `useParams` and either hardcoding the `/contacts` prefix or parsing it from `useLocation`.
22+
23+
This applies to all path-related hooks and components:
24+
25+
- `react-router`: `useHref`, `useResolvedPath`, `useNavigate`, `Navigate`
26+
- `react-router-dom`: `useLinkClickHandler`, `useFormAction`, `useSubmit`, `Link`, `Form`
27+
- `react-router-native`: `useLinkPressHandler`, `Link`
28+
29+
- Updated dependencies
30+
- @remix-run/router@0.2.0-pre.8
31+
332
## 6.4.0-pre.12
433

534
### 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.0-pre.12",
3+
"version": "6.4.0-pre.13",
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": "0.2.0-pre.7"
26+
"@remix-run/router": "0.2.0-pre.8"
2727
},
2828
"devDependencies": {
2929
"react": "^18.2.0"

packages/router/CHANGELOG.md

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

3+
## 0.2.0-pre.8
4+
5+
### Patch Changes
6+
7+
- fix: avoid uneccesary re-renders on `defer` resolution (#9155)
8+
- fix: pass `useMatches` objects to `ScrollRestoration` `getKey` (#9157)
9+
- fix: fetcher submission revalidating fetchers using wrong key (#9166)
10+
- fix: use a push navigation on submission errors (#9162)
11+
312
## 0.2.0-pre.7
413

514
### 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": "0.2.0-pre.7",
3+
"version": "0.2.0-pre.8",
44
"description": "Nested/Data-driven/Framework-agnostic Routing",
55
"keywords": [
66
"remix",

0 commit comments

Comments
 (0)