Upgrading valibot 0.7 to 0.8
Unknown0.7.0 → 0.8.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.
- removed:
type ObjectShapesAsync = Record<string, BaseSchema<any> | BaseSchemaAsync<any>> - changed:
function objectAsync<TObjectShape extends ObjectShapesAsync>(object: TObjectShape, error?: string, pipe?: PipeAsync<ObjectOutput<TObjectShape>>): ObjectSchemaAsync<TObjectShape> → function objectAsync<TObjectShape extends ObjectShapeAsync>(object: TObjectShape, error?: string, pipe?: PipeAsync<ObjectOutput<TObjectShape>>): ObjectSchemaAsync<TObjectShape> - changed:
function objectAsync<TObjectShape extends ObjectShapesAsync>(object: TObjectShape, pipe?: PipeAsync<ObjectOutput<TObjectShape>>): ObjectSchemaAsync<TObjectShape> → function objectAsync<TObjectShape extends ObjectShapeAsync>(object: TObjectShape, pipe?: PipeAsync<ObjectOutput<TObjectShape>>): ObjectSchemaAsync<TObjectShape> - changed:
type ObjectInput<TObjectShape extends ObjectShape | ObjectShapesAsync> = { [TKey in keyof TObjectShape]: Input<TObjectShape[TKey]> } → type ObjectInput<TObjectShape extends ObjectShape | ObjectShapeAsync> = ResolveObject<WithQuestionMarks<{ [TKey in keyof TObjectShape]: Input<TObjectShape[TKey]> }>> - changed:
type ObjectOutput<TObjectShape extends ObjectShape | ObjectShapesAsync> = { [TKey in keyof TObjectShape]: Output<TObjectShape[TKey]> } → type ObjectOutput<TObjectShape extends ObjectShape | ObjectShapeAsync> = ResolveObject<WithQuestionMarks<{ [TKey in keyof TObjectShape]: Output<TObjectShape[TKey]> }>> - changed:
type ObjectSchemaAsync<TObjectShape extends ObjectShapesAsync, TOutput = ObjectOutput<TObjectShape>> = BaseSchemaAsync<ObjectInput<TObjectShape>, TOutput> & { schema: 'object'; object: TObjectShape } → type ObjectSchemaAsync<TObjectShape extends ObjectShapeAsync, TOutput = ObjectOutput<TObjectShape>> = BaseSchemaAsync<ObjectInput<TObjectShape>, TOutput> & { schema: 'object'; object: TObjectShape } - changed:
type RecordInput<TRecordKey extends RecordKey | RecordKeyAsync, TRecordValue extends BaseSchema | BaseSchemaAsync> = Record<Input<TRecordKey>, Input<TRecordValue>> → type RecordInput<TRecordKey extends RecordKey | RecordKeyAsync, TRecordValue extends BaseSchema | BaseSchemaAsync> = ResolveObject<Record<Input<TRecordKey>, Input<TRecordValue>>> - changed:
type RecordOutput<TRecordKey extends RecordKey | RecordKeyAsync, TRecordValue extends BaseSchema | BaseSchemaAsync> = Record<Output<TRecordKey>, Output<TRecordValue>> → type RecordOutput<TRecordKey extends RecordKey | RecordKeyAsync, TRecordValue extends BaseSchema | BaseSchemaAsync> = ResolveObject<Record<Output<TRecordKey>, Output<TRecordValue>>> - added:
function strict<TSchema extends ObjectSchema<any>>(schema: TSchema, error?: string): TSchema - added:
function strictAsync<TSchema extends ObjectSchemaAsync<any>>(schema: TSchema, error?: string): TSchema - added:
type ObjectShapeAsync = Record<string, BaseSchema<any> | BaseSchemaAsync<any>> - added:
type ResolveObject<T> = Resolve<{ [k in keyof T]: T[k] }>