Skip to content

Commit 7a4e20d

Browse files
chore: Update version for release (pre) (#13014)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 49f992e commit 7a4e20d

File tree

23 files changed

+150
-11
lines changed

23 files changed

+150
-11
lines changed

.changeset/pre.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@
2626
},
2727
"changesets": [
2828
"afraid-buses-pay",
29+
"dull-balloons-boil",
2930
"fast-olives-invent",
3031
"fresh-buttons-sit",
32+
"khaki-rocks-cover",
3133
"late-nails-hear",
3234
"prerender-invalid-exports",
3335
"prerender-spa-fallback",
@@ -37,6 +39,7 @@
3739
"stale-ways-ring",
3840
"stupid-mirrors-prove",
3941
"thin-rockets-fly",
42+
"three-eyes-flow",
4043
"unlucky-dolphins-chew",
4144
"young-stingrays-begin"
4245
]

packages/create-react-router/CHANGELOG.md

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

3+
## 7.2.0-pre.1
4+
35
## 7.2.0-pre.0
46

57
## 7.1.5

packages/create-react-router/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-react-router",
3-
"version": "7.2.0-pre.0",
3+
"version": "7.2.0-pre.1",
44
"description": "Create a new React Router app",
55
"homepage": "https://reactrouter.com",
66
"bugs": {

packages/react-router-architect/CHANGELOG.md

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

3+
## 7.2.0-pre.1
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
9+
- `@react-router/[email protected]`
10+
311
## 7.2.0-pre.0
412

513
### Patch Changes

packages/react-router-architect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-router/architect",
3-
"version": "7.2.0-pre.0",
3+
"version": "7.2.0-pre.1",
44
"description": "Architect server request handler for React Router",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router-cloudflare/CHANGELOG.md

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

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

512
### Patch Changes

packages/react-router-cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-router/cloudflare",
3-
"version": "7.2.0-pre.0",
3+
"version": "7.2.0-pre.1",
44
"description": "Cloudflare platform abstractions for React Router",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router-dev/CHANGELOG.md

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

3+
## 7.2.0-pre.1
4+
5+
### Minor Changes
6+
7+
- New type-safe `href` utility that guarantees links point to actual paths in your app ([#13012](https://github.com/remix-run/react-router/pull/13012))
8+
9+
```tsx
10+
import { href } from "react-router";
11+
12+
export default function Component() {
13+
const link = href("/blog/:slug", { slug: "my-first-post" });
14+
return (
15+
<main>
16+
<Link to={href("/products/:id", { id: "asdf" })} />
17+
<NavLink to={href("/:lang?/about", { lang: "en" })} />
18+
</main>
19+
);
20+
}
21+
```
22+
23+
### Patch Changes
24+
25+
- Fix typegen for repeated params ([#13012](https://github.com/remix-run/react-router/pull/13012))
26+
27+
In React Router, path parameters are keyed by their name.
28+
So for a path pattern like `/a/:id/b/:id?/c/:id`, the last `:id` will set the value for `id` in `useParams` and the `params` prop.
29+
For example, `/a/1/b/2/c/3` will result in the value `{ id: 3 }` at runtime.
30+
31+
Previously, generated types for params incorrectly modeled repeated params with an array.
32+
So `/a/1/b/2/c/3` generated a type like `{ id: [1,2,3] }`.
33+
34+
To be consistent with runtime behavior, the generated types now correctly model the "last one wins" semantics of path parameters.
35+
So `/a/1/b/2/c/3` now generates a type like `{ id: 3 }`.
36+
37+
- Fix `ArgError: unknown or unexpected option: --version` when running `react-router --version` ([#13012](https://github.com/remix-run/react-router/pull/13012))
38+
- Updated dependencies:
39+
40+
- `@react-router/[email protected]`
41+
- `@react-router/[email protected]`
42+
343
## 7.2.0-pre.0
444

545
### Minor Changes

packages/react-router-dev/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-router/dev",
3-
"version": "7.2.0-pre.0",
3+
"version": "7.2.0-pre.1",
44
"description": "Dev tools and CLI for React Router",
55
"homepage": "https://reactrouter.com",
66
"bugs": {

packages/react-router-dom/CHANGELOG.md

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

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

512
### Patch Changes

0 commit comments

Comments
 (0)