Upgrading valibot 0.14 to 0.15
Unknown0.14.0 → 0.15.0
Fetching 1 release from GitHub…0 / 1
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 nonNullable<TWrappedSchema extends BaseSchema>(wrapped: TWrappedSchema, error?: string): NonNullableSchema<TWrappedSchema> → function nonNullable<TWrapped extends BaseSchema>(wrapped: TWrapped, error?: string): NonNullableSchema<TWrapped> - changed:
function nonNullableAsync<TWrappedSchema extends BaseSchema | BaseSchemaAsync>(wrapped: TWrappedSchema, error?: string): NonNullableSchemaAsync<TWrappedSchema> → function nonNullableAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped, error?: string): NonNullableSchemaAsync<TWrapped> - changed:
function nonNullish<TWrappedSchema extends BaseSchema>(wrapped: TWrappedSchema, error?: string): NonNullishSchema<TWrappedSchema> → function nonNullish<TWrapped extends BaseSchema>(wrapped: TWrapped, error?: string): NonNullishSchema<TWrapped> - changed:
function nonNullishAsync<TWrappedSchema extends BaseSchema | BaseSchemaAsync>(wrapped: TWrappedSchema, error?: string): NonNullishSchemaAsync<TWrappedSchema> → function nonNullishAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped, error?: string): NonNullishSchemaAsync<TWrapped> - changed:
function nonOptional<TWrappedSchema extends BaseSchema>(wrapped: TWrappedSchema, error?: string): NonOptionalSchema<TWrappedSchema> → function nonOptional<TWrapped extends BaseSchema>(wrapped: TWrapped, error?: string): NonOptionalSchema<TWrapped> - changed:
function nonOptionalAsync<TWrappedSchema extends BaseSchema | BaseSchemaAsync>(wrapped: TWrappedSchema, error?: string): NonOptionalSchemaAsync<TWrappedSchema> → function nonOptionalAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped, error?: string): NonOptionalSchemaAsync<TWrapped> - changed:
function nullable<TWrappedSchema extends BaseSchema>(wrapped: TWrappedSchema): NullableSchema<TWrappedSchema> → function nullable<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | undefined = undefined>(wrapped: TWrapped, default_?: TDefault | (() => TDefault)): NullableSchema<TWrapped, TDefault> - changed:
function nullableAsync<TWrappedSchema extends BaseSchema | BaseSchemaAsync>(wrapped: TWrappedSchema): NullableSchemaAsync<TWrappedSchema> → function nullableAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | undefined | Promise<Input<TWrapped> | undefined> = undefined>(wrapped: TWrapped, default_?: TDefault | (() => TDefault)): NullableSchemaAsync<TWrapped, TDefault> - changed:
function nullish<TWrappedSchema extends BaseSchema>(wrapped: TWrappedSchema): NullishSchema<TWrappedSchema> → function nullish<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | undefined = undefined>(wrapped: TWrapped, default_?: TDefault | (() => TDefault)): NullishSchema<TWrapped, TDefault> - changed:
function nullishAsync<TWrappedSchema extends BaseSchema | BaseSchemaAsync>(wrapped: TWrappedSchema): NullishSchemaAsync<TWrappedSchema> → function nullishAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | undefined | Promise<Input<TWrapped> | undefined> = undefined>(wrapped: TWrapped, default_?: TDefault | (() => TDefault)): NullishSchemaAsync<TWrapped, TDefault> - changed:
function optional<TWrappedSchema extends BaseSchema>(wrapped: TWrappedSchema): OptionalSchema<TWrappedSchema> → function optional<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | undefined = undefined>(wrapped: TWrapped, default_?: TDefault | (() => TDefault)): OptionalSchema<TWrapped, TDefault> - changed:
function optionalAsync<TWrappedSchema extends BaseSchema | BaseSchemaAsync>(wrapped: TWrappedSchema): OptionalSchemaAsync<TWrappedSchema> → function optionalAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | undefined | Promise<Input<TWrapped> | undefined> = undefined>(wrapped: TWrapped, default_?: TDefault | (() => TDefault)): OptionalSchemaAsync<TWrapped, TDefault> - changed:
type NonNullableSchema<TWrappedSchema extends BaseSchema, TOutput = NonNullable$1<Output<TWrappedSchema>>> = BaseSchema<NonNullable$1<Input<TWrappedSchema>>, TOutput> & { schema: 'non_nullable'; wrapped: TWrappedSchema } → type NonNullableSchema<TWrapped extends BaseSchema, TOutput = NonNullable$1<Output<TWrapped>>> = BaseSchema<NonNullable$1<Input<TWrapped>>, TOutput> & { schema: 'non_nullable'; wrapped: TWrapped } - changed:
type NonNullableSchemaAsync<TWrappedSchema extends BaseSchema | BaseSchemaAsync, TOutput = NonNullable$1<Output<TWrappedSchema>>> = BaseSchemaAsync<NonNullable$1<Input<TWrappedSchema>>, TOutput> & { schema: 'non_nullable'; wrapped: TWrappedSchema } → type NonNullableSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TOutput = NonNullable$1<Output<TWrapped>>> = BaseSchemaAsync<NonNullable$1<Input<TWrapped>>, TOutput> & { schema: 'non_nullable'; wrapped: TWrapped } - changed:
type NonNullishSchema<TWrappedSchema extends BaseSchema, TOutput = NonNullish<Output<TWrappedSchema>>> = BaseSchema<NonNullish<Input<TWrappedSchema>>, TOutput> & { schema: 'non_nullish'; wrapped: TWrappedSchema } → type NonNullishSchema<TWrapped extends BaseSchema, TOutput = NonNullish<Output<TWrapped>>> = BaseSchema<NonNullish<Input<TWrapped>>, TOutput> & { schema: 'non_nullish'; wrapped: TWrapped } - changed:
type NonNullishSchemaAsync<TWrappedSchema extends BaseSchema | BaseSchemaAsync, TOutput = NonNullish<Output<TWrappedSchema>>> = BaseSchemaAsync<NonNullish<Input<TWrappedSchema>>, TOutput> & { schema: 'non_nullish'; wrapped: TWrappedSchema } → type NonNullishSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TOutput = NonNullish<Output<TWrapped>>> = BaseSchemaAsync<NonNullish<Input<TWrapped>>, TOutput> & { schema: 'non_nullish'; wrapped: TWrapped } - changed:
type NonOptionalSchema<TWrappedSchema extends BaseSchema, TOutput = NonOptional<Output<TWrappedSchema>>> = BaseSchema<NonOptional<Input<TWrappedSchema>>, TOutput> & { schema: 'non_optional'; wrapped: TWrappedSchema } → type NonOptionalSchema<TWrapped extends BaseSchema, TOutput = NonOptional<Output<TWrapped>>> = BaseSchema<NonOptional<Input<TWrapped>>, TOutput> & { schema: 'non_optional'; wrapped: TWrapped } - changed:
type NonOptionalSchemaAsync<TWrappedSchema extends BaseSchema | BaseSchemaAsync, TOutput = NonOptional<Output<TWrappedSchema>>> = BaseSchemaAsync<NonOptional<Input<TWrappedSchema>>, TOutput> & { schema: 'non_optional'; wrapped: TWrappedSchema } → type NonOptionalSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TOutput = NonOptional<Output<TWrapped>>> = BaseSchemaAsync<NonOptional<Input<TWrapped>>, TOutput> & { schema: 'non_optional'; wrapped: TWrapped } - changed:
type NullableSchema<TWrappedSchema extends BaseSchema, TOutput = Output<TWrappedSchema> | null> = BaseSchema<Input<TWrappedSchema> | null, TOutput> & { schema: 'nullable'; wrapped: TWrappedSchema } → type NullableSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | undefined = undefined, TOutput = TDefault extends undefined ? Output<TWrapped> | null : Output<TWrapped>> = BaseSchema<Input<TWrapped> | null, TOutput> & { schema: 'nullable'; wrapped: TWrapped; get default(): TDefault } - changed:
type NullableSchemaAsync<TWrappedSchema extends BaseSchema | BaseSchemaAsync, TOutput = Output<TWrappedSchema> | null> = BaseSchemaAsync<Input<TWrappedSchema> | null, TOutput> & { schema: 'nullable'; wrapped: TWrappedSchema } → type NullableSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | undefined | Promise<Input<TWrapped> | undefined> = undefined, TOutput = Awaited<TDefault> extends undefined ? Output<TWrapped> | null : Output<TWrapped>> = BaseSchemaAsync<Input<TWrapped> | null, TOutput> & { schema: 'nullable'; wrapped: TWrapped; get default(): TDefault } - changed:
type NullishSchema<TWrappedSchema extends BaseSchema, TOutput = Output<TWrappedSchema> | null | undefined> = BaseSchema<Input<TWrappedSchema> | null | undefined, TOutput> & { schema: 'nullish'; wrapped: TWrappedSchema } → type NullishSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | undefined = undefined, TOutput = TDefault extends undefined ? Output<TWrapped> | null | undefined : Output<TWrapped>> = BaseSchema<Input<TWrapped> | null | undefined, TOutput> & { schema: 'nullish'; wrapped: TWrapped; get default(): TDefault } - changed:
type NullishSchemaAsync<TWrappedSchema extends BaseSchema | BaseSchemaAsync, TOutput = Output<TWrappedSchema> | null | undefined> = BaseSchemaAsync<Input<TWrappedSchema> | null | undefined, TOutput> & { schema: 'nullish'; wrapped: TWrappedSchema } → type NullishSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | undefined | Promise<Input<TWrapped> | undefined> = undefined, TOutput = Awaited<TDefault> extends undefined ? Output<TWrapped> | null | undefined : Output<TWrapped>> = BaseSchemaAsync<Input<TWrapped> | null | undefined, TOutput> & { schema: 'nullish'; wrapped: TWrapped; get default(): TDefault } - changed:
type OptionalSchema<TWrappedSchema extends BaseSchema, TOutput = Output<TWrappedSchema> | undefined> = BaseSchema<Input<TWrappedSchema> | undefined, TOutput> & { schema: 'optional'; wrapped: TWrappedSchema } → type OptionalSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | undefined = undefined, TOutput = TDefault extends undefined ? Output<TWrapped> | undefined : Output<TWrapped>> = BaseSchema<Input<TWrapped> | undefined, TOutput> & { schema: 'optional'; wrapped: TWrapped; get default(): TDefault } - changed:
type OptionalSchemaAsync<TWrappedSchema extends BaseSchema | BaseSchemaAsync, TOutput = Output<TWrappedSchema> | undefined> = BaseSchemaAsync<Input<TWrappedSchema> | undefined, TOutput> & { schema: 'optional'; wrapped: TWrappedSchema } → type OptionalSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | undefined | Promise<Input<TWrapped> | undefined> = undefined, TOutput = Awaited<TDefault> extends undefined ? Output<TWrapped> | undefined : Output<TWrapped>> = BaseSchemaAsync<Input<TWrapped> | undefined, TOutput> & { schema: 'optional'; wrapped: TWrapped; get default(): TDefault } - changed:
type PipeResult<TOutput> = { output: TOutput; issue?: undefined } | { output?: undefined; issue: Pick<Issue, 'validation' | 'message' | 'input'> } → type PipeResult<TOutput> = { output: TOutput; issue?: undefined } | { output?: undefined; issue: Pick<Issue, 'validation' | 'message' | 'input' | 'path'> } - changed:
type RecordKey = StringSchema<string | number | symbol> → type RecordKey = EnumSchema<any, string | number | symbol> | NativeEnumSchema<any, string | number | symbol> | StringSchema<string | number | symbol> - changed:
type RecordKeyAsync = StringSchema<string | number | symbol> | StringSchemaAsync<string | number | symbol> → type RecordKeyAsync = EnumSchema<any, string | number | symbol> | EnumSchemaAsync<any, string | number | symbol> | NativeEnumSchema<any, string | number | symbol> | NativeEnumSchema… - added:
function getDefault<TSchema extends OptionalSchema<any, any> | OptionalSchemaAsync<any, any> | NullableSchema<any, any> | NullableSchemaAsync<any, any> | NullishSchema<any, any> | NullishSchemaAsync<any, any>>(schema: TSchema): TSchema['default']