react-router-dom 6.17.0-pre.2 → 6.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,25 +1,10 @@
1
1
  # `react-router-dom`
2
2
 
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
- - `react-router@6.17.0-pre.2`
10
-
11
- ## 6.17.0-pre.1
12
-
13
- ### Patch Changes
14
-
15
- - Updated dependencies:
16
- - `react-router@6.17.0-pre.1`
17
-
18
- ## 6.17.0-pre.0
3
+ ## 6.17.0
19
4
 
20
5
  ### Minor Changes
21
6
 
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))
23
8
 
24
9
  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.
25
10
 
@@ -60,12 +45,14 @@
60
45
 
61
46
  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.
62
47
 
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
+
63
50
  ### Patch Changes
64
51
 
65
52
  - Log a warning and fail gracefully in `ScrollRestoration` when `sessionStorage` is unavailable ([#10848](https://github.com/remix-run/react-router/pull/10848))
66
53
  - Updated dependencies:
67
- - `@remix-run/router@1.10.0-pre.0`
68
- - `react-router@6.17.0-pre.0`
54
+ - `@remix-run/router@1.10.0`
55
+ - `react-router@6.17.0`
69
56
 
70
57
  ## 6.16.0
71
58
 
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router DOM v6.17.0-pre.2
2
+ * React Router DOM v6.17.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router DOM v6.17.0-pre.2
2
+ * React Router DOM v6.17.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router DOM v6.17.0-pre.2
2
+ * React Router DOM v6.17.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router DOM v6.17.0-pre.2
2
+ * React Router DOM v6.17.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router DOM v6.17.0-pre.2
2
+ * React Router DOM v6.17.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router DOM v6.17.0-pre.2
2
+ * React Router DOM v6.17.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-router-dom",
3
- "version": "6.17.0-pre.2",
3
+ "version": "6.17.0",
4
4
  "description": "Declarative routing for React web applications",
5
5
  "keywords": [
6
6
  "react",
@@ -23,8 +23,8 @@
23
23
  "module": "./dist/index.js",
24
24
  "types": "./dist/index.d.ts",
25
25
  "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"
28
28
  },
29
29
  "devDependencies": {
30
30
  "react": "^18.2.0",