reroute-js 1.0.0-alpha.3 → 1.0.0-alpha.5

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 (204) hide show
  1. package/cli/bin.d.ts +1 -1
  2. package/cli/bin.js +740 -671
  3. package/cli/bin.js.map +11 -11
  4. package/cli/index.d.ts +1 -1
  5. package/cli/index.js +37 -25
  6. package/cli/index.js.map +3 -3
  7. package/cli/src/cli.d.ts +1 -1
  8. package/cli/src/commands/analyze.d.ts +1 -1
  9. package/cli/src/commands/build.d.ts +1 -1
  10. package/cli/src/commands/dev.d.ts +5 -6
  11. package/cli/src/commands/dev.d.ts.map +1 -1
  12. package/cli/src/commands/gen.d.ts +4 -1
  13. package/cli/src/commands/gen.d.ts.map +1 -1
  14. package/cli/src/commands/index.d.ts +1 -1
  15. package/cli/src/commands/init.d.ts +1 -1
  16. package/cli/src/commands/lib/assets.d.ts +1 -1
  17. package/cli/src/commands/lib/bundler.d.ts +7 -1
  18. package/cli/src/commands/lib/bundler.d.ts.map +1 -1
  19. package/cli/src/commands/lib/command.d.ts +1 -1
  20. package/cli/src/commands/lib/env.d.ts +1 -1
  21. package/cli/src/commands/lib/index.d.ts +1 -1
  22. package/cli/src/commands/lib/log.d.ts +1 -1
  23. package/cli/src/commands/lib/markdown/availability.d.ts +1 -1
  24. package/cli/src/commands/lib/markdown/index.d.ts +1 -1
  25. package/cli/src/commands/lib/markdown/processor.d.ts +1 -1
  26. package/cli/src/commands/lib/production.d.ts +1 -1
  27. package/cli/src/commands/lib/server.d.ts +2 -1
  28. package/cli/src/commands/lib/server.d.ts.map +1 -1
  29. package/cli/src/commands/lib/streaming/analyzer.d.ts +1 -1
  30. package/cli/src/commands/lib/streaming/suspense.d.ts +1 -1
  31. package/cli/src/commands/lib/terminal-ui.d.ts +1 -1
  32. package/cli/src/commands/lib/theme.d.ts +1 -1
  33. package/cli/src/commands/lib/version.d.ts +1 -1
  34. package/cli/src/commands/og.d.ts +1 -1
  35. package/cli/src/commands/start.d.ts +1 -1
  36. package/cli/src/index.d.ts +1 -1
  37. package/core/index.d.ts +1 -1
  38. package/core/index.js +201 -158
  39. package/core/index.js.map +5 -5
  40. package/core/src/bundler/hash.d.ts +1 -1
  41. package/core/src/bundler/index.d.ts +1 -1
  42. package/core/src/config.d.ts +1 -1
  43. package/core/src/content/discovery.d.ts +1 -1
  44. package/core/src/content/index.d.ts +1 -1
  45. package/core/src/content/metadata.d.ts +1 -1
  46. package/core/src/i18n/catalog.d.ts +1 -1
  47. package/core/src/i18n/discover.d.ts +1 -1
  48. package/core/src/i18n/index.d.ts +1 -1
  49. package/core/src/i18n/messages.d.ts +1 -1
  50. package/core/src/i18n/negotiate.d.ts +1 -1
  51. package/core/src/i18n/pathname.d.ts +1 -1
  52. package/core/src/i18n/resolve.d.ts +1 -1
  53. package/core/src/i18n/types.d.ts +1 -1
  54. package/core/src/index.d.ts +1 -1
  55. package/core/src/llms/extractor.d.ts +1 -1
  56. package/core/src/llms/formatter.d.ts +1 -1
  57. package/core/src/llms/full-generator.d.ts +1 -1
  58. package/core/src/llms/index-generator.d.ts +1 -1
  59. package/core/src/llms/index.d.ts +1 -1
  60. package/core/src/og/discovery.d.ts +1 -1
  61. package/core/src/og/index.d.ts +1 -1
  62. package/core/src/og/meta.d.ts +1 -1
  63. package/core/src/og/render.d.ts +1 -1
  64. package/core/src/og/types.d.ts +1 -1
  65. package/core/src/robots/discovery.d.ts +1 -1
  66. package/core/src/robots/generator.d.ts +1 -1
  67. package/core/src/robots/index.d.ts +1 -1
  68. package/core/src/robots/policies.d.ts +1 -1
  69. package/core/src/rss/discovery.d.ts +1 -1
  70. package/core/src/rss/generator.d.ts +1 -1
  71. package/core/src/rss/index.d.ts +1 -1
  72. package/core/src/sitemap/discovery.d.ts +1 -1
  73. package/core/src/sitemap/generator.d.ts +1 -1
  74. package/core/src/sitemap/index.d.ts +1 -1
  75. package/core/src/ssr/index.d.ts +1 -1
  76. package/core/src/ssr/lib/cache.d.ts +1 -1
  77. package/core/src/ssr/lib/cleanup.d.ts +1 -1
  78. package/core/src/ssr/lib/collections.d.ts +1 -1
  79. package/core/src/ssr/lib/compression.d.ts +1 -1
  80. package/core/src/ssr/lib/compute/content.d.ts +1 -1
  81. package/core/src/ssr/lib/compute/index.d.ts +1 -1
  82. package/core/src/ssr/lib/compute/layouts.d.ts +1 -1
  83. package/core/src/ssr/lib/compute/routes.d.ts +1 -1
  84. package/core/src/ssr/lib/content-path.d.ts +1 -1
  85. package/core/src/ssr/lib/data.d.ts +1 -1
  86. package/core/src/ssr/lib/html.d.ts +1 -1
  87. package/core/src/ssr/lib/imports.d.ts +8 -3
  88. package/core/src/ssr/lib/imports.d.ts.map +1 -1
  89. package/core/src/ssr/lib/index.d.ts +1 -1
  90. package/core/src/ssr/lib/layouts.d.ts +1 -1
  91. package/core/src/ssr/lib/metadata.d.ts +1 -1
  92. package/core/src/ssr/lib/mime.d.ts +1 -1
  93. package/core/src/ssr/lib/modules.d.ts +1 -1
  94. package/core/src/ssr/lib/path.d.ts +1 -1
  95. package/core/src/ssr/lib/preload.d.ts +1 -1
  96. package/core/src/ssr/lib/route-match.d.ts +1 -1
  97. package/core/src/ssr/lib/scripts/collections.d.ts +1 -1
  98. package/core/src/ssr/lib/scripts/data.d.ts +1 -1
  99. package/core/src/ssr/lib/scripts/escape.d.ts +1 -1
  100. package/core/src/ssr/lib/scripts/feeds.d.ts +1 -1
  101. package/core/src/ssr/lib/scripts/index.d.ts +1 -1
  102. package/core/src/ssr/lib/seed.d.ts +6 -1
  103. package/core/src/ssr/lib/seed.d.ts.map +1 -1
  104. package/core/src/ssr/lib/serialize.d.ts +1 -1
  105. package/core/src/ssr/lib/setup.d.ts +1 -1
  106. package/core/src/ssr/lib/styles.d.ts +1 -1
  107. package/core/src/ssr/lib/template.d.ts +1 -1
  108. package/core/src/ssr/lib/types.d.ts +1 -1
  109. package/core/src/ssr/render.d.ts +1 -1
  110. package/core/src/ssr/stream.d.ts +1 -1
  111. package/elysia/index.d.ts +1 -1
  112. package/elysia/index.js +278 -209
  113. package/elysia/index.js.map +11 -10
  114. package/elysia/src/index.d.ts +1 -1
  115. package/elysia/src/libs/assets.d.ts +1 -1
  116. package/elysia/src/libs/cache.d.ts +1 -1
  117. package/elysia/src/libs/caching.d.ts +1 -1
  118. package/elysia/src/libs/http.d.ts +1 -1
  119. package/elysia/src/libs/i18n.d.ts +1 -1
  120. package/elysia/src/libs/image.d.ts +1 -1
  121. package/elysia/src/libs/index.d.ts +1 -1
  122. package/elysia/src/libs/llms.d.ts +1 -1
  123. package/elysia/src/libs/response.d.ts +1 -1
  124. package/elysia/src/libs/serving.d.ts +1 -1
  125. package/elysia/src/plugin.d.ts +1 -1
  126. package/elysia/src/plugin.d.ts.map +1 -1
  127. package/elysia/src/routes/artifacts.d.ts +1 -1
  128. package/elysia/src/routes/content.d.ts +2 -2
  129. package/elysia/src/routes/content.d.ts.map +1 -1
  130. package/elysia/src/routes/image.d.ts +1 -1
  131. package/elysia/src/routes/index.d.ts +1 -1
  132. package/elysia/src/routes/internal.d.ts +1 -1
  133. package/elysia/src/routes/internal.d.ts.map +1 -1
  134. package/elysia/src/routes/llms.d.ts +1 -1
  135. package/elysia/src/routes/og.d.ts +1 -1
  136. package/elysia/src/routes/redirects.d.ts +1 -1
  137. package/elysia/src/routes/robots.d.ts +1 -1
  138. package/elysia/src/routes/rss.d.ts +1 -1
  139. package/elysia/src/routes/search.d.ts +1 -1
  140. package/elysia/src/routes/sitemap.d.ts +1 -1
  141. package/elysia/src/routes/ssr.d.ts +1 -1
  142. package/elysia/src/routes/static.d.ts +1 -1
  143. package/elysia/src/routes/themeCssRefresh.d.ts +17 -0
  144. package/elysia/src/routes/themeCssRefresh.d.ts.map +1 -0
  145. package/elysia/src/types.d.ts +1 -1
  146. package/package.json +1 -1
  147. package/react/index.d.ts +1 -1
  148. package/react/index.js +71 -71
  149. package/react/index.js.map +1 -1
  150. package/react/src/components/ClientOnly.d.ts +1 -1
  151. package/react/src/components/ContentRoute.d.ts +1 -1
  152. package/react/src/components/Image.d.ts +1 -1
  153. package/react/src/components/LazyRoute.d.ts +1 -1
  154. package/react/src/components/Link.d.ts +1 -1
  155. package/react/src/components/Markdown.d.ts +1 -1
  156. package/react/src/components/Outlet.d.ts +1 -1
  157. package/react/src/components/index.d.ts +1 -1
  158. package/react/src/hooks/index.d.ts +1 -1
  159. package/react/src/hooks/useContent.d.ts +1 -1
  160. package/react/src/hooks/useData.d.ts +1 -1
  161. package/react/src/hooks/useFeed.d.ts +1 -1
  162. package/react/src/hooks/useLayoutData.d.ts +1 -1
  163. package/react/src/hooks/useLlms.d.ts +1 -1
  164. package/react/src/hooks/useNavigate.d.ts +1 -1
  165. package/react/src/hooks/useParams.d.ts +1 -1
  166. package/react/src/hooks/useRouter.d.ts +1 -1
  167. package/react/src/hooks/useSearch.d.ts +1 -1
  168. package/react/src/hooks/useSearchParams.d.ts +1 -1
  169. package/react/src/hooks/useToc.d.ts +1 -1
  170. package/react/src/i18n/LocaleProvider.d.ts +1 -1
  171. package/react/src/i18n/helpers.d.ts +1 -1
  172. package/react/src/i18n/index.d.ts +1 -1
  173. package/react/src/index.d.ts +1 -1
  174. package/react/src/lib/collection.d.ts +1 -1
  175. package/react/src/lib/content.d.ts +1 -1
  176. package/react/src/lib/head.d.ts +1 -1
  177. package/react/src/lib/index.d.ts +1 -1
  178. package/react/src/lib/lazy-route.d.ts +1 -1
  179. package/react/src/lib/route-loader.d.ts +1 -1
  180. package/react/src/providers/ContentProvider.d.ts +1 -1
  181. package/react/src/providers/RerouteProvider.d.ts +1 -1
  182. package/react/src/providers/RouterProvider.d.ts +1 -1
  183. package/react/src/providers/index.d.ts +1 -1
  184. package/react/src/types/any.d.ts +1 -1
  185. package/react/src/types/index.d.ts +1 -1
  186. package/react/src/types/router.d.ts +1 -1
  187. package/telemetry/react.d.ts +1 -1
  188. package/telemetry/react.js +16 -16
  189. package/telemetry/react.js.map +2 -2
  190. package/telemetry/server.d.ts +1 -1
  191. package/telemetry/server.js +28 -220
  192. package/telemetry/server.js.map +5 -4
  193. package/telemetry/src/react/api.d.ts +1 -1
  194. package/telemetry/src/react/context.d.ts +1 -1
  195. package/telemetry/src/react/index.d.ts +1 -1
  196. package/telemetry/src/react/telemetry.d.ts +1 -1
  197. package/telemetry/src/server/context.d.ts +1 -1
  198. package/telemetry/src/server/headers/extractor.d.ts +1 -1
  199. package/telemetry/src/server/headers/index.d.ts +1 -1
  200. package/telemetry/src/server/headers/presets.d.ts +1 -1
  201. package/telemetry/src/server/index.d.ts +1 -1
  202. package/telemetry/src/server/instrumentation.d.ts +1 -1
  203. package/telemetry/src/server/plugin.d.ts +1 -1
  204. package/telemetry/src/server/sourcemap.d.ts +1 -1
package/core/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v1.0.0-alpha.3
2
+ * reroute-js v1.0.0-alpha.5
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2026 stewones <hi@stewan.io>
@@ -390,14 +390,14 @@ var init_negotiate = () => {};
390
390
  // packages/core/src/i18n/pathname.ts
391
391
  var exports_pathname = {};
392
392
  __export(exports_pathname, {
393
- toOgLocale: () => toOgLocale,
394
- parseContentPath: () => parseContentPath,
395
- normalizePathname: () => normalizePathname,
396
- looksLikeLocale: () => looksLikeLocale,
397
- localizeHref: () => localizeHref,
398
- localizeContentHref: () => localizeContentHref,
393
+ contentKey: () => contentKey,
399
394
  hreflangTags: () => hreflangTags,
400
- contentKey: () => contentKey
395
+ localizeContentHref: () => localizeContentHref,
396
+ localizeHref: () => localizeHref,
397
+ looksLikeLocale: () => looksLikeLocale,
398
+ normalizePathname: () => normalizePathname,
399
+ parseContentPath: () => parseContentPath,
400
+ toOgLocale: () => toOgLocale
401
401
  });
402
402
  function looksLikeLocale(segment) {
403
403
  return /^[a-z]{2}(?:-[A-Za-z0-9]{2,8})*$/i.test(segment);
@@ -1049,11 +1049,39 @@ function cleanupPathScopedSSRData(pathname) {
1049
1049
  }
1050
1050
 
1051
1051
  // packages/core/src/ssr/lib/imports.ts
1052
+ import { copyFile, realpath, stat as stat3, unlink } from "node:fs/promises";
1053
+ import { basename as basename2, dirname, extname as extname2, join as join3 } from "node:path";
1052
1054
  import { pathToFileURL as pathToFileURL3 } from "node:url";
1055
+ function clearWatchImportCache() {
1056
+ watchImportCache.clear();
1057
+ }
1058
+ function bustCopyPath(absolutePath) {
1059
+ const dir = dirname(absolutePath);
1060
+ const ext = extname2(absolutePath);
1061
+ const base = basename2(absolutePath, ext);
1062
+ const token = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
1063
+ return join3(dir, `${base}.bust-${token}${ext}`);
1064
+ }
1053
1065
  async function dynamicImport(absolutePath, isWatchMode) {
1054
1066
  const href = pathToFileURL3(absolutePath).href;
1055
- const url = isWatchMode ? `${href}?t=${Date.now()}` : href;
1056
- return await import(url);
1067
+ if (!isWatchMode) {
1068
+ return await import(href);
1069
+ }
1070
+ const resolved = await realpath(absolutePath);
1071
+ const mtimeMs = (await stat3(resolved)).mtimeMs;
1072
+ const cached = watchImportCache.get(resolved);
1073
+ if (cached && cached.mtimeMs === mtimeMs) {
1074
+ return cached.mod;
1075
+ }
1076
+ const tmp = bustCopyPath(resolved);
1077
+ await copyFile(resolved, tmp);
1078
+ try {
1079
+ const mod = await import(pathToFileURL3(tmp).href);
1080
+ watchImportCache.set(resolved, { mtimeMs, mod });
1081
+ return mod;
1082
+ } finally {
1083
+ await unlink(tmp).catch(() => {});
1084
+ }
1057
1085
  }
1058
1086
  function isThenable(value) {
1059
1087
  return typeof value === "object" && value !== null && typeof value.then === "function";
@@ -1061,7 +1089,10 @@ function isThenable(value) {
1061
1089
  function toPromise(input) {
1062
1090
  return input instanceof Promise ? input : Promise.resolve(input);
1063
1091
  }
1064
- var init_imports = () => {};
1092
+ var watchImportCache;
1093
+ var init_imports = __esm(() => {
1094
+ watchImportCache = new Map;
1095
+ });
1065
1096
 
1066
1097
  // packages/core/src/ssr/lib/collections.ts
1067
1098
  async function loadCollections(cwd, isWatchMode) {
@@ -1851,7 +1882,7 @@ var init_compute = __esm(() => {
1851
1882
  });
1852
1883
 
1853
1884
  // packages/core/src/ssr/lib/modules.ts
1854
- import { readdir as readdir3, stat as stat3 } from "node:fs/promises";
1885
+ import { readdir as readdir3, stat as stat4 } from "node:fs/promises";
1855
1886
  async function importContentModuleForPath(pathname, clientDir, cwd, isWatchMode) {
1856
1887
  try {
1857
1888
  const resolved = resolveContentPathParts(pathname);
@@ -1909,7 +1940,7 @@ async function tryChunkImport(collection, name, cwd, isWatchMode) {
1909
1940
  let latestM = 0;
1910
1941
  for (const f of matches) {
1911
1942
  try {
1912
- const s = await stat3(join(chunkDir, f));
1943
+ const s = await stat4(join(chunkDir, f));
1913
1944
  if (s.mtimeMs >= latestM) {
1914
1945
  latestM = s.mtimeMs;
1915
1946
  latest = f;
@@ -1966,6 +1997,16 @@ function touchModule(key) {
1966
1997
  evictLRUModule();
1967
1998
  }
1968
1999
  }
2000
+ function clearSSRModuleStores() {
2001
+ const g = globalThis;
2002
+ if (g.__REROUTE_SSR_MODULES__) {
2003
+ g.__REROUTE_SSR_MODULES__ = {};
2004
+ }
2005
+ if (g.__REROUTE_SSR_EXPORTS__) {
2006
+ g.__REROUTE_SSR_EXPORTS__ = {};
2007
+ }
2008
+ moduleAccessOrder.length = 0;
2009
+ }
1969
2010
  async function seedSSRModuleForPath(pathname, clientDir, cwd, isWatchMode) {
1970
2011
  try {
1971
2012
  const resolved = resolveContentPathParts(pathname);
@@ -2950,7 +2991,7 @@ var init_metadata2 = __esm(() => {
2950
2991
  });
2951
2992
 
2952
2993
  // packages/core/src/ssr/lib/preload.ts
2953
- import { readdir as readdir5, stat as stat4 } from "node:fs/promises";
2994
+ import { readdir as readdir5, stat as stat5 } from "node:fs/promises";
2954
2995
  async function preloadContentModule(pathname, clientDir, cwd, isWatchMode) {
2955
2996
  let extraHead = "";
2956
2997
  let hydrationScript = "";
@@ -2984,14 +3025,14 @@ async function isContentCollection(clientDir, collection) {
2984
3025
  if (isProduction) {
2985
3026
  const collectionFile = join(clientDir, "collections", `${collection}.js`);
2986
3027
  try {
2987
- const s2 = await stat4(collectionFile);
3028
+ const s2 = await stat5(collectionFile);
2988
3029
  return s2?.isFile() ?? false;
2989
3030
  } catch {
2990
3031
  return false;
2991
3032
  }
2992
3033
  }
2993
3034
  const maybeDir = join(clientDir, "routes", collection, "content");
2994
- const s = await stat4(maybeDir);
3035
+ const s = await stat5(maybeDir);
2995
3036
  return typeof s?.isDirectory === "function" ? s.isDirectory() : true;
2996
3037
  } catch {
2997
3038
  return false;
@@ -3002,7 +3043,7 @@ async function findLatestCandidate(chunkDir, candidates) {
3002
3043
  let latestM = 0;
3003
3044
  for (const candidateName of candidates) {
3004
3045
  try {
3005
- const s = await stat4(join(chunkDir, candidateName));
3046
+ const s = await stat5(join(chunkDir, candidateName));
3006
3047
  if (s.mtimeMs >= latestM) {
3007
3048
  latestM = s.mtimeMs;
3008
3049
  latest = candidateName;
@@ -3390,15 +3431,15 @@ var init_scripts = __esm(() => {
3390
3431
  // packages/core/src/ssr/lib/styles.ts
3391
3432
  async function inlineThemeCSS(clientDir, minify = false, isWatchMode = false) {
3392
3433
  try {
3434
+ if (isWatchMode) {
3435
+ const timestamp = Date.now();
3436
+ return `<link rel="stylesheet" href="/.reroute/index.css?t=${timestamp}" data-reroute="theme">`;
3437
+ }
3393
3438
  const bundledCss = globalThis.__REROUTE_THEME_CSS__;
3394
3439
  if (bundledCss) {
3395
3440
  const css2 = minify ? minifyCSS(bundledCss) : bundledCss;
3396
3441
  return `<style data-reroute="theme">${css2}</style>`;
3397
3442
  }
3398
- if (isWatchMode) {
3399
- const timestamp = Date.now();
3400
- return `<link rel="stylesheet" href="/.reroute/index.css?t=${timestamp}" data-reroute="theme">`;
3401
- }
3402
3443
  const candidates = [
3403
3444
  join(clientDir, "..", ".reroute", "index.css"),
3404
3445
  join(clientDir, "..", "..", ".reroute", "index.css"),
@@ -4117,10 +4158,10 @@ var init_extractor = __esm(() => {
4117
4158
  // packages/core/src/llms/index-generator.ts
4118
4159
  var exports_index_generator = {};
4119
4160
  __export(exports_index_generator, {
4120
- generateLLMsIndex: () => generateLLMsIndex,
4121
- discoverStaticRoutes: () => discoverStaticRoutes,
4161
+ discoverCollectionRoutes: () => discoverCollectionRoutes,
4122
4162
  discoverSSRDataRoutes: () => discoverSSRDataRoutes,
4123
- discoverCollectionRoutes: () => discoverCollectionRoutes
4163
+ discoverStaticRoutes: () => discoverStaticRoutes,
4164
+ generateLLMsIndex: () => generateLLMsIndex
4124
4165
  });
4125
4166
  import { pathToFileURL as pathToFileURL6 } from "node:url";
4126
4167
  async function discoverStaticRoutes(cwd, isWatchMode) {
@@ -4903,10 +4944,10 @@ var init_robots = __esm(() => {
4903
4944
  // packages/core/src/sitemap/discovery.ts
4904
4945
  var exports_discovery = {};
4905
4946
  __export(exports_discovery, {
4906
- discoverSitemapData: () => discoverSitemapData,
4907
- discoverSSRDataRoutes: () => discoverSSRDataRoutes2,
4947
+ discoverCollectionContent: () => discoverCollectionContent,
4908
4948
  discoverRoutes: () => discoverRoutes,
4909
- discoverCollectionContent: () => discoverCollectionContent
4949
+ discoverSSRDataRoutes: () => discoverSSRDataRoutes2,
4950
+ discoverSitemapData: () => discoverSitemapData
4910
4951
  });
4911
4952
  async function loadRoutesModule2(cwd, isWatchMode) {
4912
4953
  let routes = globalThis.__REROUTE_ROUTES__;
@@ -6194,137 +6235,139 @@ var init_core = __esm(() => {
6194
6235
  init_core();
6195
6236
 
6196
6237
  export {
6197
- toPromise,
6198
- toOgLocale,
6199
- toBytes,
6200
- stripStart,
6201
- stripHtmlTags,
6202
- stripEnd,
6203
- statusCache,
6204
- ssrCache,
6205
- splitTemplate,
6206
- shouldExcludeRoute,
6207
- setGlobalSSRData,
6208
- setGlobalCollections,
6209
- seedSSRModuleForPath,
6210
- resolveLocale,
6211
- resetSSRAccessTracking,
6212
- renderSSRDocumentStream,
6213
- renderSSRDocument,
6214
- renderOGImageToPNG,
6215
- removeOverriddenMetaTags,
6216
- processCollections,
6217
- preloadContentModule,
6218
- performSSRSetup,
6219
- parseCookieValue,
6220
- parseContentPath,
6221
- normalizePathname,
6222
- negotiateLocale,
6223
- mergeLayoutData,
6224
- matchRoutes,
6225
- matchRoutePattern,
6226
- lookupMessage,
6227
- looksLikeLocale,
6228
- localizeHref,
6229
- localizeContentHref,
6230
- loadRoutesModule,
6231
- loadOGImageComponent,
6232
- loadIndexHtml,
6233
- loadConfig,
6234
- loadCollections,
6235
- listContentFiles,
6236
- join,
6237
- isThenable,
6238
- isCompressible,
6239
- inlineThemeCSS,
6240
- importContentModuleForPath,
6241
- htmlToMarkdown,
6242
- hreflangTags,
6243
- gzipIfAccepted,
6244
- getSitemapExcludedRoutes,
6245
- getRedirectSourcePaths,
6246
- getPatternDepth,
6247
- getMimeType,
6248
- getMessage,
6249
- getMatchingLayouts,
6250
- getContentMeta,
6251
- generateSitemapXML,
6252
- generateSitemapIndexXML,
6253
- generateSitemap,
6254
- generateRobots,
6255
- generateRSSXML,
6256
- generateOGImageMetaTags,
6257
- generateLLMsIndex,
6258
- generateLLMsFullContent,
6259
- generateLLMsFooter,
6260
- generateHydrationScripts,
6261
- generateFeed,
6262
- generateContentHash,
6263
- generateCollectionScripts,
6264
- generateAtomXML,
6265
- formatMessage,
6266
- formatAsText,
6267
- formatAsMarkdown,
6268
- findOGImageForPath,
6269
- extractTitle,
6270
- extractParamsFromPath,
6271
- extractPageMetadata,
6272
- extractContentForLLMs,
6273
- extname,
6274
- escapeXml2 as escapeXml,
6275
- escapeJsonForScript,
6276
- dynamicImport,
6277
- duplicateQueryParamData,
6278
- discoverSitemapData,
6279
- discoverSSRDataRoutes2 as discoverSSRDataRoutes,
6280
- discoverSSRDataFeedItems,
6281
- discoverRoutesForRobots,
6282
- discoverRoutes,
6283
- discoverRobotsData,
6284
- discoverRSSData,
6285
- discoverI18n,
6286
- discoverCollections,
6287
- discoverCollectionContent,
6288
- defineConfig,
6289
- deduplicateMetaTags,
6290
- createTranslator,
6291
- createLlmsScript,
6292
- createLayoutDataKey,
6293
- createLayoutCacheKey,
6294
- createFeedsScript,
6295
- createDataScript,
6296
- createCollectionScript,
6297
- createBundlePreload,
6298
- contentNegotiateRedirect,
6299
- contentKey,
6300
- computeSSRDataForPath,
6301
- computeSSRData,
6302
- computeRouteData,
6303
- computeLayoutData,
6304
- computeContentData,
6305
- compressStreamIfAccepted,
6306
- compareRouteSpecificity,
6307
- cleanupPathScopedSSRData,
6308
- buildLocaleCookie,
6309
- buildHeadFromMeta,
6310
- blockSearchCrawlers,
6311
- blockAITrainingCrawlers,
6312
- blockAICrawlers,
6313
- basename,
6314
- applyIndexTemplate,
6315
- allowSearchCrawlers,
6316
- allowAICrawlers,
6317
- acceptsGzip,
6318
- acceptsBrotli,
6319
- TTLCache,
6320
- SSRDataCache,
6321
- SEARCH_CRAWLERS,
6322
- LRUCache,
6323
- DefaultOGTemplate,
6324
- DEFAULT_LOCALES_DIR,
6325
- DEFAULT_LOCALE,
6238
+ AI_CRAWLERS,
6326
6239
  DEFAULT_COOKIE,
6327
- AI_CRAWLERS
6240
+ DEFAULT_LOCALE,
6241
+ DEFAULT_LOCALES_DIR,
6242
+ DefaultOGTemplate,
6243
+ LRUCache,
6244
+ SEARCH_CRAWLERS,
6245
+ SSRDataCache,
6246
+ TTLCache,
6247
+ acceptsBrotli,
6248
+ acceptsGzip,
6249
+ allowAICrawlers,
6250
+ allowSearchCrawlers,
6251
+ applyIndexTemplate,
6252
+ basename,
6253
+ blockAICrawlers,
6254
+ blockAITrainingCrawlers,
6255
+ blockSearchCrawlers,
6256
+ buildHeadFromMeta,
6257
+ buildLocaleCookie,
6258
+ cleanupPathScopedSSRData,
6259
+ clearSSRModuleStores,
6260
+ clearWatchImportCache,
6261
+ compareRouteSpecificity,
6262
+ compressStreamIfAccepted,
6263
+ computeContentData,
6264
+ computeLayoutData,
6265
+ computeRouteData,
6266
+ computeSSRData,
6267
+ computeSSRDataForPath,
6268
+ contentKey,
6269
+ contentNegotiateRedirect,
6270
+ createBundlePreload,
6271
+ createCollectionScript,
6272
+ createDataScript,
6273
+ createFeedsScript,
6274
+ createLayoutCacheKey,
6275
+ createLayoutDataKey,
6276
+ createLlmsScript,
6277
+ createTranslator,
6278
+ deduplicateMetaTags,
6279
+ defineConfig,
6280
+ discoverCollectionContent,
6281
+ discoverCollections,
6282
+ discoverI18n,
6283
+ discoverRSSData,
6284
+ discoverRobotsData,
6285
+ discoverRoutes,
6286
+ discoverRoutesForRobots,
6287
+ discoverSSRDataFeedItems,
6288
+ discoverSSRDataRoutes2 as discoverSSRDataRoutes,
6289
+ discoverSitemapData,
6290
+ duplicateQueryParamData,
6291
+ dynamicImport,
6292
+ escapeJsonForScript,
6293
+ escapeXml2 as escapeXml,
6294
+ extname,
6295
+ extractContentForLLMs,
6296
+ extractPageMetadata,
6297
+ extractParamsFromPath,
6298
+ extractTitle,
6299
+ findOGImageForPath,
6300
+ formatAsMarkdown,
6301
+ formatAsText,
6302
+ formatMessage,
6303
+ generateAtomXML,
6304
+ generateCollectionScripts,
6305
+ generateContentHash,
6306
+ generateFeed,
6307
+ generateHydrationScripts,
6308
+ generateLLMsFooter,
6309
+ generateLLMsFullContent,
6310
+ generateLLMsIndex,
6311
+ generateOGImageMetaTags,
6312
+ generateRSSXML,
6313
+ generateRobots,
6314
+ generateSitemap,
6315
+ generateSitemapIndexXML,
6316
+ generateSitemapXML,
6317
+ getContentMeta,
6318
+ getMatchingLayouts,
6319
+ getMessage,
6320
+ getMimeType,
6321
+ getPatternDepth,
6322
+ getRedirectSourcePaths,
6323
+ getSitemapExcludedRoutes,
6324
+ gzipIfAccepted,
6325
+ hreflangTags,
6326
+ htmlToMarkdown,
6327
+ importContentModuleForPath,
6328
+ inlineThemeCSS,
6329
+ isCompressible,
6330
+ isThenable,
6331
+ join,
6332
+ listContentFiles,
6333
+ loadCollections,
6334
+ loadConfig,
6335
+ loadIndexHtml,
6336
+ loadOGImageComponent,
6337
+ loadRoutesModule,
6338
+ localizeContentHref,
6339
+ localizeHref,
6340
+ looksLikeLocale,
6341
+ lookupMessage,
6342
+ matchRoutePattern,
6343
+ matchRoutes,
6344
+ mergeLayoutData,
6345
+ negotiateLocale,
6346
+ normalizePathname,
6347
+ parseContentPath,
6348
+ parseCookieValue,
6349
+ performSSRSetup,
6350
+ preloadContentModule,
6351
+ processCollections,
6352
+ removeOverriddenMetaTags,
6353
+ renderOGImageToPNG,
6354
+ renderSSRDocument,
6355
+ renderSSRDocumentStream,
6356
+ resetSSRAccessTracking,
6357
+ resolveLocale,
6358
+ seedSSRModuleForPath,
6359
+ setGlobalCollections,
6360
+ setGlobalSSRData,
6361
+ shouldExcludeRoute,
6362
+ splitTemplate,
6363
+ ssrCache,
6364
+ statusCache,
6365
+ stripEnd,
6366
+ stripHtmlTags,
6367
+ stripStart,
6368
+ toBytes,
6369
+ toOgLocale,
6370
+ toPromise
6328
6371
  };
6329
6372
 
6330
- //# debugId=EDB000A380462A3564756E2164756E21
6373
+ //# debugId=CD14125888528CFB64756E2164756E21