@jay-framework/stack-server-runtime 0.15.2 → 0.15.3
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 +0 -1
- package/dist/index.js +4 -11
- package/package.json +13 -13
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -722,6 +722,10 @@ async function compileAndLoadServerElement(vite, jayHtmlContent, jayHtmlFilename
|
|
|
722
722
|
const serverElementFilename = jayHtmlFilename.replace(".jay-html", ".server-element.ts");
|
|
723
723
|
const serverElementPath = path__default.join(serverElementDir, serverElementFilename);
|
|
724
724
|
await fs$2.writeFile(serverElementPath, adjustedCode, "utf-8");
|
|
725
|
+
const existingModule = vite.moduleGraph.getModuleById(serverElementPath);
|
|
726
|
+
if (existingModule) {
|
|
727
|
+
vite.moduleGraph.invalidateModule(existingModule);
|
|
728
|
+
}
|
|
725
729
|
const serverModule = await vite.ssrLoadModule(serverElementPath);
|
|
726
730
|
return {
|
|
727
731
|
renderToStream: serverModule.renderToStream,
|
|
@@ -2042,15 +2046,6 @@ function resolveActionFilePath(actionPath, packageName, pluginPath, isLocal, pro
|
|
|
2042
2046
|
function toKebabCase(str) {
|
|
2043
2047
|
return str.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
2044
2048
|
}
|
|
2045
|
-
function getJayStackVersion() {
|
|
2046
|
-
try {
|
|
2047
|
-
const packageJsonPath = path.join(__dirname, "..", "package.json");
|
|
2048
|
-
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf-8"));
|
|
2049
|
-
return packageJson.version || "0.0.0";
|
|
2050
|
-
} catch {
|
|
2051
|
-
return "0.0.0";
|
|
2052
|
-
}
|
|
2053
|
-
}
|
|
2054
2049
|
async function materializeContracts(options, services = /* @__PURE__ */ new Map()) {
|
|
2055
2050
|
const {
|
|
2056
2051
|
projectRoot,
|
|
@@ -2183,7 +2178,6 @@ async function materializeContracts(options, services = /* @__PURE__ */ new Map(
|
|
|
2183
2178
|
}
|
|
2184
2179
|
}
|
|
2185
2180
|
const pluginsIndex = {
|
|
2186
|
-
jay_stack_version: getJayStackVersion(),
|
|
2187
2181
|
plugins: Array.from(pluginsIndexMap.entries()).map(([name, data]) => ({
|
|
2188
2182
|
name,
|
|
2189
2183
|
path: data.path,
|
|
@@ -2251,7 +2245,6 @@ async function listContracts(options) {
|
|
|
2251
2245
|
}
|
|
2252
2246
|
}
|
|
2253
2247
|
return {
|
|
2254
|
-
jay_stack_version: getJayStackVersion(),
|
|
2255
2248
|
plugins: Array.from(pluginsMap.entries()).map(([name, data]) => ({
|
|
2256
2249
|
name,
|
|
2257
2250
|
path: data.path,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/stack-server-runtime",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.mts",
|
|
@@ -26,21 +26,21 @@
|
|
|
26
26
|
"test:watch": "vitest"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@jay-framework/compiler-jay-html": "^0.15.
|
|
30
|
-
"@jay-framework/compiler-shared": "^0.15.
|
|
31
|
-
"@jay-framework/component": "^0.15.
|
|
32
|
-
"@jay-framework/fullstack-component": "^0.15.
|
|
33
|
-
"@jay-framework/logger": "^0.15.
|
|
34
|
-
"@jay-framework/runtime": "^0.15.
|
|
35
|
-
"@jay-framework/ssr-runtime": "^0.15.
|
|
36
|
-
"@jay-framework/stack-route-scanner": "^0.15.
|
|
37
|
-
"@jay-framework/view-state-merge": "^0.15.
|
|
29
|
+
"@jay-framework/compiler-jay-html": "^0.15.3",
|
|
30
|
+
"@jay-framework/compiler-shared": "^0.15.3",
|
|
31
|
+
"@jay-framework/component": "^0.15.3",
|
|
32
|
+
"@jay-framework/fullstack-component": "^0.15.3",
|
|
33
|
+
"@jay-framework/logger": "^0.15.3",
|
|
34
|
+
"@jay-framework/runtime": "^0.15.3",
|
|
35
|
+
"@jay-framework/ssr-runtime": "^0.15.3",
|
|
36
|
+
"@jay-framework/stack-route-scanner": "^0.15.3",
|
|
37
|
+
"@jay-framework/view-state-merge": "^0.15.3",
|
|
38
38
|
"yaml": "^2.3.4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@jay-framework/dev-environment": "^0.15.
|
|
42
|
-
"@jay-framework/jay-cli": "^0.15.
|
|
43
|
-
"@jay-framework/stack-client-runtime": "^0.15.
|
|
41
|
+
"@jay-framework/dev-environment": "^0.15.3",
|
|
42
|
+
"@jay-framework/jay-cli": "^0.15.3",
|
|
43
|
+
"@jay-framework/stack-client-runtime": "^0.15.3",
|
|
44
44
|
"@types/express": "^5.0.2",
|
|
45
45
|
"@types/node": "^22.15.21",
|
|
46
46
|
"nodemon": "^3.0.3",
|