v0.8.1
Improvements
- Introduced a
params
option on therefine
helper for better error map support (#264) by @jansedlon
refine(ctx, {
when: intent === 'submit' || intent === 'validate/field',
validate: () => validate(...),
params: {
i18n: "key"
}
})
- Added a
insert
list intent for inserting a new row to a list at a given index. If no index is given, then the element will be appended at the end of the list. Bothappend
andprepend
list intent are deprecated and will be removed on v1. (#270) by @albert-schilling
<button {...list.insert('name', { index, defaultValue })}>Insert</button>
- Fixed an issue with zod returning only the first error on zod v3.22 caused by a
preprocess
bug upstream. (#283) - Fixed a bug with zod default not working properly due to empty value not stripped. (#282)
- Improved zod
parse
helper handling on environment with noFile
constructor defined. (#281)
New Contributors
- @justintoman made their first contribution in #275
- @jansedlon made their first contribution in #264
- @albert-schilling made their first contribution in #270
Full Changelog: v0.8.0...v0.8.1