Upgrading valibot 0.16 to 0.17
Unknown0.16.0 โ 0.17.1
Fetching 2 releases from GitHubโฆ0 / 2
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- changed:
function array<TArrayItem extends BaseSchema>(item: TArrayItem, error?: string, pipe?: Pipe<Output<TArrayItem>[]>): ArraySchema<TArrayItem> โ function array<TArrayItem extends BaseSchema>(item: TArrayItem, error?: ErrorMessage, pipe?: Pipe<Output<TArrayItem>[]>): ArraySchema<TArrayItem> - changed:
function arrayAsync<TArrayItem extends BaseSchema | BaseSchemaAsync>(item: TArrayItem, error?: string, pipe?: PipeAsync<Output<TArrayItem>[]>): ArraySchemaAsync<TArrayItem> โ function arrayAsync<TArrayItem extends BaseSchema | BaseSchemaAsync>(item: TArrayItem, error?: ErrorMessage, pipe?: PipeAsync<Output<TArrayItem>[]>): ArraySchemaAsync<TArrayItem> - changed:
function bigint(error?: string, pipe?: Pipe<bigint>): BigintSchema โ function bigint(error?: ErrorMessage, pipe?: Pipe<bigint>): BigintSchema - changed:
function bigintAsync(error?: string, pipe?: PipeAsync<bigint>): BigintSchemaAsync โ function bigintAsync(error?: ErrorMessage, pipe?: PipeAsync<bigint>): BigintSchemaAsync - changed:
function blob(error?: string, pipe?: Pipe<Blob>): BlobSchema โ function blob(error?: ErrorMessage, pipe?: Pipe<Blob>): BlobSchema - changed:
function blobAsync(error?: string, pipe?: PipeAsync<Blob>): BlobSchemaAsync โ function blobAsync(error?: ErrorMessage, pipe?: PipeAsync<Blob>): BlobSchemaAsync - changed:
function boolean(error?: string, pipe?: Pipe<boolean>): BooleanSchema โ function boolean(error?: ErrorMessage, pipe?: Pipe<boolean>): BooleanSchema - changed:
function booleanAsync(error?: string, pipe?: PipeAsync<boolean>): BooleanSchemaAsync โ function booleanAsync(error?: ErrorMessage, pipe?: PipeAsync<boolean>): BooleanSchemaAsync - changed:
function bytes<TInput extends string>(requirement: number, error?: string): (input: TInput) => PipeResult<TInput> โ function bytes<TInput extends string>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function cuid2<TInput extends string>(error?: string): (input: TInput) => PipeResult<TInput> โ function cuid2<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function custom<TInput>(requirement: (input: TInput) => boolean, error?: string): (input: TInput) => PipeResult<TInput> โ function custom<TInput>(requirement: (input: TInput) => boolean, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function customAsync<TInput>(requirement: (input: TInput) => Promise<boolean>, error?: string): (input: TInput) => Promise<PipeResult<TInput>> โ function customAsync<TInput>(requirement: (input: TInput) => Promise<boolean>, error?: ErrorMessage): (input: TInput) => Promise<PipeResult<TInput>> - changed:
function date(error?: string, pipe?: Pipe<Date>): DateSchema โ function date(error?: ErrorMessage, pipe?: Pipe<Date>): DateSchema - changed:
function dateAsync(error?: string, pipe?: PipeAsync<Date>): DateSchemaAsync โ function dateAsync(error?: ErrorMessage, pipe?: PipeAsync<Date>): DateSchemaAsync - changed:
function email<TInput extends string>(error?: string): (input: TInput) => PipeResult<TInput> โ function email<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function emoji<TInput extends string>(error?: string): (input: TInput) => PipeResult<TInput> โ function emoji<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function endsWith<TInput extends string>(requirement: string, error?: string): (input: TInput) => PipeResult<TInput> โ function endsWith<TInput extends string>(requirement: string, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function enumType<TOption extends string, TEnum extends Enum<TOption>>(enumValue: TEnum, error?: string): EnumSchema<TEnum> โ function enumType<TOption extends string, TEnum extends Enum<TOption>>(enumValue: TEnum, error?: ErrorMessage): EnumSchema<TEnum> - changed:
function enumTypeAsync<TOption extends string, TEnum extends Enum<TOption>>(enumValue: TEnum, error?: string): EnumSchemaAsync<TEnum> โ function enumTypeAsync<TOption extends string, TEnum extends Enum<TOption>>(enumValue: TEnum, error?: ErrorMessage): EnumSchemaAsync<TEnum> - changed:
function equal<TInput extends string | number | bigint | boolean, TRequirement extends TInput>(requirement: TRequirement, error?: string): (input: TInput) => PipeResult<TInput> โ function equal<TInput extends string | number | bigint | boolean, TRequirement extends TInput>(requirement: TRequirement, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function excludes<TInput extends TItem[], TItem>(requirement: TItem, error?: string): (input: TInput) => PipeResult<TInput> โ function excludes<TInput extends TItem[], TItem>(requirement: TItem, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function excludes<TInput extends string>(requirement: string, error?: string): (input: TInput) => PipeResult<TInput> โ function excludes<TInput extends string>(requirement: string, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function finite<TInput extends number>(error?: string): (input: TInput) => PipeResult<TInput> โ function finite<TInput extends number>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function getDefaultArgs<TPipe extends Pipe<any> | PipeAsync<any>>(arg1: string | TPipe | undefined, arg2: TPipe | undefined): [string | undefined, TPipe | undefined] โ function getDefaultArgs<TPipe extends Pipe<any> | PipeAsync<any>>(arg1: ErrorMessage | TPipe | undefined, arg2: TPipe | undefined): [ErrorMessage | undefined, TPipe | undefined] - changed:
function getPipeIssues(validation: string, message: string, input: unknown): { issues: Pick<Issue, 'validation' | 'message' | 'input' | 'path'>[] } โ function getPipeIssues(validation: string, error: ErrorMessage, input: unknown): { issues: Pick<Issue, 'validation' | 'message' | 'input' | 'path'>[] } - changed:
function getSchemaIssues(info: ParseInfo | undefined, reason: IssueReason, validation: string, message: string, input: unknown, issues?: Issues): { issues: Issues } โ function getSchemaIssues(info: ParseInfo | undefined, reason: IssueReason, validation: string, error: ErrorMessage, input: unknown, issues?: Issues): { issues: Issues } - changed:
function imei<TInput extends string>(error?: string): (input: TInput) => PipeResult<TInput> โ function imei<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function includes<TInput extends TItem[], TItem>(requirement: TItem, error?: string): (input: TInput) => PipeResult<TInput> โ function includes<TInput extends TItem[], TItem>(requirement: TItem, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function includes<TInput extends string>(requirement: string, error?: string): (input: TInput) => PipeResult<TInput> โ function includes<TInput extends string>(requirement: string, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function instance<TClass extends Class>(of: TClass, error?: string, pipe?: Pipe<InstanceType<TClass>>): InstanceSchema<TClass> โ function instance<TClass extends Class>(of: TClass, error?: ErrorMessage, pipe?: Pipe<InstanceType<TClass>>): InstanceSchema<TClass> - changed:
function instanceAsync<TClass extends Class>(of: TClass, error?: string, pipe?: PipeAsync<InstanceType<TClass>>): InstanceSchemaAsync<TClass> โ function instanceAsync<TClass extends Class>(of: TClass, error?: ErrorMessage, pipe?: PipeAsync<InstanceType<TClass>>): InstanceSchemaAsync<TClass> - changed:
function integer<TInput extends number>(error?: string): (input: TInput) => PipeResult<TInput> โ function integer<TInput extends number>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function ip<TInput extends string>(error?: string): (input: TInput) => PipeResult<TInput> โ function ip<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function ipv4<TInput extends string>(error?: string): (input: TInput) => PipeResult<TInput> โ function ipv4<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function ipv6<TInput extends string>(error?: string): (input: TInput) => PipeResult<TInput> โ function ipv6<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function isoDate<TInput extends string>(error?: string): (input: TInput) => PipeResult<TInput> โ function isoDate<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function isoDateTime<TInput extends string>(error?: string): (input: TInput) => PipeResult<TInput> โ function isoDateTime<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function isoTime<TInput extends string>(error?: string): (input: TInput) => PipeResult<TInput> โ function isoTime<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function isoTimeSecond<TInput extends string>(error?: string): (input: TInput) => PipeResult<TInput> โ function isoTimeSecond<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function isoTimestamp<TInput extends string>(error?: string): (input: TInput) => PipeResult<TInput> โ function isoTimestamp<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function isoWeek<TInput extends string>(error?: string): (input: TInput) => PipeResult<TInput> โ function isoWeek<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function length<TInput extends string | any[]>(requirement: number, error?: string): (input: TInput) => PipeResult<TInput> โ function length<TInput extends string | any[]>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function literal<TLiteral extends Literal>(literal: TLiteral, error?: string): LiteralSchema<TLiteral> โ function literal<TLiteral extends Literal>(literal: TLiteral, error?: ErrorMessage): LiteralSchema<TLiteral> - changed:
function literalAsync<TLiteral extends Literal>(literal: TLiteral, error?: string): LiteralSchemaAsync<TLiteral> โ function literalAsync<TLiteral extends Literal>(literal: TLiteral, error?: ErrorMessage): LiteralSchemaAsync<TLiteral> - changed:
function map<TMapKey extends BaseSchema, TMapValue extends BaseSchema>(key: TMapKey, value: TMapValue, error?: string, pipe?: Pipe<MapOutput<TMapKey, TMapValue>>): MapSchema<TMapKey, TMapValue> โ function map<TMapKey extends BaseSchema, TMapValue extends BaseSchema>(key: TMapKey, value: TMapValue, error?: ErrorMessage, pipe?: Pipe<MapOutput<TMapKey, TMapValue>>): MapSchema<TMapKey, TMapValue> - changed:
function mapAsync<TMapKey extends BaseSchema | BaseSchemaAsync, TMapValue extends BaseSchema | BaseSchemaAsync>(key: TMapKey, value: TMapValue, error?: string, pipe?: PipeAsync<MapOutput<TMapKey, TMapValue>>): MapSchemaAsync<TMapKey, TMapValue> โ function mapAsync<TMapKey extends BaseSchema | BaseSchemaAsync, TMapValue extends BaseSchema | BaseSchemaAsync>(key: TMapKey, value: TMapValue, error?: ErrorMessage, pipe?: PipeAsync<MapOutput<TMapKey, TMapValue>>): MapSchemaAsync<TMapKey, TMapValue> - changed:
function maxBytes<TInput extends string>(requirement: number, error?: string): (input: TInput) => PipeResult<TInput> โ function maxBytes<TInput extends string>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function maxLength<TInput extends string | any[]>(requirement: number, error?: string): (input: TInput) => PipeResult<TInput> โ function maxLength<TInput extends string | any[]>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function maxSize<TInput extends Map<any, any> | Set<any> | Blob>(requirement: number, error?: string): (input: TInput) => PipeResult<TInput> โ function maxSize<TInput extends Map<any, any> | Set<any> | Blob>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function maxValue<TInput extends string | number | bigint | Date, TRequirement extends TInput>(requirement: TRequirement, error?: string): (input: TInput) => PipeResult<TInput> โ function maxValue<TInput extends string | number | bigint | Date, TRequirement extends TInput>(requirement: TRequirement, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function merge<TObjectSchemas extends ObjectSchemas$1>(schemas: TObjectSchemas, error?: string, pipe?: Pipe<ObjectOutput<MergeSchemaObjects<TObjectSchemas>>>): ObjectSchema<MergeSchemaObjects<TObjectSchemas>> โ function merge<TObjectSchemas extends ObjectSchemas$1>(schemas: TObjectSchemas, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<MergeSchemaObjects<TObjectSchemas>>>): ObjectSchema<MergeSchemaObjects<TObjectSchemas>> - changed:
function mergeAsync<TObjectSchemas extends ObjectSchemas>(schemas: TObjectSchemas, error?: string, pipe?: PipeAsync<ObjectOutput<MergeSchemaObjects<TObjectSchemas>>>): ObjectSchemaAsync<MergeSchemaObjects<TObjectSchemas>> โ function mergeAsync<TObjectSchemas extends ObjectSchemas>(schemas: TObjectSchemas, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<MergeSchemaObjects<TObjectSchemas>>>): ObjectSchemaAsync<MergeSchemaObjects<TObjectSchemas>> - changed:
function mimeType<TInput extends Blob>(requirement: `${string}/${string}`[], error?: string): (input: TInput) => PipeResult<TInput> โ function mimeType<TInput extends Blob>(requirement: `${string}/${string}`[], error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function minBytes<TInput extends string>(requirement: number, error?: string): (input: TInput) => PipeResult<TInput> โ function minBytes<TInput extends string>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function minLength<TInput extends string | any[]>(requirement: number, error?: string): (input: TInput) => PipeResult<TInput> โ function minLength<TInput extends string | any[]>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function minSize<TInput extends Map<any, any> | Set<any> | Blob>(requirement: number, error?: string): (input: TInput) => PipeResult<TInput> โ function minSize<TInput extends Map<any, any> | Set<any> | Blob>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function minValue<TInput extends string | number | bigint | Date, TRequirement extends TInput>(requirement: TRequirement, error?: string): (input: TInput) => PipeResult<TInput> โ function minValue<TInput extends string | number | bigint | Date, TRequirement extends TInput>(requirement: TRequirement, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function multipleOf<TInput extends number>(requirement: number, error?: string): (input: TInput) => PipeResult<TInput> โ function multipleOf<TInput extends number>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function nan(error?: string): NanSchema โ function nan(error?: ErrorMessage): NanSchema - changed:
function nanAsync(error?: string): NanSchemaAsync โ function nanAsync(error?: ErrorMessage): NanSchemaAsync - changed:
function nativeEnum<TNativeEnum extends NativeEnum>(nativeEnum: TNativeEnum, error?: string): NativeEnumSchema<TNativeEnum> โ function nativeEnum<TNativeEnum extends NativeEnum>(nativeEnum: TNativeEnum, error?: ErrorMessage): NativeEnumSchema<TNativeEnum> - changed:
function nativeEnumAsync<TNativeEnum extends NativeEnum>(nativeEnum: TNativeEnum, error?: string): NativeEnumSchemaAsync<TNativeEnum> โ function nativeEnumAsync<TNativeEnum extends NativeEnum>(nativeEnum: TNativeEnum, error?: ErrorMessage): NativeEnumSchemaAsync<TNativeEnum> - changed:
function never(error?: string): NeverSchema โ function never(error?: ErrorMessage): NeverSchema - changed:
function neverAsync(error?: string): NeverSchemaAsync โ function neverAsync(error?: ErrorMessage): NeverSchemaAsync - changed:
function nonNullable<TWrapped extends BaseSchema>(wrapped: TWrapped, error?: string): NonNullableSchema<TWrapped> โ function nonNullable<TWrapped extends BaseSchema>(wrapped: TWrapped, error?: ErrorMessage): NonNullableSchema<TWrapped> - changed:
function nonNullableAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped, error?: string): NonNullableSchemaAsync<TWrapped> โ function nonNullableAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped, error?: ErrorMessage): NonNullableSchemaAsync<TWrapped> - changed:
function nonNullish<TWrapped extends BaseSchema>(wrapped: TWrapped, error?: string): NonNullishSchema<TWrapped> โ function nonNullish<TWrapped extends BaseSchema>(wrapped: TWrapped, error?: ErrorMessage): NonNullishSchema<TWrapped> - changed:
function nonNullishAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped, error?: string): NonNullishSchemaAsync<TWrapped> โ function nonNullishAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped, error?: ErrorMessage): NonNullishSchemaAsync<TWrapped> - changed:
function nonOptional<TWrapped extends BaseSchema>(wrapped: TWrapped, error?: string): NonOptionalSchema<TWrapped> โ function nonOptional<TWrapped extends BaseSchema>(wrapped: TWrapped, error?: ErrorMessage): NonOptionalSchema<TWrapped> - changed:
function nonOptionalAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped, error?: string): NonOptionalSchemaAsync<TWrapped> โ function nonOptionalAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped, error?: ErrorMessage): NonOptionalSchemaAsync<TWrapped> - changed:
function nullType(error?: string): NullSchema โ function nullType(error?: ErrorMessage): NullSchema - changed:
function nullTypeAsync(error?: string): NullSchemaAsync โ function nullTypeAsync(error?: ErrorMessage): NullSchemaAsync - changed:
function number(error?: string, pipe?: Pipe<number>): NumberSchema โ function number(error?: ErrorMessage, pipe?: Pipe<number>): NumberSchema - changed:
function numberAsync(error?: string, pipe?: PipeAsync<number>): NumberSchemaAsync โ function numberAsync(error?: ErrorMessage, pipe?: PipeAsync<number>): NumberSchemaAsync - changed:
function object<TObjectShape extends ObjectShape>(object: TObjectShape, error?: string, pipe?: Pipe<ObjectOutput<TObjectShape>>): ObjectSchema<TObjectShape> โ function object<TObjectShape extends ObjectShape>(object: TObjectShape, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<TObjectShape>>): ObjectSchema<TObjectShape> - changed:
function objectAsync<TObjectShape extends ObjectShapeAsync>(object: TObjectShape, error?: string, pipe?: PipeAsync<ObjectOutput<TObjectShape>>): ObjectSchemaAsync<TObjectShape> โ function objectAsync<TObjectShape extends ObjectShapeAsync>(object: TObjectShape, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<TObjectShape>>): ObjectSchemaAsync<TObjectShape> - changed:
function omit<TObjectSchema extends ObjectSchema<any>, TKeys extends ObjectKeys<TObjectSchema>>(schema: TObjectSchema, keys: TKeys, error?: string, pipe?: Pipe<ObjectOutput<Omit<TObjectSchema['object'], TKeys[number]>>>): ObjectSchema<Omit<TObjectSchema['object'], TKeys[number]>> โ function omit<TObjectSchema extends ObjectSchema<any>, TKeys extends ObjectKeys<TObjectSchema>>(schema: TObjectSchema, keys: TKeys, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<Omit<TObjectSchema['object'], TKeys[number]>>>): ObjectSchema<Omit<TObjectSchema['object'], TKeys[number]>> - changed:
function omitAsync<TObjectSchema extends ObjectSchema<any> | ObjectSchemaAsync<any>, TKeys extends ObjectKeys<TObjectSchema>>(schema: TObjectSchema, keys: TKeys, error?: string, pipe?: PipeAsync<ObjectOutput<Omit<TObjectSchema['object'], TKeys[number]>>>): ObjectSchemaAsync<Omit<TObjectSchema['object'], TKeys[number]>> โ function omitAsync<TObjectSchema extends ObjectSchema<any> | ObjectSchemaAsync<any>, TKeys extends ObjectKeys<TObjectSchema>>(schema: TObjectSchema, keys: TKeys, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<Omit<TObjectSchema['object'], TKeys[number]>>>): ObjectSchemaAsync<Omit<TObjectSchema['object'], TKeys[number]>> - changed:
function parse<TSchema extends BaseSchema>(schema: TSchema, input: unknown, info?: Pick<ParseInfo, 'abortEarly' | 'abortPipeEarly'>): Output<TSchema> โ function parse<TSchema extends BaseSchema>(schema: TSchema, input: unknown, info?: Pick<ParseInfo, 'abortEarly' | 'abortPipeEarly' | 'skipPipe'>): Output<TSchema> - changed:
function parseAsync<TSchema extends BaseSchema | BaseSchemaAsync>(schema: TSchema, input: unknown, info?: Pick<ParseInfo, 'abortEarly' | 'abortPipeEarly'>): Promise<Output<TSchema>> โ function parseAsync<TSchema extends BaseSchema | BaseSchemaAsync>(schema: TSchema, input: unknown, info?: Pick<ParseInfo, 'abortEarly' | 'abortPipeEarly' | 'skipPipe'>): Promise<Output<TSchema>> - changed:
function partial<TObjectSchema extends ObjectSchema<any>>(schema: TObjectSchema, error?: string, pipe?: Pipe<ObjectOutput<Partial$2<TObjectSchema['object']>>>): ObjectSchema<Partial$2<TObjectSchema['object']>> โ function partial<TObjectSchema extends ObjectSchema<any>>(schema: TObjectSchema, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<Partial$2<TObjectSchema['object']>>>): ObjectSchema<Partial$2<TObjectSchema['object']>> - changed:
function partialAsync<TObjectSchema extends ObjectSchema<any> | ObjectSchemaAsync<any>>(schema: TObjectSchema, error?: string, pipe?: PipeAsync<ObjectOutput<Partial$1<TObjectSchema['object']>>>): ObjectSchemaAsync<Partial$1<TObjectSchema['object']>> โ function partialAsync<TObjectSchema extends ObjectSchema<any> | ObjectSchemaAsync<any>>(schema: TObjectSchema, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<Partial$1<TObjectSchema['object']>>>): ObjectSchemaAsync<Partial$1<TObjectSchema['object']>> - changed:
function pick<TObjectSchema extends ObjectSchema<any>, TKeys extends (keyof TObjectSchema['object'])[]>(schema: TObjectSchema, keys: TKeys, error?: string, pipe?: Pipe<ObjectOutput<Pick<TObjectSchema['object'], TKeys[number]>>>): ObjectSchema<Pick<TObjectSchema['object'], TKeys[number]>> โ function pick<TObjectSchema extends ObjectSchema<any>, TKeys extends (keyof TObjectSchema['object'])[]>(schema: TObjectSchema, keys: TKeys, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<Pick<TObjectSchema['object'], TKeys[number]>>>): ObjectSchema<Pick<TObjectSchema['object'], TKeys[number]>> - changed:
function pickAsync<TObjectSchema extends ObjectSchema<any> | ObjectSchemaAsync<any>, TKeys extends (keyof TObjectSchema['object'])[]>(schema: TObjectSchema, keys: TKeys, error?: string, pipe?: PipeAsync<ObjectOutput<Pick<TObjectSchema['object'], TKeys[number]>>>): ObjectSchemaAsync<Pick<TObjectSchema['object'], TKeys[number]>> โ function pickAsync<TObjectSchema extends ObjectSchema<any> | ObjectSchemaAsync<any>, TKeys extends (keyof TObjectSchema['object'])[]>(schema: TObjectSchema, keys: TKeys, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<Pick<TObjectSchema['object'], TKeys[number]>>>): ObjectSchemaAsync<Pick<TObjectSchema['object'], TKeys[number]>> - changed:
function record<TRecordKey extends RecordKey, TRecordValue extends BaseSchema>(key: TRecordKey, value: TRecordValue, error?: string, pipe?: Pipe<RecordOutput<TRecordKey, TRecordValue>>): RecordSchema<TRecordValue, TRecordKey> โ function record<TRecordKey extends RecordKey, TRecordValue extends BaseSchema>(key: TRecordKey, value: TRecordValue, error?: ErrorMessage, pipe?: Pipe<RecordOutput<TRecordKey, TRecordValue>>): RecordSchema<TRecordValue, TRecordKey> - changed:
function record<TRecordValue extends BaseSchema>(value: TRecordValue, error?: string, pipe?: Pipe<RecordOutput<StringSchema, TRecordValue>>): RecordSchema<TRecordValue> โ function record<TRecordValue extends BaseSchema>(value: TRecordValue, error?: ErrorMessage, pipe?: Pipe<RecordOutput<StringSchema, TRecordValue>>): RecordSchema<TRecordValue> - changed:
function recordAsync<TRecordKey extends RecordKeyAsync, TRecordValue extends BaseSchema | BaseSchemaAsync>(key: TRecordKey, value: TRecordValue, error?: string, pipe?: PipeAsync<RecordOutput<TRecordKey, TRecordValue>>): RecordSchemaAsync<TRecordValue, TRecordKey> โ function recordAsync<TRecordKey extends RecordKeyAsync, TRecordValue extends BaseSchema | BaseSchemaAsync>(key: TRecordKey, value: TRecordValue, error?: ErrorMessage, pipe?: PipeAsync<RecordOutput<TRecordKey, TRecordValue>>): RecordSchemaAsync<TRecordValue, TRecordKey> - changed:
function recordAsync<TRecordValue extends BaseSchema | BaseSchemaAsync>(value: TRecordValue, error?: string, pipe?: PipeAsync<RecordOutput<StringSchema, TRecordValue>>): RecordSchemaAsync<TRecordValue> โ function recordAsync<TRecordValue extends BaseSchema | BaseSchemaAsync>(value: TRecordValue, error?: ErrorMessage, pipe?: PipeAsync<RecordOutput<StringSchema, TRecordValue>>): RecordSchemaAsync<TRecordValue> - changed:
function regex<TInput extends string>(requirement: RegExp, error?: string): (input: TInput) => PipeResult<TInput> โ function regex<TInput extends string>(requirement: RegExp, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function required<TObjectSchema extends ObjectSchema<any>>(schema: TObjectSchema, error?: string, pipe?: Pipe<ObjectOutput<Required$1<TObjectSchema['object']>>>): ObjectSchema<Required$1<TObjectSchema['object']>> โ function required<TObjectSchema extends ObjectSchema<any>>(schema: TObjectSchema, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<Required$1<TObjectSchema['object']>>>): ObjectSchema<Required$1<TObjectSchema['object']>> - changed:
function requiredAsync<TObjectSchema extends ObjectSchema<any> | ObjectSchemaAsync<any>>(schema: TObjectSchema, error?: string, pipe?: PipeAsync<ObjectOutput<Required<TObjectSchema['object']>>>): ObjectSchemaAsync<Required<TObjectSchema['object']>> โ function requiredAsync<TObjectSchema extends ObjectSchema<any> | ObjectSchemaAsync<any>>(schema: TObjectSchema, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<Required<TObjectSchema['object']>>>): ObjectSchemaAsync<Required<TObjectSchema['object']>> - changed:
function safeInteger<TInput extends number>(error?: string): (input: TInput) => PipeResult<TInput> โ function safeInteger<TInput extends number>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function safeParse<TSchema extends BaseSchema>(schema: TSchema, input: unknown, info?: Pick<ParseInfo, 'abortEarly' | 'abortPipeEarly'>): SafeParseResult<TSchema> โ function safeParse<TSchema extends BaseSchema>(schema: TSchema, input: unknown, info?: Pick<ParseInfo, 'abortEarly' | 'abortPipeEarly' | 'skipPipe'>): SafeParseResult<TSchema> - changed:
function safeParseAsync<TSchema extends BaseSchema | BaseSchemaAsync>(schema: TSchema, input: unknown, info?: Pick<ParseInfo, 'abortEarly' | 'abortPipeEarly'>): Promise<SafeParseResult<TSchema>> โ function safeParseAsync<TSchema extends BaseSchema | BaseSchemaAsync>(schema: TSchema, input: unknown, info?: Pick<ParseInfo, 'abortEarly' | 'abortPipeEarly' | 'skipPipe'>): Promise<SafeParseResult<TSchema>> - changed:
function set<TSetValue extends BaseSchema>(value: TSetValue, error?: string, pipe?: Pipe<SetOutput<TSetValue>>): SetSchema<TSetValue> โ function set<TSetValue extends BaseSchema>(value: TSetValue, error?: ErrorMessage, pipe?: Pipe<SetOutput<TSetValue>>): SetSchema<TSetValue> - changed:
function setAsync<TSetValue extends BaseSchema | BaseSchemaAsync>(value: TSetValue, error?: string, pipe?: PipeAsync<SetOutput<TSetValue>>): SetSchemaAsync<TSetValue> โ function setAsync<TSetValue extends BaseSchema | BaseSchemaAsync>(value: TSetValue, error?: ErrorMessage, pipe?: PipeAsync<SetOutput<TSetValue>>): SetSchemaAsync<TSetValue> - changed:
function size<TInput extends Map<any, any> | Set<any> | Blob>(requirement: number, error?: string): (input: TInput) => PipeResult<TInput> โ function size<TInput extends Map<any, any> | Set<any> | Blob>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function special<TInput>(check: (input: unknown) => boolean, error?: string, pipe?: Pipe<TInput>): SpecialSchema<TInput> โ function special<TInput>(check: (input: unknown) => boolean, error?: ErrorMessage, pipe?: Pipe<TInput>): SpecialSchema<TInput> - changed:
function specialAsync<TInput>(check: (input: unknown) => boolean | Promise<boolean>, error?: string, pipe?: PipeAsync<TInput>): SpecialSchemaAsync<TInput> โ function specialAsync<TInput>(check: (input: unknown) => boolean | Promise<boolean>, error?: ErrorMessage, pipe?: PipeAsync<TInput>): SpecialSchemaAsync<TInput> - changed:
function startsWith<TInput extends string>(requirement: string, error?: string): (input: TInput) => PipeResult<TInput> โ function startsWith<TInput extends string>(requirement: string, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function strict<TSchema extends ObjectSchema<any>>(schema: TSchema, error?: string): TSchema โ function strict<TSchema extends ObjectSchema<any>>(schema: TSchema, error?: ErrorMessage): TSchema - changed:
function strictAsync<TSchema extends ObjectSchemaAsync<any>>(schema: TSchema, error?: string): TSchema โ function strictAsync<TSchema extends ObjectSchemaAsync<any>>(schema: TSchema, error?: ErrorMessage): TSchema - changed:
function string(error?: string, pipe?: Pipe<string>): StringSchema โ function string(error?: ErrorMessage, pipe?: Pipe<string>): StringSchema - changed:
function stringAsync(error?: string, pipe?: PipeAsync<string>): StringSchemaAsync โ function stringAsync(error?: ErrorMessage, pipe?: PipeAsync<string>): StringSchemaAsync - changed:
function symbol(error?: string): SymbolSchema โ function symbol(error?: ErrorMessage): SymbolSchema - changed:
function symbolAsync(error?: string): SymbolSchemaAsync โ function symbolAsync(error?: ErrorMessage): SymbolSchemaAsync - changed:
function tuple<TTupleItems extends TupleShape, TTupleRest extends BaseSchema>(items: TTupleItems, rest: TTupleRest, error?: string, pipe?: Pipe<TupleOutput<TTupleItems, TTupleRest>>): TupleSchema<TTupleItems, TTupleRest> โ function tuple<TTupleItems extends TupleShape, TTupleRest extends BaseSchema>(items: TTupleItems, rest: TTupleRest, error?: ErrorMessage, pipe?: Pipe<TupleOutput<TTupleItems, TTupleRest>>): TupleSchema<TTupleItems, TTupleRest> - changed:
function tuple<TTupleItems extends TupleShape>(items: TTupleItems, error?: string, pipe?: Pipe<TupleOutput<TTupleItems, undefined>>): TupleSchema<TTupleItems> โ function tuple<TTupleItems extends TupleShape>(items: TTupleItems, error?: ErrorMessage, pipe?: Pipe<TupleOutput<TTupleItems, undefined>>): TupleSchema<TTupleItems> - changed:
function tupleAsync<TTupleItems extends TupleShapeAsync, TTupleRest extends BaseSchema | BaseSchemaAsync | undefined>(items: TTupleItems, rest: TTupleRest, error?: string, pipe?: PipeAsync<TupleOutput<TTupleItems, TTupleRest>>): TupleSchemaAsync<TTupleItems, TTupleRest> โ function tupleAsync<TTupleItems extends TupleShapeAsync, TTupleRest extends BaseSchema | BaseSchemaAsync | undefined>(items: TTupleItems, rest: TTupleRest, error?: ErrorMessage, pipe?: PipeAsync<TupleOutput<TTupleItems, TTupleRest>>): TupleSchemaAsync<TTupleItems, TTupleRest> - changed:
function tupleAsync<TTupleItems extends TupleShapeAsync>(items: TTupleItems, error?: string, pipe?: PipeAsync<TupleOutput<TTupleItems, undefined>>): TupleSchemaAsync<TTupleItems> โ function tupleAsync<TTupleItems extends TupleShapeAsync>(items: TTupleItems, error?: ErrorMessage, pipe?: PipeAsync<TupleOutput<TTupleItems, undefined>>): TupleSchemaAsync<TTupleItems> - changed:
function ulid<TInput extends string>(error?: string): (input: TInput) => PipeResult<TInput> โ function ulid<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function undefinedType(error?: string): UndefinedSchema โ function undefinedType(error?: ErrorMessage): UndefinedSchema - changed:
function undefinedTypeAsync(error?: string): UndefinedSchemaAsync โ function undefinedTypeAsync(error?: ErrorMessage): UndefinedSchemaAsync - changed:
function union<TUnionOptions extends UnionOptions>(union: TUnionOptions, error?: string): UnionSchema<TUnionOptions> โ function union<TUnionOptions extends UnionOptions>(union: TUnionOptions, error?: ErrorMessage): UnionSchema<TUnionOptions> - changed:
function unionAsync<TUnionOptions extends UnionOptionsAsync>(union: TUnionOptions, error?: string): UnionSchemaAsync<TUnionOptions> โ function unionAsync<TUnionOptions extends UnionOptionsAsync>(union: TUnionOptions, error?: ErrorMessage): UnionSchemaAsync<TUnionOptions> - changed:
function url<TInput extends string>(error?: string): (input: TInput) => PipeResult<TInput> โ function url<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function uuid<TInput extends string>(error?: string): (input: TInput) => PipeResult<TInput> โ function uuid<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function value<TInput extends string | number | bigint, TRequirement extends TInput>(requirement: TRequirement, error?: string): (input: TInput) => PipeResult<TInput> โ function value<TInput extends string | number | bigint, TRequirement extends TInput>(requirement: TRequirement, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> - changed:
function voidType(error?: string): VoidSchema โ function voidType(error?: ErrorMessage): VoidSchema - changed:
function voidTypeAsync(error?: string): VoidSchemaAsync โ function voidTypeAsync(error?: ErrorMessage): VoidSchemaAsync - changed:
type ParseInfo = Partial<Pick<Issue, 'origin' | 'abortEarly' | 'abortPipeEarly'>> โ type ParseInfo = Partial<Pick<Issue, 'origin' | 'abortEarly' | 'abortPipeEarly' | 'skipPipe'>> - added:
const BrandSymbol: unique symbol - added:
type Brand<TBrandName extends BrandName> = { [BrandSymbol]: { [TValue in TBrandName]: TValue } } - added:
type ErrorMessage = string | (() => string)