react-router 0.0.0-experimental-bd40a0745 → 0.0.0-experimental-dc5ea5867

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 (29) hide show
  1. package/dist/development/{chunk-QFG5XQTH.js → chunk-EGQKU5IG.js} +7 -7
  2. package/dist/development/{chunk-TE2RINOS.mjs → chunk-IITYDCDG.mjs} +2 -2
  3. package/dist/development/{chunk-AZXWBUQR.js → chunk-LPH2CNBZ.js} +1 -1
  4. package/dist/{production/chunk-3F65R5EF.mjs → development/chunk-XIVYQSML.mjs} +2 -2
  5. package/dist/development/dom-export.js +2 -2
  6. package/dist/development/dom-export.mjs +3 -3
  7. package/dist/development/index-react-server-client.js +4 -4
  8. package/dist/development/index-react-server-client.mjs +2 -2
  9. package/dist/development/index-react-server.js +4 -3
  10. package/dist/development/index-react-server.mjs +4 -3
  11. package/dist/development/index.js +95 -95
  12. package/dist/development/index.mjs +3 -3
  13. package/dist/development/lib/types/internal.js +1 -1
  14. package/dist/development/lib/types/internal.mjs +1 -1
  15. package/dist/production/{chunk-NCHFE3I4.mjs → chunk-ENRQL5E2.mjs} +2 -2
  16. package/dist/production/{chunk-OMSWS6FP.js → chunk-K4TUKIIQ.js} +7 -7
  17. package/dist/production/{chunk-AZXWBUQR.js → chunk-LPH2CNBZ.js} +1 -1
  18. package/dist/{development/chunk-L4ACASC4.mjs → production/chunk-ZBNHV3VN.mjs} +2 -2
  19. package/dist/production/dom-export.js +2 -2
  20. package/dist/production/dom-export.mjs +3 -3
  21. package/dist/production/index-react-server-client.js +4 -4
  22. package/dist/production/index-react-server-client.mjs +2 -2
  23. package/dist/production/index-react-server.js +4 -3
  24. package/dist/production/index-react-server.mjs +4 -3
  25. package/dist/production/index.js +95 -95
  26. package/dist/production/index.mjs +3 -3
  27. package/dist/production/lib/types/internal.js +1 -1
  28. package/dist/production/lib/types/internal.mjs +1 -1
  29. package/package.json +1 -1
@@ -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 v0.0.0-experimental-bd40a0745
2
+ * react-router v0.0.0-experimental-dc5ea5867
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkAZXWBUQRjs = require('./chunk-AZXWBUQR.js');
14
+ var _chunkLPH2CNBZjs = require('./chunk-LPH2CNBZ.js');
15
15
 
16
16
  // lib/router/history.ts
17
17
  var Action = /* @__PURE__ */ ((Action2) => {
@@ -366,7 +366,7 @@ function unstable_createContext(defaultValue) {
366
366
  var _map;
367
367
  var unstable_RouterContextProvider = class {
368
368
  constructor(init) {
369
- _chunkAZXWBUQRjs.__privateAdd.call(void 0, this, _map, /* @__PURE__ */ new Map());
369
+ _chunkLPH2CNBZjs.__privateAdd.call(void 0, this, _map, /* @__PURE__ */ new Map());
370
370
  if (init) {
371
371
  for (let [context, value] of init) {
372
372
  this.set(context, value);
@@ -374,8 +374,8 @@ var unstable_RouterContextProvider = class {
374
374
  }
375
375
  }
376
376
  get(context) {
377
- if (_chunkAZXWBUQRjs.__privateGet.call(void 0, this, _map).has(context)) {
378
- return _chunkAZXWBUQRjs.__privateGet.call(void 0, this, _map).get(context);
377
+ if (_chunkLPH2CNBZjs.__privateGet.call(void 0, this, _map).has(context)) {
378
+ return _chunkLPH2CNBZjs.__privateGet.call(void 0, this, _map).get(context);
379
379
  }
380
380
  if (context.defaultValue !== void 0) {
381
381
  return context.defaultValue;
@@ -383,7 +383,7 @@ var unstable_RouterContextProvider = class {
383
383
  throw new Error("No value found for context");
384
384
  }
385
385
  set(context, value) {
386
- _chunkAZXWBUQRjs.__privateGet.call(void 0, this, _map).set(context, value);
386
+ _chunkLPH2CNBZjs.__privateGet.call(void 0, this, _map).set(context, value);
387
387
  }
388
388
  };
389
389
  _map = new WeakMap();
@@ -8793,7 +8793,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
8793
8793
  try {
8794
8794
  if (isBrowser) {
8795
8795
  window.__reactRouterVersion = // @ts-expect-error
8796
- "0.0.0-experimental-bd40a0745";
8796
+ "0.0.0-experimental-dc5ea5867";
8797
8797
  }
8798
8798
  } catch (e) {
8799
8799
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-bd40a0745
2
+ * react-router v0.0.0-experimental-dc5ea5867
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -8795,7 +8795,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
8795
8795
  try {
8796
8796
  if (isBrowser) {
8797
8797
  window.__reactRouterVersion = // @ts-expect-error
8798
- "0.0.0-experimental-bd40a0745";
8798
+ "0.0.0-experimental-dc5ea5867";
8799
8799
  }
8800
8800
  } catch (e) {
8801
8801
  }
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
2
- * react-router v0.0.0-experimental-bd40a0745
2
+ * react-router v0.0.0-experimental-dc5ea5867
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-bd40a0745
2
+ * react-router v0.0.0-experimental-dc5ea5867
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-NCHFE3I4.mjs";
60
+ } from "./chunk-IITYDCDG.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 _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 v0.0.0-experimental-bd40a0745
2
+ * react-router v0.0.0-experimental-dc5ea5867
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -9,7 +9,7 @@
9
9
  * @license MIT
10
10
  */
11
11
  "use client";
12
- require('./chunk-AZXWBUQR.js');
12
+ require('./chunk-LPH2CNBZ.js');
13
13
 
14
14
  // lib/dom-export/dom-router-provider.tsx
15
15
  var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-bd40a0745
2
+ * react-router v0.0.0-experimental-dc5ea5867
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-L4ACASC4.mjs";
15
+ } from "./chunk-XIVYQSML.mjs";
16
16
  import {
17
17
  FrameworkContext,
18
18
  RemixErrorBoundary,
@@ -28,7 +28,7 @@ import {
28
28
  invariant,
29
29
  mapRouteProperties,
30
30
  useFogOFWarDiscovery
31
- } from "./chunk-TE2RINOS.mjs";
31
+ } from "./chunk-IITYDCDG.mjs";
32
32
 
33
33
  // lib/dom-export/dom-router-provider.tsx
34
34
  import * as React from "react";
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
2
- * react-router v0.0.0-experimental-bd40a0745
2
+ * react-router v0.0.0-experimental-dc5ea5867
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -29,8 +29,8 @@
29
29
 
30
30
 
31
31
 
32
- var _chunkQFG5XQTHjs = require('./chunk-QFG5XQTH.js');
33
- require('./chunk-AZXWBUQR.js');
32
+ var _chunkEGQKU5IGjs = require('./chunk-EGQKU5IG.js');
33
+ require('./chunk-LPH2CNBZ.js');
34
34
 
35
35
 
36
36
 
@@ -51,4 +51,4 @@ require('./chunk-AZXWBUQR.js');
51
51
 
52
52
 
53
53
 
54
- exports.Await = _chunkQFG5XQTHjs.Await; exports.BrowserRouter = _chunkQFG5XQTHjs.BrowserRouter; exports.Form = _chunkQFG5XQTHjs.Form; exports.HashRouter = _chunkQFG5XQTHjs.HashRouter; exports.Link = _chunkQFG5XQTHjs.Link; exports.Links = _chunkQFG5XQTHjs.Links; exports.MemoryRouter = _chunkQFG5XQTHjs.MemoryRouter; exports.Meta = _chunkQFG5XQTHjs.Meta; exports.NavLink = _chunkQFG5XQTHjs.NavLink; exports.Navigate = _chunkQFG5XQTHjs.Navigate; exports.Outlet = _chunkQFG5XQTHjs.Outlet; exports.Route = _chunkQFG5XQTHjs.Route; exports.Router = _chunkQFG5XQTHjs.Router; exports.RouterProvider = _chunkQFG5XQTHjs.RouterProvider; exports.Routes = _chunkQFG5XQTHjs.Routes; exports.ScrollRestoration = _chunkQFG5XQTHjs.ScrollRestoration; exports.StaticRouter = _chunkQFG5XQTHjs.StaticRouter; exports.StaticRouterProvider = _chunkQFG5XQTHjs.StaticRouterProvider; exports.unstable_HistoryRouter = _chunkQFG5XQTHjs.HistoryRouter;
54
+ exports.Await = _chunkEGQKU5IGjs.Await; exports.BrowserRouter = _chunkEGQKU5IGjs.BrowserRouter; exports.Form = _chunkEGQKU5IGjs.Form; exports.HashRouter = _chunkEGQKU5IGjs.HashRouter; exports.Link = _chunkEGQKU5IGjs.Link; exports.Links = _chunkEGQKU5IGjs.Links; exports.MemoryRouter = _chunkEGQKU5IGjs.MemoryRouter; exports.Meta = _chunkEGQKU5IGjs.Meta; exports.NavLink = _chunkEGQKU5IGjs.NavLink; exports.Navigate = _chunkEGQKU5IGjs.Navigate; exports.Outlet = _chunkEGQKU5IGjs.Outlet; exports.Route = _chunkEGQKU5IGjs.Route; exports.Router = _chunkEGQKU5IGjs.Router; exports.RouterProvider = _chunkEGQKU5IGjs.RouterProvider; exports.Routes = _chunkEGQKU5IGjs.Routes; exports.ScrollRestoration = _chunkEGQKU5IGjs.ScrollRestoration; exports.StaticRouter = _chunkEGQKU5IGjs.StaticRouter; exports.StaticRouterProvider = _chunkEGQKU5IGjs.StaticRouterProvider; exports.unstable_HistoryRouter = _chunkEGQKU5IGjs.HistoryRouter;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-bd40a0745
2
+ * react-router v0.0.0-experimental-dc5ea5867
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -29,7 +29,7 @@ import {
29
29
  ScrollRestoration,
30
30
  StaticRouter,
31
31
  StaticRouterProvider
32
- } from "./chunk-TE2RINOS.mjs";
32
+ } from "./chunk-IITYDCDG.mjs";
33
33
  export {
34
34
  Await,
35
35
  BrowserRouter,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var async_hooks = require('async_hooks');
3
+ var node_async_hooks = require('node:async_hooks');
4
4
  var React2 = require('react');
5
5
  var setCookieParser = require('set-cookie-parser');
6
6
  var reactServerClient = require('react-router/internal/react-server-client');
@@ -27,7 +27,7 @@ function _interopNamespace(e) {
27
27
  var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
28
28
 
29
29
  /**
30
- * react-router v0.0.0-experimental-bd40a0745
30
+ * react-router v0.0.0-experimental-dc5ea5867
31
31
  *
32
32
  * Copyright (c) Remix Software Inc.
33
33
  *
@@ -2125,7 +2125,8 @@ function prependCookies(parentHeaders, childHeaders) {
2125
2125
  var SINGLE_FETCH_REDIRECT_STATUS = 202;
2126
2126
 
2127
2127
  // lib/rsc/server.rsc.ts
2128
- var ServerStorage = global.___reactRouterServerStorage___ ?? (global.___reactRouterServerStorage___ = new async_hooks.AsyncLocalStorage());
2128
+ var globalVar = typeof globalThis !== "undefined" ? globalThis : global;
2129
+ var ServerStorage = globalVar.___reactRouterServerStorage___ ?? (globalVar.___reactRouterServerStorage___ = new node_async_hooks.AsyncLocalStorage());
2129
2130
  var redirect2 = (...args) => {
2130
2131
  const response = redirect(...args);
2131
2132
  const ctx = ServerStorage.getStore();
@@ -1,11 +1,11 @@
1
- import { AsyncLocalStorage } from 'async_hooks';
1
+ import { AsyncLocalStorage } from 'node:async_hooks';
2
2
  import * as React2 from 'react';
3
3
  import { splitCookiesString } from 'set-cookie-parser';
4
4
  export { Await, BrowserRouter, Form, HashRouter, Link, Links, MemoryRouter, Meta, NavLink, Navigate, Outlet, Route, Router, RouterProvider, Routes, ScrollRestoration, StaticRouter, StaticRouterProvider, unstable_HistoryRouter } from 'react-router/internal/react-server-client';
5
5
  import { serialize, parse } from 'cookie';
6
6
 
7
7
  /**
8
- * react-router v0.0.0-experimental-bd40a0745
8
+ * react-router v0.0.0-experimental-dc5ea5867
9
9
  *
10
10
  * Copyright (c) Remix Software Inc.
11
11
  *
@@ -2103,7 +2103,8 @@ function prependCookies(parentHeaders, childHeaders) {
2103
2103
  var SINGLE_FETCH_REDIRECT_STATUS = 202;
2104
2104
 
2105
2105
  // lib/rsc/server.rsc.ts
2106
- var ServerStorage = global.___reactRouterServerStorage___ ?? (global.___reactRouterServerStorage___ = new AsyncLocalStorage());
2106
+ var globalVar = typeof globalThis !== "undefined" ? globalThis : global;
2107
+ var ServerStorage = globalVar.___reactRouterServerStorage___ ?? (globalVar.___reactRouterServerStorage___ = new AsyncLocalStorage());
2107
2108
  var redirect2 = (...args) => {
2108
2109
  const response = redirect(...args);
2109
2110
  const ctx = ServerStorage.getStore();