react-router 0.0.0-experimental-0089ff6bc → 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 (41) hide show
  1. package/dist/development/{chunk-2K6IOQUH.js → chunk-EGQKU5IG.js} +7 -7
  2. package/dist/development/{chunk-E6YMPTVT.mjs → chunk-IITYDCDG.mjs} +2 -2
  3. package/dist/{production/chunk-5U3LXK6G.js → development/chunk-LPH2CNBZ.js} +1 -1
  4. package/dist/{production/chunk-23GVDX6O.mjs → development/chunk-XIVYQSML.mjs} +4 -4
  5. package/dist/development/dom-export.d.mts +1 -1
  6. package/dist/development/dom-export.js +2 -2
  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.d.mts +2 -1
  11. package/dist/development/index-react-server.d.ts +2 -1
  12. package/dist/development/index-react-server.js +4 -3
  13. package/dist/development/index-react-server.mjs +4 -3
  14. package/dist/development/index.d.mts +5 -5
  15. package/dist/development/index.d.ts +3 -3
  16. package/dist/development/index.js +97 -97
  17. package/dist/development/index.mjs +3 -3
  18. package/dist/development/lib/types/internal.js +1 -1
  19. package/dist/development/lib/types/internal.mjs +1 -1
  20. package/dist/production/{chunk-O6UYOOAU.mjs → chunk-ENRQL5E2.mjs} +2 -2
  21. package/dist/production/{chunk-AT6XRLIC.js → chunk-K4TUKIIQ.js} +7 -7
  22. package/dist/{development/chunk-5U3LXK6G.js → production/chunk-LPH2CNBZ.js} +1 -1
  23. package/dist/{development/chunk-DLFGBVUM.mjs → production/chunk-ZBNHV3VN.mjs} +4 -4
  24. package/dist/production/dom-export.d.mts +1 -1
  25. package/dist/production/dom-export.js +2 -2
  26. package/dist/production/dom-export.mjs +3 -3
  27. package/dist/production/index-react-server-client.js +4 -4
  28. package/dist/production/index-react-server-client.mjs +2 -2
  29. package/dist/production/index-react-server.d.mts +2 -1
  30. package/dist/production/index-react-server.d.ts +2 -1
  31. package/dist/production/index-react-server.js +4 -3
  32. package/dist/production/index-react-server.mjs +4 -3
  33. package/dist/production/index.d.mts +5 -5
  34. package/dist/production/index.d.ts +3 -3
  35. package/dist/production/index.js +97 -97
  36. package/dist/production/index.mjs +3 -3
  37. package/dist/production/lib/types/internal.js +1 -1
  38. package/dist/production/lib/types/internal.mjs +1 -1
  39. package/package.json +1 -1
  40. package/dist/development/{browser-Db0sq1MO.d.mts → browser--LisUeny.d.mts} +1 -1
  41. package/dist/production/{browser-Db0sq1MO.d.mts → browser--LisUeny.d.mts} +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-0089ff6bc
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 _chunk5U3LXK6Gjs = require('./chunk-5U3LXK6G.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
- _chunk5U3LXK6Gjs.__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 (_chunk5U3LXK6Gjs.__privateGet.call(void 0, this, _map).has(context)) {
378
- return _chunk5U3LXK6Gjs.__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
- _chunk5U3LXK6Gjs.__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-0089ff6bc";
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-0089ff6bc
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-0089ff6bc";
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-0089ff6bc
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-0089ff6bc
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-O6UYOOAU.mjs";
60
+ } from "./chunk-IITYDCDG.mjs";
61
61
 
62
62
  // lib/dom/ssr/server.tsx
63
63
  import * as React from "react";
@@ -2417,7 +2417,7 @@ function escapeScript(script) {
2417
2417
  async function routeRSCServerRequest({
2418
2418
  request,
2419
2419
  fetchServer,
2420
- decode,
2420
+ createFromReadableStream,
2421
2421
  renderHTML,
2422
2422
  hydrate = true
2423
2423
  }) {
@@ -2439,7 +2439,7 @@ async function routeRSCServerRequest({
2439
2439
  let payloadPromise;
2440
2440
  const getPayload = async () => {
2441
2441
  if (payloadPromise) return payloadPromise;
2442
- payloadPromise = decode(body);
2442
+ payloadPromise = createFromReadableStream(body);
2443
2443
  return payloadPromise;
2444
2444
  };
2445
2445
  try {
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { R as RouterProviderProps$1 } from './components-CwtESh53.mjs';
3
- import './browser-Db0sq1MO.mjs';
3
+ import './browser--LisUeny.mjs';
4
4
  import { R as RouterInit } from './route-data-Csr8hE3v.mjs';
5
5
  import 'node:async_hooks';
6
6
 
@@ -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-0089ff6bc
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-5U3LXK6G.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-0089ff6bc
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-DLFGBVUM.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-E6YMPTVT.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-0089ff6bc
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 _chunk2K6IOQUHjs = require('./chunk-2K6IOQUH.js');
33
- require('./chunk-5U3LXK6G.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-5U3LXK6G.js');
51
51
 
52
52
 
53
53
 
54
- exports.Await = _chunk2K6IOQUHjs.Await; exports.BrowserRouter = _chunk2K6IOQUHjs.BrowserRouter; exports.Form = _chunk2K6IOQUHjs.Form; exports.HashRouter = _chunk2K6IOQUHjs.HashRouter; exports.Link = _chunk2K6IOQUHjs.Link; exports.Links = _chunk2K6IOQUHjs.Links; exports.MemoryRouter = _chunk2K6IOQUHjs.MemoryRouter; exports.Meta = _chunk2K6IOQUHjs.Meta; exports.NavLink = _chunk2K6IOQUHjs.NavLink; exports.Navigate = _chunk2K6IOQUHjs.Navigate; exports.Outlet = _chunk2K6IOQUHjs.Outlet; exports.Route = _chunk2K6IOQUHjs.Route; exports.Router = _chunk2K6IOQUHjs.Router; exports.RouterProvider = _chunk2K6IOQUHjs.RouterProvider; exports.Routes = _chunk2K6IOQUHjs.Routes; exports.ScrollRestoration = _chunk2K6IOQUHjs.ScrollRestoration; exports.StaticRouter = _chunk2K6IOQUHjs.StaticRouter; exports.StaticRouterProvider = _chunk2K6IOQUHjs.StaticRouterProvider; exports.unstable_HistoryRouter = _chunk2K6IOQUHjs.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-0089ff6bc
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-E6YMPTVT.mjs";
32
+ } from "./chunk-IITYDCDG.mjs";
33
33
  export {
34
34
  Await,
35
35
  BrowserRouter,
@@ -1509,6 +1509,7 @@ type LdJsonValue = LdJsonPrimitive | LdJsonObject | LdJsonArray;
1509
1509
  */
1510
1510
  type RouteHandle = unknown;
1511
1511
 
1512
+ type CreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>) => Promise<unknown>;
1512
1513
  type ServerContext = {
1513
1514
  redirect?: Response;
1514
1515
  };
@@ -1852,4 +1853,4 @@ interface MemorySessionStorageOptions {
1852
1853
  */
1853
1854
  declare function createMemorySessionStorage<Data = SessionData, FlashData = Data>({ cookie }?: MemorySessionStorageOptions): SessionStorage<Data, FlashData>;
1854
1855
 
1855
- export { type Cookie, type CookieOptions, type CookieSignatureOptions, type FlashSessionData, type IsCookieFunction, type IsSessionFunction, type RenderedRoute as ServerRouteManifest, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession, matchRoutes, redirect, redirectDocument, replace, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type LoadServerActionFunction as unstable_LoadServerActionFunction, type unstable_MiddlewareFunction, type unstable_MiddlewareNextFunction, type unstable_RouterContext, unstable_RouterContextProvider, type ServerManifestPayload as unstable_ServerManifestPayload, type ServerMatch as unstable_ServerMatch, type ServerPayload as unstable_ServerPayload, type ServerRenderPayload as unstable_ServerRenderPayload, type ServerRouteMatch as unstable_ServerRouteMatch, type ServerRouteObject as unstable_ServerRouteObject, unstable_createContext, matchRSCServerRequest as unstable_matchRSCServerRequest };
1856
+ export { type Cookie, type CookieOptions, type CookieSignatureOptions, type FlashSessionData, type IsCookieFunction, type IsSessionFunction, type RenderedRoute as ServerRouteManifest, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession, matchRoutes, redirect, redirectDocument, replace, type CreateFromReadableStreamFunction as unstable_CreateFromReadableStreamFunction, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type LoadServerActionFunction as unstable_LoadServerActionFunction, type unstable_MiddlewareFunction, type unstable_MiddlewareNextFunction, type unstable_RouterContext, unstable_RouterContextProvider, type ServerManifestPayload as unstable_ServerManifestPayload, type ServerMatch as unstable_ServerMatch, type ServerPayload as unstable_ServerPayload, type ServerRenderPayload as unstable_ServerRenderPayload, type ServerRouteMatch as unstable_ServerRouteMatch, type ServerRouteObject as unstable_ServerRouteObject, unstable_createContext, matchRSCServerRequest as unstable_matchRSCServerRequest };
@@ -1509,6 +1509,7 @@ type LdJsonValue = LdJsonPrimitive | LdJsonObject | LdJsonArray;
1509
1509
  */
1510
1510
  type RouteHandle = unknown;
1511
1511
 
1512
+ type CreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>) => Promise<unknown>;
1512
1513
  type ServerContext = {
1513
1514
  redirect?: Response;
1514
1515
  };
@@ -1852,4 +1853,4 @@ interface MemorySessionStorageOptions {
1852
1853
  */
1853
1854
  declare function createMemorySessionStorage<Data = SessionData, FlashData = Data>({ cookie }?: MemorySessionStorageOptions): SessionStorage<Data, FlashData>;
1854
1855
 
1855
- export { type Cookie, type CookieOptions, type CookieSignatureOptions, type FlashSessionData, type IsCookieFunction, type IsSessionFunction, type RenderedRoute as ServerRouteManifest, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession, matchRoutes, redirect, redirectDocument, replace, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type LoadServerActionFunction as unstable_LoadServerActionFunction, type unstable_MiddlewareFunction, type unstable_MiddlewareNextFunction, type unstable_RouterContext, unstable_RouterContextProvider, type ServerManifestPayload as unstable_ServerManifestPayload, type ServerMatch as unstable_ServerMatch, type ServerPayload as unstable_ServerPayload, type ServerRenderPayload as unstable_ServerRenderPayload, type ServerRouteMatch as unstable_ServerRouteMatch, type ServerRouteObject as unstable_ServerRouteObject, unstable_createContext, matchRSCServerRequest as unstable_matchRSCServerRequest };
1856
+ export { type Cookie, type CookieOptions, type CookieSignatureOptions, type FlashSessionData, type IsCookieFunction, type IsSessionFunction, type RenderedRoute as ServerRouteManifest, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession, matchRoutes, redirect, redirectDocument, replace, type CreateFromReadableStreamFunction as unstable_CreateFromReadableStreamFunction, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type LoadServerActionFunction as unstable_LoadServerActionFunction, type unstable_MiddlewareFunction, type unstable_MiddlewareNextFunction, type unstable_RouterContext, unstable_RouterContextProvider, type ServerManifestPayload as unstable_ServerManifestPayload, type ServerMatch as unstable_ServerMatch, type ServerPayload as unstable_ServerPayload, type ServerRenderPayload as unstable_ServerRenderPayload, type ServerRouteMatch as unstable_ServerRouteMatch, type ServerRouteObject as unstable_ServerRouteObject, unstable_createContext, matchRSCServerRequest as unstable_matchRSCServerRequest };
@@ -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-0089ff6bc
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-0089ff6bc
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();
@@ -10,8 +10,8 @@ import { ParseOptions, SerializeOptions } from 'cookie';
10
10
  export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
11
11
  import { P as Pages } from './register-DiOIlEq5.mjs';
12
12
  export { a as Register } from './register-DiOIlEq5.mjs';
13
- import { S as ServerPayload, m as matchRSCServerRequest } from './browser-Db0sq1MO.mjs';
14
- export { h as ServerRouteManifest, C as unstable_CreateFromReadableStreamFunction, D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, E as unstable_EncodeReplyFunction, L as unstable_LoadServerActionFunction, R as unstable_RSCHydratedRouter, d as unstable_ServerManifestPayload, e as unstable_ServerMatch, f as unstable_ServerRenderPayload, i as unstable_ServerRouteMatch, j as unstable_ServerRouteObject, c as unstable_createCallServer, g as unstable_getServerStream } from './browser-Db0sq1MO.mjs';
13
+ import { C as CreateFromReadableStreamFunction, S as ServerPayload, m as matchRSCServerRequest } from './browser--LisUeny.mjs';
14
+ export { h as ServerRouteManifest, D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, E as unstable_EncodeReplyFunction, L as unstable_LoadServerActionFunction, R as unstable_RSCHydratedRouter, d as unstable_ServerManifestPayload, e as unstable_ServerMatch, f as unstable_ServerRenderPayload, i as unstable_ServerRouteMatch, j as unstable_ServerRouteObject, c as unstable_createCallServer, g as unstable_getServerStream } from './browser--LisUeny.mjs';
15
15
  import 'node:async_hooks';
16
16
 
17
17
  declare const SingleFetchRedirectSymbol: unique symbol;
@@ -351,10 +351,10 @@ type ToArgs<Params extends Record<string, string | undefined>> = Equal<Params, {
351
351
  */
352
352
  declare function href<Path extends keyof Args>(path: Path, ...args: Args[Path]): string;
353
353
 
354
- declare function routeRSCServerRequest({ request, fetchServer, decode, renderHTML, hydrate, }: {
354
+ declare function routeRSCServerRequest({ request, fetchServer, createFromReadableStream, renderHTML, hydrate, }: {
355
355
  request: Request;
356
356
  fetchServer: (request: Request) => Promise<Response>;
357
- decode: (body: ReadableStream<Uint8Array>) => Promise<ServerPayload>;
357
+ createFromReadableStream: CreateFromReadableStreamFunction;
358
358
  renderHTML: (getPayload: () => Promise<ServerPayload>) => ReadableStream<Uint8Array> | Promise<ReadableStream<Uint8Array>>;
359
359
  hydrate?: boolean;
360
360
  }): Promise<Response>;
@@ -404,4 +404,4 @@ declare function getHydrationData(state: {
404
404
 
405
405
  declare const unstable_matchRSCServerRequest: typeof matchRSCServerRequest;
406
406
 
407
- export { ActionFunction, AppLoadContext, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, NonIndexRouteObject, PatchRoutesOnNavigationFunction, Path, type RequestHandler, RouterState, type RoutesTestStubProps, ServerBuild, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, href, isCookie, isSession, unstable_InitialContext, RSCStaticRouter as unstable_RSCStaticRouter, ServerPayload as unstable_ServerPayload, unstable_matchRSCServerRequest, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks };
407
+ export { ActionFunction, AppLoadContext, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, NonIndexRouteObject, PatchRoutesOnNavigationFunction, Path, type RequestHandler, RouterState, type RoutesTestStubProps, ServerBuild, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, href, isCookie, isSession, CreateFromReadableStreamFunction as unstable_CreateFromReadableStreamFunction, unstable_InitialContext, RSCStaticRouter as unstable_RSCStaticRouter, ServerPayload as unstable_ServerPayload, unstable_matchRSCServerRequest, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks };
@@ -347,6 +347,7 @@ type ToArgs<Params extends Record<string, string | undefined>> = Equal<Params, {
347
347
  */
348
348
  declare function href<Path extends keyof Args>(path: Path, ...args: Args[Path]): string;
349
349
 
350
+ type CreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>) => Promise<unknown>;
350
351
  type ServerContext = {
351
352
  redirect?: Response;
352
353
  };
@@ -457,7 +458,6 @@ declare function matchRSCServerRequest({ decodeReply, loadServerAction, decodeAc
457
458
  generateResponse: (match: ServerMatch) => Response;
458
459
  }): Promise<Response>;
459
460
 
460
- type CreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>) => Promise<unknown>;
461
461
  type EncodeReplyFunction = (args: unknown[]) => Promise<BodyInit>;
462
462
  declare global {
463
463
  interface Window {
@@ -478,10 +478,10 @@ declare function RSCHydratedRouter({ createFromReadableStream, fetch: fetchImple
478
478
  routeDiscovery?: "eager" | "lazy";
479
479
  }): React.JSX.Element;
480
480
 
481
- declare function routeRSCServerRequest({ request, fetchServer, decode, renderHTML, hydrate, }: {
481
+ declare function routeRSCServerRequest({ request, fetchServer, createFromReadableStream, renderHTML, hydrate, }: {
482
482
  request: Request;
483
483
  fetchServer: (request: Request) => Promise<Response>;
484
- decode: (body: ReadableStream<Uint8Array>) => Promise<ServerPayload>;
484
+ createFromReadableStream: CreateFromReadableStreamFunction;
485
485
  renderHTML: (getPayload: () => Promise<ServerPayload>) => ReadableStream<Uint8Array> | Promise<ReadableStream<Uint8Array>>;
486
486
  hydrate?: boolean;
487
487
  }): Promise<Response>;