@forklaunch/validator 0.6.13 → 0.6.15

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.
@@ -1,5 +1,5 @@
1
1
  import { SchemaObject } from 'openapi3-ts/oas31';
2
- import { S as SchemaValidator, L as LiteralSchema, a as ParseResult } from '../../schema.types-BJaGPLeb.mjs';
2
+ import { S as SchemaValidator, L as LiteralSchema, a as ParseResult } from '../../schema.types-CDVoqb4z.mjs';
3
3
  import '@forklaunch/common';
4
4
  import '@sinclair/typebox';
5
5
  import '@sinclair/typebox/compiler';
@@ -1,5 +1,5 @@
1
1
  import { SchemaObject } from 'openapi3-ts/oas31';
2
- import { S as SchemaValidator, L as LiteralSchema, a as ParseResult } from '../../schema.types-BJaGPLeb.js';
2
+ import { S as SchemaValidator, L as LiteralSchema, a as ParseResult } from '../../schema.types-CDVoqb4z.js';
3
3
  import '@forklaunch/common';
4
4
  import '@sinclair/typebox';
5
5
  import '@sinclair/typebox/compiler';
package/lib/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as ParseError } from './schema.types-BJaGPLeb.mjs';
2
- export { A as AnySchemaValidator, I as IdiomaticSchema, e as Increment, K as KeyTypes, L as LiteralSchema, a as ParseResult, d as Schema, b as SchemaResolve, c as SchemaTranslate, S as SchemaValidator, U as UnboxedObjectSchema } from './schema.types-BJaGPLeb.mjs';
1
+ import { P as ParseError } from './schema.types-CDVoqb4z.mjs';
2
+ export { A as AnySchemaValidator, I as IdiomaticSchema, e as Increment, K as KeyTypes, L as LiteralSchema, a as ParseResult, d as Schema, b as SchemaResolve, c as SchemaTranslate, S as SchemaValidator, U as UnboxedObjectSchema } from './schema.types-CDVoqb4z.mjs';
3
3
  import '@forklaunch/common';
4
4
  import 'openapi3-ts/oas31';
5
5
  import '@sinclair/typebox';
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as ParseError } from './schema.types-BJaGPLeb.js';
2
- export { A as AnySchemaValidator, I as IdiomaticSchema, e as Increment, K as KeyTypes, L as LiteralSchema, a as ParseResult, d as Schema, b as SchemaResolve, c as SchemaTranslate, S as SchemaValidator, U as UnboxedObjectSchema } from './schema.types-BJaGPLeb.js';
1
+ import { P as ParseError } from './schema.types-CDVoqb4z.js';
2
+ export { A as AnySchemaValidator, I as IdiomaticSchema, e as Increment, K as KeyTypes, L as LiteralSchema, a as ParseResult, d as Schema, b as SchemaResolve, c as SchemaTranslate, S as SchemaValidator, U as UnboxedObjectSchema } from './schema.types-CDVoqb4z.js';
3
3
  import '@forklaunch/common';
4
4
  import 'openapi3-ts/oas31';
5
5
  import '@sinclair/typebox';
@@ -41,7 +41,7 @@ declare class TypeboxSchemaValidator implements SchemaValidator<(<T extends TObj
41
41
  never: TNever;
42
42
  binary: TTransform<TString, Uint8Array>;
43
43
  file: TTransform<TString, (name: string, type: MimeType) => File>;
44
- type: <T>() => T;
44
+ type: <T>() => TTransform<TAny, T>;
45
45
  /**
46
46
  * Extracts the error type of a schema for error messages.
47
47
  *
@@ -41,7 +41,7 @@ declare class TypeboxSchemaValidator implements SchemaValidator<(<T extends TObj
41
41
  never: TNever;
42
42
  binary: TTransform<TString, Uint8Array>;
43
43
  file: TTransform<TString, (name: string, type: MimeType) => File>;
44
- type: <T>() => T;
44
+ type: <T>() => TTransform<TAny, T>;
45
45
  /**
46
46
  * Extracts the error type of a schema for error messages.
47
47
  *
@@ -1,5 +1,5 @@
1
- import { T as TypeboxSchemaValidator } from '../../schema.types-BJaGPLeb.mjs';
2
- export { f as TCatchall, l as TIdiomaticSchema, i as TObject, h as TObjectShape, g as TOuterArray, o as TResolve, j as TSchemaTranslate, m as TUnionTupleContainer, k as UnboxedTObjectSchema, n as UnionTupleTResolve } from '../../schema.types-BJaGPLeb.mjs';
1
+ import { T as TypeboxSchemaValidator } from '../../schema.types-CDVoqb4z.mjs';
2
+ export { f as TCatchall, l as TIdiomaticSchema, i as TObject, h as TObjectShape, g as TOuterArray, o as TResolve, j as TSchemaTranslate, m as TUnionTupleContainer, k as UnboxedTObjectSchema, n as UnionTupleTResolve } from '../../schema.types-CDVoqb4z.mjs';
3
3
  import '@forklaunch/common';
4
4
  import 'openapi3-ts/oas31';
5
5
  import '@sinclair/typebox';
@@ -1,5 +1,5 @@
1
- import { T as TypeboxSchemaValidator } from '../../schema.types-BJaGPLeb.js';
2
- export { f as TCatchall, l as TIdiomaticSchema, i as TObject, h as TObjectShape, g as TOuterArray, o as TResolve, j as TSchemaTranslate, m as TUnionTupleContainer, k as UnboxedTObjectSchema, n as UnionTupleTResolve } from '../../schema.types-BJaGPLeb.js';
1
+ import { T as TypeboxSchemaValidator } from '../../schema.types-CDVoqb4z.js';
2
+ export { f as TCatchall, l as TIdiomaticSchema, i as TObject, h as TObjectShape, g as TOuterArray, o as TResolve, j as TSchemaTranslate, m as TUnionTupleContainer, k as UnboxedTObjectSchema, n as UnionTupleTResolve } from '../../schema.types-CDVoqb4z.js';
3
3
  import '@forklaunch/common';
4
4
  import 'openapi3-ts/oas31';
5
5
  import '@sinclair/typebox';
@@ -1,5 +1,5 @@
1
- import { Z as ZodSchemaValidator } from '../../schema.types-BJaGPLeb.mjs';
2
- export { p as OriginalZodObject, x as TupleZodResolve, u as UnboxedZodObjectSchema, z as UnionZodResolve, q as ZodCatchall, v as ZodIdiomaticSchema, p as ZodObject, s as ZodObjectShape, r as ZodOuterArray, C as ZodRecordKey, B as ZodResolve, t as ZodSchemaTranslate, w as ZodTupleContainer, y as ZodUnionContainer } from '../../schema.types-BJaGPLeb.mjs';
1
+ import { Z as ZodSchemaValidator } from '../../schema.types-CDVoqb4z.mjs';
2
+ export { p as OriginalZodObject, x as TupleZodResolve, u as UnboxedZodObjectSchema, z as UnionZodResolve, q as ZodCatchall, v as ZodIdiomaticSchema, p as ZodObject, s as ZodObjectShape, r as ZodOuterArray, C as ZodRecordKey, B as ZodResolve, t as ZodSchemaTranslate, w as ZodTupleContainer, y as ZodUnionContainer } from '../../schema.types-CDVoqb4z.mjs';
3
3
  export { ZodArray, ZodEffects, ZodLiteral, ZodNever, ZodPipeline, ZodRawShape, ZodType, ZodTypeAny, ZodUnknown } from 'zod';
4
4
  import '@forklaunch/common';
5
5
  import 'openapi3-ts/oas31';
@@ -1,5 +1,5 @@
1
- import { Z as ZodSchemaValidator } from '../../schema.types-BJaGPLeb.js';
2
- export { p as OriginalZodObject, x as TupleZodResolve, u as UnboxedZodObjectSchema, z as UnionZodResolve, q as ZodCatchall, v as ZodIdiomaticSchema, p as ZodObject, s as ZodObjectShape, r as ZodOuterArray, C as ZodRecordKey, B as ZodResolve, t as ZodSchemaTranslate, w as ZodTupleContainer, y as ZodUnionContainer } from '../../schema.types-BJaGPLeb.js';
1
+ import { Z as ZodSchemaValidator } from '../../schema.types-CDVoqb4z.js';
2
+ export { p as OriginalZodObject, x as TupleZodResolve, u as UnboxedZodObjectSchema, z as UnionZodResolve, q as ZodCatchall, v as ZodIdiomaticSchema, p as ZodObject, s as ZodObjectShape, r as ZodOuterArray, C as ZodRecordKey, B as ZodResolve, t as ZodSchemaTranslate, w as ZodTupleContainer, y as ZodUnionContainer } from '../../schema.types-CDVoqb4z.js';
3
3
  export { ZodArray, ZodEffects, ZodLiteral, ZodNever, ZodPipeline, ZodRawShape, ZodType, ZodTypeAny, ZodUnknown } from 'zod';
4
4
  import '@forklaunch/common';
5
5
  import 'openapi3-ts/oas31';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/validator",
3
- "version": "0.6.13",
3
+ "version": "0.6.15",
4
4
  "description": "Schema validator for ForkLaunch components.",
5
5
  "homepage": "https://github.com/forklaunch/forklaunch-js#readme",
6
6
  "bugs": {
@@ -59,26 +59,26 @@
59
59
  ],
60
60
  "dependencies": {
61
61
  "@anatine/zod-openapi": "^2.2.8",
62
- "@sinclair/typebox": "^0.34.33",
63
- "zod": "^3.25.63",
64
- "@forklaunch/common": "0.3.11"
62
+ "@sinclair/typebox": "^0.34.35",
63
+ "zod": "^3.25.67",
64
+ "@forklaunch/common": "0.3.13"
65
65
  },
66
66
  "devDependencies": {
67
- "@eslint/js": "^9.28.0",
68
- "@types/jest": "^29.5.14",
69
- "@types/node": "^24.0.1",
70
- "@typescript/native-preview": "7.0.0-dev.20250611.1",
71
- "@vitest/coverage-v8": "^3.2.3",
67
+ "@eslint/js": "^9.29.0",
68
+ "@types/jest": "^30.0.0",
69
+ "@types/node": "^24.0.3",
70
+ "@typescript/native-preview": "7.0.0-dev.20250619.1",
71
+ "@vitest/coverage-v8": "^3.2.4",
72
72
  "eslint-config-prettier": "^10.1.5",
73
- "eslint-plugin-prettier": "^5.4.1",
73
+ "eslint-plugin-prettier": "^5.5.0",
74
74
  "globals": "^16.2.0",
75
- "jest": "^30.0.0",
75
+ "jest": "^30.0.2",
76
76
  "openapi3-ts": "^4.4.0",
77
77
  "ts-jest": "^29.4.0",
78
78
  "ts-node": "^10.9.2",
79
79
  "tsup": "^8.5.0",
80
80
  "typedoc": "^0.28.5",
81
- "typescript-eslint": "^8.34.0"
81
+ "typescript-eslint": "^8.34.1"
82
82
  },
83
83
  "scripts": {
84
84
  "build": "tsc --noEmit && tsup index.ts src/typebox/index.ts src/zod/index.ts __test__/utils/mockSchemaValidator.ts --format cjs,esm --no-splitting --tsconfig tsconfig.json --outDir lib --dts --clean",