@expo/router-server 58.0.16 → 58.0.18

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.
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- import { type AssetInfo } from 'expo-server/private';
7
+ import { type AssetInfo, type MatchedRoute } from 'expo-server/private';
8
8
  import { type ReactNode } from 'react';
9
9
  export type GetStreamingContentOptions = {
10
10
  loader?: {
@@ -16,6 +16,10 @@ export type GetStreamingContentOptions = {
16
16
  headNodes: ReactNode[];
17
17
  } | null;
18
18
  request?: Request;
19
+ /** The route the server matched for `location`. */
20
+ route: MatchedRoute;
21
+ /** The params the server captured for `route`. */
22
+ params?: Record<string, string | string[]>;
19
23
  /** Assets for hydration bundles and development-only inline CSS. */
20
24
  assets?: AssetInfo;
21
25
  /** Sets the output mode when exporting. */
@@ -29,7 +33,7 @@ export type GetStreamingContentOptions = {
29
33
  export declare function getStreamingContent(location: URL, options: GetStreamingContentOptions & {
30
34
  output: 'static';
31
35
  }): Promise<string>;
32
- export declare function getStreamingContent(location: URL, options?: GetStreamingContentOptions & {
36
+ export declare function getStreamingContent(location: URL, options: GetStreamingContentOptions & {
33
37
  output?: 'server';
34
38
  }): Promise<ReadableStream<Uint8Array>>;
35
39
  export { resolveMetadata } from './metadata';
@@ -159,7 +159,7 @@ function resetReactNavigationContexts() {
159
159
  function prepareRenderContext(location, options) {
160
160
  const headContext = {};
161
161
  const Root = (0, _getRootComponent.getRootComponent)();
162
- const { pathname, params } = (0, _static().getRouteInfoForLocation)(_ctx().ctx, location);
162
+ const { pathname, params, searchParams } = (0, _static().getRouteInfoForMatchedRoute)(options.route, options.params ?? {}, location);
163
163
  const { // NOTE: The `element` that's returned adds two extra Views and
164
164
  // the seemingly unused `RootTagContext.Provider`.
165
165
  element, getStyleElement } = (0, _static().registerStaticRootComponent)(_exporouter().ExpoRoot, {
@@ -175,9 +175,10 @@ function prepareRenderContext(location, options) {
175
175
  })
176
176
  });
177
177
  resetReactNavigationContexts();
178
- const loaderKey = options?.loader ? options.loader.key + location.search : null;
178
+ const search = searchParams.toString();
179
+ const loaderKey = options.loader ? options.loader.key + (search ? `?${search}` : '') : null;
179
180
  const loadedData = loaderKey ? {
180
- [loaderKey]: options?.loader?.data ?? null
181
+ [loaderKey]: options.loader?.data ?? null
181
182
  } : null;
182
183
  return {
183
184
  headContext,
@@ -196,12 +197,12 @@ function FontResources() {
196
197
  async function getStreamingContent(location, options) {
197
198
  return _server().withServerContext(async ()=>{
198
199
  const { headContext, element, getStyleElement, loadedData } = prepareRenderContext(location, options);
199
- const { headNodes: cssNodes } = (0, _react1.createInjectedCssAsNodes)((0, _private().normalizeCssAssets)(options?.assets));
200
- const faviconNode = options?.assets?.favicon ? (0, _react1.createFaviconAsNode)(options?.assets?.favicon) : undefined;
201
- const { headNodes: headJsNodes, bodyNodes: bodyJsNodes } = (0, _react1.createInjectedScriptAsNodes)(options?.assets?.js ?? []);
200
+ const { headNodes: cssNodes } = (0, _react1.createInjectedCssAsNodes)((0, _private().normalizeCssAssets)(options.assets));
201
+ const faviconNode = options.assets?.favicon ? (0, _react1.createFaviconAsNode)(options.assets?.favicon) : undefined;
202
+ const { headNodes: headJsNodes, bodyNodes: bodyJsNodes } = (0, _react1.createInjectedScriptAsNodes)(options.assets?.js ?? []);
202
203
  const serverDocumentData = {
203
204
  headNodes: [
204
- ...options?.metadata?.headNodes ?? [],
205
+ ...options.metadata?.headNodes ?? [],
205
206
  faviconNode,
206
207
  getStyleElement({
207
208
  key: 'rnw-style-element'
@@ -216,7 +217,7 @@ async function getStreamingContent(location, options) {
216
217
  ...bodyJsNodes ?? []
217
218
  ]
218
219
  };
219
- const isStatic = options?.output === 'static';
220
+ const isStatic = options.output === 'static';
220
221
  const renderErrors = [];
221
222
  const stream = await _server2().default.renderToReadableStream(/*#__PURE__*/ (0, _jsxruntime().jsx)(_server1().ServerDocument, {
222
223
  data: serverDocumentData,
@@ -230,12 +231,12 @@ async function getStreamingContent(location, options) {
230
231
  }), {
231
232
  progressiveChunkSize: Number.MAX_SAFE_INTEGER,
232
233
  bootstrapScriptContent: (0, _react1.getBootstrapContents)({
233
- hydrate: options?.hydrate ?? true,
234
+ hydrate: options.hydrate ?? true,
234
235
  loadedData
235
236
  }) || undefined,
236
- signal: options?.request?.signal,
237
+ signal: options.request?.signal,
237
238
  onError (error) {
238
- if (options?.request?.signal.aborted) {
239
+ if (options.request?.signal.aborted) {
239
240
  return;
240
241
  }
241
242
  if (isStatic) {
@@ -1 +1 @@
1
- {"version":3,"sources":["server/renderStreamingContent.tsx"],"sourcesContent":[null],"names":["getStreamingContent","resolveMetadata","debug","createDebug","resetReactNavigationContexts","contexts","globalThis","Map","prepareRenderContext","location","options","headContext","Root","getRootComponent","pathname","params","getRouteInfoForLocation","ctx","element","getStyleElement","registerStaticRootComponent","ExpoRoot","context","wrapper","children","div","id","loaderKey","loader","key","search","loadedData","data","FontResources","descriptors","Font","getServerResourceDescriptors","length","createInjectedFontsAsNodes","withServerContext","headNodes","cssNodes","createInjectedCssAsNodes","normalizeCssAssets","assets","faviconNode","favicon","createFaviconAsNode","undefined","headJsNodes","bodyNodes","bodyJsNodes","createInjectedScriptAsNodes","js","serverDocumentData","metadata","filter","Boolean","isStatic","output","renderErrors","stream","ReactDOMServer","renderToReadableStream","ServerDocument","Head","Provider","InnerRoot","progressiveChunkSize","Number","MAX_SAFE_INTEGER","bootstrapScriptContent","getBootstrapContents","hydrate","signal","request","onError","error","aborted","push","console","allReady","Response","text"],"mappings":"AAAA;;;;;CAKC,GACD,kEAAkE;AAClE,gCAAgC;;;;;;;;;;;;;;;;QA6GVA;eAAAA;;QAwEbC;eAAAA,yBAAe;;;;;;;;;;;iEAnLF;;;;;;;yBACG;;;;;;;yBACL;;;;;;;gEACH;;;;;;;yBACc;;;;;;;yBAKxB;;;;;;;yBAC4C;;;;;;;gEACb;;;;;;;gEACX;;;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U;oBACZE,aAAamB,IAAI,CAACF;gBACpB,OAAO;oBACLG,QAAQH,KAAK,CAAC,+BAA+BA;gBAC/C;YACF;QACF;QAEF,IAAInB,UAAU;YACZ,MAAMG,OAAOoB,QAAQ;YACrB,IAAIrB,aAAavB,MAAM,GAAG,GAAG;gBAC3B,MAAMuB,YAAY,CAAC,EAAE;YACvB;YACA,OAAO,IAAIsB,SAASrB,QAAQsB,IAAI;QAClC;QACA,OAAOtB;IACT;AACF"}
1
+ {"version":3,"sources":["server/renderStreamingContent.tsx"],"sourcesContent":[null],"names":["getStreamingContent","resolveMetadata","debug","createDebug","resetReactNavigationContexts","contexts","globalThis","Map","prepareRenderContext","location","options","headContext","Root","getRootComponent","pathname","params","searchParams","getRouteInfoForMatchedRoute","route","element","getStyleElement","registerStaticRootComponent","ExpoRoot","context","ctx","wrapper","children","div","id","search","toString","loaderKey","loader","key","loadedData","data","FontResources","descriptors","Font","getServerResourceDescriptors","length","createInjectedFontsAsNodes","withServerContext","headNodes","cssNodes","createInjectedCssAsNodes","normalizeCssAssets","assets","faviconNode","favicon","createFaviconAsNode","undefined","headJsNodes","bodyNodes","bodyJsNodes","createInjectedScriptAsNodes","js","serverDocumentData","metadata","filter","Boolean","isStatic","output","renderErrors","stream","ReactDOMServer","renderToReadableStream","ServerDocument","Head","Provider","InnerRoot","progressiveChunkSize","Number","MAX_SAFE_INTEGER","bootstrapScriptContent","getBootstrapContents","hydrate","signal","request","onError","error","aborted","push","console","allReady","Response","text"],"mappings":"AAAA;;;;;CAKC,GACD,kEAAkE;AAClE,gCAAgC;;;;;;;;;;;;;;;;QAsHVA;eAAAA;;QAwEbC;eAAAA,yBAAe;;;;;;;;;;;iEA5LF;;;;;;;yBACG;;;;;;;yBACL;;;;;;;gEACH;;;;;;;yBACc;;;;;;;yBAKxB;;;;;;;yBAC+D;;;;;;;gEAChC;;;;;;;gEACX;;;;;;kCAEM;uBACL;wBAOrB;0BAsKyB;;;;;;;;;;;;;;;;;;;;;;;;;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;YACR0B,QAAQnE,QAAQoE,OAAO,EAAED;YACzBE,SAAQC,KAAK;gBACX,IAAItE,QAAQoE,OAAO,EAAED,OAAOI,SAAS;oBACnC;gBACF;gBAEA,IAAIpB,UAAU;oBACZE,aAAamB,IAAI,CAACF;gBACpB,OAAO;oBACLG,QAAQH,KAAK,CAAC,+BAA+BA;gBAC/C;YACF;QACF;QAEF,IAAInB,UAAU;YACZ,MAAMG,OAAOoB,QAAQ;YACrB,IAAIrB,aAAavB,MAAM,GAAG,GAAG;gBAC3B,MAAMuB,YAAY,CAAC,EAAE;YACvB;YACA,OAAO,IAAIsB,SAASrB,QAAQsB,IAAI;QAClC;QACA,OAAOtB;IACT;AACF"}
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import '@expo/metro-runtime';
8
- import type { AssetInfo } from 'expo-server/private';
8
+ import type { AssetInfo, MatchedRoute } from 'expo-server/private';
9
9
  export type GetStaticContentOptions = {
10
10
  loader?: {
11
11
  data?: any;
@@ -13,9 +13,13 @@ export type GetStaticContentOptions = {
13
13
  key: string;
14
14
  };
15
15
  request?: Request;
16
+ /** The route the server matched for `location`. */
17
+ route: MatchedRoute;
18
+ /** The params the server captured for `route`. */
19
+ params?: Record<string, string | string[]>;
16
20
  hydrate?: boolean;
17
21
  assets?: AssetInfo;
18
22
  };
19
- export declare function getStaticContent(location: URL, options?: GetStaticContentOptions): Promise<string>;
23
+ export declare function getStaticContent(location: URL, options: GetStaticContentOptions): Promise<string>;
20
24
  export { getStreamingContent, resolveMetadata } from '../server/renderStreamingContent';
21
25
  export { getBuildTimeServerManifestAsync, getManifest } from './getServerManifest';
@@ -160,7 +160,7 @@ function resetReactNavigationContexts() {
160
160
  */ function prepareRenderContext(location, options) {
161
161
  const headContext = {};
162
162
  const Root = (0, _getRootComponent.getRootComponent)();
163
- const { pathname, params } = (0, _static().getRouteInfoForLocation)(_ctx().ctx, location);
163
+ const { pathname, params, searchParams } = (0, _static().getRouteInfoForMatchedRoute)(options.route, options.params ?? {}, location);
164
164
  const { // NOTE: The `element` that's returned adds two extra Views and
165
165
  // the seemingly unused `RootTagContext.Provider`.
166
166
  element, getStyleElement } = (0, _static().registerStaticRootComponent)(_exporouter().ExpoRoot, {
@@ -178,9 +178,10 @@ function resetReactNavigationContexts() {
178
178
  // This MUST be run before `ReactDOMServer.renderToString` to prevent
179
179
  // "Warning: Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."
180
180
  resetReactNavigationContexts();
181
- const loaderKey = options?.loader ? options.loader.key + location.search : null;
181
+ const search = searchParams.toString();
182
+ const loaderKey = options.loader ? options.loader.key + (search ? `?${search}` : '') : null;
182
183
  const loadedData = loaderKey ? {
183
- [loaderKey]: options?.loader?.data ?? null
184
+ [loaderKey]: options.loader?.data ?? null
184
185
  } : null;
185
186
  return {
186
187
  headContext,
@@ -211,8 +212,8 @@ async function getStaticContent(location, options) {
211
212
  output = output.replace('</head>', `${(0, _html.createLoaderDataScriptAsString)(loadedData)}</head>`);
212
213
  }
213
214
  output = (0, _html.injectAssetsIntoHtml)(output, {
214
- assets: options?.assets,
215
- hydrate: options?.hydrate
215
+ assets: options.assets,
216
+ hydrate: options.hydrate
216
217
  });
217
218
  return '<!DOCTYPE html>' + output;
218
219
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["static/renderStaticContent.tsx"],"sourcesContent":[null],"names":["getBuildTimeServerManifestAsync","getManifest","getStaticContent","getStreamingContent","resolveMetadata","debug","createDebug","resetReactNavigationContexts","contexts","globalThis","Map","prepareRenderContext","location","options","headContext","Root","getRootComponent","pathname","params","getRouteInfoForLocation","ctx","element","getStyleElement","registerStaticRootComponent","ExpoRoot","context","wrapper","children","div","id","loaderKey","loader","key","search","loadedData","data","Font","withServerContext","html","ReactDOMServer","renderToString","Head","Provider","InnerRoot","css","renderToStaticMarkup","output","mixHeadComponentsWithStaticResults","helmet","replace","fonts","getServerResources","length","join","createLoaderDataScriptAsString","injectAssetsIntoHtml","assets","h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U;QACZpB,OAAOA,KAAKW,OAAO,CAAC,UAAU,CAAC,MAAM,EAAES,UAAU;IACnD;IAEA,aAAa;IACbpB,OAAOA,KAAKW,OAAO,CAAC,UAAU,CAAC,MAAM,EAAEU,eAAe,CAAC,CAAC;IACxDrB,OAAOA,KAAKW,OAAO,CAAC,UAAU,CAAC,MAAM,EAAEW,eAAe,CAAC,CAAC;IAExD,OAAOtB;AACT"}
1
+ {"version":3,"sources":["static/renderStaticContent.tsx"],"sourcesContent":[null],"names":["getBuildTimeServerManifestAsync","getManifest","getStaticContent","getStreamingContent","resolveMetadata","debug","createDebug","resetReactNavigationContexts","contexts","globalThis","Map","prepareRenderContext","location","options","headContext","Root","getRootComponent","pathname","params","searchParams","getRouteInfoForMatchedRoute","route","element","getStyleElement","registerStaticRootComponent","ExpoRoot","context","ctx","wrapper","children","div","id","search","toString","loaderKey","loader","key","loadedData","data","Font","withServerContext","html","ReactDOMServer","renderToString","Head","Provider","InnerRoot","css","renderToStaticMarkup","output","mixHeadComponentsWithStaticResults","helmet","replace","fonts","getServerResources","length","join","createLoaderDataScriptAsString","injectAssetsIntoHtml","assets","hydrate","headTags","htmlAttributes","bodyAttributes","serializeHelmetToHtml"],"mappings":"AAAA;;;;;CAKC;;;;;;;;;;;;;;;;;;QAmJQA;eAAAA,kDAA+B;;QAAEC;eAAAA,8BAAW;;QArD/BC;eAAAA;;QAoDbC;eAAAA,2CAAmB;;QAAEC;eAAAA,uCAAe;;;;;;;;;;QAjJtC;;iEACe;;;;;;;yBACG;;;;;;;yBACL;;;;;;;gEACH;;;;;;;yBAKV;;;;;;;gEAEW;;;;;;;gEACS;;;;;;uBAEC;sBAKrB;kCAC0B;wCA6HoB;mCACQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA5H7D,MAAMC,QAAQC,IAAAA,kBAAW,EAAC;AAE1B,SAASC;IACP,iDAAiD;IACjD,0JAA0J;IAE1J,8FAA8F;IAC9F,yJAAyJ;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Router is a file-based router for React Native and web applications.",
5
5
  "keywords": [
6
6
  "expo",
@@ -38,7 +38,7 @@
38
38
  "@types/react-dom": "^19.1.7",
39
39
  "@typescript/vfs": "^1.6.4",
40
40
  "expect-type": "^1.3.0",
41
- "expo-router": "58.0.25",
41
+ "expo-router": "58.0.27",
42
42
  "node-html-parser": "^6.1.5",
43
43
  "react-server-dom-webpack": "~19.0.8"
44
44
  },
@@ -46,9 +46,9 @@
46
46
  "@expo/metro-runtime": "^58.0.15",
47
47
  "expo": "*",
48
48
  "expo-constants": "^58.0.13",
49
- "expo-font": "^58.0.9",
49
+ "expo-font": "^58.0.10",
50
50
  "expo-router": "*",
51
- "expo-server": "^58.0.5",
51
+ "expo-server": "^58.0.6",
52
52
  "react": "*",
53
53
  "react-dom": "*",
54
54
  "react-server-dom-webpack": "~19.0.1 || ~19.1.2 || ~19.2.1 || ~19.3.0"