react-router-dom 6.21.0-pre.2 → 6.21.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 +3 -19
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/react-router-dom.development.js +3 -3
- package/dist/react-router-dom.development.js.map +1 -1
- package/dist/react-router-dom.production.min.js +2 -2
- package/dist/react-router-dom.production.min.js.map +1 -1
- package/dist/umd/react-router-dom.development.js +3 -3
- package/dist/umd/react-router-dom.development.js.map +1 -1
- package/dist/umd/react-router-dom.production.min.js +2 -2
- package/dist/umd/react-router-dom.production.min.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
# `react-router-dom`
|
|
2
2
|
|
|
3
|
-
## 6.21.0
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- [Remove] Fix server future plumbing ([`f9d7ed62`](https://github.com/remix-run/react-router/commit/f9d7ed62904766013d05a1642232d73e47f3bc27))
|
|
8
|
-
- Updated dependencies:
|
|
9
|
-
- `react-router@6.21.0-pre.2`
|
|
10
|
-
|
|
11
|
-
## 6.21.0-pre.1
|
|
12
|
-
|
|
13
|
-
### Patch Changes
|
|
14
|
-
|
|
15
|
-
- [REMOVE] Fix plumbing of future flags ([`558d7936`](https://github.com/remix-run/react-router/commit/558d7936cc8fe643374a2c9a9fdcf022e8c4c939))
|
|
16
|
-
- Updated dependencies:
|
|
17
|
-
- `react-router@6.21.0-pre.1`
|
|
18
|
-
|
|
19
|
-
## 6.21.0-pre.0
|
|
3
|
+
## 6.21.0
|
|
20
4
|
|
|
21
5
|
### Minor Changes
|
|
22
6
|
|
|
@@ -154,8 +138,8 @@
|
|
|
154
138
|
### Patch Changes
|
|
155
139
|
|
|
156
140
|
- Updated dependencies:
|
|
157
|
-
- `@remix-run/router@1.14.0
|
|
158
|
-
- `react-router@6.21.0
|
|
141
|
+
- `@remix-run/router@1.14.0`
|
|
142
|
+
- `react-router@6.21.0`
|
|
159
143
|
|
|
160
144
|
## 6.20.1
|
|
161
145
|
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React Router DOM v6.21.0
|
|
2
|
+
* React Router DOM v6.21.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -522,7 +522,7 @@ function RouterProvider(_ref) {
|
|
|
522
522
|
}
|
|
523
523
|
}, [vtContext.isTransitioning, interruption]);
|
|
524
524
|
React.useEffect(() => {
|
|
525
|
-
process.env.NODE_ENV !== "production" ? UNSAFE_warning(fallbackElement == null || !router.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`") : void 0;
|
|
525
|
+
process.env.NODE_ENV !== "production" ? UNSAFE_warning(fallbackElement == null || !router.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using " + "`v7_partialHydration`, use a `HydrateFallback` component instead") : void 0;
|
|
526
526
|
// Only log this once on initial mount
|
|
527
527
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
528
528
|
}, []);
|
|
@@ -571,7 +571,7 @@ function RouterProvider(_ref) {
|
|
|
571
571
|
future: {
|
|
572
572
|
v7_relativeSplatPath: router.future.v7_relativeSplatPath
|
|
573
573
|
}
|
|
574
|
-
}, state.initialized ? /*#__PURE__*/React.createElement(DataRoutes, {
|
|
574
|
+
}, state.initialized || router.future.v7_partialHydration ? /*#__PURE__*/React.createElement(DataRoutes, {
|
|
575
575
|
routes: router.routes,
|
|
576
576
|
future: router.future,
|
|
577
577
|
state: state
|