react-router 7.9.0-pre.0 → 7.9.0-pre.1

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 +6 -0
  2. package/dist/development/{chunk-3TJX7VNY.mjs → chunk-AVXIT45F.mjs} +3 -15
  3. package/dist/development/{chunk-EAIS2CTK.mjs → chunk-QZH3B547.mjs} +6 -8
  4. package/dist/development/{chunk-ECJT65VE.js → chunk-RGB6BZUL.js} +6 -8
  5. package/dist/{production/chunk-CSESPFUI.js → development/chunk-XYB2GISA.js} +131 -131
  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 -109
  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/production/{chunk-LQAK2UKE.js → chunk-A6EU7LHU.js} +6 -8
  17. package/dist/production/{chunk-47NS5WEV.mjs → chunk-BQLQLXP4.mjs} +6 -8
  18. package/dist/{development/chunk-4J2JOVAI.js → production/chunk-IR3XRH6J.js} +131 -131
  19. package/dist/production/{chunk-SCSBSW2J.mjs → chunk-WMHWIEJV.mjs} +3 -15
  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 -109
  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.9.0-pre.0
2
+ * react-router v7.9.0-pre.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -33,6 +33,7 @@ import {
33
33
  createStaticRouter,
34
34
  decodeViaTurboStream,
35
35
  encode,
36
+ escapeHtml,
36
37
  getManifestPath,
37
38
  getSingleFetchDataStrategyImpl,
38
39
  getStaticContextFromError,
@@ -58,7 +59,7 @@ import {
58
59
  withComponentProps,
59
60
  withErrorBoundaryProps,
60
61
  withHydrateFallbackProps
61
- } from "./chunk-47NS5WEV.mjs";
62
+ } from "./chunk-BQLQLXP4.mjs";
62
63
 
63
64
  // lib/dom/ssr/server.tsx
64
65
  import * as React from "react";
@@ -677,19 +678,6 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
677
678
  });
678
679
  }
679
680
 
680
- // lib/server-runtime/markup.ts
681
- var ESCAPE_LOOKUP = {
682
- "&": "\\u0026",
683
- ">": "\\u003e",
684
- "<": "\\u003c",
685
- "\u2028": "\\u2028",
686
- "\u2029": "\\u2029"
687
- };
688
- var ESCAPE_REGEX = /[&><\u2028\u2029]/g;
689
- function escapeHtml(html) {
690
- return html.replace(ESCAPE_REGEX, (match) => ESCAPE_LOOKUP[match]);
691
- }
692
-
693
681
  // lib/server-runtime/serverHandoff.ts
694
682
  function createServerHandoffString(serverHandoff) {
695
683
  return escapeHtml(JSON.stringify(serverHandoff));
@@ -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.9.0-pre.0
2
+ * react-router v7.9.0-pre.1
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 _chunkLQAK2UKEjs = require('./chunk-LQAK2UKE.js');
14
+ var _chunkA6EU7LHUjs = require('./chunk-A6EU7LHU.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(`[${_chunkLQAK2UKEjs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
183
+ document.querySelectorAll(`[${_chunkA6EU7LHUjs.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.9.0-pre.0
2
+ * react-router v7.9.0-pre.1
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-SCSBSW2J.mjs";
15
+ } from "./chunk-WMHWIEJV.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-47NS5WEV.mjs";
32
+ } from "./chunk-BQLQLXP4.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.9.0-pre.0
2
+ * react-router v7.9.0-pre.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -29,12 +29,12 @@
29
29
 
30
30
 
31
31
 
32
- var _chunkCSESPFUIjs = require('./chunk-CSESPFUI.js');
32
+ var _chunkIR3XRH6Jjs = require('./chunk-IR3XRH6J.js');
33
33
 
34
34
 
35
35
 
36
36
 
37
- var _chunkLQAK2UKEjs = require('./chunk-LQAK2UKE.js');
37
+ var _chunkA6EU7LHUjs = require('./chunk-A6EU7LHU.js');
38
38
 
39
39
 
40
40
 
@@ -58,4 +58,4 @@ var _chunkLQAK2UKEjs = require('./chunk-LQAK2UKE.js');
58
58
 
59
59
 
60
60
 
61
- exports.BrowserRouter = _chunkCSESPFUIjs.BrowserRouter; exports.Form = _chunkCSESPFUIjs.Form; exports.HashRouter = _chunkCSESPFUIjs.HashRouter; exports.Link = _chunkCSESPFUIjs.Link; exports.Links = _chunkLQAK2UKEjs.Links; exports.MemoryRouter = _chunkCSESPFUIjs.MemoryRouter; exports.Meta = _chunkLQAK2UKEjs.Meta; exports.NavLink = _chunkCSESPFUIjs.NavLink; exports.Navigate = _chunkCSESPFUIjs.Navigate; exports.Outlet = _chunkCSESPFUIjs.Outlet; exports.Route = _chunkCSESPFUIjs.Route; exports.Router = _chunkCSESPFUIjs.Router; exports.RouterProvider = _chunkCSESPFUIjs.RouterProvider; exports.Routes = _chunkCSESPFUIjs.Routes; exports.ScrollRestoration = _chunkCSESPFUIjs.ScrollRestoration; exports.StaticRouter = _chunkCSESPFUIjs.StaticRouter; exports.StaticRouterProvider = _chunkCSESPFUIjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkLQAK2UKEjs.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkCSESPFUIjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkCSESPFUIjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkCSESPFUIjs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkCSESPFUIjs.HistoryRouter;
61
+ exports.BrowserRouter = _chunkIR3XRH6Jjs.BrowserRouter; exports.Form = _chunkIR3XRH6Jjs.Form; exports.HashRouter = _chunkIR3XRH6Jjs.HashRouter; exports.Link = _chunkIR3XRH6Jjs.Link; exports.Links = _chunkA6EU7LHUjs.Links; exports.MemoryRouter = _chunkIR3XRH6Jjs.MemoryRouter; exports.Meta = _chunkA6EU7LHUjs.Meta; exports.NavLink = _chunkIR3XRH6Jjs.NavLink; exports.Navigate = _chunkIR3XRH6Jjs.Navigate; exports.Outlet = _chunkIR3XRH6Jjs.Outlet; exports.Route = _chunkIR3XRH6Jjs.Route; exports.Router = _chunkIR3XRH6Jjs.Router; exports.RouterProvider = _chunkIR3XRH6Jjs.RouterProvider; exports.Routes = _chunkIR3XRH6Jjs.Routes; exports.ScrollRestoration = _chunkIR3XRH6Jjs.ScrollRestoration; exports.StaticRouter = _chunkIR3XRH6Jjs.StaticRouter; exports.StaticRouterProvider = _chunkIR3XRH6Jjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkA6EU7LHUjs.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkIR3XRH6Jjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkIR3XRH6Jjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkIR3XRH6Jjs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkIR3XRH6Jjs.HistoryRouter;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.9.0-pre.0
2
+ * react-router v7.9.0-pre.1
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-47NS5WEV.mjs";
35
+ } from "./chunk-BQLQLXP4.mjs";
36
36
  export {
37
37
  BrowserRouter,
38
38
  Form,
@@ -27,7 +27,7 @@ function _interopNamespace(e) {
27
27
  var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
28
28
 
29
29
  /**
30
- * react-router v7.9.0-pre.0
30
+ * react-router v7.9.0-pre.1
31
31
  *
32
32
  * Copyright (c) Remix Software Inc.
33
33
  *
@@ -6,7 +6,7 @@ export { BrowserRouter, Form, HashRouter, Link, Links, MemoryRouter, Meta, NavLi
6
6
  import { serialize, parse } from 'cookie';
7
7
 
8
8
  /**
9
- * react-router v7.9.0-pre.0
9
+ * react-router v7.9.0-pre.1
10
10
  *
11
11
  * Copyright (c) Remix Software Inc.
12
12
  *