@jxsuite/server 8.5.0 → 8.6.0

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 (2) hide show
  1. package/package.json +16 -15
  2. package/src/resolve.ts +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxsuite/server",
3
- "version": "8.5.0",
3
+ "version": "8.6.0",
4
4
  "description": "Jx development server with live reload, server-side proxy, and studio integration",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -55,17 +55,18 @@
55
55
  "upgrade": "bun update --latest && bun install"
56
56
  },
57
57
  "dependencies": {
58
- "@jxsuite/ai": "^0.43.2",
59
- "@jxsuite/catalog": "^0.1.10",
60
- "@jxsuite/collab": "^0.11.8",
61
- "@jxsuite/compiler": "^8.4.0",
62
- "@jxsuite/create": "^1.6.0",
63
- "@jxsuite/import": "^0.43.0",
64
- "@jxsuite/protocol": "^6.2.4",
65
- "@jxsuite/runtime": "^6.2.1",
66
- "@jxsuite/schema": "^5.4.0",
67
- "@jxsuite/site": "^2.5.0",
68
- "@jxsuite/starters": "^3.3.2",
58
+ "@jxsuite/ai": "^0.43.3",
59
+ "@jxsuite/catalog": "^0.1.11",
60
+ "@jxsuite/collab": "^0.11.9",
61
+ "@jxsuite/compiler": "^8.5.0",
62
+ "@jxsuite/create": "^1.7.0",
63
+ "@jxsuite/erase": "^0.1.0",
64
+ "@jxsuite/import": "^0.44.0",
65
+ "@jxsuite/protocol": "^6.2.5",
66
+ "@jxsuite/runtime": "^6.2.2",
67
+ "@jxsuite/schema": "^5.5.0",
68
+ "@jxsuite/site": "^2.5.1",
69
+ "@jxsuite/starters": "^3.4.0",
69
70
  "@npmcli/arborist": "^10.0.4",
70
71
  "chokidar": "^6.0.0",
71
72
  "kysely": "^0.29.8",
@@ -75,9 +76,9 @@
75
76
  "zod": "^4.6.7"
76
77
  },
77
78
  "devDependencies": {
78
- "@jxsuite/auth": "^0.8.6",
79
- "@jxsuite/connector": "^0.8.6",
80
- "@jxsuite/parser": "^4.3.2",
79
+ "@jxsuite/auth": "^0.8.7",
80
+ "@jxsuite/connector": "^0.8.7",
81
+ "@jxsuite/parser": "^4.3.3",
81
82
  "@jxsuite/test-support": "^0.0.0",
82
83
  "@types/npm-package-arg": "^6.1.4",
83
84
  "@types/npmcli__arborist": "^6.3.3",
package/src/resolve.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /** Resolve.js — Generic $src module proxy + timing: "server" function proxy */
2
2
 
3
+ import { eraseClass } from "@jxsuite/erase";
3
4
  import { siteBasePath } from "@jxsuite/schema/asset-paths";
4
5
  import { dirname, isAbsolute, relative, resolve } from "node:path";
5
6
  import { errorMessage, parseClassDef } from "@jxsuite/schema/parse";
@@ -594,7 +595,9 @@ function isCtorDef(
594
595
  *
595
596
  * @param {JxClassDef} classDef
596
597
  */
597
- function classFromSchema(classDef: JxClassDef) {
598
+ function classFromSchema(authored: JxClassDef) {
599
+ // Member bodies as JavaScript before anything compiles them (spec.md §23.1).
600
+ const classDef = eraseClass(authored, authored.title ?? "a class");
598
601
  const fields = classDef.$defs?.fields ?? {};
599
602
  const rawCtor = classDef.$defs?.constructor;
600
603
  const ctor = isCtorDef(rawCtor) ? rawCtor : undefined;