Skip to content

Commit

Permalink
chore: Update version for release (pre) (#9723)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Brophy <matt@brophy.org>
  • Loading branch information
3 people committed Dec 13, 2022
1 parent 6b6ce75 commit 1cef1a5
Show file tree
Hide file tree
Showing 11 changed files with 137 additions and 11 deletions.
9 changes: 8 additions & 1 deletion .changeset/pre.json
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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

0 comments on commit 1cef1a5

Please sign in to comment.