Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions web/ui-customization/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion web/ui-customization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"rollup@>=4.0.0 <4.59.0": ">=4.59.0 <5",
"typescript-eslint": "8.53.1",
"dompurify": "3.4.17",
"markdown-it": "14.3.3"
"markdown-it": "14.3.3",
"zod-validation-error": "4.0.2"
},
"devDependencies": {
"@eslint/js": "^9.36.0",
Expand Down
11 changes: 6 additions & 5 deletions web/ui-customization/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions web/ui-customization/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ minimumReleaseAge: 10080 # 7 days
overrides:
dompurify: 3.4.17
markdown-it: 14.3.3
zod-validation-error: 4.0.2
"ajv@<6.14.0": ">=6.14.0 <7"
"brace-expansion@<1.1.20": ">=1.1.20 <2"
"brace-expansion@>=2.0.0 <2.1.4": ">=2.1.4 <3"
Expand Down
15 changes: 15 additions & 0 deletions web/ui-customization/test/zod-validation-error.test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import assert from "node:assert/strict";
import { createRequire } from "node:module";
import test from "node:test";
import { pathToFileURL } from "node:url";

test("Baseline tokens can load its Zod v4 validation error adapter", async () => {
const require = createRequire(import.meta.url);
const tokensEntry = require.resolve("@baseline-ui/tokens");
const tokensRequire = createRequire(tokensEntry);
const adapterUrl = pathToFileURL(
tokensRequire.resolve("zod-validation-error/v4"),
);
const validation = await import(adapterUrl.href);
assert.equal(typeof validation.fromError, "function");
});
Loading