Skip to content

Upgrading valibot 0.23 to 0.24

Safe0.23.0 → 0.24.1New2Fixed3

SafeUpgrade verdict

Only new features and fixes in this range.

  • Nothing in this range needs changes to your code. It adds features and fixes.
Nothing to change

No breaking, platform, security or deprecated items in this range.

Nothing in this upgrade needs a code or configuration change.

Generated by DepDelta from published .d.ts files. Not mixed with prose notes.

  • changed: type NullableSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | null> = BaseSchema<Input<TWrapped> | null, TOutput> & { type: 'nullable'; wrapped: TWrapped; default: TDefault } → type NullableSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped>) ? Output<TWrapped> : Output<TWrapped> | null> = BaseSchema<Input<TWrapped> | null, TOutput> & { type: 'nullable'; wrapped: TWrapped; default: TDefault }
  • changed: type NullableSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined = undefined, TOutput = Awaited<TDefault> extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | null> = BaseSchemaAsync<Input<TWrapped> | null, TOutput> & { type: 'nullable'; wrapped: TWrapped; default: TDefault } → type NullableSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped>>) ? Output<TWrapped> : Output<TWrapped> | null> = BaseSchemaAsync<Input<TWrapped> | null, TOutput> & { type: 'nullable'; wrapped: TWrapped; default: TDefault }
  • changed: type NullishSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | null | undefined> = BaseSchema<Input<TWrapped> | null | undefined, TOutput> & { type: 'nullish'; wrapped: TWrapped; default: TDefault } → type NullishSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped>) ? Output<TWrapped> : Output<TWrapped> | null | undefined> = BaseSchema<Input<TWrapped> | null | undefined, TOutput> & { type: 'nullish'; wrapped: TWrapped; default: TDefault }
  • changed: type NullishSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined = undefined, TOutput = Awaited<TDefault> extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | null | undefined> = BaseSchemaAsync<Input<TWrapped> | null | undefined, TOutput> & { type: 'nullish'; wrapped: TWrapped; default: TDefault } → type NullishSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped>>) ? Output<TWrapped> : Output<TWrapped> | null | undefined> = BaseSchemaAsync<Input<TWrapped> | null | undefined, TOutput> & { type: 'nullish'; wrapped: TWrapped; default: TDefault }
  • changed: type OptionalSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | undefined> = BaseSchema<Input<TWrapped> | undefined, TOutput> & { type: 'optional'; wrapped: TWrapped; default: TDefault } → type OptionalSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped>) ? Output<TWrapped> : Output<TWrapped> | undefined> = BaseSchema<Input<TWrapped> | undefined, TOutput> & { type: 'optional'; wrapped: TWrapped; default: TDefault }
  • changed: type OptionalSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined = undefined, TOutput = Awaited<TDefault> extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | undefined> = BaseSchemaAsync<Input<TWrapped> | undefined, TOutput> & { type: 'optional'; wrapped: TWrapped; default: TDefault } → type OptionalSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped>>) ? Output<TWrapped> : Output<TWrapped> | undefined> = BaseSchemaAsync<Input<TWrapped> | undefined, TOutput> & { type: 'optional'; wrapped: TWrapped; default: TDefault }
  • changed: type RecordKey = EnumSchema<any, string | number | symbol> | PicklistSchema<any, string | number | symbol> | StringSchema<string | number | symbol> | UnionSchema<any, string |… → type RecordKey = EnumSchema<any, string | number | symbol> | PicklistSchema<any, string | number | symbol> | SpecialSchema<any, string | number | symbol> | StringSchema<string…