@jay-framework/stack-route-scanner 0.24.3 → 0.24.4

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/index.d.mts CHANGED
@@ -13,6 +13,12 @@ type JayRoute = {
13
13
  rawRoute: string;
14
14
  jayHtmlPath: string;
15
15
  compPath: string;
16
+ /**
17
+ * Browser-safe (`./client`) bundle path used for the hydration import, distinct from the SSR
18
+ * `compPath` (which may be `./tools` for devOnly routes or `.` otherwise). Set for NPM plugin
19
+ * routes so hydration never imports a server bundle. See DL#182.
20
+ */
21
+ clientCompPath?: string;
16
22
  /** Export name for the page component (default: 'page'). Used by plugin routes where the export name differs. */
17
23
  componentExport?: string;
18
24
  /** NPM package name for plugin routes. Used by build to generate portable module paths. */
@@ -47,6 +53,7 @@ declare function parseRouteSegments(routePath: string): JayRouteSegment[];
47
53
  */
48
54
  declare function createRoute(routePath: string, jayHtmlPath: string, compPath: string, componentExport?: string, options?: {
49
55
  devOnly?: boolean;
56
+ clientCompPath?: string;
50
57
  }): JayRoute;
51
58
  declare function scanRoutes(baseDir: string, options: ScanFilesOptions): Promise<JayRoutes>;
52
59
 
package/dist/index.mjs CHANGED
@@ -167,6 +167,7 @@ function createRoute(routePath, jayHtmlPath, compPath, componentExport, options)
167
167
  rawRoute: routePath,
168
168
  jayHtmlPath,
169
169
  compPath,
170
+ ...options?.clientCompPath && { clientCompPath: options.clientCompPath },
170
171
  ...componentExport && { componentExport },
171
172
  ...options?.devOnly && { devOnly: true }
172
173
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/stack-route-scanner",
3
- "version": "0.24.3",
3
+ "version": "0.24.4",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",
@@ -9,7 +9,7 @@
9
9
  "readme.md"
10
10
  ],
11
11
  "dependencies": {
12
- "@jay-framework/logger": "^0.24.3",
12
+ "@jay-framework/logger": "^0.24.4",
13
13
  "node-html-parser": "^6.1.12",
14
14
  "yaml": "^2.3.4"
15
15
  },
@@ -25,7 +25,7 @@
25
25
  "test:watch": "vitest"
26
26
  },
27
27
  "devDependencies": {
28
- "@jay-framework/dev-environment": "^0.24.3",
28
+ "@jay-framework/dev-environment": "^0.24.4",
29
29
  "@types/node": "^20.11.5",
30
30
  "nodemon": "^3.0.3",
31
31
  "replace-in-file": "^7.1.0",