Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update version for release (pre) #9723

Merged
merged 2 commits into from
Dec 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,12 @@
"react-router-native": "6.4.5",
"@remix-run/router": "1.0.5"
},
"changesets": []
"changesets": [
"happy-balloons-buy",
"kind-dodos-shop",
"new-taxis-stare",
"pretty-kiwis-study",
"thin-kids-eat",
"violet-rules-rest"
]
}
8 changes: 8 additions & 0 deletions packages/react-router-dom-v5-compat/CHANGELOG.md
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:
- `react-router@6.5.0-pre.0`
- `react-router-dom@6.5.0-pre.0`

## 6.4.5

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/react-router-dom-v5-compat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router-dom-v5-compat",
"version": "6.4.5",
"version": "6.5.0-pre.0",
"description": "Migration path to React Router v6 from v4/5",
"keywords": [
"react",
Expand All @@ -24,7 +24,7 @@
"types": "./dist/index.d.ts",
"dependencies": {
"history": "^5.3.0",
"react-router": "6.4.5"
"react-router": "6.5.0-pre.0"
},
"peerDependencies": {
"react": ">=16.8",
Expand Down
8 changes: 8 additions & 0 deletions packages/react-router-dom/CHANGELOG.md
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:
- `react-router@6.5.0-pre.0`
- `@remix-run/router@1.1.0-pre.0`

## 6.4.5

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/react-router-dom/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router-dom",
"version": "6.4.5",
"version": "6.5.0-pre.0",
"description": "Declarative routing for React web applications",
"keywords": [
"react",
Expand All @@ -23,8 +23,8 @@
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"dependencies": {
"@remix-run/router": "1.0.5",
"react-router": "6.4.5"
"@remix-run/router": "1.1.0-pre.0",
"react-router": "6.5.0-pre.0"
},
"devDependencies": {
"react": "^18.2.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/react-router-native/CHANGELOG.md
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:
- `react-router@6.5.0-pre.0`

## 6.4.5

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/react-router-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router-native",
"version": "6.4.5",
"version": "6.5.0-pre.0",
"description": "Declarative routing for React Native applications",
"keywords": [
"react",
Expand All @@ -22,7 +22,7 @@
"types": "./dist/index.d.ts",
"dependencies": {
"@ungap/url-search-params": "^0.1.4",
"react-router": "6.4.5"
"react-router": "6.5.0-pre.0"
},
"devDependencies": {
"react": "^18.2.0",
Expand Down
47 changes: 47 additions & 0 deletions packages/react-router/CHANGELOG.md
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/router@1.1.0-pre.0`

## 6.4.5

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/react-router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router",
"version": "6.4.5",
"version": "6.5.0-pre.0",
"description": "Declarative routing for React",
"keywords": [
"react",
Expand All @@ -23,7 +23,7 @@
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"dependencies": {
"@remix-run/router": "1.0.5"
"@remix-run/router": "1.1.0-pre.0"
},
"devDependencies": {
"react": "^18.2.0"
Expand Down
49 changes: 49 additions & 0 deletions packages/router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,54 @@
# `@remix-run/router`

## 1.1.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"
...
}
```

- 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 error boundary tracking for multiple errors bubbling to the same boundary ([#9702](https://github.com/remix-run/react-router/pull/9702))

## 1.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/router",
"version": "1.0.5",
"version": "1.1.0-pre.0",
"description": "Nested/Data-driven/Framework-agnostic Routing",
"keywords": [
"remix",
Expand Down