@jxsuite/compiler 3.0.0 → 4.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxsuite/compiler",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "Jx static HTML compiler, island detector, and site builder",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -45,20 +45,20 @@
45
45
  "upgrade": "bun update --latest && bun install"
46
46
  },
47
47
  "dependencies": {
48
- "@apidevtools/json-schema-ref-parser": "^16.0.1",
49
- "@jxsuite/create": "^1.3.8",
50
- "@jxsuite/runtime": "^3.0.0",
51
- "@jxsuite/schema": "^2.0.0",
52
- "@jxsuite/site": "^1.0.0",
53
- "@vue/reactivity": "3.5.41",
48
+ "@apidevtools/json-schema-ref-parser": "^16.0.2",
49
+ "@jxsuite/create": "^1.3.10",
50
+ "@jxsuite/runtime": "^4.0.0",
51
+ "@jxsuite/schema": "^2.2.0",
52
+ "@jxsuite/site": "^2.0.0",
53
+ "@vue/reactivity": "3.5.42",
54
54
  "esbuild": "^0.28.2",
55
55
  "lit-html": "^3.3.3",
56
56
  "sharp": "^0.35.4"
57
57
  },
58
58
  "devDependencies": {
59
- "@happy-dom/global-registrator": "^20.11.8",
60
- "@jxsuite/connector": "^0.5.6",
61
- "@jxsuite/parser": "^1.6.0",
59
+ "@happy-dom/global-registrator": "^20.14.5",
60
+ "@jxsuite/connector": "^0.6.0",
61
+ "@jxsuite/parser": "^1.8.0",
62
62
  "@types/mdast": "^4.0.4"
63
63
  }
64
64
  }
package/src/cli.ts CHANGED
@@ -34,7 +34,8 @@ Options:
34
34
  --no-clean Don't clean outDir before building
35
35
  --port <n> dev/preview: port to listen on (default 3000 / 4173)
36
36
  --dry-run db push: print the statements without executing them
37
- --connection db push: restrict to one connection name`);
37
+ --connection db push: restrict to one connection name
38
+ --strict validate: fail on an overlay or accessibility lint error, not only a schema error`);
38
39
  process.exit(0);
39
40
  }
40
41
 
@@ -161,14 +162,19 @@ Options:
161
162
  }
162
163
  } else if (command === "validate") {
163
164
  try {
164
- const { formatProjectTreeIssues, validateProjectTree } =
165
+ const { formatProjectTreeIssues, formatProjectTreeLint, validateProjectTree } =
165
166
  await import("./site/validate-command.ts");
166
- const result = await validateProjectTree(projectRoot);
167
+ const result = await validateProjectTree(projectRoot, { strict: flags.has("--strict") });
168
+ const lintLines = formatProjectTreeLint(result);
167
169
  if (result.valid) {
168
170
  console.log(`Project is valid (${result.checked} files checked in ${projectRoot})`);
171
+ // Advisory: the tree is well-formed, and these are judgements about it (spec §8.7, §8.8).
172
+ for (const line of lintLines) {
173
+ console.log(line);
174
+ }
169
175
  } else {
170
176
  console.error(`Project is INVALID (${projectRoot}):`);
171
- for (const line of formatProjectTreeIssues(result)) {
177
+ for (const line of [...formatProjectTreeIssues(result), ...lintLines]) {
172
178
  console.error(line);
173
179
  }
174
180
  process.exit(1);