@jay-framework/production-server 0.24.5 → 0.24.7
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 +2 -2
- package/dist/{init-services-CnM6IinC.js → init-services-CVQ-U9iX.js} +9 -2
- package/dist/{serve-index-B45QVQoo.d.ts → serve-index-C2Tfaz1E.d.ts} +4 -0
- package/dist/serve-index.d.ts +1 -1
- package/dist/serve-index.js +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RouteManifest, a as RouteEntry } from './serve-index-
|
|
2
|
-
export { A as ActionEntry, b as ArtifactStore, B as BuildMetadata, c as BuildOptions, C as CacheEntry, F as FilesystemArtifactStore, I as InstanceEntry, M as MatchResult, P as PageModule, d as PluginEntry, e as PreImportedPlugin, f as RouteSegment, S as ServerElementModule, g as fetchActionRequest, h as fetchPageRequest, i as fetchStaticFile, j as initializeServices, k as initializeServicesFromModules, l as isActionRequest, m as loadPagePartsFromConfig, n as matchRequest, r as registerActionsFromManifest, o as registerActionsFromModules } from './serve-index-
|
|
1
|
+
import { R as RouteManifest, a as RouteEntry } from './serve-index-C2Tfaz1E.js';
|
|
2
|
+
export { A as ActionEntry, b as ArtifactStore, B as BuildMetadata, c as BuildOptions, C as CacheEntry, F as FilesystemArtifactStore, I as InstanceEntry, M as MatchResult, P as PageModule, d as PluginEntry, e as PreImportedPlugin, f as RouteSegment, S as ServerElementModule, g as fetchActionRequest, h as fetchPageRequest, i as fetchStaticFile, j as initializeServices, k as initializeServicesFromModules, l as isActionRequest, m as loadPagePartsFromConfig, n as matchRequest, r as registerActionsFromManifest, o as registerActionsFromModules } from './serve-index-C2Tfaz1E.js';
|
|
3
3
|
import '@jay-framework/ssr-runtime';
|
|
4
4
|
import '@jay-framework/stack-server-runtime';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import http from "node:http";
|
|
|
3
3
|
import { Readable } from "node:stream";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { getLogger } from "@jay-framework/logger";
|
|
6
|
-
import { F as FilesystemArtifactStore, i as initializeServices, r as registerActionsFromManifest, d as isActionRequest, f as fetchActionRequest, b as fetchStaticFile, m as matchRequest, a as fetchPageRequest, l as loadPagePartsFromConfig } from "./init-services-
|
|
7
|
-
import { c, e } from "./init-services-
|
|
6
|
+
import { F as FilesystemArtifactStore, i as initializeServices, r as registerActionsFromManifest, d as isActionRequest, f as fetchActionRequest, b as fetchStaticFile, m as matchRequest, a as fetchPageRequest, l as loadPagePartsFromConfig } from "./init-services-CVQ-U9iX.js";
|
|
7
|
+
import { c, e } from "./init-services-CVQ-U9iX.js";
|
|
8
8
|
import { parseCookies, scanPlugins, DevSlowlyChangingPhase, slowRenderInstances } from "@jay-framework/stack-server-runtime";
|
|
9
9
|
import { isJayWebhook } from "@jay-framework/fullstack-component";
|
|
10
10
|
import crypto from "node:crypto";
|
|
@@ -3,7 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
import path from "node:path";
|
|
6
|
-
import { renderFastChangingData, headMetaToHeadTags, mergeHeadTags, serializeHeadTags, getClientInitData, actionRegistry, setClientInitData } from "@jay-framework/stack-server-runtime";
|
|
6
|
+
import { makePassthroughInstanceComponent, renderFastChangingData, headMetaToHeadTags, mergeHeadTags, serializeHeadTags, getClientInitData, actionRegistry, setClientInitData } from "@jay-framework/stack-server-runtime";
|
|
7
7
|
import { deepMergeViewStates } from "@jay-framework/view-state-merge";
|
|
8
8
|
import { asyncSwapScript } from "@jay-framework/ssr-runtime";
|
|
9
9
|
import { isJayAction, isJayStreamAction } from "@jay-framework/fullstack-component";
|
|
@@ -164,7 +164,14 @@ async function loadPagePartsFromConfig(configPath, artifacts) {
|
|
|
164
164
|
const serveTimeContract = {
|
|
165
165
|
props: entry.propNames.map((name) => ({ name }))
|
|
166
166
|
};
|
|
167
|
-
if (entry.structural)
|
|
167
|
+
if (entry.structural) {
|
|
168
|
+
headlessInstanceComponents.push({
|
|
169
|
+
contractName: entry.contractName,
|
|
170
|
+
compDefinition: makePassthroughInstanceComponent(entry.structuralTags ?? []),
|
|
171
|
+
contract: serveTimeContract
|
|
172
|
+
});
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
168
175
|
const mod = await importModule(entry);
|
|
169
176
|
headlessInstanceComponents.push({
|
|
170
177
|
contractName: entry.contractName,
|
|
@@ -106,6 +106,10 @@ interface PagePartsConfig {
|
|
|
106
106
|
instanceComponents: Array<PagePartsConfigEntry & {
|
|
107
107
|
contractName: string;
|
|
108
108
|
propNames: string[];
|
|
109
|
+
structuralTags?: Array<{
|
|
110
|
+
name: string;
|
|
111
|
+
phase?: string;
|
|
112
|
+
}>;
|
|
109
113
|
}>;
|
|
110
114
|
forEachInstances: Array<{
|
|
111
115
|
contractName: string;
|
package/dist/serve-index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { b as ArtifactStore, C as CacheEntry, F as FilesystemArtifactStore, I as InstanceEntry, M as MatchResult, e as PreImportedPlugin, a as RouteEntry, R as RouteManifest, S as ServerElementModule, g as fetchActionRequest, h as fetchPageRequest, i as fetchStaticFile, j as initializeServices, k as initializeServicesFromModules, l as isActionRequest, n as matchRequest, r as registerActionsFromManifest, o as registerActionsFromModules } from './serve-index-
|
|
1
|
+
export { b as ArtifactStore, C as CacheEntry, F as FilesystemArtifactStore, I as InstanceEntry, M as MatchResult, e as PreImportedPlugin, a as RouteEntry, R as RouteManifest, S as ServerElementModule, g as fetchActionRequest, h as fetchPageRequest, i as fetchStaticFile, j as initializeServices, k as initializeServicesFromModules, l as isActionRequest, n as matchRequest, r as registerActionsFromManifest, o as registerActionsFromModules } from './serve-index-C2Tfaz1E.js';
|
|
2
2
|
import '@jay-framework/ssr-runtime';
|
|
3
3
|
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.24.
|
|
3
|
+
"version": "0.24.7",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"test:watch": "vitest"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@jay-framework/fullstack-component": "^0.24.
|
|
34
|
-
"@jay-framework/logger": "^0.24.
|
|
35
|
-
"@jay-framework/ssr-runtime": "^0.24.
|
|
36
|
-
"@jay-framework/stack-server-runtime": "^0.24.
|
|
37
|
-
"@jay-framework/view-state-merge": "^0.24.
|
|
33
|
+
"@jay-framework/fullstack-component": "^0.24.7",
|
|
34
|
+
"@jay-framework/logger": "^0.24.7",
|
|
35
|
+
"@jay-framework/ssr-runtime": "^0.24.7",
|
|
36
|
+
"@jay-framework/stack-server-runtime": "^0.24.7",
|
|
37
|
+
"@jay-framework/view-state-merge": "^0.24.7"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@jay-framework/dev-environment": "^0.24.
|
|
40
|
+
"@jay-framework/dev-environment": "^0.24.7",
|
|
41
41
|
"@types/node": "^22.15.21",
|
|
42
42
|
"rimraf": "^5.0.5",
|
|
43
43
|
"tsup": "^8.0.1",
|