Skip to content

Releases: TanStack/form

v0.24.3

29 Jun 00:00
Compare
Choose a tag to compare

Version 0.24.3 - 6/29/24, 12:00 AM

Changes

Fix

  • Remove form-core type overrides from adapters (#794) (145e0a9) by Corbin Crutchley

Chore

  • Update ESLint config (#790) (f53062f) by Lachlan Collins

Docs

  • enable strict mode in react examples (#789) (adc74e0) by Leonardo Montini

Packages

v0.24.2

27 Jun 14:05
Compare
Choose a tag to compare

Version 0.24.2 - 6/27/24, 2:04 PM

Changes

Fix

  • republish packages with correct resolutions (#788) (71424b6) by Corbin Crutchley

Packages

v0.24.1

27 Jun 11:15
Compare
Choose a tag to compare

Version 0.24.1 - 6/27/24, 11:15 AM

Changes

Fix

  • arrays with null default values should no longer throw (#782) (2f61d25) by Corbin Crutchley

Packages

v0.24.0

27 Jun 00:43
715704e
Compare
Choose a tag to compare

What's Changed

Fix (Breaking Changes)

  • removed the preserveValue option, it's always true now by @crutchcorn in #781

Refactor

Full Changelog: v0.23.3...v0.24.0

v0.23.3

22 Jun 17:53
Compare
Choose a tag to compare

Version 0.23.3 - 6/22/24, 5:53 PM

Changes

Fix

  • issues with StrictMode and arrays are now solved (#771) (4e54c09) by Corbin Crutchley

Chore

  • Update typescript-eslint to v7 (#770) (5473bb8) by Lachlan Collins
  • Shorter legacy TS test command (#769) (dd5f327) by Lachlan Collins
  • Move tests folders (#768) (6a085ea) by Lachlan Collins
  • fix config file (#765) (bab5a23) by Corbin Crutchley

Ci

  • Improve typescript test matrix (#767) (a5b9ff0) by Lachlan Collins

Docs

  • add next example (#766) (3e561d9) by Leonardo Montini
  • typedoc generation (33eacda) by Corbin Crutchley

Packages

v0.23.2

20 Jun 05:10
Compare
Choose a tag to compare

Version 0.23.2 - 6/20/24, 5:10 AM (Manual Release)

Changes

Chore

  • Update TanStack Store dependencies (#763) (d20aea9) by Lachlan Collins

Docs

  • Add "type": "module" to examples (#764) (f8f0a06) by Lachlan Collins

Packages

v0.23.1

20 Jun 03:46
Compare
Choose a tag to compare

Version 0.23.1 - 6/20/24, 3:46 AM (Manual Release)

Changes

Chore

  • Tidy up solid-form build, use tsc for lit-form (#762) (34cb249) by Lachlan Collins

Packages

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

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

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