@nifrajs/web 2.2.0 → 2.4.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/README.md +3 -3
- package/dist/build-vite.d.ts +4 -4
- package/dist/build-vite.d.ts.map +1 -1
- package/dist/build-vite.js +20 -74
- package/dist/build-vite.js.map +1 -1
- package/dist/build.d.ts +64 -42
- package/dist/build.d.ts.map +1 -1
- package/dist/build.js +100 -78
- package/dist/build.js.map +1 -1
- package/dist/bun-dev-entry.d.ts +1 -1
- package/dist/bun-dev-entry.js +1 -1
- package/dist/chunk-names.js +1 -1
- package/dist/client.d.ts +3 -9
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +201 -29
- package/dist/client.js.map +1 -1
- package/dist/conformance.d.ts +2 -2
- package/dist/conformance.js +3 -3
- package/dist/deferred.d.ts +11 -11
- package/dist/deferred.d.ts.map +1 -1
- package/dist/deferred.js +16 -16
- package/dist/dev-diagnostics.d.ts +20 -0
- package/dist/dev-diagnostics.d.ts.map +1 -0
- package/dist/dev-diagnostics.js +34 -0
- package/dist/dev-diagnostics.js.map +1 -0
- package/dist/dev-error.d.ts +10 -13
- package/dist/dev-error.d.ts.map +1 -1
- package/dist/dev-error.js +51 -37
- package/dist/dev-error.js.map +1 -1
- package/dist/dev-port.d.ts +3 -3
- package/dist/dev-port.d.ts.map +1 -1
- package/dist/dev-port.js +10 -4
- package/dist/dev-port.js.map +1 -1
- package/dist/dev.d.ts +4 -4
- package/dist/dev.d.ts.map +1 -1
- package/dist/dev.js +28 -12
- package/dist/dev.js.map +1 -1
- package/dist/diagnostic.d.ts +93 -0
- package/dist/diagnostic.d.ts.map +1 -0
- package/dist/diagnostic.js +205 -0
- package/dist/diagnostic.js.map +1 -0
- package/dist/draft.d.ts +12 -12
- package/dist/draft.js +11 -11
- package/dist/fn-state.d.ts +56 -0
- package/dist/fn-state.d.ts.map +1 -0
- package/dist/fn-state.js +77 -0
- package/dist/fn-state.js.map +1 -0
- package/dist/fn.d.ts +111 -0
- package/dist/fn.d.ts.map +1 -0
- package/dist/fn.js +125 -0
- package/dist/fn.js.map +1 -0
- package/dist/fonts-google.d.ts +9 -9
- package/dist/fonts-google.js +10 -10
- package/dist/fonts.d.ts +7 -7
- package/dist/fonts.js +1 -1
- package/dist/forms.d.ts +8 -8
- package/dist/fs.d.ts +1 -1
- package/dist/fs.js +1 -1
- package/dist/index.d.ts +151 -70
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +317 -139
- package/dist/index.js.map +1 -1
- package/dist/internal/head-attributes.d.ts +15 -0
- package/dist/internal/head-attributes.d.ts.map +1 -0
- package/dist/internal/head-attributes.js +99 -0
- package/dist/internal/head-attributes.js.map +1 -0
- package/dist/internal/script-types.d.ts +14 -0
- package/dist/internal/script-types.d.ts.map +1 -0
- package/dist/internal/script-types.js +17 -0
- package/dist/internal/script-types.js.map +1 -0
- package/dist/internal/server-boundary.d.ts +60 -0
- package/dist/internal/server-boundary.d.ts.map +1 -0
- package/dist/internal/server-boundary.js +174 -0
- package/dist/internal/server-boundary.js.map +1 -0
- package/dist/internal/timing-safe-equal.d.ts +1 -1
- package/dist/internal/timing-safe-equal.js +1 -1
- package/dist/internal/vite-import.d.ts +63 -0
- package/dist/internal/vite-import.d.ts.map +1 -0
- package/dist/internal/vite-import.js +94 -0
- package/dist/internal/vite-import.js.map +1 -0
- package/dist/islands.d.ts +5 -5
- package/dist/islands.js +5 -5
- package/dist/isr.d.ts +15 -15
- package/dist/isr.js +7 -7
- package/dist/manifest.d.ts +73 -35
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +10 -16
- package/dist/manifest.js.map +1 -1
- package/dist/module-graph.d.ts +5 -5
- package/dist/module-graph.js +4 -4
- package/dist/navigation.d.ts +120 -5
- package/dist/navigation.d.ts.map +1 -1
- package/dist/navigation.js +37 -5
- package/dist/navigation.js.map +1 -1
- package/dist/plugins/css-modules.d.ts +3 -3
- package/dist/plugins/css-modules.js +0 -0
- package/dist/plugins/kit.d.ts +8 -8
- package/dist/plugins/kit.js +9 -9
- package/dist/plugins/scss.js +3 -3
- package/dist/plugins/vite-leak-guard.d.ts +1 -1
- package/dist/plugins/vite-leak-guard.js +1 -1
- package/dist/plugins/vite-server-fn.d.ts +23 -0
- package/dist/plugins/vite-server-fn.d.ts.map +1 -0
- package/dist/plugins/vite-server-fn.js +51 -0
- package/dist/plugins/vite-server-fn.js.map +1 -0
- package/dist/plugins/vite-server-only.d.ts +49 -0
- package/dist/plugins/vite-server-only.d.ts.map +1 -0
- package/dist/plugins/vite-server-only.js +57 -0
- package/dist/plugins/vite-server-only.js.map +1 -0
- package/dist/prerender.d.ts +5 -5
- package/dist/prerender.js +7 -7
- package/dist/query.d.ts +10 -10
- package/dist/query.js +15 -15
- package/dist/route-manifest.d.ts +1 -1
- package/dist/route-manifest.js +2 -2
- package/dist/router.d.ts +30 -21
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +62 -32
- package/dist/router.js.map +1 -1
- package/dist/search.d.ts +94 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +232 -0
- package/dist/search.js.map +1 -0
- package/dist/server-only.d.ts +6 -6
- package/dist/server-only.js +7 -7
- package/dist/service-worker.d.ts +56 -0
- package/dist/service-worker.d.ts.map +1 -0
- package/dist/service-worker.js +127 -0
- package/dist/service-worker.js.map +1 -0
- package/dist/vite.d.ts +16 -14
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +51 -24
- package/dist/vite.js.map +1 -1
- package/package.json +38 -4
- package/server-manifest.d.ts +31 -0
- package/src/build-vite.ts +24 -77
- package/src/build.ts +137 -105
- package/src/bun-dev-entry.ts +1 -1
- package/src/chunk-names.ts +1 -1
- package/src/client.ts +215 -32
- package/src/conformance.ts +3 -3
- package/src/deferred.ts +17 -17
- package/src/dev-diagnostics.ts +47 -0
- package/src/dev-error.ts +64 -33
- package/src/dev-port.ts +17 -5
- package/src/dev.ts +36 -20
- package/src/diagnostic.ts +284 -0
- package/src/draft.ts +15 -15
- package/src/fn-state.ts +107 -0
- package/src/fn.ts +199 -0
- package/src/fonts-google.ts +13 -13
- package/src/fonts.ts +7 -7
- package/src/forms.ts +8 -8
- package/src/fs.ts +2 -2
- package/src/index.ts +460 -181
- package/src/internal/head-attributes.ts +109 -0
- package/src/internal/script-types.ts +18 -0
- package/src/internal/server-boundary.ts +187 -0
- package/src/internal/timing-safe-equal.ts +1 -1
- package/src/internal/vite-import.ts +92 -0
- package/src/islands.ts +7 -7
- package/src/isr.ts +17 -17
- package/src/manifest.ts +83 -42
- package/src/module-graph.ts +6 -6
- package/src/navigation.ts +151 -5
- package/src/plugins/css-modules.ts +0 -0
- package/src/plugins/kit.ts +11 -11
- package/src/plugins/scss.ts +3 -3
- package/src/plugins/vite-leak-guard.ts +2 -2
- package/src/plugins/vite-server-fn.ts +67 -0
- package/src/plugins/vite-server-only.ts +75 -0
- package/src/prerender.ts +10 -10
- package/src/query.ts +22 -22
- package/src/route-manifest.ts +3 -3
- package/src/router.ts +98 -45
- package/src/search.ts +297 -0
- package/src/server-only.ts +7 -7
- package/src/service-worker.ts +165 -0
- package/src/vite.ts +61 -32
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAOA,OAAO,EAAwB,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAQ1E;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAC5B,MAAoB,EACpB,UAAiC,EAAE;IAEnC,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAA;IAE9E,0FAA0F;IAC1F,wFAAwF;IACxF,OAAO,CAAC,iBAAiB,GAAG,QAAQ,CAAA;IAIpC,IAAI,aAAa,GAAyB,IAAI,CAAA;IAC9C,MAAM,QAAQ,GAA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is a stable string. It rejects with
|
|
40
40
|
* {@link RenderAdapterConformanceError} naming the first failed check.
|
|
41
41
|
*
|
|
42
|
-
* Framework semantics outside the interface
|
|
43
|
-
* error boundaries, and framework-specific primitives
|
|
42
|
+
* Framework semantics outside the interface-Suspense scheduling, compiler plugins, DOM hydration,
|
|
43
|
+
* error boundaries, and framework-specific primitives-remain the adapter package's local tests.
|
|
44
44
|
*/
|
|
45
45
|
export declare function assertRenderAdapterConformance(adapter: RenderAdapter, fixture: RenderAdapterConformanceFixture): Promise<void>;
|
|
46
46
|
//# sourceMappingURL=conformance.d.ts.map
|
package/dist/conformance.js
CHANGED
|
@@ -60,8 +60,8 @@ const readHtml = async (render, check) => {
|
|
|
60
60
|
* and hydration-head output is a stable string. It rejects with
|
|
61
61
|
* {@link RenderAdapterConformanceError} naming the first failed check.
|
|
62
62
|
*
|
|
63
|
-
* Framework semantics outside the interface
|
|
64
|
-
* error boundaries, and framework-specific primitives
|
|
63
|
+
* Framework semantics outside the interface-Suspense scheduling, compiler plugins, DOM hydration,
|
|
64
|
+
* error boundaries, and framework-specific primitives-remain the adapter package's local tests.
|
|
65
65
|
*/
|
|
66
66
|
export async function assertRenderAdapterConformance(adapter, fixture) {
|
|
67
67
|
const { markers, page, outerLayout, innerLayout, props } = fixture;
|
|
@@ -98,7 +98,7 @@ export async function assertRenderAdapterConformance(adapter, fixture) {
|
|
|
98
98
|
fail("buffered render", "renderToString must return a string");
|
|
99
99
|
const bufferedHtml = buffered;
|
|
100
100
|
if (fixture.deferred) {
|
|
101
|
-
// Deferred content differs between streaming and buffered renders
|
|
101
|
+
// Deferred content differs between streaming and buffered renders - only require every marker.
|
|
102
102
|
for (const marker of [
|
|
103
103
|
markers.outer,
|
|
104
104
|
markers.inner,
|
package/dist/deferred.d.ts
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* Deferred loader data (`defer()`). A loader may mark slow values as deferred: the critical data
|
|
3
3
|
* renders in the shell, the deferred data streams in behind a `<Suspense>` (the adapter's `<Await>`
|
|
4
4
|
* consumes it) and resolves on the client **without a re-fetch**. This module owns the agnostic
|
|
5
|
-
* protocol
|
|
5
|
+
* protocol - the marker, the resolved/deferred split, and the tiny client registry that streamed
|
|
6
6
|
* resolution scripts settle. The per-adapter `<Await>` lives in `@nifrajs/web-{solid,react}/client`.
|
|
7
7
|
*/
|
|
8
8
|
import { type TransportCodec } from "@nifrajs/core/transport-codec";
|
|
9
9
|
/**
|
|
10
10
|
* A loader value marked to stream in after the shell. The component consumes it with the adapter's
|
|
11
11
|
* `<Await resolve={...}>`; until the promise settles the shell shows the `<Suspense>` fallback.
|
|
12
|
-
* `id` is assigned by the server at serialization time
|
|
12
|
+
* `id` is assigned by the server at serialization time - the streamed resolve script keys off it.
|
|
13
13
|
*/
|
|
14
14
|
export interface Deferred<T> {
|
|
15
15
|
readonly __nifra_deferred: true;
|
|
@@ -17,8 +17,8 @@ export interface Deferred<T> {
|
|
|
17
17
|
readonly promise: Promise<T>;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* Mark a loader value as deferred
|
|
21
|
-
* **anywhere** in the loader's returned data
|
|
20
|
+
* Mark a loader value as deferred - it streams in after the shell instead of blocking it. Works
|
|
21
|
+
* **anywhere** in the loader's returned data - a top-level key, or nested in objects/arrays:
|
|
22
22
|
*
|
|
23
23
|
* return { user: await api.user.get(), feed: defer(api.user.feed()),
|
|
24
24
|
* panels: [{ chart: defer(api.metrics()) }] }
|
|
@@ -30,8 +30,8 @@ export declare function defer<T>(promise: Promise<T>): Deferred<T>;
|
|
|
30
30
|
/**
|
|
31
31
|
* Split a loader (or action) result into the **component-facing** data (deferred values carry their
|
|
32
32
|
* assigned `id` + promise, for `<Await>`) and the **client-serializable** data (deferred values
|
|
33
|
-
* replaced with a `{__nifra_deferred: id}` placeholder
|
|
34
|
-
* **recursively**
|
|
33
|
+
* replaced with a `{__nifra_deferred: id}` placeholder - promises don't serialize). Walks the tree
|
|
34
|
+
* **recursively** - `defer()` works at any depth, inside nested objects and arrays - assigning ids in
|
|
35
35
|
* walk order. `idOffset` continues the id space when a page splits two results (loader data **and**
|
|
36
36
|
* action data) into one shared client registry, so their ids don't collide. `deferred` lists the
|
|
37
37
|
* promises for callers that await them. Recurses plain objects + arrays only; the data is expected to
|
|
@@ -46,7 +46,7 @@ export declare function prepareDeferred(data: unknown, idOffset?: number): {
|
|
|
46
46
|
}>;
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
49
|
-
* Stable, non-leaking payload streamed to the client when a deferred value rejects
|
|
49
|
+
* Stable, non-leaking payload streamed to the client when a deferred value rejects - never the raw
|
|
50
50
|
* error text. The real reason is logged server-side; `<Await>`'s `errorFallback` receives
|
|
51
51
|
* this code. (A future typed `DeferredError` could opt into a public, intentional message.) Shared by
|
|
52
52
|
* the NDJSON soft-nav transport and the full-document SSR path (`renderPage`'s `streamDocument`).
|
|
@@ -55,7 +55,7 @@ export declare const DEFERRED_ERROR_CODE = "deferred_error";
|
|
|
55
55
|
/**
|
|
56
56
|
* Stream a loader result as NDJSON for a client (soft) navigation: line 1 is the critical data with
|
|
57
57
|
* `{__nifra_deferred: id}` placeholders (`forClient`), then one line per deferred as its promise
|
|
58
|
-
* settles
|
|
58
|
+
* settles - `{"i": id, "v": value}` on resolve, `{"i": id, "e": "deferred_error"}` on reject (a
|
|
59
59
|
* rejection is data, not a stream error; the opaque code never leaks the raw reason). Closes when all
|
|
60
60
|
* settle. The client (`defaultFetchData`) returns the
|
|
61
61
|
* data after line 1 and settles `<Await>`'s markers as the resolution lines arrive. `JSON.stringify`
|
|
@@ -73,10 +73,10 @@ export declare function ndjsonStream(forClient: unknown, deferred: ReadonlyArray
|
|
|
73
73
|
* works), plus `__nifraDeferred(id)` to read the promise. A plain inline script (not the deferred
|
|
74
74
|
* module entry), so it runs before any streamed resolve script.
|
|
75
75
|
*/
|
|
76
|
-
export declare const DEFERRED_RUNTIME = "(() => {\n const reg = new Map();\n const get = (id) => {\n let e = reg.get(id);\n if (!e) {\n let r, j;\n const p = new Promise((a, b) => { r = a; j = b; });\n // <Await> reads the tagged status/reason synchronously (it never .then()s a rejected promise),\n // so attach a no-op catch to keep a rejection from surfacing as an unhandled rejection.\n p.catch(() => {});\n e = { p, r, j };\n reg.set(id, e);\n }\n return e;\n };\n window.__nifraDeferred = (id) => get(id).p;\n // Tag the promise (status/value/reason)
|
|
76
|
+
export declare const DEFERRED_RUNTIME = "(() => {\n const reg = new Map();\n const get = (id) => {\n let e = reg.get(id);\n if (!e) {\n let r, j;\n const p = new Promise((a, b) => { r = a; j = b; });\n // <Await> reads the tagged status/reason synchronously (it never .then()s a rejected promise),\n // so attach a no-op catch to keep a rejection from surfacing as an unhandled rejection.\n p.catch(() => {});\n e = { p, r, j };\n reg.set(id, e);\n }\n return e;\n };\n window.__nifraDeferred = (id) => get(id).p;\n // Tag the promise (status/value/reason) - React's use() reads them and returns SYNCHRONOUSLY at\n // hydration, so it renders the resolved content directly into the <Suspense> boundary the server\n // streamed (no re-suspend, no fallback flash). r/j also wake awaiters (Solid uses its own _$HY).\n window.__nifraResolve = (id, v) => { const e = get(id); e.p.status = \"fulfilled\"; e.p.value = v; e.r(v); };\n window.__nifraReject = (id, x) => { const e = get(id); e.p.status = \"rejected\"; e.p.reason = x; e.j(x); };\n})();";
|
|
77
77
|
/**
|
|
78
78
|
* Source emitted into the generated client entry: maps serialized `{__nifra_deferred: id}` placeholders
|
|
79
|
-
* (at any depth
|
|
79
|
+
* (at any depth - nested objects/arrays) to the registry's promises, so the component receives real
|
|
80
80
|
* promises to `<Await>`. A no-op for data without placeholders (so non-deferred pages are unchanged).
|
|
81
81
|
*/
|
|
82
82
|
export declare const MAP_DEFERRED_SOURCE = "const mapDeferred = (d) => {\n if (!d || typeof d !== \"object\") return d\n if (typeof d.__nifra_deferred === \"number\") return { __nifra_deferred: true, id: d.__nifra_deferred, promise: window.__nifraDeferred(d.__nifra_deferred) }\n if (Array.isArray(d)) return d.map(mapDeferred)\n const out = {}\n for (const k in d) out[k] = mapDeferred(d[k])\n return out\n}";
|
|
@@ -85,7 +85,7 @@ export declare const MAP_DEFERRED_SOURCE = "const mapDeferred = (d) => {\n if (
|
|
|
85
85
|
* the NDJSON body into a data object whose deferred markers settle as resolution lines arrive.
|
|
86
86
|
* Returns after **line 1** so the router can apply the critical data + render immediately; the
|
|
87
87
|
* markers' promises settle/reject in the background. If the stream ends (or `signal` aborts) with
|
|
88
|
-
* markers unsettled, they reject
|
|
88
|
+
* markers unsettled, they reject - so `<Await>` never hangs.
|
|
89
89
|
*/
|
|
90
90
|
export declare function parseNdjsonData(stream: ReadableStream<Uint8Array>, signal?: AbortSignal, codec?: TransportCodec): Promise<unknown>;
|
|
91
91
|
//# sourceMappingURL=deferred.d.ts.map
|
package/dist/deferred.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deferred.d.ts","sourceRoot":"","sources":["../src/deferred.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnF;;;;GAIG;AACH,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,QAAQ,CAAC,gBAAgB,EAAE,IAAI,CAAA;IAC/B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA;CAC7B;AAED;;;;;;;;;GASG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAKzD;AAYD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,OAAO,EACb,QAAQ,SAAI,GACX;IACD,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;QAA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AQ,CAAC,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;KAAE,CAAC,CAAA;CAC9F,CA2EA;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,mBAAmB,CAAA;AAInD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,SAAS,EAAE,OAAO,EAClB,QAAQ,EAAE,aAAa,CAAC;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC,EACpF,KAAK,GAAE,cAA+B,GACrC,cAAc,CAAC,UAAU,CAAC,CAsB5B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,siCAqBvB,CAAA;AAEN;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,uXAO9B,CAAA;AA8CF;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,EAClC,MAAM,CAAC,EAAE,WAAW,EACpB,KAAK,GAAE,cAA+B,GACrC,OAAO,CAAC,OAAO,CAAC,CA4DlB"}
|
package/dist/deferred.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Deferred loader data (`defer()`). A loader may mark slow values as deferred: the critical data
|
|
3
3
|
* renders in the shell, the deferred data streams in behind a `<Suspense>` (the adapter's `<Await>`
|
|
4
4
|
* consumes it) and resolves on the client **without a re-fetch**. This module owns the agnostic
|
|
5
|
-
* protocol
|
|
5
|
+
* protocol - the marker, the resolved/deferred split, and the tiny client registry that streamed
|
|
6
6
|
* resolution scripts settle. The per-adapter `<Await>` lives in `@nifrajs/web-{solid,react}/client`.
|
|
7
7
|
*/
|
|
8
8
|
import { plainJsonCodec } from "@nifrajs/core/transport-codec";
|
|
9
9
|
/**
|
|
10
|
-
* Mark a loader value as deferred
|
|
11
|
-
* **anywhere** in the loader's returned data
|
|
10
|
+
* Mark a loader value as deferred - it streams in after the shell instead of blocking it. Works
|
|
11
|
+
* **anywhere** in the loader's returned data - a top-level key, or nested in objects/arrays:
|
|
12
12
|
*
|
|
13
13
|
* return { user: await api.user.get(), feed: defer(api.user.feed()),
|
|
14
14
|
* panels: [{ chart: defer(api.metrics()) }] }
|
|
@@ -32,8 +32,8 @@ function isDeferred(value) {
|
|
|
32
32
|
/**
|
|
33
33
|
* Split a loader (or action) result into the **component-facing** data (deferred values carry their
|
|
34
34
|
* assigned `id` + promise, for `<Await>`) and the **client-serializable** data (deferred values
|
|
35
|
-
* replaced with a `{__nifra_deferred: id}` placeholder
|
|
36
|
-
* **recursively**
|
|
35
|
+
* replaced with a `{__nifra_deferred: id}` placeholder - promises don't serialize). Walks the tree
|
|
36
|
+
* **recursively** - `defer()` works at any depth, inside nested objects and arrays - assigning ids in
|
|
37
37
|
* walk order. `idOffset` continues the id space when a page splits two results (loader data **and**
|
|
38
38
|
* action data) into one shared client registry, so their ids don't collide. `deferred` lists the
|
|
39
39
|
* promises for callers that await them. Recurses plain objects + arrays only; the data is expected to
|
|
@@ -42,7 +42,7 @@ function isDeferred(value) {
|
|
|
42
42
|
export function prepareDeferred(data, idOffset = 0) {
|
|
43
43
|
const deferred = [];
|
|
44
44
|
// Structural sharing: a subtree with no deferred value returns the ORIGINAL node for
|
|
45
|
-
// both sides (`fc`/`cl` identical to the input), so a deferred-free result
|
|
45
|
+
// both sides (`fc`/`cl` identical to the input), so a deferred-free result - the common case - is
|
|
46
46
|
// returned by reference with no persisted clone, no downstream copy, and no throwaway clone
|
|
47
47
|
// allocations. Only the path to a `defer()` marker is rebuilt; unchanged siblings are shared by
|
|
48
48
|
// reference.
|
|
@@ -119,18 +119,18 @@ export function prepareDeferred(data, idOffset = 0) {
|
|
|
119
119
|
: { forComponent: result.fc, forClient: result.cl, deferred };
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
|
-
* Stable, non-leaking payload streamed to the client when a deferred value rejects
|
|
122
|
+
* Stable, non-leaking payload streamed to the client when a deferred value rejects - never the raw
|
|
123
123
|
* error text. The real reason is logged server-side; `<Await>`'s `errorFallback` receives
|
|
124
124
|
* this code. (A future typed `DeferredError` could opt into a public, intentional message.) Shared by
|
|
125
125
|
* the NDJSON soft-nav transport and the full-document SSR path (`renderPage`'s `streamDocument`).
|
|
126
126
|
*/
|
|
127
127
|
export const DEFERRED_ERROR_CODE = "deferred_error";
|
|
128
|
-
// Shared, stateless
|
|
128
|
+
// Shared, stateless - allocated once at module load, not per stream.
|
|
129
129
|
const NDJSON_ENCODER = new TextEncoder();
|
|
130
130
|
/**
|
|
131
131
|
* Stream a loader result as NDJSON for a client (soft) navigation: line 1 is the critical data with
|
|
132
132
|
* `{__nifra_deferred: id}` placeholders (`forClient`), then one line per deferred as its promise
|
|
133
|
-
* settles
|
|
133
|
+
* settles - `{"i": id, "v": value}` on resolve, `{"i": id, "e": "deferred_error"}` on reject (a
|
|
134
134
|
* rejection is data, not a stream error; the opaque code never leaks the raw reason). Closes when all
|
|
135
135
|
* settle. The client (`defaultFetchData`) returns the
|
|
136
136
|
* data after line 1 and settles `<Await>`'s markers as the resolution lines arrive. `JSON.stringify`
|
|
@@ -180,7 +180,7 @@ export const DEFERRED_RUNTIME = `(() => {
|
|
|
180
180
|
return e;
|
|
181
181
|
};
|
|
182
182
|
window.__nifraDeferred = (id) => get(id).p;
|
|
183
|
-
// Tag the promise (status/value/reason)
|
|
183
|
+
// Tag the promise (status/value/reason) - React's use() reads them and returns SYNCHRONOUSLY at
|
|
184
184
|
// hydration, so it renders the resolved content directly into the <Suspense> boundary the server
|
|
185
185
|
// streamed (no re-suspend, no fallback flash). r/j also wake awaiters (Solid uses its own _$HY).
|
|
186
186
|
window.__nifraResolve = (id, v) => { const e = get(id); e.p.status = "fulfilled"; e.p.value = v; e.r(v); };
|
|
@@ -188,7 +188,7 @@ export const DEFERRED_RUNTIME = `(() => {
|
|
|
188
188
|
})();`;
|
|
189
189
|
/**
|
|
190
190
|
* Source emitted into the generated client entry: maps serialized `{__nifra_deferred: id}` placeholders
|
|
191
|
-
* (at any depth
|
|
191
|
+
* (at any depth - nested objects/arrays) to the registry's promises, so the component receives real
|
|
192
192
|
* promises to `<Await>`. A no-op for data without placeholders (so non-deferred pages are unchanged).
|
|
193
193
|
*/
|
|
194
194
|
export const MAP_DEFERRED_SOURCE = `const mapDeferred = (d) => {
|
|
@@ -199,18 +199,18 @@ export const MAP_DEFERRED_SOURCE = `const mapDeferred = (d) => {
|
|
|
199
199
|
for (const k in d) out[k] = mapDeferred(d[k])
|
|
200
200
|
return out
|
|
201
201
|
}`;
|
|
202
|
-
/** Replace `{__nifra_deferred: <number>}` placeholders (at any depth
|
|
202
|
+
/** Replace `{__nifra_deferred: <number>}` placeholders (at any depth - nested objects/arrays) with
|
|
203
203
|
* `Deferred` markers whose promises are held open in `pending` (settled later by
|
|
204
204
|
* {@link parseNdjsonData}'s drain). Mirrors `prepareDeferred`'s recursive walk. */
|
|
205
205
|
function markersFromPlaceholders(data, pending) {
|
|
206
|
-
// Markers already created in THIS parse, keyed by id
|
|
206
|
+
// Markers already created in THIS parse, keyed by id - so a repeated id aliases the first marker.
|
|
207
207
|
const byId = new Map();
|
|
208
208
|
const walk = (value) => {
|
|
209
209
|
const id = value?.__nifra_deferred;
|
|
210
210
|
if (value !== null && typeof value === "object" && typeof id === "number") {
|
|
211
211
|
// The NDJSON stream is a trust boundary; the server assigns unique ids, but a corrupt/crafted
|
|
212
212
|
// line-1 could repeat one. Alias a duplicate id to the first marker (same promise) instead of
|
|
213
|
-
// overwriting its resolver in `pending`
|
|
213
|
+
// overwriting its resolver in `pending` - otherwise the first marker would never settle (a
|
|
214
214
|
// permanently-pending promise that leaks on abort). One resolve line then settles both.
|
|
215
215
|
const seen = byId.get(id);
|
|
216
216
|
if (seen !== undefined)
|
|
@@ -246,7 +246,7 @@ function markersFromPlaceholders(data, pending) {
|
|
|
246
246
|
* the NDJSON body into a data object whose deferred markers settle as resolution lines arrive.
|
|
247
247
|
* Returns after **line 1** so the router can apply the critical data + render immediately; the
|
|
248
248
|
* markers' promises settle/reject in the background. If the stream ends (or `signal` aborts) with
|
|
249
|
-
* markers unsettled, they reject
|
|
249
|
+
* markers unsettled, they reject - so `<Await>` never hangs.
|
|
250
250
|
*/
|
|
251
251
|
export async function parseNdjsonData(stream, signal, codec = plainJsonCodec) {
|
|
252
252
|
const reader = stream.getReader();
|
|
@@ -297,7 +297,7 @@ export async function parseNdjsonData(stream, signal, codec = plainJsonCodec) {
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
catch {
|
|
300
|
-
// stream errored
|
|
300
|
+
// stream errored - leftovers are rejected below (unless this was an abort)
|
|
301
301
|
}
|
|
302
302
|
finally {
|
|
303
303
|
signal?.removeEventListener("abort", onAbort); // no-op if it already fired ({ once: true })
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface DevDiagnostics {
|
|
2
|
+
/** True when a request path targets the structured last-error endpoint. */
|
|
3
|
+
isLastErrorPath(pathname: string): boolean;
|
|
4
|
+
/** The JSON body + headers for the last-error endpoint: the most recent failure, or a benign
|
|
5
|
+
* `NIFRA_NONE` shape when nothing has failed yet. `no-store` so a stale failure is never cached. */
|
|
6
|
+
lastError(): {
|
|
7
|
+
readonly body: string;
|
|
8
|
+
readonly headers: Readonly<Record<string, string>>;
|
|
9
|
+
};
|
|
10
|
+
/** Capture a thrown SSR failure: store it for the endpoint and return the overlay HTML. The overlay a
|
|
11
|
+
* person sees and the JSON an agent reads come from this one Diagnostic, so they can never disagree. */
|
|
12
|
+
capture(err: unknown, request: {
|
|
13
|
+
readonly method: string;
|
|
14
|
+
readonly url: string;
|
|
15
|
+
}): string;
|
|
16
|
+
}
|
|
17
|
+
/** One diagnostics surface per dev server. `root` is the resolved project root; it scopes the codeframe
|
|
18
|
+
* to the project (see buildDiagnostic). Both dev servers resolve a concrete root before calling this. */
|
|
19
|
+
export declare function createDevDiagnostics(root: string): DevDiagnostics;
|
|
20
|
+
//# sourceMappingURL=dev-diagnostics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-diagnostics.d.ts","sourceRoot":"","sources":["../src/dev-diagnostics.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,cAAc;IAC7B,2EAA2E;IAC3E,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;IAC1C;wGACoG;IACpG,SAAS,IAAI;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;KAAE,CAAA;IAC1F;4GACwG;IACxG,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAA;CAC1F;AAED;yGACyG;AACzG,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAoBjE"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The dev server's diagnostics surface, shared by both dev-server adapters - Bun in `dev.ts`, Vite in
|
|
3
|
+
* `vite.ts`. It owns the one contract that must never drift between them: capture the most recent SSR
|
|
4
|
+
* failure, serve it as JSON at `LAST_ERROR_PATH` with the identity + no-store headers an agent relies on,
|
|
5
|
+
* and render that same failure as the developer overlay. Each adapter keeps only its bundler-specific
|
|
6
|
+
* transport (Bun.serve + HMR vs Vite middlewares + `ssrFixStacktrace`); the diagnostic behaviour lives
|
|
7
|
+
* here once, so a new header or a new capture rule is a single edit both servers pick up.
|
|
8
|
+
*
|
|
9
|
+
* Vite once shipped without the `/__nifra/last-error` endpoint at all - the drift this module prevents.
|
|
10
|
+
*/
|
|
11
|
+
import { renderDiagnosticOverlay } from "./dev-error.js";
|
|
12
|
+
import { buildDiagnostic, LAST_ERROR_PATH } from "./diagnostic.js";
|
|
13
|
+
/** One diagnostics surface per dev server. `root` is the resolved project root; it scopes the codeframe
|
|
14
|
+
* to the project (see buildDiagnostic). Both dev servers resolve a concrete root before calling this. */
|
|
15
|
+
export function createDevDiagnostics(root) {
|
|
16
|
+
let last;
|
|
17
|
+
return {
|
|
18
|
+
isLastErrorPath: (pathname) => pathname === LAST_ERROR_PATH,
|
|
19
|
+
lastError: () => ({
|
|
20
|
+
body: JSON.stringify(last ?? { code: "NIFRA_NONE", message: "No error captured since the dev server started." }),
|
|
21
|
+
headers: {
|
|
22
|
+
"content-type": "application/json; charset=utf-8",
|
|
23
|
+
"cache-control": "no-store",
|
|
24
|
+
"x-content-type-options": "nosniff",
|
|
25
|
+
"x-nifra-diagnostic": "true",
|
|
26
|
+
},
|
|
27
|
+
}),
|
|
28
|
+
capture: (err, request) => {
|
|
29
|
+
last = buildDiagnostic(err, { root, request });
|
|
30
|
+
return renderDiagnosticOverlay(last);
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=dev-diagnostics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-diagnostics.js","sourceRoot":"","sources":["../src/dev-diagnostics.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAmB,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAanF;yGACyG;AACzG,MAAM,UAAU,oBAAoB,CAAC,IAAY;IAC/C,IAAI,IAA4B,CAAA;IAChC,OAAO;QACL,eAAe,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,KAAK,eAAe;QAC3D,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC;YAChB,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB,IAAI,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,iDAAiD,EAAE,CAC3F;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,iCAAiC;gBACjD,eAAe,EAAE,UAAU;gBAC3B,wBAAwB,EAAE,SAAS;gBACnC,oBAAoB,EAAE,MAAM;aAC7B;SACF,CAAC;QACF,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;YACxB,IAAI,GAAG,eAAe,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAA;YAC9C,OAAO,uBAAuB,CAAC,IAAI,CAAC,CAAA;QACtC,CAAC;KACF,CAAA;AACH,CAAC"}
|
package/dist/dev-error.d.ts
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Dev-only error overlay. When a loader/action/render throws during `@nifrajs/web/vite` dev, this
|
|
3
|
-
* renders a readable full-page overlay
|
|
4
|
-
*
|
|
5
|
-
* Dev-only by construction: it's called solely from the
|
|
6
|
-
* production (production maps errors to the `_error` route boundary).
|
|
3
|
+
* renders a readable full-page overlay from a structured [Diagnostic] - the code, the message, a source
|
|
4
|
+
* codeframe around the offending line, the recognised cause/fix when nifra has one, and the stack -
|
|
5
|
+
* instead of a bare `err.stack` text dump. Dev-only by construction: it's called solely from the dev
|
|
6
|
+
* server's catch, never in production (production maps errors to the `_error` route boundary).
|
|
7
|
+
*
|
|
8
|
+
* The overlay and the agent surfaces (`/__nifra/last-error`, `nifra_explain`) render from the SAME
|
|
9
|
+
* `Diagnostic`, so a person and an agent see the identical failure, one as HTML and one as JSON.
|
|
7
10
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* production error page.
|
|
12
|
-
*/
|
|
13
|
-
export declare function renderDevErrorOverlay(err: unknown, req: {
|
|
14
|
-
method: string;
|
|
15
|
-
url: string;
|
|
16
|
-
}): string;
|
|
11
|
+
import type { Diagnostic } from "./diagnostic.js";
|
|
12
|
+
/** Render the overlay HTML from a prebuilt Diagnostic (the same object the agent surfaces serve). */
|
|
13
|
+
export declare function renderDiagnosticOverlay(diagnostic: Diagnostic): string;
|
|
17
14
|
//# sourceMappingURL=dev-error.d.ts.map
|
package/dist/dev-error.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-error.d.ts","sourceRoot":"","sources":["../src/dev-error.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dev-error.d.ts","sourceRoot":"","sources":["../src/dev-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AA+BjD,qGAAqG;AACrG,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAkDtE"}
|
package/dist/dev-error.js
CHANGED
|
@@ -1,59 +1,73 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dev-only error overlay. When a loader/action/render throws during `@nifrajs/web/vite` dev, this
|
|
3
|
-
* renders a readable full-page overlay — the message, the source-mapped stack (Vite's
|
|
4
|
-
* `ssrFixStacktrace` runs first), and the request line — instead of the bare `err.stack` text dump.
|
|
5
|
-
* Dev-only by construction: it's called solely from the Vite middleware's catch, never in
|
|
6
|
-
* production (production maps errors to the `_error` route boundary).
|
|
7
|
-
*/
|
|
8
1
|
const esc = (s) => s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
9
|
-
/**
|
|
10
|
-
function
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
frames: lines.slice(firstFrame).map((l) => l.trim()),
|
|
20
|
-
};
|
|
2
|
+
/** The source codeframe block: numbered lines with the offending one highlighted. */
|
|
3
|
+
function codeframeHtml(diagnostic) {
|
|
4
|
+
const cf = diagnostic.codeframe;
|
|
5
|
+
if (cf === undefined)
|
|
6
|
+
return "";
|
|
7
|
+
const loc = `${esc(cf.file)}:${cf.line}${cf.column !== undefined ? `:${cf.column}` : ""}`;
|
|
8
|
+
const rows = cf.lines
|
|
9
|
+
.map((l) => `<div class="cf-row${l.caret ? " caret" : ""}"><span class="cf-ln">${l.number}</span><span class="cf-src">${esc(l.text) || " "}</span></div>`)
|
|
10
|
+
.join("");
|
|
11
|
+
return `<h1>Source</h1><div class="cf-loc">${loc}</div><div class="codeframe">${rows}</div>`;
|
|
21
12
|
}
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
/** The recognised-failure callout: cause + fix + docs anchor, shown only when nifra classified the error. */
|
|
14
|
+
function fixHtml(diagnostic) {
|
|
15
|
+
if (diagnostic.fix === undefined)
|
|
16
|
+
return "";
|
|
17
|
+
const anchor = diagnostic.docsAnchor !== undefined
|
|
18
|
+
? `<div class="fix-docs">docs: <code>${esc(diagnostic.docsAnchor)}</code></div>`
|
|
19
|
+
: "";
|
|
20
|
+
const cause = diagnostic.cause !== undefined ? `<p class="fix-cause">${esc(diagnostic.cause)}</p>` : "";
|
|
21
|
+
return `<div class="fix"><div class="fix-tag">likely fix</div>${cause}<p class="fix-do">${esc(diagnostic.fix)}</p>${anchor}</div>`;
|
|
22
|
+
}
|
|
23
|
+
/** Render the overlay HTML from a prebuilt Diagnostic (the same object the agent surfaces serve). */
|
|
24
|
+
export function renderDiagnosticOverlay(diagnostic) {
|
|
25
|
+
const name = esc(diagnostic.name || "Error");
|
|
26
|
+
const code = esc(diagnostic.code);
|
|
27
|
+
const reqLine = diagnostic.request !== undefined
|
|
28
|
+
? `<span class="req">${esc(diagnostic.request.method)} ${esc(diagnostic.request.url)}</span>`
|
|
29
|
+
: "";
|
|
30
|
+
const framesHtml = diagnostic.frames.length > 0
|
|
31
|
+
? `<ol class="frames">${diagnostic.frames.map((f) => `<li>${esc(f.raw)}</li>`).join("")}</ol>`
|
|
33
32
|
: `<p class="no-frames">No stack frames.</p>`;
|
|
34
|
-
return `<!doctype html><html lang="en"><head><meta charset="utf-8"><title>${name}
|
|
33
|
+
return `<!doctype html><html lang="en"><head><meta charset="utf-8"><title>${name} - nifra dev</title>
|
|
35
34
|
<style>
|
|
36
35
|
:root { color-scheme: dark }
|
|
37
36
|
body { margin: 0; background: #0b0d10; color: #e6e6e6; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
|
|
38
37
|
.bar { background: #2a0e0e; border-bottom: 1px solid #5a1d1d; padding: 10px 20px; font-weight: 700; color: #ff8a8a; display: flex; gap: 12px; align-items: baseline; }
|
|
39
38
|
.bar .tag { font-size: 11px; font-weight: 600; color: #ffb4b4; background: #401616; padding: 2px 8px; border-radius: 99px; letter-spacing: .04em; text-transform: uppercase; }
|
|
39
|
+
.bar .code { font-size: 11px; font-weight: 600; color: #ffd9a0; background: #3a2a12; padding: 2px 8px; border-radius: 99px; letter-spacing: .04em; }
|
|
40
40
|
.bar .req { margin-left: auto; color: #c98; font-weight: 500; font-size: 12px; }
|
|
41
41
|
main { padding: 24px 28px; max-width: 1000px; }
|
|
42
|
-
h1 { font-size: 13px; color: #9aa; font-weight: 600; margin:
|
|
43
|
-
|
|
42
|
+
h1 { font-size: 13px; color: #9aa; font-weight: 600; margin: 24px 0 6px; text-transform: uppercase; letter-spacing: .05em; }
|
|
43
|
+
h1:first-of-type { margin-top: 0; }
|
|
44
|
+
.message { font-size: 18px; color: #ff9b9b; white-space: pre-wrap; margin: 0 0 4px; font-weight: 600; }
|
|
45
|
+
.fix { background: #10241a; border: 1px solid #1f4d38; border-radius: 8px; padding: 12px 16px; margin: 20px 0; }
|
|
46
|
+
.fix-tag { font-size: 11px; font-weight: 700; color: #7fe0af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
|
|
47
|
+
.fix-cause { margin: 0 0 8px; color: #b9c9c1; }
|
|
48
|
+
.fix-do { margin: 0; color: #d6f2e4; }
|
|
49
|
+
.fix-docs { margin-top: 8px; font-size: 12px; color: #6a8; }
|
|
50
|
+
.cf-loc { color: #c98; font-size: 12px; margin-bottom: 8px; }
|
|
51
|
+
.codeframe { background: #0f1319; border: 1px solid #222; border-radius: 8px; overflow: auto; }
|
|
52
|
+
.cf-row { display: flex; white-space: pre; }
|
|
53
|
+
.cf-row.caret { background: #2a1414; }
|
|
54
|
+
.cf-ln { color: #556; text-align: right; width: 48px; padding: 1px 12px 1px 0; user-select: none; flex: none; border-right: 1px solid #222; }
|
|
55
|
+
.cf-row.caret .cf-ln { color: #ff8a8a; }
|
|
56
|
+
.cf-src { padding: 1px 0 1px 12px; color: #cdd6e0; }
|
|
44
57
|
.frames { list-style: none; margin: 0; padding: 0; border-left: 2px solid #333; }
|
|
45
58
|
.frames li { padding: 3px 0 3px 16px; color: #9fb0c0; white-space: pre-wrap; word-break: break-all; }
|
|
46
59
|
.frames li:first-child { color: #d6e2ee; }
|
|
47
60
|
.no-frames { color: #778; }
|
|
48
61
|
footer { margin-top: 28px; color: #667; font-size: 12px; }
|
|
49
62
|
</style></head><body>
|
|
50
|
-
<div class="bar"><span class="tag">nifra dev</span><span>${
|
|
63
|
+
<div class="bar"><span class="tag">nifra dev</span><span class="code">${code}</span><span>${name}</span>${reqLine}</div>
|
|
51
64
|
<main>
|
|
52
|
-
<
|
|
53
|
-
|
|
65
|
+
<p class="message">${esc(diagnostic.message)}</p>
|
|
66
|
+
${fixHtml(diagnostic)}
|
|
67
|
+
${codeframeHtml(diagnostic)}
|
|
54
68
|
<h1>Stack</h1>
|
|
55
69
|
${framesHtml}
|
|
56
|
-
<footer>This overlay is shown only by the dev server. In production this error maps to your <code>_error</code> route boundary.</footer>
|
|
70
|
+
<footer>This overlay is shown only by the dev server. Its structured form is at <code>/__nifra/last-error</code> and via <code>nifra_explain</code>. In production this error maps to your <code>_error</code> route boundary.</footer>
|
|
57
71
|
</main></body></html>`;
|
|
58
72
|
}
|
|
59
73
|
//# sourceMappingURL=dev-error.js.map
|
package/dist/dev-error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-error.js","sourceRoot":"","sources":["../src/dev-error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dev-error.js","sourceRoot":"","sources":["../src/dev-error.ts"],"names":[],"mappings":"AAYA,MAAM,GAAG,GAAG,CAAC,CAAS,EAAU,EAAE,CAChC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;AAE9F,qFAAqF;AACrF,SAAS,aAAa,CAAC,UAAsB;IAC3C,MAAM,EAAE,GAAG,UAAU,CAAC,SAAS,CAAA;IAC/B,IAAI,EAAE,KAAK,SAAS;QAAE,OAAO,EAAE,CAAA;IAC/B,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAA;IACzF,MAAM,IAAI,GAAG,EAAE,CAAC,KAAK;SAClB,GAAG,CACF,CAAC,CAAC,EAAE,EAAE,CACJ,qBAAqB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,yBAAyB,CAAC,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,eAAe,CAChJ;SACA,IAAI,CAAC,EAAE,CAAC,CAAA;IACX,OAAO,sCAAsC,GAAG,gCAAgC,IAAI,QAAQ,CAAA;AAC9F,C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ACjD,OAAO,qEAAqE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEA8BV,IAAI,gBAAgB,IAAI,UAAU,OAAO;;uBAE1F,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC;IAC1C,OAAO,CAAC,UAAU,CAAC;IACnB,aAAa,CAAC,UAAU,CAAC;;IAEzB,UAAU;;sBAEQ,CAAA;AACtB,CAAC"}
|
package/dist/dev-port.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@nifrajs/web/dev-port`
|
|
2
|
+
* `@nifrajs/web/dev-port` - what a dev server says when it cannot bind.
|
|
3
3
|
*
|
|
4
4
|
* Both pipelines need this and neither should own it: the Vite server binds through Node's `http`
|
|
5
5
|
* (asynchronous `error` event), the Bun server binds through `Bun.serve` (synchronous throw). Two very
|
|
@@ -20,7 +20,7 @@ export declare function portInUseMessage(port: number): string;
|
|
|
20
20
|
export declare const isAddressInUse: (err: unknown) => boolean;
|
|
21
21
|
/** Map a bind failure to the port-collision explanation, leaving every other failure as itself. */
|
|
22
22
|
export declare const explainBindFailure: (err: unknown, port: number) => Error;
|
|
23
|
-
/** The bits of a Node server {@link listenOrExplain} touches
|
|
23
|
+
/** The bits of a Node server {@link listenOrExplain} touches - structural, so a test can fake it. */
|
|
24
24
|
export interface ListenTarget {
|
|
25
25
|
listen(port: number, cb: () => void): void;
|
|
26
26
|
once(event: "error", cb: (err: unknown) => void): void;
|
|
@@ -32,5 +32,5 @@ export interface ListenTarget {
|
|
|
32
32
|
* Without an `error` listener attached, Node throws from deep inside `node:events`, the new process dies
|
|
33
33
|
* in the background, and nothing connects that death to the stale page in front of you.
|
|
34
34
|
*/
|
|
35
|
-
export declare function listenOrExplain(server: ListenTarget, port: number): Promise<void>;
|
|
35
|
+
export declare function listenOrExplain(server: ListenTarget, port: number, hostname?: string): Promise<void>;
|
|
36
36
|
//# sourceMappingURL=dev-port.d.ts.map
|
package/dist/dev-port.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-port.d.ts","sourceRoot":"","sources":["../src/dev-port.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,2FAA2F;AAC3F,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQrD;AAED,oFAAoF;AACpF,eAAO,MAAM,cAAc,GAAI,KAAK,OAAO,KAAG,OACa,CAAA;AAI3D,mGAAmG;AACnG,eAAO,MAAM,kBAAkB,GAAI,KAAK,OAAO,EAAE,MAAM,MAAM,KAAG,KACQ,CAAA;AAExE,qGAAqG;AACrG,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI,CAAA;IAC1C,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI,CAAA;IACtD,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI,CAAA;CACjE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,
|
|
1
|
+
{"version":3,"file":"dev-port.d.ts","sourceRoot":"","sources":["../src/dev-port.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,2FAA2F;AAC3F,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQrD;AAED,oFAAoF;AACpF,eAAO,MAAM,cAAc,GAAI,KAAK,OAAO,KAAG,OACa,CAAA;AAI3D,mGAAmG;AACnG,eAAO,MAAM,kBAAkB,GAAI,KAAK,OAAO,EAAE,MAAM,MAAM,KAAG,KACQ,CAAA;AAExE,qGAAqG;AACrG,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI,CAAA;IAC1C,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI,CAAA;IACtD,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI,CAAA;CACjE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,YAAY,EACpB,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CAmBf"}
|
package/dist/dev-port.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@nifrajs/web/dev-port`
|
|
2
|
+
* `@nifrajs/web/dev-port` - what a dev server says when it cannot bind.
|
|
3
3
|
*
|
|
4
4
|
* Both pipelines need this and neither should own it: the Vite server binds through Node's `http`
|
|
5
5
|
* (asynchronous `error` event), the Bun server binds through `Bun.serve` (synchronous throw). Two very
|
|
@@ -33,16 +33,22 @@ export const explainBindFailure = (err, port) => isAddressInUse(err) ? new Error
|
|
|
33
33
|
* Without an `error` listener attached, Node throws from deep inside `node:events`, the new process dies
|
|
34
34
|
* in the background, and nothing connects that death to the stale page in front of you.
|
|
35
35
|
*/
|
|
36
|
-
export function listenOrExplain(server, port) {
|
|
36
|
+
export function listenOrExplain(server, port, hostname) {
|
|
37
37
|
return new Promise((resolve, reject) => {
|
|
38
38
|
const onError = (err) => reject(explainBindFailure(err, port));
|
|
39
39
|
server.once("error", onError);
|
|
40
|
-
|
|
40
|
+
const onListening = () => {
|
|
41
41
|
// Drop the guard once we're listening: leaving it attached would funnel a LATER server error into
|
|
42
42
|
// an already-settled promise, silently swallowing it instead of surfacing it.
|
|
43
43
|
server.removeListener("error", onError);
|
|
44
44
|
resolve();
|
|
45
|
-
}
|
|
45
|
+
};
|
|
46
|
+
if (hostname === undefined)
|
|
47
|
+
server.listen(port, onListening);
|
|
48
|
+
else {
|
|
49
|
+
;
|
|
50
|
+
server.listen(port, hostname, onListening);
|
|
51
|
+
}
|
|
46
52
|
});
|
|
47
53
|
}
|
|
48
54
|
//# sourceMappingURL=dev-port.js.map
|
package/dist/dev-port.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-port.js","sourceRoot":"","sources":["../src/dev-port.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,2FAA2F;AAC3F,MAAM,UAAU,gBAAgB,CAAC,IAAY;IAC3C,OAAO,CACL,wCAAwC,IAAI,uBAAuB;QACnE,mGAAmG;QACnG,yFAAyF;QACzF,8BAA8B,IAAI,iBAAiB;QACnD,sCAAsC,IAAI,GAAG,CAAC,EAAE,CACjD,CAAA;AACH,CAAC;AAED,oFAAoF;AACpF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAY,EAAW,EAAE,CACrD,GAAiC,EAAE,IAAI,KAAK,YAAY,CAAA;AAE3D,MAAM,OAAO,GAAG,CAAC,GAAY,EAAS,EAAE,CAAC,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;AAE9F,mGAAmG;AACnG,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,GAAY,EAAE,IAAY,EAAS,EAAE,CACtE,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;AASxE;;;;;GAKG;AACH,MAAM,UAAU,eAAe,
|
|
1
|
+
{"version":3,"file":"dev-port.js","sourceRoot":"","sources":["../src/dev-port.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,2FAA2F;AAC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