react-router 7.7.0-pre.2 → 7.7.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.
Files changed (30) hide show
  1. package/CHANGELOG.md +9 -13
  2. package/dist/{production/chunk-CLUOEFXR.js → development/chunk-4ADB4KIO.js} +130 -130
  3. package/dist/development/{chunk-XPO7SIPX.mjs → chunk-EF7DTUVF.mjs} +2 -2
  4. package/dist/development/{chunk-NMPYIXDO.mjs → chunk-T3VM44WY.mjs} +2 -2
  5. package/dist/development/{chunk-3JI27NJZ.js → chunk-V6PEDDZI.js} +1 -1
  6. package/dist/development/dom-export.js +3 -3
  7. package/dist/development/dom-export.mjs +3 -3
  8. package/dist/development/index-react-server-client.js +4 -4
  9. package/dist/development/index-react-server-client.mjs +2 -2
  10. package/dist/development/index-react-server.js +1 -1
  11. package/dist/development/index-react-server.mjs +1 -1
  12. package/dist/development/index.js +97 -97
  13. package/dist/development/index.mjs +3 -3
  14. package/dist/development/lib/types/internal.js +1 -1
  15. package/dist/development/lib/types/internal.mjs +1 -1
  16. package/dist/{development/chunk-XUCF2MWW.js → production/chunk-2TYFPE3B.js} +130 -130
  17. package/dist/production/{chunk-LW7Q6L7E.js → chunk-5KHO4FML.js} +1 -1
  18. package/dist/production/{chunk-RXNLZWLS.mjs → chunk-GNZILI6H.mjs} +2 -2
  19. package/dist/production/{chunk-V7D4RPWA.mjs → chunk-WPPIQDYG.mjs} +2 -2
  20. package/dist/production/dom-export.js +3 -3
  21. package/dist/production/dom-export.mjs +3 -3
  22. package/dist/production/index-react-server-client.js +4 -4
  23. package/dist/production/index-react-server-client.mjs +2 -2
  24. package/dist/production/index-react-server.js +1 -1
  25. package/dist/production/index-react-server.mjs +1 -1
  26. package/dist/production/index.js +97 -97
  27. package/dist/production/index.mjs +3 -3
  28. package/dist/production/lib/types/internal.js +1 -1
  29. package/dist/production/lib/types/internal.mjs +1 -1
  30. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.7.0-pre.2
2
+ * react-router v7.7.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -8842,7 +8842,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
8842
8842
  try {
8843
8843
  if (isBrowser) {
8844
8844
  window.__reactRouterVersion = // @ts-expect-error
8845
- "7.7.0-pre.2";
8845
+ "7.7.0";
8846
8846
  }
8847
8847
  } catch (e) {
8848
8848
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.7.0-pre.2
2
+ * react-router v7.7.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -57,7 +57,7 @@ import {
57
57
  withComponentProps,
58
58
  withErrorBoundaryProps,
59
59
  withHydrateFallbackProps
60
- } from "./chunk-XPO7SIPX.mjs";
60
+ } from "./chunk-EF7DTUVF.mjs";
61
61
 
62
62
  // lib/dom/ssr/server.tsx
63
63
  import * as React from "react";
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
2
- * react-router v7.7.0-pre.2
2
+ * react-router v7.7.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
2
- * react-router v7.7.0-pre.2
2
+ * react-router v7.7.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -11,7 +11,7 @@
11
11
  "use client";
12
12
 
13
13
 
14
- var _chunk3JI27NJZjs = require('./chunk-3JI27NJZ.js');
14
+ var _chunkV6PEDDZIjs = require('./chunk-V6PEDDZI.js');
15
15
 
16
16
  // lib/dom-export/dom-router-provider.tsx
17
17
  var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react);
@@ -180,7 +180,7 @@ function HydratedRouter(props) {
180
180
  }, []);
181
181
  React2.useEffect(() => {
182
182
  if (process.env.NODE_ENV === "development" && criticalCss === void 0) {
183
- document.querySelectorAll(`[${_chunk3JI27NJZjs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
183
+ document.querySelectorAll(`[${_chunkV6PEDDZIjs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
184
184
  }
185
185
  }, [criticalCss]);
186
186
  let [location, setLocation] = React2.useState(router.state.location);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.7.0-pre.2
2
+ * react-router v7.7.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -12,7 +12,7 @@
12
12
  import {
13
13
  deserializeErrors,
14
14
  getHydrationData
15
- } from "./chunk-NMPYIXDO.mjs";
15
+ } from "./chunk-T3VM44WY.mjs";
16
16
  import {
17
17
  CRITICAL_CSS_DATA_ATTRIBUTE,
18
18
  FrameworkContext,
@@ -29,7 +29,7 @@ import {
29
29
  invariant,
30
30
  mapRouteProperties,
31
31
  useFogOFWarDiscovery
32
- } from "./chunk-XPO7SIPX.mjs";
32
+ } from "./chunk-EF7DTUVF.mjs";
33
33
 
34
34
  // lib/dom-export/dom-router-provider.tsx
35
35
  import * as React from "react";
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
2
- * react-router v7.7.0-pre.2
2
+ * react-router v7.7.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -30,11 +30,11 @@
30
30
 
31
31
 
32
32
 
33
- var _chunkXUCF2MWWjs = require('./chunk-XUCF2MWW.js');
33
+ var _chunk4ADB4KIOjs = require('./chunk-4ADB4KIO.js');
34
34
 
35
35
 
36
36
 
37
- var _chunk3JI27NJZjs = require('./chunk-3JI27NJZ.js');
37
+ var _chunkV6PEDDZIjs = require('./chunk-V6PEDDZI.js');
38
38
 
39
39
 
40
40
 
@@ -58,4 +58,4 @@ var _chunk3JI27NJZjs = require('./chunk-3JI27NJZ.js');
58
58
 
59
59
 
60
60
 
61
- exports.Await = _chunkXUCF2MWWjs.Await; exports.BrowserRouter = _chunkXUCF2MWWjs.BrowserRouter; exports.Form = _chunkXUCF2MWWjs.Form; exports.HashRouter = _chunkXUCF2MWWjs.HashRouter; exports.Link = _chunkXUCF2MWWjs.Link; exports.Links = _chunk3JI27NJZjs.Links; exports.MemoryRouter = _chunkXUCF2MWWjs.MemoryRouter; exports.Meta = _chunk3JI27NJZjs.Meta; exports.NavLink = _chunkXUCF2MWWjs.NavLink; exports.Navigate = _chunkXUCF2MWWjs.Navigate; exports.Outlet = _chunkXUCF2MWWjs.Outlet; exports.Route = _chunkXUCF2MWWjs.Route; exports.Router = _chunkXUCF2MWWjs.Router; exports.RouterProvider = _chunkXUCF2MWWjs.RouterProvider; exports.Routes = _chunkXUCF2MWWjs.Routes; exports.ScrollRestoration = _chunkXUCF2MWWjs.ScrollRestoration; exports.StaticRouter = _chunkXUCF2MWWjs.StaticRouter; exports.StaticRouterProvider = _chunkXUCF2MWWjs.StaticRouterProvider; exports.UNSAFE_WithComponentProps = _chunkXUCF2MWWjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkXUCF2MWWjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkXUCF2MWWjs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkXUCF2MWWjs.HistoryRouter;
61
+ exports.Await = _chunk4ADB4KIOjs.Await; exports.BrowserRouter = _chunk4ADB4KIOjs.BrowserRouter; exports.Form = _chunk4ADB4KIOjs.Form; exports.HashRouter = _chunk4ADB4KIOjs.HashRouter; exports.Link = _chunk4ADB4KIOjs.Link; exports.Links = _chunkV6PEDDZIjs.Links; exports.MemoryRouter = _chunk4ADB4KIOjs.MemoryRouter; exports.Meta = _chunkV6PEDDZIjs.Meta; exports.NavLink = _chunk4ADB4KIOjs.NavLink; exports.Navigate = _chunk4ADB4KIOjs.Navigate; exports.Outlet = _chunk4ADB4KIOjs.Outlet; exports.Route = _chunk4ADB4KIOjs.Route; exports.Router = _chunk4ADB4KIOjs.Router; exports.RouterProvider = _chunk4ADB4KIOjs.RouterProvider; exports.Routes = _chunk4ADB4KIOjs.Routes; exports.ScrollRestoration = _chunk4ADB4KIOjs.ScrollRestoration; exports.StaticRouter = _chunk4ADB4KIOjs.StaticRouter; exports.StaticRouterProvider = _chunk4ADB4KIOjs.StaticRouterProvider; exports.UNSAFE_WithComponentProps = _chunk4ADB4KIOjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunk4ADB4KIOjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunk4ADB4KIOjs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunk4ADB4KIOjs.HistoryRouter;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.7.0-pre.2
2
+ * react-router v7.7.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -32,7 +32,7 @@ import {
32
32
  WithComponentProps,
33
33
  WithErrorBoundaryProps,
34
34
  WithHydrateFallbackProps
35
- } from "./chunk-XPO7SIPX.mjs";
35
+ } from "./chunk-EF7DTUVF.mjs";
36
36
  export {
37
37
  Await,
38
38
  BrowserRouter,
@@ -27,7 +27,7 @@ function _interopNamespace(e) {
27
27
  var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
28
28
 
29
29
  /**
30
- * react-router v7.7.0-pre.2
30
+ * react-router v7.7.0
31
31
  *
32
32
  * Copyright (c) Remix Software Inc.
33
33
  *
@@ -6,7 +6,7 @@ export { Await, BrowserRouter, Form, HashRouter, Link, Links, MemoryRouter, Meta
6
6
  import { serialize, parse } from 'cookie';
7
7
 
8
8
  /**
9
- * react-router v7.7.0-pre.2
9
+ * react-router v7.7.0
10
10
  *
11
11
  * Copyright (c) Remix Software Inc.
12
12
  *