Skip to content

Commit c3a86d6

Browse files
committed
publish: bump version to v10.4.3
1 parent 6bcb6e9 commit c3a86d6

File tree

6 files changed

+14
-16
lines changed

6 files changed

+14
-16
lines changed

dist/index.d.mts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
import { createRequire } from "node:module";
2-
3-
//#region rolldown:runtime
4-
//#endregion
51
//#region src/Keyword.d.ts
62
type ValidationPath = {
73
pointer: string;
@@ -213,6 +209,8 @@ declare const errors: {
213209
"unknown-property-error": string;
214210
"value-not-empty-error": string;
215211
};
212+
//#endregion
213+
//#region src/getNode.d.ts
216214
declare function getNode(pointer: string, data: unknown, options: {
217215
withSchemaWarning: true;
218216
} & GetNodeOptions): NodeOrError;
@@ -395,7 +393,7 @@ declare const SchemaNodeMethods: {
395393
* @returns SchemaNode representing the passed JSON Schema
396394
*/
397395
readonly compileSchema: (schema: JsonSchema, evaluationPath?: string, schemaLocation?: string, dynamicId?: string) => SchemaNode;
398-
readonly createError: <T$1 extends string = "additional-items-error" | "additional-properties-error" | "all-of-error" | "any-of-error" | "const-error" | "contains-any-error" | "contains-array-error" | "contains-error" | "contains-min-error" | "contains-max-error" | "enum-error" | "exclusive-maximum-error" | "exclusive-minimum-error" | "forbidden-property-error" | "format-date-error" | "format-date-time-error" | "format-duration-error" | "format-email-error" | "format-hostname-error" | "format-ipv4-error" | "format-ipv4-leading-zero-error" | "format-ipv6-error" | "format-ipv6-leading-zero-error" | "format-json-pointer-error" | "format-regex-error" | "format-time-error" | "format-uri-error" | "format-uri-reference-error" | "format-uri-template-error" | "format-url-error" | "format-uuid-error" | "invalid-data-error" | "invalid-property-name-error" | "maximum-error" | "max-items-error" | "max-length-error" | "max-properties-error" | "minimum-error" | "min-items-error" | "min-items-one-error" | "min-length-error" | "min-length-one-error" | "missing-one-of-declarator-error" | "min-properties-error" | "missing-array-item-error" | "missing-dependency-error" | "missing-one-of-property-error" | "multiple-of-error" | "multiple-one-of-error" | "no-additional-properties-error" | "not-error" | "one-of-error" | "one-of-property-error" | "pattern-error" | "pattern-properties-error" | "required-property-error" | "schema-warning" | "type-error" | "undefined-value-error" | "unevaluated-property-error" | "unevaluated-items-error" | "unique-items-error" | "unknown-property-error" | "value-not-empty-error">(code: T$1, data: ErrorData, message?: string) => JsonError;
396+
readonly createError: <T extends string = "additional-items-error" | "additional-properties-error" | "all-of-error" | "any-of-error" | "const-error" | "contains-any-error" | "contains-array-error" | "contains-error" | "contains-min-error" | "contains-max-error" | "enum-error" | "exclusive-maximum-error" | "exclusive-minimum-error" | "forbidden-property-error" | "format-date-error" | "format-date-time-error" | "format-duration-error" | "format-email-error" | "format-hostname-error" | "format-ipv4-error" | "format-ipv4-leading-zero-error" | "format-ipv6-error" | "format-ipv6-leading-zero-error" | "format-json-pointer-error" | "format-regex-error" | "format-time-error" | "format-uri-error" | "format-uri-reference-error" | "format-uri-template-error" | "format-url-error" | "format-uuid-error" | "invalid-data-error" | "invalid-property-name-error" | "maximum-error" | "max-items-error" | "max-length-error" | "max-properties-error" | "minimum-error" | "min-items-error" | "min-items-one-error" | "min-length-error" | "min-length-one-error" | "missing-one-of-declarator-error" | "min-properties-error" | "missing-array-item-error" | "missing-dependency-error" | "missing-one-of-property-error" | "multiple-of-error" | "multiple-one-of-error" | "no-additional-properties-error" | "not-error" | "one-of-error" | "one-of-property-error" | "pattern-error" | "pattern-properties-error" | "required-property-error" | "schema-warning" | "type-error" | "undefined-value-error" | "unevaluated-property-error" | "unevaluated-items-error" | "unique-items-error" | "unknown-property-error" | "value-not-empty-error">(code: T, data: ErrorData, message?: string) => JsonError;
399397
readonly createSchema: typeof createSchema;
400398
readonly getChildSelection: (property: string | number) => JsonError | SchemaNode[];
401399
readonly getNode: typeof getNode;
@@ -437,7 +435,7 @@ declare const SchemaNodeMethods: {
437435
/**
438436
* @returns a list of values (including objects and arrays) and their corresponding JSON Schema as SchemaNode
439437
*/
440-
readonly toDataNodes: (data: unknown, pointer?: string) => import_dist.DataNode[];
438+
readonly toDataNodes: (data: unknown, pointer?: string) => DataNode[];
441439
readonly toJSON: () => any;
442440
};
443441
//#endregion
@@ -462,18 +460,18 @@ type NodeOrError = {
462460
node: undefined;
463461
error: JsonError;
464462
};
465-
type ErrorData<T$1 extends Record<string, unknown> = {
463+
type ErrorData<T extends Record<string, unknown> = {
466464
[p: string]: unknown;
467-
}> = T$1 & {
465+
}> = T & {
468466
pointer: string;
469467
schema: JsonSchema;
470468
value: unknown;
471469
};
472-
type JsonError<T$1 extends ErrorData = ErrorData> = {
470+
type JsonError<T extends ErrorData = ErrorData> = {
473471
type: "error";
474472
code: ErrorConfig | string;
475473
message: string;
476-
data: T$1;
474+
data: T;
477475
[p: string]: unknown;
478476
};
479477
/**
@@ -635,7 +633,7 @@ declare function getTypeOf(value: unknown): JSType;
635633
declare function mergeNode(a: SchemaNode, b?: SchemaNode, ...omit: string[]): SchemaNode | undefined;
636634
//#endregion
637635
//#region src/utils/mergeSchema.d.ts
638-
declare function mergeSchema<T$1 extends JsonSchema>(a: T$1, b: T$1, ...omit: string[]): T$1;
636+
declare function mergeSchema<T extends JsonSchema>(a: T, b: T, ...omit: string[]): T;
639637
//#endregion
640638
//#region src/utils/getSchemaType.d.ts
641639
declare const SCHEMA_TYPES: string[];

dist/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ declare const SchemaNodeMethods: {
435435
/**
436436
* @returns a list of values (including objects and arrays) and their corresponding JSON Schema as SchemaNode
437437
*/
438-
readonly toDataNodes: (data: unknown, pointer?: string) => void 0[];
438+
readonly toDataNodes: (data: unknown, pointer?: string) => DataNode[];
439439
readonly toJSON: () => any;
440440
};
441441
//#endregion

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/jlib.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json-schema-library",
3-
"version": "10.4.2",
3+
"version": "10.4.3",
44
"description": "Customizable and hackable json-validator and json-schema utilities for traversal, data generation and validation",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",

0 commit comments

Comments
 (0)