@jay-framework/production-server 0.21.0 → 0.22.1
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.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/{init-services-J5GZMNJT.js → init-services-zmGSxSck.js} +9 -8
- package/dist/{serve-index-oMDgTHRv.d.ts → serve-index-lg6huJYm.d.ts} +1 -0
- package/dist/serve-index.d.ts +1 -1
- package/dist/serve-index.js +1 -1
- package/package.json +12 -12
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BuildOptions, R as RouteManifest, a as RouteEntry } from './serve-index-
|
|
2
|
-
export { A as ActionEntry, e as ArtifactStore, c as BuildMetadata, C as CacheEntry, F as FilesystemArtifactStore, I as InstanceEntry, M as MatchResult, d as PageModule, P as PluginEntry, n as PreImportedPlugin, b as RouteSegment, S as ServerElementModule, g as fetchActionRequest, f as fetchPageRequest, j as fetchStaticFile, k as initializeServices, l as initializeServicesFromModules, i as isActionRequest, m as matchRequest, r as registerActionsFromManifest, h as registerActionsFromModules } from './serve-index-
|
|
1
|
+
import { B as BuildOptions, R as RouteManifest, a as RouteEntry } from './serve-index-lg6huJYm.js';
|
|
2
|
+
export { A as ActionEntry, e as ArtifactStore, c as BuildMetadata, C as CacheEntry, F as FilesystemArtifactStore, I as InstanceEntry, M as MatchResult, d as PageModule, P as PluginEntry, n as PreImportedPlugin, b as RouteSegment, S as ServerElementModule, g as fetchActionRequest, f as fetchPageRequest, j as fetchStaticFile, k as initializeServices, l as initializeServicesFromModules, i as isActionRequest, m as matchRequest, r as registerActionsFromManifest, h as registerActionsFromModules } from './serve-index-lg6huJYm.js';
|
|
3
3
|
import '@jay-framework/ssr-runtime';
|
|
4
4
|
import '@jay-framework/compiler-shared';
|
|
5
5
|
import '@jay-framework/stack-server-runtime';
|
package/dist/index.js
CHANGED
|
@@ -6,8 +6,8 @@ import path from "node:path";
|
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import { DevSlowlyChangingPhase, slowRenderInstances, scanPlugins, runLoadParams, parseCookies } from "@jay-framework/stack-server-runtime";
|
|
9
|
-
import { l as loadProductionPageParts, g as buildPagePartsConfig, d as initializeServices, r as registerActionsFromManifest, i as isActionRequest, a as fetchActionRequest, c as fetchStaticFile, m as matchRequest, f as fetchPageRequest, F as FilesystemArtifactStore } from "./init-services-
|
|
10
|
-
import { e, b } from "./init-services-
|
|
9
|
+
import { l as loadProductionPageParts, g as buildPagePartsConfig, d as initializeServices, r as registerActionsFromManifest, i as isActionRequest, a as fetchActionRequest, c as fetchStaticFile, m as matchRequest, f as fetchPageRequest, F as FilesystemArtifactStore } from "./init-services-zmGSxSck.js";
|
|
10
|
+
import { e, b } from "./init-services-zmGSxSck.js";
|
|
11
11
|
import crypto, { createHash } from "node:crypto";
|
|
12
12
|
import fs$1 from "node:fs";
|
|
13
13
|
import { jayRuntime } from "@jay-framework/vite-plugin";
|
|
@@ -1331,8 +1331,8 @@ async function buildVersion(options) {
|
|
|
1331
1331
|
const publicFolder = path.join(options.projectRoot, "public");
|
|
1332
1332
|
try {
|
|
1333
1333
|
await fs.access(publicFolder);
|
|
1334
|
-
await fs.cp(publicFolder,
|
|
1335
|
-
logger.info("[Build] Copied public/ to frontend/
|
|
1334
|
+
await fs.cp(publicFolder, frontendDir, { recursive: true });
|
|
1335
|
+
logger.info("[Build] Copied public/ contents to frontend/");
|
|
1336
1336
|
} catch {
|
|
1337
1337
|
}
|
|
1338
1338
|
const sourceHash = await computeBuildHash(buildDir);
|
|
@@ -75,7 +75,8 @@ async function loadProductionPageParts(route, pageModule, jayHtmlContent, projec
|
|
|
75
75
|
compDefinition: headlessCompDef,
|
|
76
76
|
clientImport: "",
|
|
77
77
|
clientPart: "",
|
|
78
|
-
contractInfo: ci
|
|
78
|
+
contractInfo: ci,
|
|
79
|
+
headlessProps: headlessImport.headlessProps
|
|
79
80
|
});
|
|
80
81
|
keyedPartModules.push({
|
|
81
82
|
key: headlessImport.key,
|
|
@@ -87,7 +88,8 @@ async function loadProductionPageParts(route, pageModule, jayHtmlContent, projec
|
|
|
87
88
|
exportName: name,
|
|
88
89
|
isLocal: isLocalModule,
|
|
89
90
|
key: headlessImport.key,
|
|
90
|
-
contractInfo: ci
|
|
91
|
+
contractInfo: ci,
|
|
92
|
+
headlessProps: headlessImport.headlessProps
|
|
91
93
|
});
|
|
92
94
|
}
|
|
93
95
|
if (!headlessImport.key && headlessImport.contract) {
|
|
@@ -152,7 +154,8 @@ function buildPagePartsConfig(pageParts, pageServerModule, pageExportName, build
|
|
|
152
154
|
exportName: info.exportName,
|
|
153
155
|
source: info.isLocal ? "local" : "npm",
|
|
154
156
|
key: info.key,
|
|
155
|
-
contractInfo: info.contractInfo
|
|
157
|
+
contractInfo: info.contractInfo,
|
|
158
|
+
headlessProps: info.headlessProps
|
|
156
159
|
});
|
|
157
160
|
}
|
|
158
161
|
}
|
|
@@ -198,7 +201,8 @@ async function loadPagePartsFromConfig(configPath, artifacts) {
|
|
|
198
201
|
key: entry.key,
|
|
199
202
|
clientImport: "",
|
|
200
203
|
clientPart: "",
|
|
201
|
-
contractInfo: entry.contractInfo
|
|
204
|
+
contractInfo: entry.contractInfo,
|
|
205
|
+
headlessProps: entry.headlessProps
|
|
202
206
|
});
|
|
203
207
|
}
|
|
204
208
|
const headlessInstanceComponents = [];
|
|
@@ -703,10 +707,7 @@ const MIME_TYPES = {
|
|
|
703
707
|
};
|
|
704
708
|
async function fetchStaticFile(pathname, frontendDir) {
|
|
705
709
|
const normalizedBase = path.resolve(frontendDir);
|
|
706
|
-
for (const candidate of [
|
|
707
|
-
path.join(frontendDir, pathname),
|
|
708
|
-
path.join(frontendDir, "public", pathname)
|
|
709
|
-
]) {
|
|
710
|
+
for (const candidate of [path.join(frontendDir, pathname)]) {
|
|
710
711
|
const normalizedFile = path.resolve(candidate);
|
|
711
712
|
if (!normalizedFile.startsWith(normalizedBase))
|
|
712
713
|
continue;
|
package/dist/serve-index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { e as ArtifactStore, C as CacheEntry, F as FilesystemArtifactStore, I as InstanceEntry, M as MatchResult, n as PreImportedPlugin, a as RouteEntry, R as RouteManifest, S as ServerElementModule, g as fetchActionRequest, f as fetchPageRequest, j as fetchStaticFile, k as initializeServices, l as initializeServicesFromModules, i as isActionRequest, m as matchRequest, r as registerActionsFromManifest, h as registerActionsFromModules } from './serve-index-
|
|
1
|
+
export { e as ArtifactStore, C as CacheEntry, F as FilesystemArtifactStore, I as InstanceEntry, M as MatchResult, n as PreImportedPlugin, a as RouteEntry, R as RouteManifest, S as ServerElementModule, g as fetchActionRequest, f as fetchPageRequest, j as fetchStaticFile, k as initializeServices, l as initializeServicesFromModules, i as isActionRequest, m as matchRequest, r as registerActionsFromManifest, h as registerActionsFromModules } from './serve-index-lg6huJYm.js';
|
|
2
2
|
import '@jay-framework/ssr-runtime';
|
|
3
3
|
import '@jay-framework/compiler-shared';
|
|
4
4
|
import '@jay-framework/stack-server-runtime';
|
package/dist/serve-index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/production-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,20 +30,20 @@
|
|
|
30
30
|
"test:watch": "vitest"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@jay-framework/compiler-jay-html": "^0.
|
|
34
|
-
"@jay-framework/compiler-jay-stack": "^0.
|
|
35
|
-
"@jay-framework/compiler-shared": "^0.
|
|
36
|
-
"@jay-framework/fullstack-component": "^0.
|
|
37
|
-
"@jay-framework/logger": "^0.
|
|
38
|
-
"@jay-framework/ssr-runtime": "^0.
|
|
39
|
-
"@jay-framework/stack-route-scanner": "^0.
|
|
40
|
-
"@jay-framework/stack-server-runtime": "^0.
|
|
41
|
-
"@jay-framework/view-state-merge": "^0.
|
|
42
|
-
"@jay-framework/vite-plugin": "^0.
|
|
33
|
+
"@jay-framework/compiler-jay-html": "^0.22.1",
|
|
34
|
+
"@jay-framework/compiler-jay-stack": "^0.22.1",
|
|
35
|
+
"@jay-framework/compiler-shared": "^0.22.1",
|
|
36
|
+
"@jay-framework/fullstack-component": "^0.22.1",
|
|
37
|
+
"@jay-framework/logger": "^0.22.1",
|
|
38
|
+
"@jay-framework/ssr-runtime": "^0.22.1",
|
|
39
|
+
"@jay-framework/stack-route-scanner": "^0.22.1",
|
|
40
|
+
"@jay-framework/stack-server-runtime": "^0.22.1",
|
|
41
|
+
"@jay-framework/view-state-merge": "^0.22.1",
|
|
42
|
+
"@jay-framework/vite-plugin": "^0.22.1",
|
|
43
43
|
"vite": "^5.0.11"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@jay-framework/dev-environment": "^0.
|
|
46
|
+
"@jay-framework/dev-environment": "^0.22.1",
|
|
47
47
|
"@types/node": "^22.15.21",
|
|
48
48
|
"rimraf": "^5.0.5",
|
|
49
49
|
"tsup": "^8.0.1",
|