form

🤖 Powerful and type-safe form state management for the web. TS/JS, React Form, Solid Form, Lit Form and Vue Form.

MIT License

Downloads
553.5K
Stars
3.7K
Committers
101

Bot releases are visible (Hide)

form - https://github.com/TanStack/form/releases/tag/v0.24.1

Published by tannerlinsley 4 months ago

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

form - v0.24.0

Published by crutchcorn 4 months ago

What's Changed

Fix (Breaking Changes)

Refactor

Full Changelog: https://github.com/TanStack/form/compare/v0.23.3...v0.24.0

form - https://github.com/TanStack/form/releases/tag/v0.23.3

Published by tannerlinsley 4 months ago

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

form - https://github.com/TanStack/form/releases/tag/v0.23.2

Published by tannerlinsley 4 months ago

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

form - https://github.com/TanStack/form/releases/tag/v0.23.1

Published by tannerlinsley 4 months ago

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

form -

Published by tannerlinsley 4 months ago

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:

https://github.com/TanStack/form/commit/a9e3852f6e88ea2c1ca1eda85c5b7495e4c936e4#diff-7589cfcbf048311003c3cdc2e48d40fe17dbb21a88c1070695758e43f8efe898

Packages

form - https://github.com/TanStack/form/releases/tag/v0.22.1

Published by tannerlinsley 4 months ago

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

Changes

Fix

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

Packages

form -

Published by tannerlinsley 4 months ago

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

form - https://github.com/TanStack/form/releases/tag/v0.21.1

Published by tannerlinsley 4 months ago

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

Changes

Fix

  • core: fix DeepKeys not support partial nested object (#739) (8662c40) by @fkworld

Ci

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

Docs

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

Packages

form - https://github.com/TanStack/form/releases/tag/v0.21.0

Published by tannerlinsley 4 months ago

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

form - https://github.com/TanStack/form/releases/tag/v0.20.3

Published by tannerlinsley 5 months ago

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

form - https://github.com/TanStack/form/releases/tag/v0.20.2

Published by tannerlinsley 5 months ago

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

form - https://github.com/TanStack/form/releases/tag/v0.20.1

Published by tannerlinsley 5 months ago

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

form - https://github.com/TanStack/form/releases/tag/v0.20.0

Published by tannerlinsley 5 months ago

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

form - https://github.com/TanStack/form/releases/tag/v0.19.5

Published by tannerlinsley 5 months ago

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

  • add async initial values examples (#688) (d949c0b) by Corbin Crutchley
  • update react-hook-form column in comparision table (#673) (c3a2fd2) by @AhmedBaset

Packages

form - https://github.com/TanStack/form/releases/tag/v0.19.4

Published by tannerlinsley 6 months ago

Version 0.19.4 - 4/26/2024, 2:44 AM

Changes

Fix

  • onSubmit should forcably set onChange and onBlur validation to execute immediately (#687) (b4c24ca) by Corbin Crutchley

Packages

form - https://github.com/TanStack/form/releases/tag/v0.19.3

Published by tannerlinsley 6 months ago

Version 0.19.3 - 4/26/2024, 2:22 AM

Changes

Fix

  • nested values should not disappear in strictmode (#686) (f1a1c09) by Corbin Crutchley

Packages

form - https://github.com/TanStack/form/releases/tag/v0.19.2

Published by tannerlinsley 6 months ago

Version 0.19.2 - 4/18/2024, 5:06 PM

Changes

Fix

  • Complex name properties no longer produce never (085e3c9) by Christopher Horobin

Docs

  • install @types/react and @types/react-dom in React examples (#672) (997ca6b) by @A7med3bdulBaset

Packages

form - https://github.com/TanStack/form/releases/tag/v0.19.1

Published by tannerlinsley 6 months ago

Version 0.19.1 - 4/16/2024, 4:06 PM

Changes

Fix

  • prevent reset from wiping validators in fieldMeta (#674) (18d3810) by @luishcastroc

Docs

  • remove void keyword from code handlers and documentation (#676) (c0ee012) by Julian Espérat
  • prep for tanstack.com migration to TSR (#663) (9ecc5e2) by Tanner Linsley

Other

  • Update validation.md (#661) (8e2335e) by Leonardo Montini

Packages

form - https://github.com/TanStack/form/releases/tag/v0.19.0

Published by tannerlinsley 7 months ago

Version 0.19.0 - 3/28/2024, 12:06 AM

Changes

Feat

  • add initial implementation of linked fields (#628) (033bb5b) by Corbin Crutchley

Docs

  • mention other frameworks we support (#659) (f2f964c) by Corbin Crutchley

Packages

Package Rankings
Top 5.44% on Npmjs.org
Top 6.68% on Proxy.golang.org