react-router-dom-v5-compat 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/umd/react-router-dom-v5-compat.development.js +3 -3
- package/dist/umd/react-router-dom-v5-compat.development.js.map +1 -1
- package/dist/umd/react-router-dom-v5-compat.production.min.js +2 -2
- package/dist/umd/react-router-dom-v5-compat.production.min.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
# `react-router-dom-v5-compat`
|
|
2
2
|
|
|
3
|
-
## 6.21.0
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Updated dependencies:
|
|
8
|
-
- `react-router-dom@6.21.0-pre.2`
|
|
9
|
-
- `react-router@6.21.0-pre.2`
|
|
10
|
-
|
|
11
|
-
## 6.21.0-pre.1
|
|
12
|
-
|
|
13
|
-
### Patch Changes
|
|
14
|
-
|
|
15
|
-
- Updated dependencies:
|
|
16
|
-
- `react-router-dom@6.21.0-pre.1`
|
|
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
|
-
- `react-router@6.21.0
|
|
158
|
-
- `react-router
|
|
141
|
+
- `react-router-dom@6.21.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 v5 Compat v6.21.0
|
|
2
|
+
* React Router DOM v5 Compat v6.21.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -524,7 +524,7 @@ function RouterProvider(_ref) {
|
|
|
524
524
|
}
|
|
525
525
|
}, [vtContext.isTransitioning, interruption]);
|
|
526
526
|
React.useEffect(() => {
|
|
527
|
-
process.env.NODE_ENV !== "production" ? UNSAFE_warning(fallbackElement == null || !router.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`") : void 0;
|
|
527
|
+
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;
|
|
528
528
|
// Only log this once on initial mount
|
|
529
529
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
530
530
|
}, []);
|
|
@@ -573,7 +573,7 @@ function RouterProvider(_ref) {
|
|
|
573
573
|
future: {
|
|
574
574
|
v7_relativeSplatPath: router.future.v7_relativeSplatPath
|
|
575
575
|
}
|
|
576
|
-
}, state.initialized ? /*#__PURE__*/React.createElement(DataRoutes, {
|
|
576
|
+
}, state.initialized || router.future.v7_partialHydration ? /*#__PURE__*/React.createElement(DataRoutes, {
|
|
577
577
|
routes: router.routes,
|
|
578
578
|
future: router.future,
|
|
579
579
|
state: state
|