@evjs/manifest 0.0.1-rc.17 → 0.0.1-rc.18

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 (3) hide show
  1. package/README.md +10 -3
  2. package/esm/index.d.ts +14 -13
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -27,8 +27,14 @@ Defines the structure of the unified manifest file emitted by `@evjs/webpack-plu
27
27
  }
28
28
  },
29
29
  "client": {
30
- "js": ["main.abc123.js"],
31
- "css": ["main.def456.css"]
30
+ "assets": {
31
+ "js": ["main.abc123.js"],
32
+ "css": ["main.def456.css"]
33
+ },
34
+ "routes": [
35
+ { "path": "/" },
36
+ { "path": "/posts/$postId" }
37
+ ]
32
38
  }
33
39
  }
34
40
  ```
@@ -37,8 +43,9 @@ Defines the structure of the unified manifest file emitted by `@evjs/webpack-plu
37
43
 
38
44
  - **`Manifest`** — unified manifest (`dist/manifest.json`) with `server` and `client` sections.
39
45
  - **`ServerManifestSection`** — server section (`{ entry, fns, rsc? }`).
40
- - **`ClientManifestSection`** — client section (`{ js, css, pages? }`).
46
+ - **`ClientManifestSection`** — client section (`{ assets: { js, css }, routes? }`).
41
47
  - **`ServerFnEntry`** — server function metadata (`{ moduleId, export }`).
48
+ - **`RouteEntry`** — a discovered client route (`{ path }`).
42
49
  - **`RscEntry`** — React Server Components (reserved for future).
43
50
  - **`PageEntry`** — per-page assets for MPA (reserved for future).
44
51
  - **`ServerManifest`** — deprecated alias, use `Manifest` instead.
package/esm/index.d.ts CHANGED
@@ -34,21 +34,22 @@ export interface ServerManifestSection {
34
34
  /** React Server Components (future — reserved). */
35
35
  rsc?: Record<string, RscEntry>;
36
36
  }
37
- /** Per-page asset entry for MPA support (future — reserved). */
38
- export interface PageEntry {
39
- /** JavaScript bundle paths for this page. */
40
- js: string[];
41
- /** CSS bundle paths for this page. */
42
- css: string[];
37
+ /** A discovered client route. */
38
+ export interface RouteEntry {
39
+ /** Route path (e.g. "/", "/posts/$postId", "*"). */
40
+ path: string;
43
41
  }
44
42
  /** Client section of the manifest. */
45
43
  export interface ClientManifestSection {
46
- /** JavaScript bundle paths for HTML injection. */
47
- js: string[];
48
- /** CSS bundle paths for HTML injection. */
49
- css: string[];
50
- /** Per-page assets for MPA support (future — reserved). */
51
- pages?: Record<string, PageEntry>;
44
+ /** Bundle asset paths for HTML injection. */
45
+ assets: {
46
+ /** JavaScript bundle paths. */
47
+ js: string[];
48
+ /** CSS bundle paths. */
49
+ css: string[];
50
+ };
51
+ /** Discovered client routes. */
52
+ routes?: RouteEntry[];
52
53
  }
53
54
  /**
54
55
  * Unified manifest — emitted to `dist/manifest.json`.
@@ -58,7 +59,7 @@ export interface ClientManifestSection {
58
59
  export interface Manifest extends ManifestBase {
59
60
  /** Server build metadata (entry, server functions, RSC). */
60
61
  server: ServerManifestSection;
61
- /** Client build metadata (bundles, CSS, pages). Optional until client manifest is implemented. */
62
+ /** Client build metadata (bundles, CSS, routes). Optional until client manifest is implemented. */
62
63
  client?: ClientManifestSection;
63
64
  }
64
65
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evjs/manifest",
3
- "version": "0.0.1-rc.17",
3
+ "version": "0.0.1-rc.18",
4
4
  "description": "Shared manifest types for the ev framework",
5
5
  "type": "module",
6
6
  "publishConfig": {