Skip to content

Commit edd9ad4

Browse files
chore: Update version for release (#10935)
1 parent c1d0e50 commit edd9ad4

19 files changed

+25
-262
lines changed

.changeset/404-root-with-path.md

-5
This file was deleted.

.changeset/error-response-type.md

-5
This file was deleted.

.changeset/lift-start-view-transition.md

-6
This file was deleted.

.changeset/mighty-moles-compete.md

-5
This file was deleted.

.changeset/partial-future-config.md

-5
This file was deleted.

.changeset/pre.json

-20
This file was deleted.

.changeset/soft-forks-cough.md

-5
This file was deleted.

.changeset/start-view-transition-router.md

-5
This file was deleted.

.changeset/start-view-transition.md

-44
This file was deleted.

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

+3-19
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,12 @@
11
# `react-router-dom-v5-compat`
22

3-
## 6.17.0-pre.2
3+
## 6.17.0
44

55
### Patch Changes
66

77
- Updated dependencies:
8-
9-
10-
11-
## 6.17.0-pre.1
12-
13-
### Patch Changes
14-
15-
- Updated dependencies:
16-
17-
18-
19-
## 6.17.0-pre.0
20-
21-
### Patch Changes
22-
23-
- Updated dependencies:
24-
25-
8+
9+
2610

2711
## 6.16.0
2812

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-dom-v5-compat",
3-
"version": "6.17.0-pre.2",
3+
"version": "6.17.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.17.0-pre.2"
27+
"react-router": "6.17.0"
2828
},
2929
"peerDependencies": {
3030
"react": ">=16.8",

packages/react-router-dom/CHANGELOG.md

+6-19
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
11
# `react-router-dom`
22

3-
## 6.17.0-pre.2
4-
5-
### Patch Changes
6-
7-
- Export a separate `RouterProvider` from `react-router-dom` with `startViewTransition` support ([#10928](https://github.com/remix-run/react-router/pull/10928))
8-
- Updated dependencies:
9-
10-
11-
## 6.17.0-pre.1
12-
13-
### Patch Changes
14-
15-
- Updated dependencies:
16-
17-
18-
## 6.17.0-pre.0
3+
## 6.17.0
194

205
### Minor Changes
216

22-
- Add support for the [View Transitions API](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition) via `document.startViewTransition` to enable CSS animated transitions on SPA navigations in your application. ([#10916](https://github.com/remix-run/react-router/pull/10916))
7+
- Add experimental support for the [View Transitions API](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition) via `document.startViewTransition` to enable CSS animated transitions on SPA navigations in your application. ([#10916](https://github.com/remix-run/react-router/pull/10916))
238

249
The simplest approach to enabling a View Transition in your React Router app is via the new `<Link unstable_viewTransition>` prop. This will cause the navigation DOM update to be wrapped in `document.startViewTransition` which will enable transitions for the DOM update. Without any additional CSS styles, you'll get a basic cross-fade animation for your page.
2510

@@ -60,12 +45,14 @@
6045

6146
For more information on using the View Transitions API, please refer to the [Smooth and simple transitions with the View Transitions API](https://developer.chrome.com/docs/web-platform/view-transitions/) guide from the Google Chrome team.
6247

48+
Please note, that because the `ViewTransition` API is a DOM API, we now export a specific `RouterProvider` from `react-router-dom` with this functionality. If you are importing `RouterProvider` from `react-router`, then it will not support view transitions. ([#10928](https://github.com/remix-run/react-router/pull/10928)
49+
6350
### Patch Changes
6451

6552
- Log a warning and fail gracefully in `ScrollRestoration` when `sessionStorage` is unavailable ([#10848](https://github.com/remix-run/react-router/pull/10848))
6653
- Updated dependencies:
67-
- `@remix-run/[email protected]-pre.0`
68-
54+
- `@remix-run/[email protected]`
55+
6956

7057
## 6.16.0
7158

packages/react-router-dom/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-dom",
3-
"version": "6.17.0-pre.2",
3+
"version": "6.17.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.10.0-pre.0",
27-
"react-router": "6.17.0-pre.2"
26+
"@remix-run/router": "1.10.0",
27+
"react-router": "6.17.0"
2828
},
2929
"devDependencies": {
3030
"react": "^18.2.0",

packages/react-router-native/CHANGELOG.md

+2-16
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,11 @@
11
# `react-router-native`
22

3-
## 6.17.0-pre.2
3+
## 6.17.0
44

55
### Patch Changes
66

77
- Updated dependencies:
8-
9-
10-
## 6.17.0-pre.1
11-
12-
### Patch Changes
13-
14-
- Updated dependencies:
15-
16-
17-
## 6.17.0-pre.0
18-
19-
### Patch Changes
20-
21-
- Updated dependencies:
22-
8+
239

2410
## 6.16.0
2511

packages/react-router-native/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-native",
3-
"version": "6.17.0-pre.2",
3+
"version": "6.17.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.2.2",
25-
"react-router": "6.17.0-pre.2"
25+
"react-router": "6.17.0"
2626
},
2727
"devDependencies": {
2828
"react": "^18.2.0",

packages/react-router/CHANGELOG.md

+2-57
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,12 @@
11
# `react-router`
22

3-
## 6.17.0-pre.2
4-
5-
### Patch Changes
6-
7-
- Export a separate `RouterProvider` from `react-router-dom` with `startViewTransition` support ([#10928](https://github.com/remix-run/react-router/pull/10928))
8-
9-
## 6.17.0-pre.1
10-
11-
### Patch Changes
12-
13-
- [REMOVE] fix lint issues ([#10930](https://github.com/remix-run/react-router/pull/10930))
14-
15-
## 6.17.0-pre.0
16-
17-
### Minor Changes
18-
19-
- Add support for the [View Transitions API](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition) via `document.startViewTransition` to enable CSS animated transitions on SPA navigations in your application. ([#10916](https://github.com/remix-run/react-router/pull/10916))
20-
21-
The simplest approach to enabling a View Transition in your React Router app is via the new `<Link unstable_viewTransition>` prop. This will cause the navigation DOM update to be wrapped in `document.startViewTransition` which will enable transitions for the DOM update. Without any additional CSS styles, you'll get a basic cross-fade animation for your page.
22-
23-
If you need to apply more fine-grained styles for your animations, you can leverage the `unstable_useViewTransitionState` hook which will tell you when a transition is in progress and you can use that to apply classes or styles:
24-
25-
```jsx
26-
function ImageLink(to, src, alt) {
27-
let isTransitioning = unstable_useViewTransitionState(to);
28-
return (
29-
<Link to={to} unstable_viewTransition>
30-
<img
31-
src={src}
32-
alt={alt}
33-
style={{
34-
viewTransitionName: isTransitioning ? "image-expand" : "",
35-
}}
36-
/>
37-
</Link>
38-
);
39-
}
40-
```
41-
42-
You can also use the `<NavLink unstable_viewTransition>` shorthand which will manage the hook usage for you and automatically add a `transitioning` class to the `<a>` during the transition:
43-
44-
```css
45-
a.transitioning img {
46-
view-transition-name: "image-expand";
47-
}
48-
```
49-
50-
```jsx
51-
<NavLink to={to} unstable_viewTransition>
52-
<img src={src} alt={alt} />
53-
</NavLink>
54-
```
55-
56-
For an example usage of View Transitions with React Router, check out [our fork](https://github.com/brophdawg11/react-router-records) of the [Astro Records](https://github.com/Charca/astro-records) demo.
57-
58-
For more information on using the View Transitions API, please refer to the [Smooth and simple transitions with the View Transitions API](https://developer.chrome.com/docs/web-platform/view-transitions/) guide from the Google Chrome team.
3+
## 6.17.0
594

605
### Patch Changes
616

627
- Fix `RouterProvider` `future` prop type to be a `Partial<FutureConfig>` so that not all flags must be specified ([#10900](https://github.com/remix-run/react-router/pull/10900))
638
- Updated dependencies:
64-
- `@remix-run/[email protected]-pre.0`
9+
- `@remix-run/[email protected]`
6510

6611
## 6.16.0
6712

packages/react-router/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router",
3-
"version": "6.17.0-pre.2",
3+
"version": "6.17.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.10.0-pre.0"
26+
"@remix-run/router": "1.10.0"
2727
},
2828
"devDependencies": {
2929
"react": "^18.2.0"

0 commit comments

Comments
 (0)