Releases: TanStack/form
Releases · TanStack/form
v0.43.2
Version 0.43.2 - 2/21/25, 3:11 PM
Changes
Fix
Docs
- remove reference to createServerValidate (c36e218) by Corbin Crutchley
Packages
- @tanstack/form-core@0.43.2
- @tanstack/react-form@0.43.2
- @tanstack/vue-form@0.43.2
- @tanstack/solid-form@0.43.2
- @tanstack/lit-form@0.43.2
- @tanstack/angular-form@0.43.2
v0.43.1
Version 0.43.1 - 2/21/25, 11:50 AM
Changes
Fix
- new lockfile for CI (4bac1f7) by Corbin Crutchley
- form core should now be pinned to the right version (#1165) (fc7f8a6) by Corbin Crutchley
Packages
- @tanstack/react-form@0.43.1
- @tanstack/vue-form@0.43.1
- @tanstack/solid-form@0.43.1
- @tanstack/lit-form@0.43.1
- @tanstack/angular-form@0.43.1
v0.43.0
Version 0.43.0 - 2/21/25, 11:14 AM
PRs
The Main Showcase
This PR allows you to return non-string values from validators:
<form.Field name="password" validators={{onChange: () => ({hasUppercase: false, hasLowercase: true}) }} />
In addition, it also enforces type safety on the returned value on both errorMap
and the errors
array:
const form = new FormApi({
defaultValues: {
name: 'test',
},
} as const)
const field = new FieldApi({
form,
name: 'name',
validators: {
onChange: () => {
return 123 as const
},
},
})
assertType<123 | undefined>(field.state.meta.errorMap.onChange)
assertType<Array<123 | undefined>>(field.state.meta.errors)
Breaking Changes
- Removes all
validatorAdapter
s (packages, code, and props alike)- Instead, you can use our Standard Schema support for Valibot, Zod, and ArkType
- As a result, however,
Yup
is no longer supported until this community PR is merged
- When using Standard Schema validators:
form.errors
is nowRecord<string, StandardSchemaV1Issue[]>
field.errors
is nowStandardSchemaV1Issue[]
(flattened, unless you passdisableErrorFlat
inform.Field
)
- Vue 3.4 is the new minimum version
- Vue JSX usage no longer works
Migration Guide
If you're using Yup today, you'll either need to wait for this community PR to be merged or replace Yup with another schema library.
- If using schema validation:
- Remove all
validatorAdapter
properties - Uninstall
@tanstack/yup-form-adapter
,@tanstack/valibot-form-adapter
, and@tanstack/zod-form-adapter
- Migrate all validation errors on a field away from
.map(str => <p>{str}</p>)
and towards.map(issue => <p>{issue.messaeg}</p>)
- Migrate all validation errors on form away from
.map(str => <p>{str}</p>)
and towards.map(issueObj => <p>{issueObj.issues[0].message}</p>)
- Remove all
- (If Vue): Migrate form components to use SFCs
Other Changes
- Vue SFC Works as-intended
- TanStack Start Adapter has been updated to new APIs
Packages
- @tanstack/form-core@0.43.0
- @tanstack/react-form@0.43.0
- @tanstack/vue-form@0.43.0
- @tanstack/solid-form@0.43.0
- @tanstack/lit-form@0.43.0
- @tanstack/angular-form@0.43.0
v0.42.1
Version 0.42.1 - 2/20/25, 5:25 PM
Changes
Fix
- form-core: prevent prototype pollution and update Remix dependency - CVE-2024-57068 (#1151) (455522c) by Moe Haje
Packages
- @tanstack/form-core@0.42.1
- @tanstack/react-form@0.42.1
- @tanstack/vue-form@0.42.1
- @tanstack/zod-form-adapter@0.42.1
- @tanstack/yup-form-adapter@0.42.1
- @tanstack/valibot-form-adapter@0.42.1
- @tanstack/solid-form@0.42.1
- @tanstack/lit-form@0.42.1
- @tanstack/angular-form@0.42.1
v0.42.0
Version 0.42.0 - 2/13/25, 6:44 PM
Changes
Feat
- form-core: field meta and errors are shifted when doing array operations (990a916) by Leonardo Montini
Packages
- @tanstack/form-core@0.42.0
- @tanstack/react-form@0.42.0
- @tanstack/vue-form@0.42.0
- @tanstack/zod-form-adapter@0.42.0
- @tanstack/yup-form-adapter@0.42.0
- @tanstack/valibot-form-adapter@0.42.0
- @tanstack/solid-form@0.42.0
- @tanstack/lit-form@0.42.0
- @tanstack/angular-form@0.42.0
v0.41.4
Version 0.41.4 - 2/11/25, 10:48 PM
Changes
Fix
- form-core: skip form validation for each single field on form submit (#1147) (5f1bc0b) by Leonardo Montini
Ci
Docs
Packages
- @tanstack/form-core@0.41.4
- @tanstack/react-form@0.41.4
- @tanstack/vue-form@0.41.4
- @tanstack/zod-form-adapter@0.41.4
- @tanstack/yup-form-adapter@0.41.4
- @tanstack/valibot-form-adapter@0.41.4
- @tanstack/solid-form@0.41.4
- @tanstack/lit-form@0.41.4
- @tanstack/angular-form@0.41.4
v0.41.3
Version 0.41.3 - 1/21/25, 6:32 PM
Changes
Fix
Docs
Packages
- @tanstack/form-core@0.41.3
- @tanstack/react-form@0.41.3
- @tanstack/vue-form@0.41.3
- @tanstack/zod-form-adapter@0.41.3
- @tanstack/yup-form-adapter@0.41.3
- @tanstack/valibot-form-adapter@0.41.3
- @tanstack/solid-form@0.41.3
- @tanstack/lit-form@0.41.3
- @tanstack/angular-form@0.41.3
v0.41.2
Version 0.41.2 - 1/15/25, 2:00 AM
Changes
Fix
Chore
- deps: use react 19 stable, fix JSX resolution (#1113) (b60264c) by Lachlan Collins
- deps: replace rimraf with premove, update deps (#1112) (58628f7) by Lachlan Collins
- deps: update autofix-ci/action digest to 551dded (#1110) (3e0ef50) by renovate[bot]
Packages
- @tanstack/form-core@0.41.2
- @tanstack/react-form@0.41.2
- @tanstack/vue-form@0.41.2
- @tanstack/zod-form-adapter@0.41.2
- @tanstack/yup-form-adapter@0.41.2
- @tanstack/valibot-form-adapter@0.41.2
- @tanstack/solid-form@0.41.2
- @tanstack/lit-form@0.41.2
- @tanstack/angular-form@0.41.2
v0.41.1
Version 0.41.1 - 1/11/25, 12:34 PM
Changes
Fix
- react-form: update the name of the rendered field when it changes (b5133f2) by fuko
Packages
- @tanstack/form-core@0.41.1
- @tanstack/react-form@0.41.1
- @tanstack/vue-form@0.41.1
- @tanstack/zod-form-adapter@0.41.1
- @tanstack/yup-form-adapter@0.41.1
- @tanstack/valibot-form-adapter@0.41.1
- @tanstack/solid-form@0.41.1
- @tanstack/lit-form@0.41.1
- @tanstack/angular-form@0.41.1
v0.41.0
Version 0.41.0 - 12/29/24, 4:14 PM
Changes
Feat
- make accessing field properties faster and more stable (be7f9bf) by Corbin Crutchley
Packages
- @tanstack/form-core@0.41.0
- @tanstack/react-form@0.41.0
- @tanstack/vue-form@0.41.0
- @tanstack/solid-form@0.41.0
- @tanstack/angular-form@0.41.0
- @tanstack/zod-form-adapter@0.41.0
- @tanstack/yup-form-adapter@0.41.0
- @tanstack/valibot-form-adapter@0.41.0
- @tanstack/lit-form@0.41.0