@maroonedog/luq 2.1.0 → 2.3.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/README.md +92 -430
- package/dist/builder/builder-surface.types.d.ts +1 -0
- package/dist/builder/compile-declarations.d.ts +7 -1
- package/dist/builder/compile-declarations.js +18 -8
- package/dist/builder/compile-declarations.mjs +18 -8
- package/dist/builder/create-builder.js +8 -0
- package/dist/builder/create-builder.mjs +8 -0
- package/dist/builder/create-field-builder.js +13 -1
- package/dist/builder/create-field-builder.mjs +13 -1
- package/dist/builder/declared-calls-store.d.ts +9 -0
- package/dist/builder/declared-calls-store.js +19 -0
- package/dist/builder/declared-calls-store.mjs +15 -0
- package/dist/builder/field-builder.types.d.ts +13 -0
- package/dist/builder/field-declared-calls.types.d.ts +6 -0
- package/dist/builder/field-declared-calls.types.js +2 -0
- package/dist/builder/field-declared-calls.types.mjs +1 -0
- package/dist/builder/field-entry.types.d.ts +9 -3
- package/dist/builder/field-options.types.d.ts +26 -0
- package/dist/chain/bundle-paths.types.d.ts +23 -0
- package/dist/chain/bundle-paths.types.js +2 -0
- package/dist/chain/bundle-paths.types.mjs +1 -0
- package/dist/chain/chain-method.types.d.ts +8 -3
- package/dist/chain/chain-node-store.d.ts +5 -0
- package/dist/chain/chain-node-store.js +15 -0
- package/dist/chain/chain-node-store.mjs +11 -0
- package/dist/chain/collect-field-rules.d.ts +13 -2
- package/dist/chain/collect-field-rules.js +10 -3
- package/dist/chain/collect-field-rules.mjs +10 -3
- package/dist/chain/create-chain-node.js +19 -9
- package/dist/chain/create-chain-node.mjs +19 -9
- package/dist/chain/declaration-recorder.port.d.ts +31 -0
- package/dist/chain/declaration-recorder.port.js +17 -0
- package/dist/chain/declaration-recorder.port.mjs +13 -0
- package/dist/chain/declared-call.types.d.ts +15 -0
- package/dist/chain/declared-call.types.js +2 -0
- package/dist/chain/declared-call.types.mjs +1 -0
- package/dist/chain/index.d.ts +3 -1
- package/dist/chain/resolve-args.types.d.ts +4 -2
- package/dist/compile/compile-array-node.d.ts +0 -7
- package/dist/compile/compile-array-node.js +5 -0
- package/dist/compile/compile-array-node.mjs +5 -0
- package/dist/compile/compile-field.d.ts +1 -0
- package/dist/compile/compile-field.js +13 -2
- package/dist/compile/compile-field.mjs +13 -2
- package/dist/compile/compile-schema.js +4 -0
- package/dist/compile/compile-schema.mjs +4 -0
- package/dist/compile/group-array-fields.d.ts +1 -0
- package/dist/compile/split-rules-by-kind.js +27 -7
- package/dist/compile/split-rules-by-kind.mjs +27 -7
- package/dist/compile/validation-plan.types.d.ts +36 -0
- package/dist/core/type-erasure.d.ts +36 -30
- package/dist/core/type-erasure.js +36 -30
- package/dist/core/type-erasure.mjs +36 -30
- package/dist/json-schema/build-from-schema.js +8 -1
- package/dist/json-schema/build-from-schema.mjs +8 -1
- package/dist/json-schema/declare-additional-properties.d.ts +7 -7
- package/dist/json-schema/declare-additional-properties.js +7 -7
- package/dist/json-schema/declare-additional-properties.mjs +7 -7
- package/dist/json-schema/declare-object-keywords.js +4 -4
- package/dist/json-schema/declare-object-keywords.mjs +4 -4
- package/dist/json-schema/flatten-schema.js +1 -1
- package/dist/json-schema/flatten-schema.mjs +1 -1
- package/dist/json-schema/follow-json-pointer.d.ts +7 -6
- package/dist/json-schema/follow-json-pointer.js +24 -24
- package/dist/json-schema/follow-json-pointer.mjs +24 -24
- package/dist/json-schema/ref-resolution-error.js +3 -3
- package/dist/json-schema/ref-resolution-error.mjs +3 -3
- package/dist/json-schema/schema-registry.js +12 -11
- package/dist/json-schema/schema-registry.mjs +12 -11
- package/dist/json-schema/uri-reference.js +12 -12
- package/dist/json-schema/uri-reference.mjs +12 -12
- package/dist/path/create-value-writer.js +12 -12
- package/dist/path/create-value-writer.mjs +12 -12
- package/dist/path/reserved-segment.d.ts +16 -16
- package/dist/path/reserved-segment.js +17 -21
- package/dist/path/reserved-segment.mjs +17 -21
- package/dist/plugin-kit/marker.types.d.ts +18 -0
- package/dist/plugins/index.generated.d.ts +1 -0
- package/dist/plugins/index.generated.js +6 -4
- package/dist/plugins/index.generated.mjs +3 -2
- package/dist/plugins/manifest.generated.js +3 -2
- package/dist/plugins/manifest.generated.mjs +3 -2
- package/dist/plugins/object-additional-properties/select-additional-keys.d.ts +8 -8
- package/dist/plugins/object-additional-properties/select-additional-keys.js +16 -16
- package/dist/plugins/object-additional-properties/select-additional-keys.mjs +16 -16
- package/dist/plugins/stitch/stitch.d.ts +24 -8
- package/dist/plugins/stitch-with/index.d.ts +2 -0
- package/dist/plugins/stitch-with/index.js +5 -0
- package/dist/plugins/stitch-with/index.mjs +1 -0
- package/dist/plugins/stitch-with/stitch-with.d.ts +12 -0
- package/dist/plugins/stitch-with/stitch-with.js +92 -0
- package/dist/plugins/stitch-with/stitch-with.mjs +89 -0
- package/dist/plugins/stitchWith.d.ts +1 -0
- package/dist/plugins/stitchWith.js +2 -0
- package/dist/plugins/stitchWith.mjs +1 -0
- package/dist/plugins/string-min/string-min.js +19 -3
- package/dist/plugins/string-min/string-min.mjs +20 -4
- package/dist/presets/index.d.ts +1 -0
- package/dist/presets/index.js +9 -0
- package/dist/presets/index.mjs +1 -0
- package/dist/presets/presets.d.ts +164 -0
- package/dist/presets/presets.js +79 -0
- package/dist/presets/presets.mjs +76 -0
- package/dist/runtime/create-field-validator.js +22 -8
- package/dist/runtime/create-field-validator.mjs +22 -8
- package/dist/runtime/create-validator.js +38 -8
- package/dist/runtime/create-validator.mjs +38 -8
- package/dist/runtime/field-rule-context.d.ts +32 -0
- package/dist/runtime/field-rule-context.js +48 -0
- package/dist/runtime/field-rule-context.mjs +44 -0
- package/dist/runtime/index-stack.d.ts +29 -4
- package/dist/runtime/index-stack.js +76 -15
- package/dist/runtime/index-stack.mjs +76 -15
- package/dist/runtime/output-writer.js +5 -1
- package/dist/runtime/output-writer.mjs +5 -1
- package/dist/runtime/run-array-node.js +22 -10
- package/dist/runtime/run-array-node.mjs +22 -10
- package/dist/runtime/run-field.js +47 -18
- package/dist/runtime/run-field.mjs +47 -18
- package/dist/runtime/run-plan.js +5 -1
- package/dist/runtime/run-plan.mjs +5 -1
- package/dist/standard-schema/assemble-json-schema.d.ts +4 -0
- package/dist/standard-schema/assemble-json-schema.js +95 -0
- package/dist/standard-schema/assemble-json-schema.mjs +92 -0
- package/dist/standard-schema/declaration-recorder.d.ts +6 -0
- package/dist/standard-schema/declaration-recorder.js +30 -0
- package/dist/standard-schema/declaration-recorder.mjs +27 -0
- package/dist/standard-schema/declarations-unavailable-error.d.ts +4 -0
- package/dist/standard-schema/declarations-unavailable-error.js +32 -0
- package/dist/standard-schema/declarations-unavailable-error.mjs +28 -0
- package/dist/standard-schema/emit-field-schema.d.ts +9 -0
- package/dist/standard-schema/emit-field-schema.js +68 -0
- package/dist/standard-schema/emit-field-schema.mjs +65 -0
- package/dist/standard-schema/index.d.ts +5 -0
- package/dist/standard-schema/index.js +9 -1
- package/dist/standard-schema/index.mjs +4 -0
- package/dist/standard-schema/json-schema-target.d.ts +6 -0
- package/dist/standard-schema/json-schema-target.js +44 -0
- package/dist/standard-schema/json-schema-target.mjs +39 -0
- package/dist/standard-schema/plugin-keyword-map.d.ts +3 -0
- package/dist/standard-schema/plugin-keyword-map.js +93 -0
- package/dist/standard-schema/plugin-keyword-map.mjs +90 -0
- package/dist/standard-schema/split-issue-path.d.ts +6 -4
- package/dist/standard-schema/split-issue-path.js +15 -13
- package/dist/standard-schema/split-issue-path.mjs +15 -13
- package/dist/standard-schema/standard-schema.types.d.ts +8 -7
- package/dist/standard-schema/standard-schema.types.js +6 -6
- package/dist/standard-schema/standard-schema.types.mjs +6 -6
- package/dist/standard-schema/to-standard-json-schema.d.ts +19 -0
- package/dist/standard-schema/to-standard-json-schema.js +36 -0
- package/dist/standard-schema/to-standard-json-schema.mjs +33 -0
- package/dist/standard-schema/to-standard-schema.d.ts +16 -15
- package/dist/standard-schema/to-standard-schema.js +15 -22
- package/dist/standard-schema/to-standard-schema.mjs +15 -22
- package/dist/standard-schema/unrepresentable-rule-error.d.ts +15 -0
- package/dist/standard-schema/unrepresentable-rule-error.js +43 -0
- package/dist/standard-schema/unrepresentable-rule-error.mjs +38 -0
- package/dist/types/index.d.ts +19 -7
- package/dist/types/index.js +7 -7
- package/dist/types/index.mjs +7 -7
- package/package.json +35 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maroonedog/luq",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Universal Model & API Definition Platform - TypeScript validation library evolving into cross-language code generation",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -37,6 +37,11 @@
|
|
|
37
37
|
"import": "./dist/standard-schema.mjs",
|
|
38
38
|
"require": "./dist/standard-schema.js"
|
|
39
39
|
},
|
|
40
|
+
"./presets": {
|
|
41
|
+
"types": "./dist/presets/index.d.ts",
|
|
42
|
+
"import": "./dist/presets/index.mjs",
|
|
43
|
+
"require": "./dist/presets/index.js"
|
|
44
|
+
},
|
|
40
45
|
"./plugins": {
|
|
41
46
|
"types": "./dist/plugins/index.d.ts",
|
|
42
47
|
"import": "./dist/plugins/index.mjs",
|
|
@@ -252,6 +257,11 @@
|
|
|
252
257
|
"import": "./dist/plugins/stitch.mjs",
|
|
253
258
|
"require": "./dist/plugins/stitch.js"
|
|
254
259
|
},
|
|
260
|
+
"./plugins/stitchWith": {
|
|
261
|
+
"types": "./dist/plugins/stitchWith.d.ts",
|
|
262
|
+
"import": "./dist/plugins/stitchWith.mjs",
|
|
263
|
+
"require": "./dist/plugins/stitchWith.js"
|
|
264
|
+
},
|
|
255
265
|
"./plugins/stringAlphanumeric": {
|
|
256
266
|
"types": "./dist/plugins/stringAlphanumeric.d.ts",
|
|
257
267
|
"import": "./dist/plugins/stringAlphanumeric.mjs",
|
|
@@ -432,14 +442,14 @@
|
|
|
432
442
|
"build": "npx ts-node --project scripts/tsconfig.json scripts/build.ts",
|
|
433
443
|
"test": "jest --no-watch --no-watchman --passWithNoTests",
|
|
434
444
|
"test:watch": "jest --watch",
|
|
435
|
-
"lint": "
|
|
445
|
+
"lint": "npm run lint:ox && npm run lint:naming",
|
|
436
446
|
"prepare": "npm run build",
|
|
437
447
|
"prepublishOnly": "npm run verify",
|
|
438
448
|
"generate-docs": "npx ts-node --project scripts/tsconfig.json scripts/generate-docs.ts",
|
|
439
|
-
"lint:fix": "
|
|
449
|
+
"lint:fix": "oxlint -c .oxlintrc.json --fix src bench",
|
|
440
450
|
"lint:filenames": "node scripts/check-filenames.js",
|
|
441
|
-
"format": "
|
|
442
|
-
"format:check": "
|
|
451
|
+
"format": "oxfmt src test scripts bench",
|
|
452
|
+
"format:check": "oxfmt --check src test scripts bench",
|
|
443
453
|
"typecheck": "npm run typecheck:src && npm run typecheck:scripts && npm run typecheck:bench",
|
|
444
454
|
"typecheck:src": "tsc --noEmit -p tsconfig.json",
|
|
445
455
|
"typecheck:scripts": "tsc --noEmit -p scripts/tsconfig.json",
|
|
@@ -470,10 +480,16 @@
|
|
|
470
480
|
"check:doc-examples": "npx ts-node --project scripts/tsconfig.json scripts/check-doc-examples.ts",
|
|
471
481
|
"check:doc-imports": "npx ts-node --project scripts/tsconfig.json scripts/check-doc-imports.ts",
|
|
472
482
|
"check:generated-docs": "npx ts-node --project scripts/tsconfig.json scripts/generate-docs.ts --check",
|
|
473
|
-
"check:docs": "npm run check:generated-docs && npm run check:doc-examples && npm run check:doc-imports && npm run check:conformance-figures",
|
|
483
|
+
"check:docs": "npm run check:generated-docs && npm run check:doc-examples && npm run check:doc-imports && npm run check:conformance-figures && npm run check:perf-figures",
|
|
474
484
|
"bench:record": "npx ts-node --project scripts/tsconfig.json scripts/run-bench.ts --record",
|
|
475
485
|
"bench:gate": "npx ts-node --project scripts/tsconfig.json scripts/run-bench.ts --gate",
|
|
476
|
-
"check:conformance-figures": "npx ts-node --project scripts/tsconfig.json scripts/check-conformance-figures.ts"
|
|
486
|
+
"check:conformance-figures": "npx ts-node --project scripts/tsconfig.json scripts/check-conformance-figures.ts",
|
|
487
|
+
"bench:competitors": "npx ts-node --project bench/tsconfig.json bench/competitors/report-competitors.ts",
|
|
488
|
+
"bench:competitors:check": "npx ts-node --project bench/tsconfig.json bench/competitors/check-competitors.ts",
|
|
489
|
+
"lint:ox": "oxlint -c .oxlintrc.json src bench",
|
|
490
|
+
"lint:naming": "eslint \"src/**/*.ts\" \"bench/**/*.ts\"",
|
|
491
|
+
"generate:perf-figures": "npx ts-node --project scripts/tsconfig.json scripts/check-perf-figures.ts --write",
|
|
492
|
+
"check:perf-figures": "npx ts-node --project scripts/tsconfig.json scripts/check-perf-figures.ts"
|
|
477
493
|
},
|
|
478
494
|
"repository": {
|
|
479
495
|
"type": "git",
|
|
@@ -495,28 +511,28 @@
|
|
|
495
511
|
"files": [
|
|
496
512
|
"dist"
|
|
497
513
|
],
|
|
514
|
+
"publishConfig": {
|
|
515
|
+
"access": "public",
|
|
516
|
+
"provenance": true
|
|
517
|
+
},
|
|
498
518
|
"devDependencies": {
|
|
499
|
-
"@playwright/test": "^1.54.2",
|
|
500
519
|
"@standard-schema/spec": "^1.1.0",
|
|
501
|
-
"@swc/cli": "^0.4.0",
|
|
502
|
-
"@swc/core": "^1.7.36",
|
|
503
|
-
"@swc/jest": "^0.2.36",
|
|
504
520
|
"@types/jest": "^29.5.14",
|
|
505
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
506
|
-
"@typescript-eslint/parser": "^
|
|
507
|
-
"
|
|
521
|
+
"@typescript-eslint/eslint-plugin": "^8.70.0",
|
|
522
|
+
"@typescript-eslint/parser": "^8.70.0",
|
|
523
|
+
"ajv": "^8.20.0",
|
|
524
|
+
"ajv-formats": "^3.0.1",
|
|
508
525
|
"esbuild": "^0.25.5",
|
|
509
526
|
"eslint": "^8.57.1",
|
|
510
|
-
"expect-type": "^1.4.0",
|
|
511
527
|
"jest": "^29.7.0",
|
|
512
|
-
"
|
|
513
|
-
"
|
|
514
|
-
"rollup-plugin-dts": "^6.2.1",
|
|
515
|
-
"sharp": "^0.34.3",
|
|
528
|
+
"oxfmt": "^0.67.0",
|
|
529
|
+
"oxlint": "^1.82.0",
|
|
516
530
|
"ts-jest": "^29.4.0",
|
|
517
531
|
"ts-node": "^10.9.2",
|
|
518
532
|
"tsx": "^4.20.3",
|
|
519
533
|
"typescript": "^5.8.3",
|
|
534
|
+
"valibot": "^1.4.2",
|
|
535
|
+
"yup": "^1.7.1",
|
|
520
536
|
"zod": "^4.0.14"
|
|
521
537
|
},
|
|
522
538
|
"sideEffects": false
|