Valibot 0.31.0 introduced some breaking changes like the new pipe operator among other things.
// With the previous API
const BirthdaySchema = v.brand(
v.transform(v.string([v.isoDate()]), (input) => new Date(input)),
'birthday'
);
// With the brand new API
const BirthdaySchema = v.pipe(
v.string(),
v.isoDate(),
v.transform((input) => new Date(input)),
v.brand('birthday')
);
So far tests are passing but types are broken. Any help will be appreciated.
Valibot 0.31.0 introduced some breaking changes like the new pipe operator among other things.
So far tests are passing but types are broken. Any help will be appreciated.