@nifrajs/web 2.10.0 → 2.11.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.
- package/dist/client.d.ts +12 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +16 -0
- package/dist/client.js.map +1 -1
- package/dist/dev-ssr-graph.d.ts +33 -0
- package/dist/dev-ssr-graph.d.ts.map +1 -0
- package/dist/dev-ssr-graph.js +285 -0
- package/dist/dev-ssr-graph.js.map +1 -0
- package/dist/dev.d.ts.map +1 -1
- package/dist/dev.js +72 -17
- package/dist/dev.js.map +1 -1
- package/dist/index.d.ts +25 -24
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +46 -76
- package/dist/index.js.map +1 -1
- package/dist/internal/head-merge.d.ts +27 -0
- package/dist/internal/head-merge.d.ts.map +1 -0
- package/dist/internal/head-merge.js +65 -0
- package/dist/internal/head-merge.js.map +1 -0
- package/dist/internal/server-boundary.d.ts +1 -2
- package/dist/internal/server-boundary.d.ts.map +1 -1
- package/dist/internal/server-boundary.js +1 -2
- package/dist/internal/server-boundary.js.map +1 -1
- package/dist/plugins/css-modules.d.ts +12 -0
- package/dist/plugins/css-modules.d.ts.map +1 -1
- package/dist/plugins/css-modules.js +0 -0
- package/dist/plugins/css-modules.js.map +1 -1
- package/dist/plugins/kit.d.ts +54 -0
- package/dist/plugins/kit.d.ts.map +1 -1
- package/dist/plugins/kit.js +66 -0
- package/dist/plugins/kit.js.map +1 -1
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +27 -1
- package/dist/vite.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +28 -0
- package/src/dev-ssr-graph.ts +311 -0
- package/src/dev.ts +77 -19
- package/src/index.ts +55 -70
- package/src/internal/head-merge.ts +80 -0
- package/src/internal/server-boundary.ts +1 -2
- package/src/plugins/css-modules.ts +0 -0
- package/src/plugins/kit.ts +71 -0
- package/src/vite.ts +29 -1
package/dist/dev.js
CHANGED
|
@@ -10,9 +10,9 @@ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExte
|
|
|
10
10
|
* `@nifrajs/web/dev` - the **Bun pipeline's** dev server: one toolchain, no Vite in the process.
|
|
11
11
|
*
|
|
12
12
|
* nifra ships two dev pipelines and the rule between them is that a pipeline owns a whole phase. The
|
|
13
|
-
* Vite server (`@nifrajs/web/vite`) is the
|
|
14
|
-
* well as the client so both halves agree on every specifier. This is the other one:
|
|
15
|
-
* and hot-reloads the client while Bun's runtime resolves SSR. Only one toolchain is present, so the two
|
|
13
|
+
* Vite server (`@nifrajs/web/vite`) is the Vite-only escape hatch - mature framework plugins, and it
|
|
14
|
+
* resolves SSR as well as the client so both halves agree on every specifier. This is the other one:
|
|
15
|
+
* `Bun.serve` bundles and hot-reloads the client while Bun's runtime resolves SSR. Only one toolchain is present, so the two
|
|
16
16
|
* cannot disagree.
|
|
17
17
|
*
|
|
18
18
|
* What you get: React Fast Refresh WITH state preserved - Bun's dev server applies it natively, no plugin
|
|
@@ -22,9 +22,9 @@ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExte
|
|
|
22
22
|
* not, and saving it does a clean full reload. Plus no Vite dependency and ONE bundler across dev and
|
|
23
23
|
* production, which is the real prize - the dev/prod seam disappears.
|
|
24
24
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
25
|
+
* CSS Modules, server functions, and `*.server` modules use the same production transforms through the
|
|
26
|
+
* generated Bun config. The CLI owns that config because Bun's HTML dev server accepts plugins only from
|
|
27
|
+
* `[serve.static] plugins`; direct callers should pass the equivalent plugin through their Bun config.
|
|
28
28
|
*
|
|
29
29
|
* ## How the two halves meet
|
|
30
30
|
*
|
|
@@ -46,7 +46,10 @@ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExte
|
|
|
46
46
|
* production, which reads CSS from the build manifest, is perfectly fine.
|
|
47
47
|
*
|
|
48
48
|
* SSR invalidation is Bun's import cache rather than Vite's module graph, so route modules are re-imported
|
|
49
|
-
* under a changing query on each change - which is what `discoverRoutes({ importQuery })` exists for.
|
|
49
|
+
* under a changing query on each change - which is what `discoverRoutes({ importQuery })` exists for. That
|
|
50
|
+
* query stops at the route file, so everything BELOW it - components, helpers, `*.server` modules - is
|
|
51
|
+
* tracked and re-keyed per module by `./dev-ssr-graph.ts`, or SSR would render the code that was on disk
|
|
52
|
+
* when the server started.
|
|
50
53
|
*
|
|
51
54
|
* Bun-only + build-time; never imported by the edge runtime.
|
|
52
55
|
*/
|
|
@@ -56,8 +59,10 @@ import { buildClient } from "./build.js";
|
|
|
56
59
|
import { resolveDevEntry } from "./bun-dev-entry.js";
|
|
57
60
|
import { createDevDiagnostics } from "./dev-diagnostics.js";
|
|
58
61
|
import { explainBindFailure } from "./dev-port.js";
|
|
62
|
+
import { createSsrGraph } from "./dev-ssr-graph.js";
|
|
59
63
|
import { discoverRoutes } from "./fs.js";
|
|
60
64
|
import { DEFAULT_DEV_PORT, generateClientEntry } from "./index.js";
|
|
65
|
+
import { DEV_HMR_ENV, DEV_ROOT_ENV, DEV_ROUTES_ENV } from "./plugins/kit.js";
|
|
61
66
|
import { servePublicDir } from "./public-dir.js";
|
|
62
67
|
export { LAST_ERROR_PATH } from "./diagnostic.js";
|
|
63
68
|
/**
|
|
@@ -169,13 +174,52 @@ export function injectStyles(html, styles) {
|
|
|
169
174
|
export async function createDevServer(options) {
|
|
170
175
|
const { createApp, port = DEFAULT_DEV_PORT, routesDir, clientModule } = options;
|
|
171
176
|
const serve = bunServe();
|
|
177
|
+
// Tell the framework compiler plugins they are compiling for a DEV SERVER, so they may emit HMR
|
|
178
|
+
// wiring. It cannot be a plugin constructor argument: an app builds its `clientPlugins` once in
|
|
179
|
+
// `nifra.config.ts` and the same objects serve dev and `nifra build`. Guarding the emitted code with
|
|
180
|
+
// `if (import.meta.hot)` is not sufficient either - `Bun.build` keeps the branch, so the HMR calls
|
|
181
|
+
// ship to production. This flag is the phase signal; `nifra build` never sets it.
|
|
182
|
+
process.env[DEV_HMR_ENV] = "1";
|
|
183
|
+
// Dev-shaped runtimes for SSR, matching what the client bundle gets: a library ships its dev build
|
|
184
|
+
// behind the `development` export condition with a `NODE_ENV` fallback for resolvers that set no
|
|
185
|
+
// conditions, and Bun's runtime (where SSR runs) is one of those. `nifra dev` sets this on the server
|
|
186
|
+
// process before it reads the app config, which is earlier than this and is the point that matters -
|
|
187
|
+
// a framework runtime imported through the config has already read the flag by the time this line
|
|
188
|
+
// runs. This is the floor for a dev server started programmatically. `??=`, so a pinned value stands.
|
|
189
|
+
process.env.NODE_ENV ??= "development";
|
|
190
|
+
// `conditions` governs the production client bundle but CANNOT govern the one served here: Bun's
|
|
191
|
+
// dev-server bundler takes no resolve conditions, from `bunfig.toml` or anywhere else, so a package
|
|
192
|
+
// with an `exports` map can resolve to a different file in dev than in `nifra build`. SSR is fine -
|
|
193
|
+
// `nifra dev` passes these to the runtime as `--conditions` when it re-execs - which is exactly why
|
|
194
|
+
// this is worth a line: the halves of the dev process no longer agree, and the drift is invisible
|
|
195
|
+
// until production picks the other file. Said once at startup rather than swallowed.
|
|
196
|
+
if (options.conditions !== undefined && options.conditions.length > 0) {
|
|
197
|
+
console.warn(`\n[nifra/web/dev] \`conditions: [${options.conditions.map((c) => `"${c}"`).join(", ")}]\` ` +
|
|
198
|
+
"does not reach the client bundle on the Bun dev pipeline.\n" +
|
|
199
|
+
" Bun's dev-server bundler accepts no resolve conditions, so a package with an `exports` map\n" +
|
|
200
|
+
" may resolve differently here than in `nifra build`. SSR does honour them.\n" +
|
|
201
|
+
" Run `nifra dev --vite` if this app needs exact dev/prod client resolution.\n");
|
|
202
|
+
}
|
|
172
203
|
// The app root. `routesDir` is `<app>/routes` by convention, so its parent is the project - the one
|
|
173
204
|
// place a generated entry can sit and still resolve the app's imports.
|
|
174
205
|
const root = resolve(routesDir, "..");
|
|
206
|
+
// Which files are the app's own components, for the plugins that hot-patch at component granularity
|
|
207
|
+
// (`devHotComponent`). Announced here rather than passed, for the same reason the flag above is.
|
|
208
|
+
process.env[DEV_ROOT_ENV] = root;
|
|
209
|
+
process.env[DEV_ROUTES_ENV] = resolve(routesDir);
|
|
175
210
|
// The most recent SSR failure as a structured Diagnostic, scoped to THIS server. Served at
|
|
176
211
|
// LAST_ERROR_PATH so an agent driving the dev server reads the exact failure (code, codeframe, fix) as
|
|
177
212
|
// JSON instead of scraping the overlay. Shared with the Vite adapter so the endpoint can't drift.
|
|
178
213
|
const devDiagnostics = createDevDiagnostics(root);
|
|
214
|
+
// SSR freshness BELOW the route module. The route-level `importQuery` only ever reloaded the route
|
|
215
|
+
// itself; everything it imports is tracked here and re-keyed when it changes. Registered now because a
|
|
216
|
+
// Bun runtime plugin only affects modules loaded after it, and the first route import is `appFor`
|
|
217
|
+
// below - the CLI's own plugins (CSS Modules, the app's `serverPlugins`) register earlier still, and
|
|
218
|
+
// being earlier is what gives them first refusal on the specifiers and file types they own. That
|
|
219
|
+
// ordering is deliberate: a framework plugin compiling `.vue`/`.svelte`/`.tsx` keeps its loader, and
|
|
220
|
+
// re-keys the imports of what it compiled by handing its output through `rewriteSsrImports`.
|
|
221
|
+
const ssrGraph = createSsrGraph({ root });
|
|
222
|
+
(await import("bun")).plugin(ssrGraph.plugin);
|
|
179
223
|
const devDir = resolve(root, DEV_DIR);
|
|
180
224
|
const entryPath = resolve(devDir, "entry.tsx");
|
|
181
225
|
const htmlPath = resolve(devDir, "entry.html");
|
|
@@ -193,7 +237,7 @@ export async function createDevServer(options) {
|
|
|
193
237
|
let server;
|
|
194
238
|
// The last resolved entry, with the time it was resolved. Deliberately short-lived - see `currentEntry`.
|
|
195
239
|
let cache;
|
|
196
|
-
// The app, tagged with the
|
|
240
|
+
// The app, tagged with the build it was made for - see `appFor`.
|
|
197
241
|
let built;
|
|
198
242
|
let building;
|
|
199
243
|
let version = 0;
|
|
@@ -242,29 +286,39 @@ export async function createDevServer(options) {
|
|
|
242
286
|
*
|
|
243
287
|
* The watcher still runs: it regenerates the entry when routes are added or removed, and re-checks for
|
|
244
288
|
* client leaks. It is no longer what keeps SSR correct.
|
|
289
|
+
*
|
|
290
|
+
* The entry hash is not the whole marker, though, because it only covers the CLIENT graph. A module
|
|
291
|
+
* the browser never receives - a `*.server` file, a loader's helper - can change without moving it, so
|
|
292
|
+
* the key also carries {@link SsrGraph} generation, which counts changes on the SERVER side. Either
|
|
293
|
+
* one moving rebuilds the app, which is what re-imports the route modules under a fresh query.
|
|
245
294
|
*/
|
|
246
|
-
const appFor = (
|
|
247
|
-
if (built?.
|
|
295
|
+
const appFor = (key) => {
|
|
296
|
+
if (built?.key === key)
|
|
248
297
|
return Promise.resolve(built.app);
|
|
249
|
-
if (building?.
|
|
298
|
+
if (building?.key === key)
|
|
250
299
|
return building.promise;
|
|
251
300
|
version += 1;
|
|
252
301
|
const promise = Promise.resolve(createApp(CLIENT_ENTRY_PATH, `v=${version}`));
|
|
253
|
-
building = {
|
|
302
|
+
building = { key, promise };
|
|
254
303
|
void promise
|
|
255
304
|
.then((next) => {
|
|
256
|
-
if (building?.
|
|
257
|
-
built = {
|
|
305
|
+
if (building?.key === key) {
|
|
306
|
+
built = { key, app: next };
|
|
258
307
|
building = undefined;
|
|
259
308
|
}
|
|
260
309
|
})
|
|
261
310
|
.catch(() => {
|
|
262
311
|
// Clear the in-flight marker so the next request retries instead of re-awaiting a failed build.
|
|
263
|
-
if (building?.
|
|
312
|
+
if (building?.key === key)
|
|
264
313
|
building = undefined;
|
|
265
314
|
});
|
|
266
315
|
return promise;
|
|
267
316
|
};
|
|
317
|
+
/** Check the server-side graph for changes, then hand back the app for what is on disk right now. */
|
|
318
|
+
const appForRequest = (entrySrc) => {
|
|
319
|
+
ssrGraph.sweep();
|
|
320
|
+
return appFor(`${entrySrc}#${ssrGraph.generation()}`);
|
|
321
|
+
};
|
|
268
322
|
try {
|
|
269
323
|
server = serve({
|
|
270
324
|
port,
|
|
@@ -301,7 +355,7 @@ export async function createDevServer(options) {
|
|
|
301
355
|
// One fresh probe per request: it is both the freshness check for SSR and the stylesheet list,
|
|
302
356
|
// so the page cannot be rendered against a build the browser is not about to load.
|
|
303
357
|
const entry = await currentEntry(true);
|
|
304
|
-
const res = await (await
|
|
358
|
+
const res = await (await appForRequest(entry.src)).fetch(req);
|
|
305
359
|
if (!(res.headers.get("content-type") ?? "").includes("text/html"))
|
|
306
360
|
return res;
|
|
307
361
|
if (entry.styles.length === 0)
|
|
@@ -335,7 +389,7 @@ export async function createDevServer(options) {
|
|
|
335
389
|
try {
|
|
336
390
|
// Build once up front so a dev server that cannot find the entry, or whose app fails to construct,
|
|
337
391
|
// fails at startup with a real diagnosis instead of on the first page request.
|
|
338
|
-
await
|
|
392
|
+
await appForRequest((await currentEntry()).src);
|
|
339
393
|
}
|
|
340
394
|
catch (err) {
|
|
341
395
|
// Leaving the server up would answer 500s forever, which presents as a running server rather than as
|
|
@@ -418,6 +472,7 @@ export async function createDevServer(options) {
|
|
|
418
472
|
clearInterval(topologyTimer);
|
|
419
473
|
for (const file of watched)
|
|
420
474
|
unwatchFile(file);
|
|
475
|
+
ssrGraph.dispose();
|
|
421
476
|
server.stop(true);
|
|
422
477
|
rmSync(devDir, { recursive: true, force: true });
|
|
423
478
|
},
|
package/dist/dev.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../src/dev.ts"],"names":[],"mappings":";;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,OAAO,EACL,SAAS,EACT,WAAW,EACX,YAAY,EACZ,MAAM,EACN,WAAW,EACX,SAAS,EACT,aAAa,GACd,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAA2B,WAAW,EAAE,MAAM,YAAY,CAAA;AACjE,OAAO,EAAsB,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACxE,OAA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BACX,MAAM,GAAG,KAAK,CAAA;gBACd,GAAG,EAAE,CAAA;YACP,CAAC;QACH,CAAC,CAAC,CAAA;IACN,CAAC,CAAA;IACD,OAAO,GAAG,CAAA;AACZ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { server } from "@nifrajs/core/server";
|
|
11
11
|
import { type Deferred, defer } from "./deferred.js";
|
|
12
|
-
import
|
|
12
|
+
import { mergeHeads, resolveMeta } from "./internal/head-merge.js";
|
|
13
|
+
import type { LinkDescriptor, Manifest, Meta, MetaDescriptor, ScriptDescriptor, UnsafeScriptDescriptor } from "./manifest.js";
|
|
13
14
|
import { type Submission } from "./router.js";
|
|
14
15
|
export { DRAFT_COOKIE, type DraftCookieControls, disableDraft, type EnableDraftOptions, enableDraft, isDraftEnabled, type PreviewEndpointOptions, previewEndpoint, } from "./draft.js";
|
|
15
16
|
export { type FontDisplay, type FontFace, type FontPreloadInput, type FontSource, fontFace, fontPreload, } from "./fonts.js";
|
|
@@ -19,7 +20,7 @@ export { type Blocker, type BlockerController, type BlockerFunction, type Blocke
|
|
|
19
20
|
export { type PublicDirCache, resolvePublicPath, type ServePublicDirOptions, servePublicDir, } from "./public-dir.js";
|
|
20
21
|
export { createMutation, createQueryClient, type DehydratedState, hashQueryKey, type InfiniteData, type InfiniteQueryHandle, type InfiniteQueryOptions, type MutationCallbacks, type MutationHandle, type MutationState, type MutationStatus, type QueryClient, type QueryClientOptions, type QueryHandle, type QueryOptions, type QueryState, type QueryStatus, } from "./query.js";
|
|
21
22
|
export { type ClientRouter, type ClientRouterOptions, createClientRouter, createMatcher, DATA_HEADER, type Fetcher, type FetcherState, type FetchRouteData, type MountRouterOptions, NAV_FROM_HEADER, REDIRECT_HEADER, RETAIN_HEADER, REVALIDATE_HEADER, type RouteMatch, type RoutePattern, type RouterState, STATUS_HEADER, type Submission, type SubmitOptions, } from "./router.js";
|
|
22
|
-
export { type Deferred, defer };
|
|
23
|
+
export { type Deferred, defer, mergeHeads, resolveMeta };
|
|
23
24
|
/** Phantom brand key for {@link ServerOnly}. A unique symbol so the brand can't be forged by a plain
|
|
24
25
|
* object literal; `unique symbol` keys never appear in the emitted JS, so the brand is purely
|
|
25
26
|
* type-level (zero runtime cost). The property is optional + `never`-typed, so a `ServerOnly<T>`
|
|
@@ -119,6 +120,28 @@ export interface RenderAdapter {
|
|
|
119
120
|
*/
|
|
120
121
|
hydrationHead(nonce?: string): string;
|
|
121
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* Loads a module through the DEV SERVER'S module graph rather than the runtime's. Takes an absolute
|
|
125
|
+
* file path or a bare specifier; resolution, compilation and caching are the dev server's.
|
|
126
|
+
*/
|
|
127
|
+
export type SsrModuleLoader = (id: string) => Promise<unknown>;
|
|
128
|
+
/**
|
|
129
|
+
* Publishes the dev server's SSR module loader. Called by a dev server that owns SSR resolution
|
|
130
|
+
* itself; pass `undefined` to clear it on shutdown.
|
|
131
|
+
*/
|
|
132
|
+
export declare function setSsrModuleLoader(load: SsrModuleLoader | undefined): void;
|
|
133
|
+
/**
|
|
134
|
+
* The dev server's SSR module loader, or `undefined` when nothing owns SSR resolution but the runtime
|
|
135
|
+
* - the Bun dev pipeline, and every production build, where the adapter's assets are compiled ahead
|
|
136
|
+
* of time and a plain `import` is already the right thing.
|
|
137
|
+
*
|
|
138
|
+
* An adapter that must load a COMPILED asset at runtime (a `.svelte` component, say) has to prefer
|
|
139
|
+
* this over a bare `import`, and has to take the framework's SERVER RENDERER from it as well, not
|
|
140
|
+
* just the component. A component compiled by the dev server renders through the renderer the dev
|
|
141
|
+
* server resolved; mixing the two puts two copies of the framework runtime in one component tree,
|
|
142
|
+
* where context written by one half is invisible to the other.
|
|
143
|
+
*/
|
|
144
|
+
export declare function ssrModuleLoader(): SsrModuleLoader | undefined;
|
|
122
145
|
/** Global the server serializes loader data into; the client reads it to hydrate. */
|
|
123
146
|
export declare const DATA_GLOBAL = "__NIFRA_DATA__";
|
|
124
147
|
/** Per-layout loader data for hydration. Emitted ONLY when some layout in the chain has a loader, so
|
|
@@ -406,8 +429,6 @@ export declare function revalidate<T>(paths: readonly string[], data: T): Revali
|
|
|
406
429
|
* separators.
|
|
407
430
|
*/
|
|
408
431
|
export declare function serializeData(data: unknown): string;
|
|
409
|
-
/** Resolve a route's `meta` (static or a function of the loader data + params) to a {@link Meta}. */
|
|
410
|
-
export declare function resolveMeta(meta: MetaInput | undefined, args: MetaArgs): Meta;
|
|
411
432
|
/**
|
|
412
433
|
* A `<link rel="canonical">` descriptor for a route's `meta.link`. The canonical URL tells search
|
|
413
434
|
* engines which URL is authoritative for a page (deduping query-string / tracking variants).
|
|
@@ -458,26 +479,6 @@ export declare function unsafeInlineScript(content: string, options: {
|
|
|
458
479
|
readonly nonce: string;
|
|
459
480
|
readonly type?: "module" | "text/javascript";
|
|
460
481
|
}): UnsafeScriptDescriptor;
|
|
461
|
-
/**
|
|
462
|
-
* Merge a route's `<head>` contributions from its layout chain + the page into one {@link Meta}.
|
|
463
|
-
*
|
|
464
|
-
* The head contract (see {@link CreateWebAppOptions} and `LayoutEntry`): a `_layout.tsx` may export
|
|
465
|
-
* `meta` to put sitewide tags (`hreflang`, `preconnect`, a default `<title>`, …) on every page below
|
|
466
|
-
* it. `heads` is passed **outermost layout → … → innermost layout → page** (the same order as the
|
|
467
|
-
* render chain), and merges:
|
|
468
|
-
* - **`title`** - *nearest-wins*: the last defined value across the list, so the page overrides an
|
|
469
|
-
* inner layout, which overrides an outer one. A layout `title` is the section default; an undefined
|
|
470
|
-
* page `title` keeps it.
|
|
471
|
-
* - **`meta` / `link`** - *concatenated* in list order (outermost first, page last). Duplicate-tag
|
|
472
|
-
* de-duplication is the caller's concern; the framework emits exactly what's declared so a layout
|
|
473
|
-
* can ship N `<link rel="alternate" hreflang>` tags and a page can add its own canonical.
|
|
474
|
-
*
|
|
475
|
-
* Returns a fresh object whose identity is stable per `heads` *content* only when every entry is a
|
|
476
|
-
* static (by-reference) `Meta` and there is exactly one - otherwise a new object each call. That is
|
|
477
|
-
* fine: {@link headTags}'s memo is keyed on identity, so a per-request merge simply recomputes (its
|
|
478
|
-
* content can vary with loader data anyway).
|
|
479
|
-
*/
|
|
480
|
-
export declare function mergeHeads(heads: readonly Meta[]): Meta;
|
|
481
482
|
export interface CreateWebAppOptions {
|
|
482
483
|
readonly adapter: RenderAdapter;
|
|
483
484
|
readonly manifest: Manifest;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,OAAO,EAAE,MAAM,EAA6B,MAAM,sBAAsB,CAAA;AACxE,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,EAIN,MAAM,eAAe,CAAA;AAOtB,OAAO,KAAK,EAGV,cAAc,EAEd,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,cAAc,EACd,SAAS,EAGT,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,eAAe,CAAA;AACtB,OAAO,EASL,KAAK,UAAU,EAChB,MAAM,aAAa,CAAA;AAIpB,OAAO,EACL,YAAY,EACZ,KAAK,mBAAmB,EACxB,YAAY,EACZ,KAAK,kBAAkB,EACvB,WAAW,EACX,cAAc,EACd,KAAK,sBAAsB,EAC3B,eAAe,GAChB,MAAM,YAAY,CAAA;AAEnB,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,QAAQ,EACR,WAAW,GACZ,MAAM,YAAY,CAAA;AAGnB,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,qBAAqB,EACrB,0BAA0B,EAC1B,iBAAiB,EACjB,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,YAAY,EACZ,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,gBAAgB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AAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,GAAG,SAAS,CAAA;IAC9E;;;2FAGuF;IACvF,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,6BAA6B,GACrC,MAAM,CAwDR;AAED;;;;;;;;;GASG;AACH,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,10 @@ import { server, urlPartsOf } from "@nifrajs/core/server";
|
|
|
12
12
|
import { DEFERRED_ERROR_CODE, DEFERRED_RUNTIME, defer, MAP_DEFERRED_SOURCE, ndjsonStream, prepareDeferred, } from "./deferred.js";
|
|
13
13
|
import { isDraftEnabled } from "./draft.js";
|
|
14
14
|
import { trustedHeadAttributes } from "./internal/head-attributes.js";
|
|
15
|
+
// Head resolution/merging. Defined in an internal module so `@nifrajs/web/client` can export the same
|
|
16
|
+
// two functions to the generated client entry without dragging THIS module (and its server code) into
|
|
17
|
+
// the browser graph - see internal/head-merge.ts. Re-exported here so the public API is unchanged.
|
|
18
|
+
import { mergeHeads, resolveMeta } from "./internal/head-merge.js";
|
|
15
19
|
import { jsStringLiteral } from "./internal/js-string.js";
|
|
16
20
|
import { EXECUTABLE_SCRIPT_TYPES, INERT_SCRIPT_TYPES } from "./internal/script-types.js";
|
|
17
21
|
import { ISR_REVALIDATE_HEADER, ISR_REVALIDATE_TAGS_HEADER, serializeISRTags } from "./isr.js";
|
|
@@ -39,13 +43,41 @@ export { createMutation, createQueryClient, hashQueryKey, } from "./query.js";
|
|
|
39
43
|
// `DATA_HEADER` marks a navigation's data-only GET; `createWebApp` answers it with loader JSON.
|
|
40
44
|
export { createClientRouter, createMatcher, DATA_HEADER, NAV_FROM_HEADER, REDIRECT_HEADER, RETAIN_HEADER, REVALIDATE_HEADER, STATUS_HEADER, } from "./router.js";
|
|
41
45
|
// Deferred loader data (`defer()` + the `Deferred<T>` type) - consumed by the adapter's `<Await>`.
|
|
42
|
-
export { defer };
|
|
46
|
+
export { defer, mergeHeads, resolveMeta };
|
|
43
47
|
export { assertRenderAdapterConformance, RenderAdapterConformanceError, } from "./conformance.js";
|
|
44
48
|
// The search-derivation primitive: parse a URL query, validate it against a route's `searchSchema`
|
|
45
49
|
// (fail-closed to defaults), or return the raw parsed query when there is none. Both the server (loader
|
|
46
50
|
// ctx + `renderPage`) and a client adapter mount call this with the same URL + schema, so the two sides
|
|
47
51
|
// produce the identical value by construction. An adapter's `useSearch` binding reads its result.
|
|
48
52
|
export { searchOf, searchOfChain, serializeSearch } from "./search.js";
|
|
53
|
+
/* A `globalThis` singleton for the same reason `@nifrajs/web-react`'s router context is one: in dev
|
|
54
|
+
* this module is evaluated twice in one process (the CLI's copy under Bun, and the app's copy), and a
|
|
55
|
+
* module-level `let` would leave the adapter reading a slot the dev server set on the other copy. */
|
|
56
|
+
const SSR_MODULE_LOADER_SLOT = Symbol.for("nifra.web.ssr-module-loader");
|
|
57
|
+
/* Explicitly `| undefined`: clearing the slot is part of the contract (a dev server clears it on
|
|
58
|
+
* stop), and under `exactOptionalPropertyTypes` "absent" and "set to undefined" are separate types. */
|
|
59
|
+
const loaderSlot = globalThis;
|
|
60
|
+
/**
|
|
61
|
+
* Publishes the dev server's SSR module loader. Called by a dev server that owns SSR resolution
|
|
62
|
+
* itself; pass `undefined` to clear it on shutdown.
|
|
63
|
+
*/
|
|
64
|
+
export function setSsrModuleLoader(load) {
|
|
65
|
+
loaderSlot[SSR_MODULE_LOADER_SLOT] = load;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The dev server's SSR module loader, or `undefined` when nothing owns SSR resolution but the runtime
|
|
69
|
+
* - the Bun dev pipeline, and every production build, where the adapter's assets are compiled ahead
|
|
70
|
+
* of time and a plain `import` is already the right thing.
|
|
71
|
+
*
|
|
72
|
+
* An adapter that must load a COMPILED asset at runtime (a `.svelte` component, say) has to prefer
|
|
73
|
+
* this over a bare `import`, and has to take the framework's SERVER RENDERER from it as well, not
|
|
74
|
+
* just the component. A component compiled by the dev server renders through the renderer the dev
|
|
75
|
+
* server resolved; mixing the two puts two copies of the framework runtime in one component tree,
|
|
76
|
+
* where context written by one half is invisible to the other.
|
|
77
|
+
*/
|
|
78
|
+
export function ssrModuleLoader() {
|
|
79
|
+
return loaderSlot[SSR_MODULE_LOADER_SLOT];
|
|
80
|
+
}
|
|
49
81
|
/** Global the server serializes loader data into; the client reads it to hydrate. */
|
|
50
82
|
export const DATA_GLOBAL = "__NIFRA_DATA__";
|
|
51
83
|
/** Per-layout loader data for hydration. Emitted ONLY when some layout in the chain has a loader, so
|
|
@@ -696,12 +728,6 @@ function headTags(head) {
|
|
|
696
728
|
headTagsCache.set(head, out);
|
|
697
729
|
return out;
|
|
698
730
|
}
|
|
699
|
-
/** Resolve a route's `meta` (static or a function of the loader data + params) to a {@link Meta}. */
|
|
700
|
-
export function resolveMeta(meta, args) {
|
|
701
|
-
if (meta === undefined)
|
|
702
|
-
return {};
|
|
703
|
-
return typeof meta === "function" ? meta(args) : meta;
|
|
704
|
-
}
|
|
705
731
|
/**
|
|
706
732
|
* A `<link rel="canonical">` descriptor for a route's `meta.link`. The canonical URL tells search
|
|
707
733
|
* engines which URL is authoritative for a page (deduping query-string / tracking variants).
|
|
@@ -769,74 +795,6 @@ export function unsafeInlineScript(content, options) {
|
|
|
769
795
|
content,
|
|
770
796
|
};
|
|
771
797
|
}
|
|
772
|
-
/**
|
|
773
|
-
* Merge a route's `<head>` contributions from its layout chain + the page into one {@link Meta}.
|
|
774
|
-
*
|
|
775
|
-
* The head contract (see {@link CreateWebAppOptions} and `LayoutEntry`): a `_layout.tsx` may export
|
|
776
|
-
* `meta` to put sitewide tags (`hreflang`, `preconnect`, a default `<title>`, …) on every page below
|
|
777
|
-
* it. `heads` is passed **outermost layout → … → innermost layout → page** (the same order as the
|
|
778
|
-
* render chain), and merges:
|
|
779
|
-
* - **`title`** - *nearest-wins*: the last defined value across the list, so the page overrides an
|
|
780
|
-
* inner layout, which overrides an outer one. A layout `title` is the section default; an undefined
|
|
781
|
-
* page `title` keeps it.
|
|
782
|
-
* - **`meta` / `link`** - *concatenated* in list order (outermost first, page last). Duplicate-tag
|
|
783
|
-
* de-duplication is the caller's concern; the framework emits exactly what's declared so a layout
|
|
784
|
-
* can ship N `<link rel="alternate" hreflang>` tags and a page can add its own canonical.
|
|
785
|
-
*
|
|
786
|
-
* Returns a fresh object whose identity is stable per `heads` *content* only when every entry is a
|
|
787
|
-
* static (by-reference) `Meta` and there is exactly one - otherwise a new object each call. That is
|
|
788
|
-
* fine: {@link headTags}'s memo is keyed on identity, so a per-request merge simply recomputes (its
|
|
789
|
-
* content can vary with loader data anyway).
|
|
790
|
-
*/
|
|
791
|
-
export function mergeHeads(heads) {
|
|
792
|
-
// Single-head fast path (a route with no layout `meta`, by far the common case) - return the
|
|
793
|
-
// resolved object by reference so headTags' identity-keyed memo hits across requests for static meta.
|
|
794
|
-
if (heads.length === 1)
|
|
795
|
-
return heads[0];
|
|
796
|
-
let title;
|
|
797
|
-
let lang;
|
|
798
|
-
let dir;
|
|
799
|
-
const meta = [];
|
|
800
|
-
const link = [];
|
|
801
|
-
const script = [];
|
|
802
|
-
const unsafeScript = [];
|
|
803
|
-
for (const h of heads) {
|
|
804
|
-
if (h.title !== undefined)
|
|
805
|
-
title = h.title; // nearest-wins: later (more specific) overrides
|
|
806
|
-
if (h.lang !== undefined)
|
|
807
|
-
lang = h.lang; // nearest-wins, like title
|
|
808
|
-
if (h.dir !== undefined)
|
|
809
|
-
dir = h.dir;
|
|
810
|
-
if (h.meta !== undefined)
|
|
811
|
-
meta.push(...h.meta);
|
|
812
|
-
if (h.link !== undefined)
|
|
813
|
-
link.push(...h.link);
|
|
814
|
-
if (h.script !== undefined)
|
|
815
|
-
script.push(...h.script); // concatenated like meta/link (outermost first)
|
|
816
|
-
if (h.unsafeScript !== undefined)
|
|
817
|
-
unsafeScript.push(...h.unsafeScript);
|
|
818
|
-
}
|
|
819
|
-
// Build the result with only the fields that were actually contributed - an empty `meta`/`link`/
|
|
820
|
-
// `script` array would otherwise be a spurious (if harmless) key. A mutable local; the cast to `Meta`
|
|
821
|
-
// is sound because a key is assigned only when defined (so `exactOptionalPropertyTypes` never sees
|
|
822
|
-
// `undefined`).
|
|
823
|
-
const merged = {};
|
|
824
|
-
if (title !== undefined)
|
|
825
|
-
merged.title = title;
|
|
826
|
-
if (meta.length > 0)
|
|
827
|
-
merged.meta = meta;
|
|
828
|
-
if (link.length > 0)
|
|
829
|
-
merged.link = link;
|
|
830
|
-
if (script.length > 0)
|
|
831
|
-
merged.script = script;
|
|
832
|
-
if (unsafeScript.length > 0)
|
|
833
|
-
merged.unsafeScript = unsafeScript;
|
|
834
|
-
if (lang !== undefined)
|
|
835
|
-
merged.lang = lang;
|
|
836
|
-
if (dir !== undefined)
|
|
837
|
-
merged.dir = dir;
|
|
838
|
-
return merged;
|
|
839
|
-
}
|
|
840
798
|
/**
|
|
841
799
|
* Re-issue `request` with `prefix` removed from its pathname.
|
|
842
800
|
*
|
|
@@ -1654,7 +1612,9 @@ export function generateClientEntry(manifest, options) {
|
|
|
1654
1612
|
statusRoutes[Number(status)] = routeId;
|
|
1655
1613
|
}
|
|
1656
1614
|
return `${[
|
|
1657
|
-
|
|
1615
|
+
// `/client`, never the root: the root's graph carries the server (renderPage, the static-file
|
|
1616
|
+
// server), and Vite's dev server evaluates what it is given instead of tree-shaking it.
|
|
1617
|
+
'import { createClientRouter, createMatcher, mergeHeads, resolveMeta } from "@nifrajs/web/client"',
|
|
1658
1618
|
'import { applyHead, installForms, installHistory, signalHydrated } from "@nifrajs/web/client"',
|
|
1659
1619
|
// Namespace import: `errorBoundary` is optional (an adapter may not export it). A namespace member
|
|
1660
1620
|
// access yields `undefined` if absent - unlike a named import, which would be a link error.
|
|
@@ -1669,6 +1629,16 @@ export function generateClientEntry(manifest, options) {
|
|
|
1669
1629
|
"the generated bootstrap, so a self-executing entry will not work. Use your adapter's " +
|
|
1670
1630
|
'`/client` entry (e.g. "@nifrajs/web-react/client"), or re-export mountRouter from it.')})`,
|
|
1671
1631
|
"const errorBoundary = __adapter.errorBoundary",
|
|
1632
|
+
// A hot update that the framework cannot actually apply must end in a reload, not in nothing.
|
|
1633
|
+
//
|
|
1634
|
+
// Bun's dev server applies React Fast Refresh to JSX modules. For React that patches the component
|
|
1635
|
+
// and preserves state. For Preact it does not - the module still LOOKS Fast-Refresh-able, so the
|
|
1636
|
+
// update is accepted and then swallowed: `bun:beforeUpdate`/`bun:afterUpdate` both fire, the server
|
|
1637
|
+
// logs a rebuild, and the page silently keeps rendering the old code. An edit that appears to do
|
|
1638
|
+
// nothing is the worst failure mode in a dev loop - worse than a reload, because there is no signal
|
|
1639
|
+
// to act on. An adapter that knows its framework is in that position says so, and the entry turns
|
|
1640
|
+
// the swallowed update into an honest full reload.
|
|
1641
|
+
'if (import.meta.hot && __adapter.hotUpdateNeedsReload) import.meta.hot.on("bun:afterUpdate", () => location.reload())',
|
|
1672
1642
|
`const errorRouteIds = new Set(${JSON.stringify(errorRouteIds)})`,
|
|
1673
1643
|
// Each route is a lazy loader: dynamic imports → Bun.build (splitting) emits one chunk per
|
|
1674
1644
|
// route, shared layouts/deps deduped into shared chunks, so a route's code loads only when
|