react-router-dom 6.30.3-pre-v6.0 → 6.30.4

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,12 +1,20 @@
1
1
  # `react-router-dom`
2
2
 
3
- ## 6.30.3-pre-v6.0
3
+ ## v6.30.4
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies:
8
- - `@remix-run/router@1.23.2-pre-v6.0`
9
- - `react-router@6.30.3-pre-v6.0`
8
+ - [`react-router@6.30.4`](https://github.com/remix-run/react-router/releases/tag/react-router@6.30.4)
9
+ - [`@remix-run/router@1.23.3`](https://github.com/remix-run/react-router/releases/tag/@remix-run/router@1.23.3)
10
+
11
+ ## 6.30.3
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies:
16
+ - `@remix-run/router@1.23.2`
17
+ - `react-router@6.30.3`
10
18
 
11
19
  ## 6.30.2
12
20
 
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router DOM v6.30.3-pre-v6.0
2
+ * React Router DOM v6.30.4
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -16,30 +16,22 @@ import { stripBasename, UNSAFE_warning, createRouter, createBrowserHistory, crea
16
16
  export { UNSAFE_ErrorResponseImpl } from '@remix-run/router';
17
17
 
18
18
  function _extends() {
19
- _extends = Object.assign ? Object.assign.bind() : function (target) {
20
- for (var i = 1; i < arguments.length; i++) {
21
- var source = arguments[i];
22
- for (var key in source) {
23
- if (Object.prototype.hasOwnProperty.call(source, key)) {
24
- target[key] = source[key];
25
- }
26
- }
19
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
20
+ for (var e = 1; e < arguments.length; e++) {
21
+ var t = arguments[e];
22
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
27
23
  }
28
- return target;
29
- };
30
- return _extends.apply(this, arguments);
24
+ return n;
25
+ }, _extends.apply(null, arguments);
31
26
  }
32
- function _objectWithoutPropertiesLoose(source, excluded) {
33
- if (source == null) return {};
34
- var target = {};
35
- var sourceKeys = Object.keys(source);
36
- var key, i;
37
- for (i = 0; i < sourceKeys.length; i++) {
38
- key = sourceKeys[i];
39
- if (excluded.indexOf(key) >= 0) continue;
40
- target[key] = source[key];
27
+ function _objectWithoutPropertiesLoose(r, e) {
28
+ if (null == r) return {};
29
+ var t = {};
30
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
31
+ if (-1 !== e.indexOf(n)) continue;
32
+ t[n] = r[n];
41
33
  }
42
- return target;
34
+ return t;
43
35
  }
44
36
 
45
37
  const defaultMethod = "get";
@@ -65,7 +57,7 @@ function shouldProcessLinkClick(event, target) {
65
57
  !target || target === "_self") &&
66
58
  // Let browser handle "target=_blank" etc.
67
59
  !isModifiedEvent(event) // Ignore clicks with modifier keys
68
- ;
60
+ ;
69
61
  }
70
62
  /**
71
63
  * Creates a URLSearchParams object using the given initializer.
@@ -595,11 +587,11 @@ function RouterProvider(_ref) {
595
587
  navigationType: state.historyAction,
596
588
  navigator: navigator,
597
589
  future: routerFuture
598
- }, state.initialized || router.future.v7_partialHydration ? /*#__PURE__*/React.createElement(MemoizedDataRoutes, {
590
+ }, state.initialized || router.future.v7_partialHydration ? (/*#__PURE__*/React.createElement(MemoizedDataRoutes, {
599
591
  routes: router.routes,
600
592
  future: router.future,
601
593
  state: state
602
- }) : fallbackElement))))), null);
594
+ })) : fallbackElement))))), null);
603
595
  }
604
596
  // Memoize to avoid re-renders when updating `ViewTransitionContext`
605
597
  const MemoizedDataRoutes = /*#__PURE__*/React.memo(DataRoutes);
@@ -938,11 +930,11 @@ if (process.env.NODE_ENV !== "production") {
938
930
  * This component will emulate the browser's scroll restoration on location
939
931
  * changes.
940
932
  */
941
- function ScrollRestoration(_ref10) {
933
+ function ScrollRestoration(_ref0) {
942
934
  let {
943
935
  getKey,
944
936
  storageKey
945
- } = _ref10;
937
+ } = _ref0;
946
938
  useScrollRestoration({
947
939
  getKey,
948
940
  storageKey
@@ -1233,8 +1225,8 @@ function useFetcher(_temp3) {
1233
1225
  */
1234
1226
  function useFetchers() {
1235
1227
  let state = useDataRouterState(DataRouterStateHook.UseFetchers);
1236
- return Array.from(state.fetchers.entries()).map(_ref11 => {
1237
- let [key, fetcher] = _ref11;
1228
+ return Array.from(state.fetchers.entries()).map(_ref1 => {
1229
+ let [key, fetcher] = _ref1;
1238
1230
  return _extends({}, fetcher, {
1239
1231
  key
1240
1232
  });
@@ -1299,7 +1291,7 @@ function useScrollRestoration(_temp4) {
1299
1291
  // Enable scroll restoration in the router
1300
1292
  // eslint-disable-next-line react-hooks/rules-of-hooks
1301
1293
  React.useLayoutEffect(() => {
1302
- let getKeyWithoutBasename = getKey && basename !== "/" ? (location, matches) => getKey( // Strip the basename to match useLocation()
1294
+ let getKeyWithoutBasename = getKey && basename !== "/" ? (location, matches) => getKey(// Strip the basename to match useLocation()
1303
1295
  _extends({}, location, {
1304
1296
  pathname: stripBasename(location.pathname, basename) || location.pathname
1305
1297
  }), matches) : getKey;
@@ -1387,11 +1379,11 @@ function usePageHide(callback, options) {
1387
1379
  * very incorrectly in some cases) across browsers if user click addition
1388
1380
  * back/forward navigations while the confirm is open. Use at your own risk.
1389
1381
  */
1390
- function usePrompt(_ref12) {
1382
+ function usePrompt(_ref10) {
1391
1383
  let {
1392
1384
  when,
1393
1385
  message
1394
- } = _ref12;
1386
+ } = _ref10;
1395
1387
  let blocker = useBlocker(when);
1396
1388
  React.useEffect(() => {
1397
1389
  if (blocker.state === "blocked") {