react-router-dom-v5-compat 6.23.1 → 6.24.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 +10 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/react-router-dom/dom.d.ts +29 -16
- package/dist/react-router-dom/index.d.ts +18 -6
- package/dist/umd/react-router-dom-v5-compat.development.js +30 -2
- 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 +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# `react-router-dom-v5-compat`
|
|
2
2
|
|
|
3
|
+
## 6.24.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Allow falsy `location.state` values passed to `<StaticRouter>` ([#11495](https://github.com/remix-run/react-router/pull/11495))
|
|
8
|
+
- Updated dependencies:
|
|
9
|
+
- `react-router-dom@6.24.0`
|
|
10
|
+
- `react-router@6.24.0`
|
|
11
|
+
- `@remix-run/router@1.17.0`
|
|
12
|
+
|
|
3
13
|
## 6.23.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React Router DOM v5 Compat v6.
|
|
2
|
+
* React Router DOM v5 Compat v6.24.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -240,6 +240,7 @@ function createBrowserRouter(routes, opts) {
|
|
|
240
240
|
routes,
|
|
241
241
|
mapRouteProperties: UNSAFE_mapRouteProperties,
|
|
242
242
|
unstable_dataStrategy: opts == null ? void 0 : opts.unstable_dataStrategy,
|
|
243
|
+
unstable_patchRoutesOnMiss: opts == null ? void 0 : opts.unstable_patchRoutesOnMiss,
|
|
243
244
|
window: opts == null ? void 0 : opts.window
|
|
244
245
|
}).initialize();
|
|
245
246
|
}
|
|
@@ -256,6 +257,7 @@ function createHashRouter(routes, opts) {
|
|
|
256
257
|
routes,
|
|
257
258
|
mapRouteProperties: UNSAFE_mapRouteProperties,
|
|
258
259
|
unstable_dataStrategy: opts == null ? void 0 : opts.unstable_dataStrategy,
|
|
260
|
+
unstable_patchRoutesOnMiss: opts == null ? void 0 : opts.unstable_patchRoutesOnMiss,
|
|
259
261
|
window: opts == null ? void 0 : opts.window
|
|
260
262
|
}).initialize();
|
|
261
263
|
}
|
|
@@ -1503,7 +1505,7 @@ function StaticRouter(_ref2) {
|
|
|
1503
1505
|
pathname: locationProp.pathname || "/",
|
|
1504
1506
|
search: locationProp.search || "",
|
|
1505
1507
|
hash: locationProp.hash || "",
|
|
1506
|
-
state: locationProp.state
|
|
1508
|
+
state: locationProp.state != null ? locationProp.state : null,
|
|
1507
1509
|
key: locationProp.key || "default"
|
|
1508
1510
|
};
|
|
1509
1511
|
let staticNavigator = {
|