Skip to content

Releases: TanStack/form

v0.23.0

20 Jun 03:35
Compare
Choose a tag to compare

Version 0.23.0 - 6/20/24, 3:35 AM

Changes

Feat

  • add formOptions API, add new exports from @tanstack/react-form/nextjs, remove createFormFactory (a9e3852) by Corbin Crutchley

This version changes a fair bit if you are using the following APIs:

  • formFactory (React, Vue, Lit, Solid)
  • onServerValidate (React)

formFactory

If you are using a formFactory API, please remove it in favor of the new formOptions function.

// Old
const formFactory = createFormFactory<Person>({
  defaultValues: {
    firstName: '',
    lastName: '',
    hobbies: [],
  },
})

formFactory.useForm({})

// New
const formOpts = formOptions<Person>({
  defaultValues: {
    firstName: '',
    lastName: '',
    hobbies: [],
  },
})

useForm(formOpts)

While not a 1:1 API, we believe that any existing usages of formFactory are better suited for formOptions

onServerValidate

Instead of using onServerValidate on a formFactory, you'll want to follow our new SSR guidance:

https://tanstack.com/form/latest/docs/framework/react/guides/ssr

You can see the diff of the old SSR guide and the new one here:

a9e3852#diff-7589cfcbf048311003c3cdc2e48d40fe17dbb21a88c1070695758e43f8efe898

Packages

  • @tanstack/form-core@0.23.0
  • @tanstack/react-form@0.23.0
  • @tanstack/vue-form@0.23.0
  • @tanstack/solid-form@0.23.0
  • @tanstack/lit-form@0.23.0
  • @tanstack/angular-form@0.23.0
  • @tanstack/zod-form-adapter@0.23.0
  • @tanstack/yup-form-adapter@0.23.0
  • @tanstack/valibot-form-adapter@0.23.0

v0.22.1

20 Jun 00:29
Compare
Choose a tag to compare

Version 0.22.1 - 6/20/24, 12:28 AM

Changes

Fix

  • solid-form: Add solid export condition (#631) (e9e0bab) by Brendan Allan

Packages

  • @tanstack/solid-form@0.22.1

v0.22.0

19 Jun 07:12
Compare
Choose a tag to compare

Version 0.22.0 - 6/19/24, 7:11 AM (Manual Release)

Changes

  • feat!: add ability to transform errors from validators. (#755) (b67bd8d) by Toma

To migrate, call your validators like:

validator: yupValidator()

And no longer like:

validator: yupValidator

Packages

  • @tanstack/form-core@0.22.0
  • @tanstack/react-form@0.22.0
  • @tanstack/vue-form@0.22.0
  • @tanstack/zod-form-adapter@0.22.0
  • @tanstack/yup-form-adapter@0.22.0
  • @tanstack/valibot-form-adapter@0.22.0
  • @tanstack/solid-form@0.22.0
  • @tanstack/lit-form@0.22.0
  • @tanstack/angular-form@0.22.0

v0.21.1

19 Jun 06:29
Compare
Choose a tag to compare

Version 0.21.1 - 6/19/24, 6:29 AM

Changes

Fix

Ci

  • Update workspace dependencies (#754) (7228ad2) by Lachlan Collins

Docs

  • update discord invite link (#744) (203217c) by Leonardo Montini

Packages

  • @tanstack/form-core@0.21.1
  • @tanstack/react-form@0.21.1
  • @tanstack/vue-form@0.21.1
  • @tanstack/solid-form@0.21.1
  • @tanstack/angular-form@0.21.1
  • @tanstack/zod-form-adapter@0.21.1
  • @tanstack/yup-form-adapter@0.21.1
  • @tanstack/valibot-form-adapter@0.21.1
  • @tanstack/lit-form@0.21.1

v0.21.0

10 Jun 22:27
Compare
Choose a tag to compare

Version 0.21.0 - 6/10/2024, 10:27 PM

Changes

Feat

  • core: forward options from field to form methods (#701) (5670725) by Joshua Gawenda

Fix

  • React TSC usage for 4.9 now works properly (#733) (4879e32) by Corbin Crutchley

Docs

  • fix typos in SSR warning (#731) (8076d16) by Corbin Crutchley
  • add note about backend leak on ssr example (#730) (3cec2a3) by Benjamín Vicente

Other

  • feat!: upgrade and migrate Valibot to v0.31.0 (#729) (2c87480) by Fabian Hiller
  • feat!: rename insertValue to replaceValue and add new insertValue implementation (#697) (ecae7bb) by Leonardo Montini

Packages

  • @tanstack/form-core@0.21.0
  • @tanstack/react-form@0.21.0
  • @tanstack/valibot-form-adapter@0.21.0
  • @tanstack/vue-form@0.21.0
  • @tanstack/zod-form-adapter@0.21.0
  • @tanstack/yup-form-adapter@0.21.0
  • @tanstack/solid-form@0.21.0
  • @tanstack/lit-form@0.21.0
  • @tanstack/angular-form@0.21.0

v0.20.3

02 Jun 20:11
Compare
Choose a tag to compare

Version 0.20.3 - 6/2/2024, 8:10 PM

Changes

Fix

  • core: validate array fields properly if their values are changed (0201e65) by Joshua Gawenda

Docs

  • add array mode on react guide (#721) (3e827af) by Leonardo Montini
  • mention useStore in favor of useField (#722) (a3b92af) by Leonardo Montini

Other

  • Add info about Final Form to comparison doc (#725) (1272ff8) by Erik Rasmussen

Packages

  • @tanstack/form-core@0.20.3
  • @tanstack/react-form@0.20.3
  • @tanstack/vue-form@0.20.3
  • @tanstack/zod-form-adapter@0.20.3
  • @tanstack/yup-form-adapter@0.20.3
  • @tanstack/valibot-form-adapter@0.20.3
  • @tanstack/solid-form@0.20.3
  • @tanstack/lit-form@0.20.3
  • @tanstack/angular-form@0.20.3

v0.20.2

28 May 18:07
Compare
Choose a tag to compare

Version 0.20.2 - 5/28/2024, 6:06 PM

Changes

Fix

  • updating a nullable object should work now. (#717) (f301ff8) by Muhammad Amin Saffari Taheri

Docs

  • Corrected "intergration" to "integration" in SSR docs (#712) (1fd3965) by Nate Ferrell

Packages

  • @tanstack/form-core@0.20.2
  • @tanstack/react-form@0.20.2
  • @tanstack/vue-form@0.20.2
  • @tanstack/zod-form-adapter@0.20.2
  • @tanstack/yup-form-adapter@0.20.2
  • @tanstack/valibot-form-adapter@0.20.2
  • @tanstack/solid-form@0.20.2
  • @tanstack/lit-form@0.20.2
  • @tanstack/angular-form@0.20.2

v0.20.1

28 May 17:42
Compare
Choose a tag to compare

Version 0.20.1 - 5/28/2024, 5:41 PM

Changes

Fix

  • core: re-validate the subfields after one of them have been removed (#719) (cc0995e) by fuko

Packages

  • @tanstack/form-core@0.20.1
  • @tanstack/react-form@0.20.1
  • @tanstack/vue-form@0.20.1
  • @tanstack/zod-form-adapter@0.20.1
  • @tanstack/yup-form-adapter@0.20.1
  • @tanstack/valibot-form-adapter@0.20.1
  • @tanstack/solid-form@0.20.1
  • @tanstack/lit-form@0.20.1
  • @tanstack/angular-form@0.20.1

v0.20.0

22 May 07:01
Compare
Choose a tag to compare

Version 0.20.0 - 5/22/2024, 7:00 AM

Changes

Feat

  • add support for nullable nested fields (#713) (70bdc7f) by Muhammad Amin Saffari Taheri

Packages

  • @tanstack/form-core@0.20.0
  • @tanstack/react-form@0.20.0
  • @tanstack/vue-form@0.20.0
  • @tanstack/zod-form-adapter@0.20.0
  • @tanstack/yup-form-adapter@0.20.0
  • @tanstack/valibot-form-adapter@0.20.0
  • @tanstack/solid-form@0.20.0
  • @tanstack/lit-form@0.20.0
  • @tanstack/angular-form@0.20.0

v0.19.5

13 May 09:00
Compare
Choose a tag to compare

Version 0.19.5 - 5/13/2024, 8:59 AM (Manual Release)

Changes

Chore

  • Update @tanstack/config to v0.7.4 (#703) (5e8ad29) by Lachlan Collins
  • Enable link-workspace-packages (#702) (8ea328b) by Lachlan Collins
  • migrate to PNPM version 9, fix build on Windows (#694) (ab412c9) by Corbin Crutchley

Docs

Packages

  • @tanstack/form-core@0.19.5
  • @tanstack/react-form@0.19.5
  • @tanstack/vue-form@0.19.5
  • @tanstack/zod-form-adapter@0.19.5
  • @tanstack/yup-form-adapter@0.19.5
  • @tanstack/valibot-form-adapter@0.19.5
  • @tanstack/solid-form@0.19.5
  • @tanstack/lit-form@0.19.5
  • @tanstack/angular-form@0.19.5