@nifrajs/web 3.1.0 → 3.3.0

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 (114) hide show
  1. package/dist/build-plan.d.ts +228 -0
  2. package/dist/build-plan.d.ts.map +1 -0
  3. package/dist/build-plan.js +514 -0
  4. package/dist/build-plan.js.map +1 -0
  5. package/dist/build-vite.d.ts +2 -1
  6. package/dist/build-vite.d.ts.map +1 -1
  7. package/dist/build-vite.js.map +1 -1
  8. package/dist/build.d.ts +2 -197
  9. package/dist/build.d.ts.map +1 -1
  10. package/dist/build.js +61 -502
  11. package/dist/build.js.map +1 -1
  12. package/dist/chunk-names.d.ts.map +1 -1
  13. package/dist/chunk-names.js +3 -2
  14. package/dist/chunk-names.js.map +1 -1
  15. package/dist/dev-ssr-graph.d.ts.map +1 -1
  16. package/dist/dev-ssr-graph.js +63 -28
  17. package/dist/dev-ssr-graph.js.map +1 -1
  18. package/dist/diagnostic.d.ts.map +1 -1
  19. package/dist/diagnostic.js +9 -2
  20. package/dist/diagnostic.js.map +1 -1
  21. package/dist/fonts-google.d.ts.map +1 -1
  22. package/dist/fonts-google.js +3 -1
  23. package/dist/fonts-google.js.map +1 -1
  24. package/dist/fs.d.ts.map +1 -1
  25. package/dist/fs.js +2 -1
  26. package/dist/fs.js.map +1 -1
  27. package/dist/index.d.ts +15 -609
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +22 -1935
  30. package/dist/index.js.map +1 -1
  31. package/dist/internal/codegen.d.ts +68 -0
  32. package/dist/internal/codegen.d.ts.map +1 -0
  33. package/dist/internal/codegen.js +317 -0
  34. package/dist/internal/codegen.js.map +1 -0
  35. package/dist/internal/head-merge.d.ts +2 -0
  36. package/dist/internal/head-merge.d.ts.map +1 -1
  37. package/dist/internal/head-merge.js +17 -1
  38. package/dist/internal/head-merge.js.map +1 -1
  39. package/dist/internal/parity.d.ts +7 -0
  40. package/dist/internal/parity.d.ts.map +1 -1
  41. package/dist/internal/parity.js +212 -30
  42. package/dist/internal/parity.js.map +1 -1
  43. package/dist/internal/render-document.d.ts +372 -0
  44. package/dist/internal/render-document.d.ts.map +1 -0
  45. package/dist/internal/render-document.js +744 -0
  46. package/dist/internal/render-document.js.map +1 -0
  47. package/dist/internal/runtime-contract.d.ts +48 -0
  48. package/dist/internal/runtime-contract.d.ts.map +1 -0
  49. package/dist/internal/runtime-contract.js +27 -0
  50. package/dist/internal/runtime-contract.js.map +1 -0
  51. package/dist/internal/web-app.d.ts +171 -0
  52. package/dist/internal/web-app.d.ts.map +1 -0
  53. package/dist/internal/web-app.js +844 -0
  54. package/dist/internal/web-app.js.map +1 -0
  55. package/dist/islands.d.ts +48 -0
  56. package/dist/islands.d.ts.map +1 -1
  57. package/dist/islands.js +79 -0
  58. package/dist/islands.js.map +1 -1
  59. package/dist/module-graph.d.ts.map +1 -1
  60. package/dist/module-graph.js +22 -9
  61. package/dist/module-graph.js.map +1 -1
  62. package/dist/nano.d.ts +125 -0
  63. package/dist/nano.d.ts.map +1 -0
  64. package/dist/nano.js +190 -0
  65. package/dist/nano.js.map +1 -0
  66. package/dist/plugins/css-modules.js +2 -2
  67. package/dist/plugins/css-modules.js.map +1 -1
  68. package/dist/plugins/kit.d.ts +12 -0
  69. package/dist/plugins/kit.d.ts.map +1 -1
  70. package/dist/plugins/kit.js +62 -12
  71. package/dist/plugins/kit.js.map +1 -1
  72. package/dist/plugins/postcss.js +2 -2
  73. package/dist/plugins/postcss.js.map +1 -1
  74. package/dist/plugins/scss.js +2 -2
  75. package/dist/plugins/scss.js.map +1 -1
  76. package/dist/plugins/stylex.d.ts +70 -0
  77. package/dist/plugins/stylex.d.ts.map +1 -0
  78. package/dist/plugins/stylex.js +166 -0
  79. package/dist/plugins/stylex.js.map +1 -0
  80. package/dist/plugins/svg.js +2 -2
  81. package/dist/plugins/svg.js.map +1 -1
  82. package/dist/router.d.ts +1 -1
  83. package/dist/router.js +23 -23
  84. package/dist/router.js.map +1 -1
  85. package/dist/vite.d.ts.map +1 -1
  86. package/dist/vite.js +26 -10
  87. package/dist/vite.js.map +1 -1
  88. package/package.json +39 -3
  89. package/src/build-plan.ts +741 -0
  90. package/src/build-vite.ts +1 -4
  91. package/src/build.ts +84 -716
  92. package/src/chunk-names.ts +3 -2
  93. package/src/dev-ssr-graph.ts +63 -28
  94. package/src/diagnostic.ts +14 -2
  95. package/src/fonts-google.ts +3 -1
  96. package/src/fs.ts +2 -1
  97. package/src/index.ts +73 -2705
  98. package/src/internal/codegen.ts +400 -0
  99. package/src/internal/head-merge.ts +19 -1
  100. package/src/internal/parity.ts +215 -35
  101. package/src/internal/render-document.ts +1116 -0
  102. package/src/internal/runtime-contract.ts +54 -0
  103. package/src/internal/web-app.ts +1114 -0
  104. package/src/islands.ts +85 -0
  105. package/src/module-graph.ts +23 -9
  106. package/src/nano.ts +246 -0
  107. package/src/plugins/css-modules.ts +2 -2
  108. package/src/plugins/kit.ts +65 -12
  109. package/src/plugins/postcss.ts +2 -2
  110. package/src/plugins/scss.ts +2 -2
  111. package/src/plugins/stylex.ts +298 -0
  112. package/src/plugins/svg.ts +2 -2
  113. package/src/router.ts +24 -24
  114. package/src/vite.ts +33 -9
@@ -0,0 +1,228 @@
1
+ import type { ClientModuleGraph } from "./module-graph.js";
2
+ export interface BuildManifest {
3
+ /** URL of the client entry module (content-hashed). */
4
+ readonly entry: string;
5
+ /** URLs of every emitted asset (entry + chunks) - for serving + preloading. */
6
+ readonly assets: readonly string[];
7
+ /** `routeId → [layout chunk URLs…, own chunk URL]` - the chunks a route needs, for `createWebApp`'s
8
+ * `routePreload` (`<link rel="modulepreload">` the matched route alongside the entry). Each route +
9
+ * layout is also a build entrypoint, so it gets a named chunk the bootstrap's lazy import dedupes to. */
10
+ readonly routes: Readonly<Record<string, readonly string[]>>;
11
+ /** URL paths copied from `publicDir`, sorted. Lets the server entry serve them without scanning a
12
+ * directory per request, and lets an adapter that needs a file list (CDN upload, platform static
13
+ * assets) consume one. Omitted when there is no `public/`. */
14
+ readonly publicFiles?: readonly string[];
15
+ /** The app's bundled, content-hashed stylesheet(s) - the bootstrap's **aggregate** CSS (every
16
+ * `import './x.css'` reachable from the app). The complete stylesheet regardless of which file
17
+ * imported the CSS; the always-safe fallback `createWebApp` links when a route has no per-route entry
18
+ * in {@link routeStyles}. Omitted when the app imports no CSS. */
19
+ readonly css?: readonly string[];
20
+ /** `routeId → [chain CSS URLs]` - only the stylesheets the matched route's layout chain + own file
21
+ * actually use (Bun emits a per-entrypoint CSS bundle per route/layout, with shared-component CSS
22
+ * inlined into each consumer). `createWebApp` links these instead of the aggregate, so a page ships
23
+ * only its own CSS. A route is omitted (→ aggregate fallback) when its `[name]` collides with another
24
+ * route's basename (ambiguous CSS↔route) or the build emitted orphan shared-chunk CSS - correctness
25
+ * over minimality. Absent entirely when the app imports no CSS. */
26
+ readonly routeStyles?: Readonly<Record<string, readonly string[]>>;
27
+ }
28
+ /** The built worker bundle - point your `wrangler.toml`'s `main` at `worker`. */
29
+ export interface ServerBuild {
30
+ /** Path to the bundled, self-contained worker entry. */
31
+ readonly worker: string;
32
+ /** Paths of every emitted output (entry + any code-split chunks) - what to ship to the platform. */
33
+ readonly outputs: readonly string[];
34
+ }
35
+ /** A deploy target `nifra build --target <t>` can emit. `static` is pure SSG (no server). */
36
+ export declare const BUILD_TARGETS: readonly ["bun", "node", "deno", "cf-pages", "vercel", "static"];
37
+ export type BuildTarget = (typeof BUILD_TARGETS)[number];
38
+ /** A type guard narrowing an arbitrary string to a {@link BuildTarget}. */
39
+ export declare function isBuildTarget(value: string): value is BuildTarget;
40
+ export type ServerBuildTarget = "browser" | "node" | "bun";
41
+ export interface StaticBuildTargetPlan {
42
+ readonly target: "static";
43
+ readonly kind: "static";
44
+ readonly serverTarget: undefined;
45
+ readonly outputFile: undefined;
46
+ readonly run: string;
47
+ }
48
+ export interface ServerBuildTargetPlan {
49
+ readonly target: Exclude<BuildTarget, "static">;
50
+ readonly kind: "server";
51
+ readonly serverTarget: ServerBuildTarget;
52
+ /** The worker's final filename inside the assembled deploy directory. */
53
+ readonly outputFile: "_worker.js" | "index.js" | "server.js";
54
+ readonly run: string;
55
+ }
56
+ export type BuildTargetPlan = StaticBuildTargetPlan | ServerBuildTargetPlan;
57
+ /**
58
+ * Resolve the target-specific deploy shape before any bundling starts. Keeping this decision pure
59
+ * means Bun and Vite strategies share the same output filename, server target, and hand-off text;
60
+ * the filesystem emitter only has to execute the plan.
61
+ */
62
+ export declare function planBuildTarget(target: BuildTarget, outDir: string): BuildTargetPlan;
63
+ /**
64
+ * A build-tool STRATEGY for {@link buildTargetWith} - the two bundling steps, and nothing else. Everything
65
+ * around them (server-entry codegen, deploy assembly, prerender, size report) is bundler-agnostic and
66
+ * lives in `buildTargetWith`, so a second bundler (Vite) is this interface, not a second orchestrator.
67
+ *
68
+ * Plugin lists are `readonly unknown[]` because a Bun plugin and a Vite plugin are different types; each
69
+ * strategy casts to its own. `buildTargetWith` only forwards them.
70
+ */
71
+ export interface Bundler {
72
+ /** Build the client bundle → the shared {@link BuildManifest}. */
73
+ buildClient(input: {
74
+ readonly routesDir: string;
75
+ readonly outDir: string;
76
+ readonly clientModule: string;
77
+ readonly plugins?: readonly unknown[];
78
+ readonly conditions?: readonly string[];
79
+ readonly define?: Readonly<Record<string, string>>;
80
+ readonly publicDir?: string | false;
81
+ readonly publicEnvPrefix?: string;
82
+ /** Project root (Vite needs it; the Bun strategy ignores it). */
83
+ readonly root?: string;
84
+ }): Promise<BuildManifest>;
85
+ /** Build the server worker → the shared {@link ServerBuild}. */
86
+ buildServer(input: {
87
+ readonly routesDir: string;
88
+ readonly serverEntry: string;
89
+ readonly outDir: string;
90
+ readonly clientEntry: string;
91
+ readonly target: "browser" | "node" | "bun";
92
+ readonly plugins?: readonly unknown[];
93
+ readonly define?: Readonly<Record<string, string>>;
94
+ readonly root?: string;
95
+ }): Promise<ServerBuild>;
96
+ }
97
+ /** One `node:`-builtin-in-the-client finding: the offending builtin, the emitted chunk it landed in,
98
+ * and the shortest USER-module import chain that pulled it there (entry → … → builtin). */
99
+ export interface NodeBuiltinFinding {
100
+ readonly builtin: string;
101
+ readonly chunk: string;
102
+ /** The shortest import path from a user entry to the builtin, as a list of display labels:
103
+ * `[entryFile, ...as-written specifiers along the way, builtin]`, e.g.
104
+ * `["routes/article/[slug].tsx", "../data.ts", "../db/client.ts", "postgres", "node:tls"]`. The
105
+ * entry is its graph key (the route file); each hop is the import's *as-written* specifier; the tail
106
+ * is the builtin. Empty only if the builtin module isn't reachable from any traced input (it always
107
+ * is when flagged). */
108
+ readonly chain: readonly string[];
109
+ }
110
+ /**
111
+ * Scan a build's metafile for any `node:` builtin that a USER module pulled into a CLIENT output
112
+ * chunk, returning a sorted, deduped list of {@link NodeBuiltinFinding}s. Three graph facts combine so
113
+ * the report is precise AND actionable:
114
+ * 1. **What the user wrote** - only builtins imported by a NON-`node:` input count, so Bun's own
115
+ * polyfill chain (`node:crypto` → `node:buffer`/`node:stream`/…) doesn't bury the real cause.
116
+ * 2. **Where it landed** - the chunk is read from the per-output `inputs`, so the error names the
117
+ * emitted file to look at.
118
+ * 3. **How it got there** - the shortest import chain from a user entry to the builtin
119
+ * (`shortestBuiltinChain`), so the error points straight at the offending `import` line instead of
120
+ * leaving the dev to grep the dependency tree (the DX gap this closes).
121
+ * Graph-based (never the emitted text), so it survives minification and can't be fooled by a string
122
+ * literal that merely contains `"node:crypto"`. Pure + exported for unit testing. Empty ⇒ clean.
123
+ */
124
+ export declare function detectNodeBuiltinsInClient(graph: ClientModuleGraph): ReadonlyArray<NodeBuiltinFinding>;
125
+ /** The marker specifier an author imports to opt a module into the client-leak guard. Matched on the
126
+ * import edge's *as-written* `original` first (the robust signal: it's exactly what the author typed,
127
+ * before Bun resolves it to `src/server-only.ts` / `dist/server-only.js`). */
128
+ export declare const SERVER_ONLY_MARKER = "@nifrajs/web/server-only";
129
+ /** One `server-only`-module-in-the-client finding: the offending module (the as-written marker-import
130
+ * chain's tail before the marker), the emitted chunk it landed in, and the shortest USER-module import
131
+ * chain that pulled it there (entry → … → the server-only module). */
132
+ export interface ServerOnlyFinding {
133
+ /** The emitted client chunk the server-only module landed in (basename). */
134
+ readonly chunk: string;
135
+ /** The shortest import path from a user entry to the server-only module, as display labels:
136
+ * `[entryFile, ...as-written specifiers…, "<module> (marked server-only)"]`. Mirrors
137
+ * {@link NodeBuiltinFinding.chain}; the tail names the marked module so the message reads
138
+ * `routes/x.tsx → ../secrets.ts (marked server-only)`. */
139
+ readonly chain: readonly string[];
140
+ }
141
+ /**
142
+ * Scan a build's metafile for any module that opts into the `server-only` marker (a side-effect
143
+ * `import "@nifrajs/web/server-only"`) yet landed in a CLIENT output chunk, returning a sorted, deduped
144
+ * list of {@link ServerOnlyFinding}s. Mirrors {@link detectNodeBuiltinsInClient}: it reads the SAME
145
+ * graph facts - which inputs import the marker (the "marked" modules), which chunk each landed in (the
146
+ * per-output `inputs`), and the shortest import chain from a user entry to it. The marker module ITSELF
147
+ * (which imports nothing) is excluded - only the modules that *opt in* are flagged. Pure + exported for
148
+ * unit testing. Empty ⇒ clean.
149
+ */
150
+ export declare function detectServerOnlyInClient(graph: ClientModuleGraph): ReadonlyArray<ServerOnlyFinding>;
151
+ /** The build-failing message for `node:` builtins that reached the client bundle. `undefined` ⇒ clean. */
152
+ export declare function formatNodeBuiltinLeak(findings: ReadonlyArray<NodeBuiltinFinding>): string | undefined;
153
+ /** The build-failing message for `server-only`-marked modules that reached the client. `undefined` ⇒ clean. */
154
+ export declare function formatServerOnlyLeak(findings: ReadonlyArray<ServerOnlyFinding>): string | undefined;
155
+ /** One emitted chunk's measured size, in raw bytes + gzipped bytes (over-the-wire weight). */
156
+ export interface ChunkSize {
157
+ /** The emitted file's basename (e.g. `index-abc123.js`). */
158
+ readonly name: string;
159
+ /** Raw byte length of the file. */
160
+ readonly bytes: number;
161
+ /** Gzipped byte length (what the client actually downloads, modulo brotli). */
162
+ readonly gzip: number;
163
+ }
164
+ /** A whole build's size report - every chunk (largest first) + the totals. */
165
+ export interface SizeReport {
166
+ /** Per-chunk sizes, sorted biggest gzip first (the regression you want to see at the top). */
167
+ readonly chunks: readonly ChunkSize[];
168
+ /** Sum of every chunk's raw bytes. */
169
+ readonly totalBytes: number;
170
+ /** Sum of every chunk's gzip bytes. */
171
+ readonly totalGzip: number;
172
+ }
173
+ /**
174
+ * Aggregate a list of measured chunks into a {@link SizeReport}: sort biggest-gzip-first (ties broken
175
+ * by raw bytes, then name for stable output) and sum the totals. Pure - the measurement (reading the
176
+ * file + gzipping it) happens in the orchestrator; this is the deterministic, unit-testable core.
177
+ */
178
+ export declare function aggregateSizeReport(chunks: readonly ChunkSize[]): SizeReport;
179
+ /** Human-readable byte count: `B`/`KB`/`MB` with one decimal above 1 KB (e.g. `12.3 KB`). Pure. */
180
+ export declare function formatBytes(bytes: number): string;
181
+ /**
182
+ * Render a {@link SizeReport} as a terse aligned table (biggest first) with a totals row - the text
183
+ * `nifra build --report` prints. Pure (string in, string out) so the formatting is unit-testable.
184
+ */
185
+ export declare function renderSizeReport(report: SizeReport): string;
186
+ /** A drift finding between a committed server-manifest and the live `routes/` tree. */
187
+ export interface ManifestDrift {
188
+ /** Route files present in `routes/` but ABSENT from the committed manifest (the manifest is stale -
189
+ * the new route won't be served by the worker). */
190
+ readonly missing: readonly string[];
191
+ /** Route files the committed manifest imports that no longer exist in `routes/` (a deleted/renamed
192
+ * route still wired into the worker - a build/runtime break). */
193
+ readonly extra: readonly string[];
194
+ }
195
+ /**
196
+ * Extract the route-relative file list a committed server-manifest declares, as the same
197
+ * `routes/`-relative keys `discoverRoutes` produces (e.g. `docs/index.tsx`). Reads the route map's KEYS,
198
+ * which carry the file extension and no directory prefix - exactly discovery's shape - so the result is
199
+ * independent of the specifier prefix the manifest happened to import with. The `@nifrajs/web` import and
200
+ * the baked `clientEntry`/`styles`/`routeStyles` lines carry no route-map entry and are ignored.
201
+ *
202
+ * `_routesPrefix` is accepted for call-site compatibility but no longer needed: the keys are already
203
+ * prefix-free. Pure - operates on source text.
204
+ */
205
+ export declare function parseManifestRouteFiles(source: string, _routesPrefix?: string): string[];
206
+ /** The baked `clientEntry` URL in a committed server-manifest, or `undefined` if absent. Pure. */
207
+ export declare function parseManifestClientEntry(source: string): string | undefined;
208
+ /** The baked top-level `styles` array in a committed server-manifest (empty if absent/unparseable). Pure. */
209
+ export declare function parseManifestStyles(source: string): string[];
210
+ /** The baked per-route `routeStyles` map in a committed server-manifest (empty if absent/unparseable). Pure. */
211
+ export declare function parseManifestRouteStyles(source: string): Record<string, string[]>;
212
+ /**
213
+ * Diff the route files a committed server-manifest imports against the files freshly discovered in
214
+ * `routes/`. Returns the `missing` (in routes/, not in manifest - stale manifest) and `extra` (in
215
+ * manifest, gone from routes/ - dangling import) sets. Empty arrays ⇒ in sync. Pure - the caller
216
+ * supplies both file lists (the committed source is parsed via {@link parseManifestRouteFiles}; the
217
+ * fresh list comes from `discoverRoutes`). Lists need not be pre-sorted; the result is sorted.
218
+ */
219
+ export declare function diffManifestRoutes(manifestFiles: readonly string[], discoveredFiles: readonly string[]): ManifestDrift;
220
+ /** True when a drift report is clean (no missing + no extra routes). */
221
+ export declare function isManifestInSync(drift: ManifestDrift): boolean;
222
+ /**
223
+ * Format a {@link ManifestDrift} as a named, actionable error message, or `undefined` when in sync.
224
+ * Names the exact missing/extra routes + the one fix (regenerate the manifest by re-running the build).
225
+ * `manifestPath` is shown for the dev to locate the stale file. Pure.
226
+ */
227
+ export declare function formatManifestDrift(drift: ManifestDrift, manifestPath?: string): string | undefined;
228
+ //# sourceMappingURL=build-plan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-plan.d.ts","sourceRoot":"","sources":["../src/build-plan.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAE1D,MAAM,WAAW,aAAa;IAC5B,uDAAuD;IACvD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,+EA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