@wular/pnext 0.1.8 → 0.1.9

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 (70) hide show
  1. package/dist/server/_chunks/{aliases-pycbtjt1.js → aliases-fhv4dt06.js} +5 -5
  2. package/dist/server/_chunks/{analyze-4d9e00g9.js → analyze-09kx9q6r.js} +8 -8
  3. package/dist/server/_chunks/{boot-bhemypxz.js → boot-8aj7efqk.js} +8 -8
  4. package/dist/server/_chunks/{build-c991dv65.js → build-jda155c9.js} +4 -4
  5. package/dist/server/_chunks/{build-tier-0a96kmx3.js → build-tier-qrkpfsk1.js} +17 -17
  6. package/dist/server/_chunks/{build-kh5e3x48.js → build-wspv5h60.js} +56 -34
  7. package/dist/server/_chunks/{config-0tvz03a6.js → config-7h84p6q8.js} +3 -3
  8. package/dist/server/_chunks/{config-27rj7830.js → config-d4hqyygy.js} +2 -2
  9. package/dist/server/_chunks/{create-9rvwshsp.js → create-skj8wzt5.js} +3 -3
  10. package/dist/server/_chunks/{dev-ex9exynt.js → dev-pennd36n.js} +2 -2
  11. package/dist/server/_chunks/{generate-myw9hef7.js → generate-d8vb1d21.js} +3 -3
  12. package/dist/server/_chunks/{index-kdhxpwyq.js → index-0qt2vapb.js} +3 -3
  13. package/dist/server/_chunks/{index-b7j671dj.js → index-0wm2p3ks.js} +1 -1
  14. package/dist/server/_chunks/{index-n629dy38.js → index-1y0cesgn.js} +4 -4
  15. package/dist/server/_chunks/{index-gkndxkxf.js → index-26gwrm07.js} +2 -2
  16. package/dist/server/_chunks/{index-jn9rbhrx.js → index-3r6qpe8a.js} +4 -4
  17. package/dist/server/_chunks/{index-yrjkqtfj.js → index-42fef2rv.js} +2 -2
  18. package/dist/server/_chunks/{index-11xpbfej.js → index-47gx7trn.js} +1 -1
  19. package/dist/server/_chunks/{index-4da76t62.js → index-4qsce64w.js} +1 -1
  20. package/dist/server/_chunks/{index-fjv96re1.js → index-4vf121ws.js} +8 -8
  21. package/dist/server/_chunks/{index-1pzm1hdy.js → index-53fnn598.js} +7 -7
  22. package/dist/server/_chunks/{index-9hz3s0m8.js → index-6tb725m8.js} +1 -1
  23. package/dist/server/_chunks/{index-0yjv5v47.js → index-912z4mfx.js} +3 -3
  24. package/dist/server/_chunks/{index-8ct7rqy3.js → index-aarf1brn.js} +1 -1
  25. package/dist/server/_chunks/{index-nf3df4jy.js → index-cqcwwxfp.js} +3 -3
  26. package/dist/server/_chunks/{index-rjegyfx4.js → index-da0fphj0.js} +5 -5
  27. package/dist/server/_chunks/{index-he6n2bvp.js → index-e176wk6x.js} +1 -1
  28. package/dist/server/_chunks/{index-hdbwtdv2.js → index-fpghsgb4.js} +1 -1
  29. package/dist/server/_chunks/{index-evhd413j.js → index-hr63fvzn.js} +1 -1
  30. package/dist/server/_chunks/{index-rgj5mx84.js → index-jexsy9a8.js} +1 -1
  31. package/dist/server/_chunks/{index-29pq0kax.js → index-jjppzw0s.js} +2 -2
  32. package/dist/server/_chunks/{index-dgr390q7.js → index-kpdph69z.js} +23 -23
  33. package/dist/server/_chunks/{index-gcmj16xy.js → index-md5jchzy.js} +1 -1
  34. package/dist/server/_chunks/{index-3e075kny.js → index-n814hcky.js} +1 -1
  35. package/dist/server/_chunks/{index-j681c48a.js → index-qjrh7w2g.js} +1 -1
  36. package/dist/server/_chunks/{index-qcrvt6er.js → index-s61bx2aj.js} +2 -2
  37. package/dist/server/_chunks/{index-cn86z041.js → index-veycp46e.js} +1 -1
  38. package/dist/server/_chunks/{index-3ycf5ckv.js → index-vqs3rebe.js} +3 -3
  39. package/dist/server/_chunks/{index-d158y67j.js → index-xrsg0041.js} +3 -3
  40. package/dist/server/_chunks/{index-xh1nbk46.js → index-xs3411qh.js} +7 -7
  41. package/dist/server/_chunks/{index-38xpdxwd.js → index-y71a76dn.js} +4 -4
  42. package/dist/server/_chunks/{index-cvr4z22m.js → index-y9bygr95.js} +1 -1
  43. package/dist/server/_chunks/{index-x2m17v9c.js → index-yghskk8w.js} +9 -9
  44. package/dist/server/_chunks/{index-tq3b39a5.js → index-yzcpr3yw.js} +4 -4
  45. package/dist/server/_chunks/{index-71885zaq.js → index-zedjt25v.js} +4 -4
  46. package/dist/server/_chunks/{loader-5en7wpt5.js → loader-w1e0n5sm.js} +6 -6
  47. package/dist/server/_chunks/{modules-t92favpj.js → modules-730j14cm.js} +8 -8
  48. package/dist/server/_chunks/{pipeline-4t9q43ht.js → pipeline-yjdnwbhm.js} +11 -11
  49. package/dist/server/_chunks/{production-385bw8df.js → production-1xe9b7wd.js} +1 -1
  50. package/dist/server/_chunks/{proxy-config-60gprphe.js → proxy-config-9r9e0jvn.js} +5 -5
  51. package/dist/server/_chunks/{proxy-gfhmktbk.js → proxy-pnevsbfd.js} +7 -7
  52. package/dist/server/_chunks/{router-xnrva921.js → router-rzge0vz8.js} +4 -4
  53. package/dist/server/_chunks/{routes-ht868pdc.js → routes-0x8wjvcj.js} +7 -7
  54. package/dist/server/_chunks/{run-d40d63ag.js → run-tk90r3ac.js} +4 -4
  55. package/dist/server/_chunks/{server-2p8fgqq2.js → server-gev78ejc.js} +19 -19
  56. package/dist/server/_chunks/{tsconfig-defaults-bcn34eqb.js → tsconfig-defaults-qe9wd6ne.js} +3 -3
  57. package/dist/server/_chunks/{typegen-dvtcjtaw.js → typegen-0yw8sry8.js} +10 -10
  58. package/dist/server/cli/index.js +11 -11
  59. package/dist/server/cli/start.js +5 -5
  60. package/dist/server/compat/next/config-headers.js +4 -4
  61. package/dist/server/compat/next/font/cache.js +4 -4
  62. package/dist/server/compat/next/font/local.js +5 -5
  63. package/dist/server/compat/next/font/runtime.js +5 -5
  64. package/dist/server/compat/next/navigation.js +4 -4
  65. package/dist/server/compat/next/redirects.js +4 -4
  66. package/dist/server/compat/next/rewrites.js +3 -3
  67. package/dist/server/generation.json +1 -1
  68. package/package.json +1 -1
  69. package/src/cli/adapters/vercel.ts +6 -3
  70. package/src/cli/serve/standalone.ts +35 -11
@@ -2,22 +2,22 @@
2
2
  import {
3
3
  typegenProject,
4
4
  writeTypegen
5
- } from "./index-38xpdxwd.js";
6
- import"./index-jn9rbhrx.js";
5
+ } from "./index-y71a76dn.js";
6
+ import"./index-3r6qpe8a.js";
7
7
  import"./index-0r5eqfc7.js";
8
- import"./index-8ct7rqy3.js";
9
- import"./index-n629dy38.js";
8
+ import"./index-aarf1brn.js";
9
+ import"./index-1y0cesgn.js";
10
10
  import"./index-73z4esab.js";
11
- import"./index-d158y67j.js";
11
+ import"./index-xrsg0041.js";
12
12
  import"./index-web361b8.js";
13
13
  import"./index-fp8r0sqs.js";
14
14
  import"./index-cjgqs13g.js";
15
- import"./index-cn86z041.js";
16
- import"./index-4da76t62.js";
17
- import"./index-tq3b39a5.js";
18
- import"./index-71885zaq.js";
15
+ import"./index-veycp46e.js";
16
+ import"./index-4qsce64w.js";
17
+ import"./index-yzcpr3yw.js";
18
+ import"./index-zedjt25v.js";
19
19
  import"./index-bzd2ef7t.js";
20
- import"./index-hdbwtdv2.js";
20
+ import"./index-fpghsgb4.js";
21
21
  import"./index-6kp9r0d9.js";
22
22
  import"./index-ras0sdab.js";
23
23
  import"./index-grta8ap3.js";
@@ -63,7 +63,7 @@ try {
63
63
  printCommandHelp(command);
64
64
  } else if (command === "dev") {
65
65
  warnUnknownFlags(command, args);
66
- const { dev } = await import("../_chunks/dev-ex9exynt.js");
66
+ const { dev } = await import("../_chunks/dev-pennd36n.js");
67
67
  await dev({
68
68
  root: positionalRoot(args),
69
69
  port: optionNumber(args, "--port"),
@@ -71,7 +71,7 @@ try {
71
71
  });
72
72
  } else if (command === "build") {
73
73
  warnUnknownFlags(command, args);
74
- const { buildProject } = await import("../_chunks/build-kh5e3x48.js");
74
+ const { buildProject } = await import("../_chunks/build-wspv5h60.js");
75
75
  await buildProject(positionalRoot(args), {
76
76
  adapter: adapterOption(args),
77
77
  verbose: args.includes("--verbose"),
@@ -79,7 +79,7 @@ try {
79
79
  buildMode: buildModeOption(args),
80
80
  debugPrerender: args.includes("--debug-prerender")
81
81
  });
82
- await (await import("../_chunks/build-c991dv65.js")).stopCssWorker();
82
+ await (await import("../_chunks/build-jda155c9.js")).stopCssWorker();
83
83
  process.exit(0);
84
84
  } else if (command === "start") {
85
85
  warnUnknownFlags(command, args);
@@ -92,7 +92,7 @@ try {
92
92
  });
93
93
  } else if (command === "analyze") {
94
94
  warnUnknownFlags(command, args);
95
- const { analyzeProject } = await import("../_chunks/analyze-4d9e00g9.js");
95
+ const { analyzeProject } = await import("../_chunks/analyze-09kx9q6r.js");
96
96
  const { route, root } = analyzePositionals(args);
97
97
  const result = await analyzeProject(root, {
98
98
  compression: analyzeCompression(args),
@@ -101,23 +101,23 @@ try {
101
101
  if (args.includes("--json")) {
102
102
  console.log(JSON.stringify(result, null, 2));
103
103
  } else {
104
- const { printAnalyzeResult } = await import("../_chunks/analyze-4d9e00g9.js");
104
+ const { printAnalyzeResult } = await import("../_chunks/analyze-09kx9q6r.js");
105
105
  printAnalyzeResult(result, { route, files: args.includes("--files") });
106
106
  }
107
107
  } else if (command === "typegen") {
108
108
  warnUnknownFlags(command, args);
109
- const { typegenProject } = await import("../_chunks/typegen-dvtcjtaw.js");
109
+ const { typegenProject } = await import("../_chunks/typegen-0yw8sry8.js");
110
110
  const result = await typegenProject(positionalRoot(args));
111
111
  console.log(`Generated ${result.routes} route types, ${result.aliases} aliases, and ${result.checks} checks at ${result.file}`);
112
112
  process.exit(0);
113
113
  } else if (command === "create") {
114
114
  warnUnknownFlags(command, args);
115
- const { createApp } = await import("../_chunks/create-9rvwshsp.js");
115
+ const { createApp } = await import("../_chunks/create-skj8wzt5.js");
116
116
  await createApp(positionals(args)[0], { install: !args.includes("--no-install") });
117
117
  process.exit(0);
118
118
  } else if (command === "migrate") {
119
119
  warnUnknownFlags(command, args);
120
- const { migrateApp } = await import("../_chunks/run-d40d63ag.js");
120
+ const { migrateApp } = await import("../_chunks/run-tk90r3ac.js");
121
121
  const code = await migrateApp(positionalRoot(args), { dryRun: args.includes("--dry-run") });
122
122
  process.exit(code);
123
123
  } else if (command === "info") {
@@ -150,11 +150,11 @@ pnext client import trace for route `);
150
150
  };
151
151
  }
152
152
  async function prebundleServes(root = process.cwd()) {
153
- if (typeof { version: "0.1.8", fingerprint: "64aaa993cbaa58df", entries: ["cli/index", "cli/start", "client/reference", "api/client-cache", "compat/next/canonical-url", "compat/next/link-transform", "compat/next/client-navigation", "compat/next/og", "compat/next/link", "compat/next/usage", "compat/next/client-script", "compat/next/headers", "compat/next/custom-server", "compat/next/legacy-image", "compat/next/router", "compat/next/navigation", "compat/next/dist/server/web/spec-extension/unstable-no-store", "compat/next/dist/server/web/spec-extension/unstable-cache", "compat/next/dist/server/web/spec-extension/revalidate", "compat/next/dist/client/components/app-router-headers", "compat/next/web-vitals", "compat/next/root-params", "compat/next/route-state", "compat/next/server-only", "compat/next/client-server", "compat/next/legacy-request-apis", "compat/next/redirects", "compat/next/resource-hints", "compat/next/svgr", "compat/next/client-only", "compat/next/image/props", "compat/next/image/optimizer", "compat/next/image/validate", "compat/next/image/shared", "compat/next/image/patterns", "compat/next/image/config", "compat/next/image/client", "compat/next/image/static-metadata", "compat/next/user-agent", "compat/next/client-cache", "compat/next/head", "compat/next/dynamic", "compat/next/telemetry", "compat/next/offline", "compat/next/cache", "compat/next/constants", "compat/next/error", "compat/next/script", "compat/next/index", "compat/next/font/shared", "compat/next/font/runtime", "compat/next/font/google", "compat/next/font/cache", "compat/next/font/runtime-client", "compat/next/font/local", "compat/next/font/index", "compat/next/config-loader", "compat/next/config", "compat/next/image", "compat/next/server", "compat/next/rewrites", "compat/next/preferred-region", "compat/next/config-headers", "compat/next/form", "compat/react/dom", "compat/react/hooks-extra", "compat/react/react-server", "compat/react/dom-client", "compat/react/style-values", "compat/react/compiler-runtime", "compat/react/router-shim", "compat/react/dom-server", "compat/react/dom-react-server", "compat/react/server-component-use", "compat/react/action-state", "compat/react/client", "compat/react/client-lite", "compat/react/server-inserted-html", "compat/react/parity", "compat/react/preact", "compat/react/use", "compat/react/view-transition", "compat/react/internals", "compat/react/server"] } !== "object")
153
+ if (typeof { version: "0.1.9", fingerprint: "5c05030a635e53e4", entries: ["cli/index", "cli/start", "client/reference", "api/client-cache", "compat/next/canonical-url", "compat/next/link-transform", "compat/next/client-navigation", "compat/next/og", "compat/next/link", "compat/next/usage", "compat/next/client-script", "compat/next/headers", "compat/next/custom-server", "compat/next/legacy-image", "compat/next/router", "compat/next/navigation", "compat/next/dist/server/web/spec-extension/unstable-no-store", "compat/next/dist/server/web/spec-extension/unstable-cache", "compat/next/dist/server/web/spec-extension/revalidate", "compat/next/dist/client/components/app-router-headers", "compat/next/web-vitals", "compat/next/root-params", "compat/next/route-state", "compat/next/server-only", "compat/next/client-server", "compat/next/legacy-request-apis", "compat/next/redirects", "compat/next/resource-hints", "compat/next/svgr", "compat/next/client-only", "compat/next/image/props", "compat/next/image/optimizer", "compat/next/image/validate", "compat/next/image/shared", "compat/next/image/patterns", "compat/next/image/config", "compat/next/image/client", "compat/next/image/static-metadata", "compat/next/user-agent", "compat/next/client-cache", "compat/next/head", "compat/next/dynamic", "compat/next/telemetry", "compat/next/offline", "compat/next/cache", "compat/next/constants", "compat/next/error", "compat/next/script", "compat/next/index", "compat/next/font/shared", "compat/next/font/runtime", "compat/next/font/google", "compat/next/font/cache", "compat/next/font/runtime-client", "compat/next/font/local", "compat/next/font/index", "compat/next/config-loader", "compat/next/config", "compat/next/image", "compat/next/server", "compat/next/rewrites", "compat/next/preferred-region", "compat/next/config-headers", "compat/next/form", "compat/react/dom", "compat/react/hooks-extra", "compat/react/react-server", "compat/react/dom-client", "compat/react/style-values", "compat/react/compiler-runtime", "compat/react/router-shim", "compat/react/dom-server", "compat/react/dom-react-server", "compat/react/server-component-use", "compat/react/action-state", "compat/react/client", "compat/react/client-lite", "compat/react/server-inserted-html", "compat/react/parity", "compat/react/preact", "compat/react/use", "compat/react/view-transition", "compat/react/internals", "compat/react/server"] } !== "object")
154
154
  return true;
155
- const [{ DEFAULT_OUT_DIR, standaloneOutSegment }, { buildIndexFile, readBuildIndex }] = await Promise.all([import("../_chunks/config-27rj7830.js"), import("../_chunks/production-385bw8df.js")]);
155
+ const [{ DEFAULT_OUT_DIR, standaloneOutSegment }, { buildIndexFile, readBuildIndex }] = await Promise.all([import("../_chunks/config-d4hqyygy.js"), import("../_chunks/production-1xe9b7wd.js")]);
156
156
  const outPath = path.resolve(root, DEFAULT_OUT_DIR, standaloneOutSegment);
157
- return !existsSync(buildIndexFile(outPath)) || readBuildIndex(outPath).framework === { version: "0.1.8", fingerprint: "64aaa993cbaa58df", entries: ["cli/index", "cli/start", "client/reference", "api/client-cache", "compat/next/canonical-url", "compat/next/link-transform", "compat/next/client-navigation", "compat/next/og", "compat/next/link", "compat/next/usage", "compat/next/client-script", "compat/next/headers", "compat/next/custom-server", "compat/next/legacy-image", "compat/next/router", "compat/next/navigation", "compat/next/dist/server/web/spec-extension/unstable-no-store", "compat/next/dist/server/web/spec-extension/unstable-cache", "compat/next/dist/server/web/spec-extension/revalidate", "compat/next/dist/client/components/app-router-headers", "compat/next/web-vitals", "compat/next/root-params", "compat/next/route-state", "compat/next/server-only", "compat/next/client-server", "compat/next/legacy-request-apis", "compat/next/redirects", "compat/next/resource-hints", "compat/next/svgr", "compat/next/client-only", "compat/next/image/props", "compat/next/image/optimizer", "compat/next/image/validate", "compat/next/image/shared", "compat/next/image/patterns", "compat/next/image/config", "compat/next/image/client", "compat/next/image/static-metadata", "compat/next/user-agent", "compat/next/client-cache", "compat/next/head", "compat/next/dynamic", "compat/next/telemetry", "compat/next/offline", "compat/next/cache", "compat/next/constants", "compat/next/error", "compat/next/script", "compat/next/index", "compat/next/font/shared", "compat/next/font/runtime", "compat/next/font/google", "compat/next/font/cache", "compat/next/font/runtime-client", "compat/next/font/local", "compat/next/font/index", "compat/next/config-loader", "compat/next/config", "compat/next/image", "compat/next/server", "compat/next/rewrites", "compat/next/preferred-region", "compat/next/config-headers", "compat/next/form", "compat/react/dom", "compat/react/hooks-extra", "compat/react/react-server", "compat/react/dom-client", "compat/react/style-values", "compat/react/compiler-runtime", "compat/react/router-shim", "compat/react/dom-server", "compat/react/dom-react-server", "compat/react/server-component-use", "compat/react/action-state", "compat/react/client", "compat/react/client-lite", "compat/react/server-inserted-html", "compat/react/parity", "compat/react/preact", "compat/react/use", "compat/react/view-transition", "compat/react/internals", "compat/react/server"] }.fingerprint && VERSION === { version: "0.1.8", fingerprint: "64aaa993cbaa58df", entries: ["cli/index", "cli/start", "client/reference", "api/client-cache", "compat/next/canonical-url", "compat/next/link-transform", "compat/next/client-navigation", "compat/next/og", "compat/next/link", "compat/next/usage", "compat/next/client-script", "compat/next/headers", "compat/next/custom-server", "compat/next/legacy-image", "compat/next/router", "compat/next/navigation", "compat/next/dist/server/web/spec-extension/unstable-no-store", "compat/next/dist/server/web/spec-extension/unstable-cache", "compat/next/dist/server/web/spec-extension/revalidate", "compat/next/dist/client/components/app-router-headers", "compat/next/web-vitals", "compat/next/root-params", "compat/next/route-state", "compat/next/server-only", "compat/next/client-server", "compat/next/legacy-request-apis", "compat/next/redirects", "compat/next/resource-hints", "compat/next/svgr", "compat/next/client-only", "compat/next/image/props", "compat/next/image/optimizer", "compat/next/image/validate", "compat/next/image/shared", "compat/next/image/patterns", "compat/next/image/config", "compat/next/image/client", "compat/next/image/static-metadata", "compat/next/user-agent", "compat/next/client-cache", "compat/next/head", "compat/next/dynamic", "compat/next/telemetry", "compat/next/offline", "compat/next/cache", "compat/next/constants", "compat/next/error", "compat/next/script", "compat/next/index", "compat/next/font/shared", "compat/next/font/runtime", "compat/next/font/google", "compat/next/font/cache", "compat/next/font/runtime-client", "compat/next/font/local", "compat/next/font/index", "compat/next/config-loader", "compat/next/config", "compat/next/image", "compat/next/server", "compat/next/rewrites", "compat/next/preferred-region", "compat/next/config-headers", "compat/next/form", "compat/react/dom", "compat/react/hooks-extra", "compat/react/react-server", "compat/react/dom-client", "compat/react/style-values", "compat/react/compiler-runtime", "compat/react/router-shim", "compat/react/dom-server", "compat/react/dom-react-server", "compat/react/server-component-use", "compat/react/action-state", "compat/react/client", "compat/react/client-lite", "compat/react/server-inserted-html", "compat/react/parity", "compat/react/preact", "compat/react/use", "compat/react/view-transition", "compat/react/internals", "compat/react/server"] }.version;
157
+ return !existsSync(buildIndexFile(outPath)) || readBuildIndex(outPath).framework === { version: "0.1.9", fingerprint: "5c05030a635e53e4", entries: ["cli/index", "cli/start", "client/reference", "api/client-cache", "compat/next/canonical-url", "compat/next/link-transform", "compat/next/client-navigation", "compat/next/og", "compat/next/link", "compat/next/usage", "compat/next/client-script", "compat/next/headers", "compat/next/custom-server", "compat/next/legacy-image", "compat/next/router", "compat/next/navigation", "compat/next/dist/server/web/spec-extension/unstable-no-store", "compat/next/dist/server/web/spec-extension/unstable-cache", "compat/next/dist/server/web/spec-extension/revalidate", "compat/next/dist/client/components/app-router-headers", "compat/next/web-vitals", "compat/next/root-params", "compat/next/route-state", "compat/next/server-only", "compat/next/client-server", "compat/next/legacy-request-apis", "compat/next/redirects", "compat/next/resource-hints", "compat/next/svgr", "compat/next/client-only", "compat/next/image/props", "compat/next/image/optimizer", "compat/next/image/validate", "compat/next/image/shared", "compat/next/image/patterns", "compat/next/image/config", "compat/next/image/client", "compat/next/image/static-metadata", "compat/next/user-agent", "compat/next/client-cache", "compat/next/head", "compat/next/dynamic", "compat/next/telemetry", "compat/next/offline", "compat/next/cache", "compat/next/constants", "compat/next/error", "compat/next/script", "compat/next/index", "compat/next/font/shared", "compat/next/font/runtime", "compat/next/font/google", "compat/next/font/cache", "compat/next/font/runtime-client", "compat/next/font/local", "compat/next/font/index", "compat/next/config-loader", "compat/next/config", "compat/next/image", "compat/next/server", "compat/next/rewrites", "compat/next/preferred-region", "compat/next/config-headers", "compat/next/form", "compat/react/dom", "compat/react/hooks-extra", "compat/react/react-server", "compat/react/dom-client", "compat/react/style-values", "compat/react/compiler-runtime", "compat/react/router-shim", "compat/react/dom-server", "compat/react/dom-react-server", "compat/react/server-component-use", "compat/react/action-state", "compat/react/client", "compat/react/client-lite", "compat/react/server-inserted-html", "compat/react/parity", "compat/react/preact", "compat/react/use", "compat/react/view-transition", "compat/react/internals", "compat/react/server"] }.fingerprint && VERSION === { version: "0.1.9", fingerprint: "5c05030a635e53e4", entries: ["cli/index", "cli/start", "client/reference", "api/client-cache", "compat/next/canonical-url", "compat/next/link-transform", "compat/next/client-navigation", "compat/next/og", "compat/next/link", "compat/next/usage", "compat/next/client-script", "compat/next/headers", "compat/next/custom-server", "compat/next/legacy-image", "compat/next/router", "compat/next/navigation", "compat/next/dist/server/web/spec-extension/unstable-no-store", "compat/next/dist/server/web/spec-extension/unstable-cache", "compat/next/dist/server/web/spec-extension/revalidate", "compat/next/dist/client/components/app-router-headers", "compat/next/web-vitals", "compat/next/root-params", "compat/next/route-state", "compat/next/server-only", "compat/next/client-server", "compat/next/legacy-request-apis", "compat/next/redirects", "compat/next/resource-hints", "compat/next/svgr", "compat/next/client-only", "compat/next/image/props", "compat/next/image/optimizer", "compat/next/image/validate", "compat/next/image/shared", "compat/next/image/patterns", "compat/next/image/config", "compat/next/image/client", "compat/next/image/static-metadata", "compat/next/user-agent", "compat/next/client-cache", "compat/next/head", "compat/next/dynamic", "compat/next/telemetry", "compat/next/offline", "compat/next/cache", "compat/next/constants", "compat/next/error", "compat/next/script", "compat/next/index", "compat/next/font/shared", "compat/next/font/runtime", "compat/next/font/google", "compat/next/font/cache", "compat/next/font/runtime-client", "compat/next/font/local", "compat/next/font/index", "compat/next/config-loader", "compat/next/config", "compat/next/image", "compat/next/server", "compat/next/rewrites", "compat/next/preferred-region", "compat/next/config-headers", "compat/next/form", "compat/react/dom", "compat/react/hooks-extra", "compat/react/react-server", "compat/react/dom-client", "compat/react/style-values", "compat/react/compiler-runtime", "compat/react/router-shim", "compat/react/dom-server", "compat/react/dom-react-server", "compat/react/server-component-use", "compat/react/action-state", "compat/react/client", "compat/react/client-lite", "compat/react/server-inserted-html", "compat/react/parity", "compat/react/preact", "compat/react/use", "compat/react/view-transition", "compat/react/internals", "compat/react/server"] }.version;
158
158
  }
159
159
  function positionalRoot(args2) {
160
160
  return positionals(args2)[0];
@@ -7,10 +7,10 @@ import {
7
7
  } from "../_chunks/index-q738kkhj.js";
8
8
  import {
9
9
  bootstrapCompat
10
- } from "../_chunks/index-tq3b39a5.js";
10
+ } from "../_chunks/index-yzcpr3yw.js";
11
11
  import {
12
12
  loadConfig
13
- } from "../_chunks/index-71885zaq.js";
13
+ } from "../_chunks/index-zedjt25v.js";
14
14
  import"../_chunks/index-bzd2ef7t.js";
15
15
  import {
16
16
  markErrorLogged
@@ -20,7 +20,7 @@ import {
20
20
  buildManifestFile,
21
21
  linkStandaloneOrigins,
22
22
  registerPrebundleResolve
23
- } from "../_chunks/index-hdbwtdv2.js";
23
+ } from "../_chunks/index-fpghsgb4.js";
24
24
  import"../_chunks/index-6kp9r0d9.js";
25
25
  import {
26
26
  drainWorkUnits
@@ -51,7 +51,7 @@ async function createRequestHandler(options = {}) {
51
51
  const shipped = await shippedStart(config);
52
52
  return shipped.createRequestHandler({ root: options.root, manifest: options.manifest });
53
53
  }
54
- const { createRequestHandler: create } = await import("../_chunks/pipeline-4t9q43ht.js");
54
+ const { createRequestHandler: create } = await import("../_chunks/pipeline-yjdnwbhm.js");
55
55
  return create({ ...options, config });
56
56
  }
57
57
  function shipsElsewhere(config) {
@@ -62,7 +62,7 @@ function shippedStart(config) {
62
62
  return import(entry);
63
63
  }
64
64
  async function maybeBuiltFile(...args) {
65
- const { maybeBuiltFile: impl } = await import("../_chunks/pipeline-4t9q43ht.js");
65
+ const { maybeBuiltFile: impl } = await import("../_chunks/pipeline-yjdnwbhm.js");
66
66
  return impl(...args);
67
67
  }
68
68
  async function start(options = {}) {
@@ -3,8 +3,8 @@ import {
3
3
  appPathname,
4
4
  loadCompatHeaders,
5
5
  resolveCompatHeaders
6
- } from "../../_chunks/index-rgj5mx84.js";
7
- import"../../_chunks/index-he6n2bvp.js";
6
+ } from "../../_chunks/index-jexsy9a8.js";
7
+ import"../../_chunks/index-e176wk6x.js";
8
8
  import"../../_chunks/index-6q7zvrap.js";
9
9
  import"../../_chunks/index-79ngvam8.js";
10
10
  import"../../_chunks/index-akkrvjn6.js";
@@ -16,9 +16,9 @@ import"../../_chunks/index-6b009mt0.js";
16
16
  import"../../_chunks/index-4zzebszd.js";
17
17
  import"../../_chunks/index-sq3kvz3g.js";
18
18
  import"../../_chunks/index-ckkdpht5.js";
19
- import"../../_chunks/index-71885zaq.js";
19
+ import"../../_chunks/index-zedjt25v.js";
20
20
  import"../../_chunks/index-bzd2ef7t.js";
21
- import"../../_chunks/index-hdbwtdv2.js";
21
+ import"../../_chunks/index-fpghsgb4.js";
22
22
  import"../../_chunks/index-grta8ap3.js";
23
23
  import"../../_chunks/index-kresp2n8.js";
24
24
  import"../../_chunks/index-e3a6yx84.js";
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  persistFont,
4
4
  persistedFont
5
- } from "../../../_chunks/index-qcrvt6er.js";
5
+ } from "../../../_chunks/index-s61bx2aj.js";
6
6
  import"../../../_chunks/index-knp0s912.js";
7
- import"../../../_chunks/index-gcmj16xy.js";
8
- import"../../../_chunks/index-4da76t62.js";
7
+ import"../../../_chunks/index-md5jchzy.js";
8
+ import"../../../_chunks/index-4qsce64w.js";
9
9
  import"../../../_chunks/index-bzd2ef7t.js";
10
- import"../../../_chunks/index-hdbwtdv2.js";
10
+ import"../../../_chunks/index-fpghsgb4.js";
11
11
  import"../../../_chunks/index-jt8e1pje.js";
12
12
  import"../../../_chunks/index-rt9qq1va.js";
13
13
  export {
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  localFont
4
- } from "../../../_chunks/index-gkndxkxf.js";
5
- import"../../../_chunks/index-qcrvt6er.js";
4
+ } from "../../../_chunks/index-26gwrm07.js";
5
+ import"../../../_chunks/index-s61bx2aj.js";
6
6
  import"../../../_chunks/index-knp0s912.js";
7
- import"../../../_chunks/index-gcmj16xy.js";
7
+ import"../../../_chunks/index-md5jchzy.js";
8
8
  import"../../../_chunks/index-fn1chkkd.js";
9
- import"../../../_chunks/index-4da76t62.js";
9
+ import"../../../_chunks/index-4qsce64w.js";
10
10
  import"../../../_chunks/index-bzd2ef7t.js";
11
- import"../../../_chunks/index-hdbwtdv2.js";
11
+ import"../../../_chunks/index-fpghsgb4.js";
12
12
  import"../../../_chunks/index-grta8ap3.js";
13
13
  import"../../../_chunks/index-kresp2n8.js";
14
14
  import"../../../_chunks/index-e3a6yx84.js";
@@ -12,14 +12,14 @@ import {
12
12
  releaseFonts,
13
13
  runWithFontScope,
14
14
  takeFontHeaderPreloads
15
- } from "../../../_chunks/index-gkndxkxf.js";
16
- import"../../../_chunks/index-qcrvt6er.js";
15
+ } from "../../../_chunks/index-26gwrm07.js";
16
+ import"../../../_chunks/index-s61bx2aj.js";
17
17
  import"../../../_chunks/index-knp0s912.js";
18
- import"../../../_chunks/index-gcmj16xy.js";
18
+ import"../../../_chunks/index-md5jchzy.js";
19
19
  import"../../../_chunks/index-fn1chkkd.js";
20
- import"../../../_chunks/index-4da76t62.js";
20
+ import"../../../_chunks/index-4qsce64w.js";
21
21
  import"../../../_chunks/index-bzd2ef7t.js";
22
- import"../../../_chunks/index-hdbwtdv2.js";
22
+ import"../../../_chunks/index-fpghsgb4.js";
23
23
  import"../../../_chunks/index-grta8ap3.js";
24
24
  import"../../../_chunks/index-kresp2n8.js";
25
25
  import"../../../_chunks/index-e3a6yx84.js";
@@ -3,10 +3,10 @@ import {
3
3
  currentLayoutSegments,
4
4
  currentParamsSnapshot,
5
5
  hasLayoutSegmentScope
6
- } from "../../_chunks/index-29pq0kax.js";
7
- import"../../_chunks/index-cn86z041.js";
8
- import"../../_chunks/index-4da76t62.js";
9
- import"../../_chunks/index-hdbwtdv2.js";
6
+ } from "../../_chunks/index-jjppzw0s.js";
7
+ import"../../_chunks/index-veycp46e.js";
8
+ import"../../_chunks/index-4qsce64w.js";
9
+ import"../../_chunks/index-fpghsgb4.js";
10
10
  import {
11
11
  canonicalUrlHref
12
12
  } from "../../_chunks/index-en7n9f7m.js";
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  loadCompatRedirects,
4
4
  resolveCompatRedirect
5
- } from "../../_chunks/index-cvr4z22m.js";
6
- import"../../_chunks/index-he6n2bvp.js";
5
+ } from "../../_chunks/index-y9bygr95.js";
6
+ import"../../_chunks/index-e176wk6x.js";
7
7
  import"../../_chunks/index-6q7zvrap.js";
8
8
  import"../../_chunks/index-79ngvam8.js";
9
9
  import"../../_chunks/index-akkrvjn6.js";
@@ -15,9 +15,9 @@ import"../../_chunks/index-6b009mt0.js";
15
15
  import"../../_chunks/index-4zzebszd.js";
16
16
  import"../../_chunks/index-sq3kvz3g.js";
17
17
  import"../../_chunks/index-ckkdpht5.js";
18
- import"../../_chunks/index-71885zaq.js";
18
+ import"../../_chunks/index-zedjt25v.js";
19
19
  import"../../_chunks/index-bzd2ef7t.js";
20
- import"../../_chunks/index-hdbwtdv2.js";
20
+ import"../../_chunks/index-fpghsgb4.js";
21
21
  import"../../_chunks/index-grta8ap3.js";
22
22
  import"../../_chunks/index-kresp2n8.js";
23
23
  import"../../_chunks/index-e3a6yx84.js";
@@ -8,7 +8,7 @@ import {
8
8
  resolveCompatRewrite,
9
9
  splitDestination,
10
10
  substitute
11
- } from "../../_chunks/index-he6n2bvp.js";
11
+ } from "../../_chunks/index-e176wk6x.js";
12
12
  import"../../_chunks/index-6q7zvrap.js";
13
13
  import"../../_chunks/index-79ngvam8.js";
14
14
  import"../../_chunks/index-akkrvjn6.js";
@@ -20,9 +20,9 @@ import"../../_chunks/index-6b009mt0.js";
20
20
  import"../../_chunks/index-4zzebszd.js";
21
21
  import"../../_chunks/index-sq3kvz3g.js";
22
22
  import"../../_chunks/index-ckkdpht5.js";
23
- import"../../_chunks/index-71885zaq.js";
23
+ import"../../_chunks/index-zedjt25v.js";
24
24
  import"../../_chunks/index-bzd2ef7t.js";
25
- import"../../_chunks/index-hdbwtdv2.js";
25
+ import"../../_chunks/index-fpghsgb4.js";
26
26
  import"../../_chunks/index-grta8ap3.js";
27
27
  import"../../_chunks/index-kresp2n8.js";
28
28
  import"../../_chunks/index-e3a6yx84.js";
@@ -1 +1 @@
1
- {"version":"0.1.8","fingerprint":"64aaa993cbaa58df","source":["src/api/cache.ts","src/api/client-navigation.ts","src/api/dynamic.tsx","src/api/link.tsx","src/api/navigation.ts","src/api/server.ts","src/api/suspense.ts","src/client/router/events.ts","src/client/router/history.ts","src/client/router/hub.ts","src/client/router/index.ts","src/client/router/page-slot.ts","src/client/router/policies.ts","src/client/router/runtime.ts","src/index.ts","src/internal.ts","src/request/cache.ts","src/routing/href.ts","src/utils/decode.ts"]}
1
+ {"version":"0.1.9","fingerprint":"5c05030a635e53e4","source":["src/api/cache.ts","src/api/client-navigation.ts","src/api/dynamic.tsx","src/api/link.tsx","src/api/navigation.ts","src/api/server.ts","src/api/suspense.ts","src/client/router/events.ts","src/client/router/history.ts","src/client/router/hub.ts","src/client/router/index.ts","src/client/router/page-slot.ts","src/client/router/policies.ts","src/client/router/runtime.ts","src/index.ts","src/internal.ts","src/request/cache.ts","src/routing/href.ts","src/utils/decode.ts"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wular/pnext",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "A fast little framework for server-first React apps, fully compatible with Next.js",
5
5
  "type": "module",
6
6
  "bin": {
@@ -448,6 +448,7 @@ async function staticOverrides(
448
448
  }
449
449
 
450
450
  // `important` lets route headers win over the CDN's own static-file cache-control, as Next's builder does.
451
+ // Vercel anchors every `src` at both ends, so a prefix must match the rest of the path.
451
452
  async function immutableAssetRoutes(publicDir: string, publicAssets: string[] = []) {
452
453
  const app = new Set(publicAssets)
453
454
  const built =
@@ -457,7 +458,7 @@ async function immutableAssetRoutes(publicDir: string, publicAssets: string[] =
457
458
  .filter(relative => !app.has(relative) && immutableAssetPath(relative))
458
459
  : []
459
460
  const patterns = immutableAssetPatterns(built, publicAssets)
460
- return routeSources(patterns, source => `^/(?:${source})`).map(src => ({
461
+ return routeSources(patterns, source => `^/(?:${source})$`).map(src => ({
461
462
  src,
462
463
  headers: { 'cache-control': immutableCacheControl },
463
464
  continue: true,
@@ -472,12 +473,14 @@ async function immutableAssetRoutes(publicDir: string, publicAssets: string[] =
472
473
  function immutableAssetPatterns(built: string[], publicAssets: string[]) {
473
474
  const appDirs = new Set(publicAssets.flatMap(ancestorDirs))
474
475
  const prefixes = [...new Set(immutableAssetPrefixes())]
475
- const patterns = prefixes.filter(prefix => !appDirs.has(prefix)).map(escapeRegex)
476
+ const patterns = prefixes
477
+ .filter(prefix => !appDirs.has(prefix))
478
+ .map(prefix => `${escapeRegex(prefix)}.+`)
476
479
  for (const relative of built) {
477
480
  const prefix = prefixes.find(prefix => relative.startsWith(prefix))
478
481
  if (!prefix || !appDirs.has(prefix)) continue
479
482
  const dir = ancestorDirs(relative).find(dir => dir.length > prefix.length && !appDirs.has(dir))
480
- patterns.push(dir ? escapeRegex(requestPath(dir)) : `${escapeRegex(requestPath(relative))}$`)
483
+ patterns.push(dir ? `${escapeRegex(requestPath(dir))}.+` : escapeRegex(requestPath(relative)))
481
484
  }
482
485
  return [...new Set(patterns)]
483
486
  }
@@ -299,7 +299,11 @@ function createTracer(config: TraceConfig, from?: TraceSnapshot, onReady?: (dest
299
299
  release && !isInside(outPath, target) && !isInside(cache, target) && !shipped(target)
300
300
  // An app source named by URL is its identity: it resolves to the app root, never read.
301
301
  if (appFile && scriptFile.test(target)) continue
302
- if (!statSync(target, { throwIfNoEntry: false })?.isFile()) continue
302
+ const stat = statSync(target, { throwIfNoEntry: false })
303
+ // A package directory it reads by URL (migrations, data) ships whole.
304
+ if (stat?.isDirectory() && !release && packageDataDir(target, file))
305
+ for (const asset of dataFiles(target)) setFile(trace, place(asset), asset)
306
+ if (!stat?.isFile()) continue
303
307
  // A file it reads by URL (a font, data) ships, under the app's own path.
304
308
  const at = appFile
305
309
  ? toPosixPath(
@@ -448,15 +452,8 @@ function createPlacer(outPath: string, cache: string, claims = new Map<string, s
448
452
  const dir = packageDir(frameworkRoot, frameworkPackage.name)
449
453
  return `${dir}/${toPosixPath(path.relative(frameworkRoot, file))}`
450
454
  }
451
- const posix = toPosixPath(file)
452
- const at = posix.lastIndexOf('/node_modules/')
453
- if (at !== -1) {
454
- const rest = posix.slice(at + '/node_modules/'.length).split('/')
455
- const length = rest[0]!.startsWith('@') ? 2 : 1
456
- const name = rest.slice(0, length).join('/')
457
- const root = `${posix.slice(0, at)}/node_modules/${name}`
458
- return [packageDir(root, name), ...rest.slice(length)].join('/')
459
- }
455
+ const owner = installedPackage(file)
456
+ if (owner) return [packageDir(owner.root, owner.name), ...owner.rest].join('/')
460
457
  // Workspace source reached through a link: it ships under its package name.
461
458
  const root = packageRoot(path.dirname(file))
462
459
  const name = root && readPackageName(root)
@@ -498,6 +495,17 @@ function addTree(root: string, dest: string, trace: Trace) {
498
495
  visit(root, new Set())
499
496
  }
500
497
 
498
+ /** The installed package holding `file`: its `node_modules/<name>` dir, name, and path inside. */
499
+ function installedPackage(file: string) {
500
+ const posix = toPosixPath(file)
501
+ const at = posix.lastIndexOf('/node_modules/')
502
+ if (at === -1) return undefined
503
+ const rest = posix.slice(at + '/node_modules/'.length).split('/')
504
+ const length = rest[0]!.startsWith('@') ? 2 : 1
505
+ const name = rest.slice(0, length).join('/')
506
+ return { root: `${posix.slice(0, at)}/node_modules/${name}`, name, rest: rest.slice(length) }
507
+ }
508
+
501
509
  function installed(file: string) {
502
510
  return toPosixPath(file).includes('/node_modules/')
503
511
  }
@@ -616,6 +624,22 @@ function addPackageFiles(file: string, trace: Trace, place: (file: string) => st
616
624
  }
617
625
  }
618
626
 
627
+ /** Whether `dir` is data of `from`'s package: inside it, not the module's own dir or above. */
628
+ function packageDataDir(dir: string, from: string) {
629
+ const root = installedPackage(from)?.root ?? packageRoot(path.dirname(from))
630
+ if (!root || !isInside(root, dir) || isInside(dir, path.dirname(from))) return false
631
+ return !path.relative(root, dir).split(path.sep).includes('node_modules')
632
+ }
633
+
634
+ /** Every file under `dir`, nested packages aside. */
635
+ function dataFiles(dir: string): string[] {
636
+ return readdirSync(dir, { withFileTypes: true }).flatMap(entry => {
637
+ const file = path.join(dir, entry.name)
638
+ if (entry.isDirectory()) return entry.name === 'node_modules' ? [] : dataFiles(file)
639
+ return entry.isFile() ? [file] : []
640
+ })
641
+ }
642
+
619
643
  function packageRoot(dir: string): string | undefined {
620
644
  for (; dir !== path.dirname(dir); dir = path.dirname(dir)) {
621
645
  if (existsSync(path.join(dir, 'package.json'))) return dir
@@ -655,7 +679,7 @@ function rewriteSpecifiers(file: string, source: string, edits: Map<string, stri
655
679
  function urlTarget(specifier: string, from: string) {
656
680
  try {
657
681
  const url = new URL(specifier, pathToFileURL(from))
658
- return url.protocol === 'file:' ? fileURLToPath(url) : undefined
682
+ return url.protocol === 'file:' ? path.resolve(fileURLToPath(url)) : undefined
659
683
  } catch {
660
684
  return undefined
661
685
  }