@expo/router-server 58.0.15 → 58.0.17

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 } = (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,9 @@ function prepareRenderContext(location, options) {
175
175
  })
176
176
  });
177
177
  resetReactNavigationContexts();
178
- const loaderKey = options?.loader ? options.loader.key + location.search : null;
178
+ const loaderKey = options.loader ? options.loader.key + location.search : null;
179
179
  const loadedData = loaderKey ? {
180
- [loaderKey]: options?.loader?.data ?? null
180
+ [loaderKey]: options.loader?.data ?? null
181
181
  } : null;
182
182
  return {
183
183
  headContext,
@@ -196,12 +196,12 @@ function FontResources() {
196
196
  async function getStreamingContent(location, options) {
197
197
  return _server().withServerContext(async ()=>{
198
198
  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 ?? []);
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 ?? []);
202
202
  const serverDocumentData = {
203
203
  headNodes: [
204
- ...options?.metadata?.headNodes ?? [],
204
+ ...options.metadata?.headNodes ?? [],
205
205
  faviconNode,
206
206
  getStyleElement({
207
207
  key: 'rnw-style-element'
@@ -216,7 +216,7 @@ async function getStreamingContent(location, options) {
216
216
  ...bodyJsNodes ?? []
217
217
  ]
218
218
  };
219
- const isStatic = options?.output === 'static';
219
+ const isStatic = options.output === 'static';
220
220
  const renderErrors = [];
221
221
  const stream = await _server2().default.renderToReadableStream(/*#__PURE__*/ (0, _jsxruntime().jsx)(_server1().ServerDocument, {
222
222
  data: serverDocumentData,
@@ -230,12 +230,12 @@ async function getStreamingContent(location, options) {
230
230
  }), {
231
231
  progressiveChunkSize: Number.MAX_SAFE_INTEGER,
232
232
  bootstrapScriptContent: (0, _react1.getBootstrapContents)({
233
- hydrate: options?.hydrate ?? true,
233
+ hydrate: options.hydrate ?? true,
234
234
  loadedData
235
235
  }) || undefined,
236
- signal: options?.request?.signal,
236
+ signal: options.request?.signal,
237
237
  onError (error) {
238
- if (options?.request?.signal.aborted) {
238
+ if (options.request?.signal.aborted) {
239
239
  return;
240
240
  }
241
241
  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;;;;;;kCAEM;uBACL;wBAOrB;0BA6JyB;;;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AAO;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","getRouteInfoForMatchedRoute","route","element","getStyleElement","registerStaticRootComponent","ExpoRoot","context","ctx","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;;;;;;;;;;;;;;;;QAqHVA;eAAAA;;QAwEbC;eAAAA,yBAAe;;;;;;;;;;;iEA3LF;;;;;;;yBACG;;;;;;;yBACL;;;;;;;gEACH;;;;;;;yBACc;;;;;;;yBAKxB;;;;;;;yBAC+D;;;;;;;gEAChC;;;;;;;gEACX;;;;;;kCAEM;uBACL;wBAOrB;0BAqKyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAnKhC,MAAMC,QAAQ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pB,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 } = (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,9 @@ 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 loaderKey = options.loader ? options.loader.key + location.search : null;
182
182
  const loadedData = loaderKey ? {
183
- [loaderKey]: options?.loader?.data ?? null
183
+ [loaderKey]: options.loader?.data ?? null
184
184
  } : null;
185
185
  return {
186
186
  headContext,
@@ -211,8 +211,8 @@ async function getStaticContent(location, options) {
211
211
  output = output.replace('</head>', `${(0, _html.createLoaderDataScriptAsString)(loadedData)}</head>`);
212
212
  }
213
213
  output = (0, _html.injectAssetsIntoHtml)(output, {
214
- assets: options?.assets,
215
- hydrate: options?.hydrate
214
+ assets: options.assets,
215
+ hydrate: options.hydrate
216
216
  });
217
217
  return '<!DOCTYPE html>' + output;
218
218
  });
@@ -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","hydrate","headTags","htmlAttributes","bodyAttributes","serializeHelmetToHtml"],"mappings":"AAAA;;;;;CAKC;;;;;;;;;;;;;;;;;;QA0IQA;eAAAA,kDAA+B;;QAAEC;eAAAA,8BAAW;;QArD/BC;eAAAA;;QAoDbC;eAAA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B,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","getRouteInfoForMatchedRoute","route","element","getStyleElement","registerStaticRootComponent","ExpoRoot","context","ctx","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","hydrate","headTags","htmlAttributes","bodyAttributes","serializeHelmetToHtml"],"mappings":"AAAA;;;;;CAKC;;;;;;;;;;;;;;;;;;QAkJQA;eAAAA,kDAA+B;;QAAEC;eAAAA,8BAAW;;QArD/BC;eAAAA;;QAoDbC;eAAAA,2CAAmB;;QAAEC;eAAAA,uCAAe;;;;;;;;;;QAhJtC;;iEACe;;;;;;;yBACG;;;;;;;yBACL;;;;;;;gEACH;;;;;;;yBAKV;;;;;;;gEAEW;;;;;;;gEACS;;;;;;uBAEC;sBAKrB;kCAC0B;wCA4HoB;mCACQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA3H7D,MAAMC,QAAQC,IAAAA,kBAAW,EAAC;AAE1B,SAASC;IACP,iDAAiD;IACjD,0JAA0J;IAE1J,8FAA8F;IAC9F,yJAAyJ;IACzJ,MAAMC,WAAW;IAChBC,UAAkB,CAACD,SAAS,GAAG,IAAIE;AACtC;AAiBA;;;CAGC,GACD,SAASC,qBAAqBC,QAAa,EAAEC,OAAgC;IAC3E,MAAMC,cAAgC,CAAC;IACvC,MAAMC,OAAOC,IAAAA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Ke,kBAAkB;QACrC/C,MAAM,CAAC,8BAA8B,EAAE8C,MAAME,MAAM,CAAC,CAAC,CAAC,EAAEF;QACxD,4CAA4C;QAC5CJ,SAASA,OAAOG,OAAO,CAAC,WAAW,GAAGC,MAAMG,IAAI,CAAC,IAAI,OAAO,CAAC;QAC7D,IAAInB,YAAY;YACdY,SAASA,OAAOG,OAAO,CAAC,WAAW,GAAGK,IAAAA,oCAA8B,EAACpB,YAAY,OAAO,CAAC;QAC3F;QAEAY,SAASS,IAAAA,0BAAoB,EAACT,QAAQ;YAAEU,QAAQ5C,QAAQ4C,MAAM;YAAEC,SAAS7C,QAAQ6C,OAAO;QAAC;QAEzF,OAAO,oBAAoBX;IAC7B;AACF;AAEA,SAASC,mCAAmCC,MAAW,EAAEV,IAAY;IACnE,MAAM,EAAEoB,QAAQ,EAAEC,cAAc,EAAEC,cAAc,EAAE,GAAGC,IAAAA,2BAAqB,EAACb;IAE3E,IAAIU,UAAU;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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/router-server",
3
- "version": "58.0.15",
3
+ "version": "58.0.17",
4
4
  "description": "Expo Router is a file-based router for React Native and web applications.",
5
5
  "keywords": [
6
6
  "expo",
@@ -30,7 +30,7 @@
30
30
  "debug": "^4.3.4"
31
31
  },
32
32
  "devDependencies": {
33
- "@expo/internal-scripts": "58.0.3",
33
+ "@expo/internal-scripts": "58.0.4",
34
34
  "@types/debug": "^4.1.7",
35
35
  "@types/jest": "^30.0.0",
36
36
  "@types/node": "^22.14.0",
@@ -38,17 +38,17 @@
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.24",
41
+ "expo-router": "58.0.26",
42
42
  "node-html-parser": "^6.1.5",
43
43
  "react-server-dom-webpack": "~19.0.8"
44
44
  },
45
45
  "peerDependencies": {
46
- "@expo/metro-runtime": "^58.0.14",
46
+ "@expo/metro-runtime": "^58.0.15",
47
47
  "expo": "*",
48
- "expo-constants": "^58.0.12",
49
- "expo-font": "^58.0.9",
48
+ "expo-constants": "^58.0.13",
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"