0
Fork 0
mirror of https://github.com/TanStack/form.git synced 2026-11-18 07:36:42 +00:00
Commit graph

408 commits

Author SHA1 Message Date
github-actions[bot]
b865ef335a
ci: Version Packages (#2319)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-11 14:43:15 +02:00
github-actions[bot]
462926e3b7
ci: Version Packages (#2285)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-08 15:22:16 -07:00
github-actions[bot]
028fcdd2fa
ci: Version Packages (#2262)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-01 02:33:17 -07:00
github-actions[bot]
5d1128141a
ci: Version Packages (#2242)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-12 21:22:39 -07:00
github-actions[bot]
397ab9744e
ci: Version Packages (#2237)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-09 03:42:19 -07:00
Sora Morimoto
42c866a336
fix(react-form-start): replace deprecated inputValidator with validator (#2230)
* fix(react-form-start): replace deprecated inputValidator with validator

TanStack Start has deprecated createServerFn().inputValidator() in favour
of .validator(). Update the react-form-start package, example, and SSR docs
accordingly, and bump the @tanstack/react-start peer dependency to ^1.168.27
where the new API is available.

* chore: fix pnpm lock

* fix: remove errant peerdeps

---------

Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
2026-07-09 03:15:04 -07:00
Hemraj bhatia
df52a12c87
fix: re-export useSelector and document useStore migration (#2206)
* fix: re-export useSelector and document useStore migration
Re-export useSelector from TanStack Store adapters so consumers can
import it from @tanstack/form packages instead of only the deprecated
useStore alias. Updates docs, examples, and adds form.useSelector for
Vue, Solid, and Svelte.
Fixes #2203

* docs(preact): use selector-form useSelector in prose

---------

Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
2026-07-09 02:54:09 -07:00
tsushanth
f066334fed
chore(examples): bump @types/react to ~19.2.0 in React examples (#2220)
* chore(examples): bump @types/react to ~19.2.0 in React examples

`npm install` failed for the React examples (originally reported against
react/standard-schema in #2216) because each example pinned
`@types/react: ~19.1.0` while `@types/react-dom: ^19.0.3` resolves to
19.2.x — and `@types/react-dom@19.2.x` peer-requires
`@types/react: ^19.2.0`. Same conflict in all 17 React examples.

Bumps every React example's `@types/react` to `~19.2.0` so the dev-only
type peer constraint is satisfied. `react`/`react-dom` themselves stay
at 19.1.0; the types are forward-compatible within the same major.

Closes #2216

* chore: regenerate pnpm-lock.yaml for @types/react bump

* chore: regen pnpm lock and fix sherif

---------

Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
2026-07-09 02:48:27 -07:00
github-actions[bot]
1d2c585e15
ci: Version Packages (#2196)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-28 09:55:50 -07:00
Corbin Crutchley
808f158b62
Form Groups (#2128)
* feat: initial work on FormGroupApi in core

* chore: initial (and wrong) per-form-group-validation

This is wrong because instead of keeping the state inside of `FormGroupApi` itself, we need to follow the same pattern of `FieldApi` and keep the state in `FormApi` and reference that state in a derived way.

* chore: create a common FieldLikeAPI to adopt in form groups shortly

* chore: implement FieldLike API on FormGroup

* chore: revert changes to FormApi validation logic

* chore: fix type issues with validation kind

* chore: minor fixes

* Revert "chore: revert changes to FormApi validation logic"

This reverts commit 756ddf8402.

* chore: filter fields to validate in formgroup

* chore: improve store

* chore: fix tests

* chore: fix another test

* chore: add submitmeta test

* ci: apply automated fixes and generate docs

* chore: add FormLike methods to FormGroup

* chore: add type tests

* chore: fix build

* chore: fix type tests

* ci: apply automated fixes and generate docs

* chore: export two missing items

* chore: add new interop FormGroupOptions type

* chore: initial implement of useFormGroup in React

* ci: apply automated fixes and generate docs

* chore: add formGroup to useForm

* chore: add initial React implementation tests

* ci: apply automated fixes and generate docs

* chore: add type tests for React adapter

* ci: apply automated fixes and generate docs

* chore: fix eslint

* ci: apply automated fixes and generate docs

* chore: add multi-step wizard

* ci: apply automated fixes and generate docs

* fix: handle resubmissions

* fix: validate on resubmit

* feat: add better onDynamic handling to FormGroupApi

* chore: first attempt to fix onDynamic change handling on groups

* chore: attempt 2

* chore: attempt 3

* chore: attempt 4

* Revert "chore: attempt 4"

This reverts commit 7546f08b94.

* chore: finalize fixing form errors

* chore: fix eslint

* chore: regenerate lockfile

* ci: apply automated fixes and generate docs

* docs: update the wizard example

* ci: apply automated fixes and generate docs

* chore: initial work on Vue FormGroup API

* ci: apply automated fixes and generate docs

* chore: revert useContext changes

* feat: add preact form group

* chore: fix tests and export names

* chore: add Preact wizard demo

* feat: add FormGroup support for Solid adapter

* chore: add formgroup tests for Solid

* chore: add type tests for Solid

* ci: apply automated fixes and generate docs

* chore: add Solid group example

* ci: apply automated fixes and generate docs

* chore: fix test

* feat: add FormGroup impl to Svelte

* ci: apply automated fixes and generate docs

* chore: add formGroup tests for Svelte

* ci: apply automated fixes and generate docs

* chore: add Svelte example

* chore: fix sherif

* feat: add Lit FormGroup API

* chore: add Lit FormGroup tests

* chore: refactor Lit tests

* ci: apply automated fixes and generate docs

* feat: implement FormGroup in Angular

* chore: add FormGroup Angular spec

* ci: apply automated fixes and generate docs

* feat: add withForm feature to Angular

* chore: update Angular large-form example to use new `withForm` API

* docs: add docs to Angular withForm example

* chore: add changeset

* chore: fix knip

* chore: initial multi-step-wizard Angular example

* chore: update the multi-step-wizard to use new API

* chore: add multi-step-wizard example to Lit

* ci: apply automated fixes and generate docs

* chore: add Vue example

* chore: fix CI

* chore: update to use Testing Library

* chore: make tests more Testing Library-y

* fix: isSubmitting now works with FormGroup

Thank you @gaganref!

* chore: fix Lit warning

* ci: apply automated fixes and generate docs

* chore: add currently failing tests

* fix: handle validation better in form groups

* chore: add test for duped group schema

* chore: update `form` error field to `group`

* chore: fix CI

* ci: apply automated fixes and generate docs

* chore: add test for isGroupValid and isFieldsValid

* ci: apply automated fixes and generate docs

* chore: refactor FormGroup to core

* chore: refactor Lit Form to use Lit Store properly

* chore: fix eslint

* ci: apply automated fixes and generate docs

* chore: remove temp changeset

* docs: initial docs for React adapter

* docs: add multi-step-wizard examples to docs site

* docs: add form group state docs for React

* docs: mirror React docs to Preact

* docs: add Solid docs

* docs: add Vue docs

* ci: apply automated fixes and generate docs

* docs: add groups docs for Svelte

* docs: add groups docs for Lit

* docs: add groups docs for Angular

* fix: handle issue with field group names

* ci: apply automated fixes and generate docs

* chore: fix CI

* chore: remove onXListenTo APIs

* chore: add onMount errors to groups

* chore: add onChange listeners to form

* chore: handle group validation async cleanup, onmount listener, et al

* chore: fix Group change listeners

* chore: add changeset

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-28 09:25:07 -07:00
github-actions[bot]
5d8b2cd012
ci: Version Packages (#2193)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-26 10:43:09 -07:00
Corbin Crutchley
120473e270
Fix trusted provenance (#2194)
* chore: add items to trust policy

* chore: upgrade Changesets

* chore: upgrade PNPM

* chore: fix other TS values

* chore: use better Next version

* chore: upgrade TSC to 5.9 and Angular to 21

* chore: regenerate PNPM lock

* chore: fix TSC usage across-the-board

* ci: apply automated fixes and generate docs

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-26 10:39:25 -07:00
github-actions[bot]
96c9ff7628
ci: Version Packages (#2168)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-10 18:27:21 -04:00
Corbin Crutchley
eb0a13bcbc
Expo example (#2167)
* chore: add initial expo scaffolding

* chore: port standard-schema example to RN

* ci: apply automated fixes and generate docs

* chore: fix key ordering

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-10 14:29:15 -04:00
github-actions[bot]
fbf3175732
ci: Version Packages (#2164)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-09 15:20:25 -04:00
github-actions[bot]
65078b8db2
ci: Version Packages (#2160)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-09 11:19:49 -04:00
github-actions[bot]
8ddc3f462d
ci: Version Packages (#2155)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-08 11:58:32 -04:00
github-actions[bot]
0526f8df27
ci: Version Packages (#2153)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-08 10:21:45 -04:00
github-actions[bot]
1cdd97af65
ci: Version Packages (#2135) 2026-04-21 18:51:50 +02:00
github-actions[bot]
254f157e72
ci: Version Packages (#2105)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-10 19:42:08 +02:00
Harry Whorlow
d6ab662cdf
feat(react-from): extend appform (#2106)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-10 13:39:45 +02:00
github-actions[bot]
2d5f557f4a
ci: Version Packages (#2097)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-30 13:18:47 +02:00
github-actions[bot]
b1bf05d03c
ci: Version Packages (#2082)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-15 12:54:00 +01:00
github-actions[bot]
29c18f2c66
ci: Version Packages (#2070)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-12 15:20:05 +01:00
Harry Whorlow
39932c1da2
fix(devtools): fixed theme miss-match and bumps packages (#2072) 2026-03-11 10:45:48 +01:00
github-actions[bot]
a4e8dec18f
ci: Version Packages (#2059)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-04 05:08:08 -08:00
Corbin Crutchley
f88faaf72d
Move to Alien-Signals Based Store (#2035)
* chore: naive migrate to new store package

* chore: pass all core tests

* chore: migrate React Form as well

* ci: apply automated fixes and generate docs

* chore: fix various other issues

* chore: add changeset

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-04 05:00:40 -08:00
github-actions[bot]
ba32b7f21d
ci: Version Packages (#2042)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-15 00:53:06 -08:00
Corbin Crutchley
0b3952d980
Fix form arrays (#2041)
* fix: form arrays now work again

* chore: add changeset
2026-02-15 00:49:06 -08:00
github-actions[bot]
660319b5f1
ci: Version Packages (#2039)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-13 12:38:50 -08:00
github-actions[bot]
c13826ba87
ci: Version Packages (#2011)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-12 19:46:30 -08:00
Corbin Crutchley
72d970add6
Fix issues with SSR (#1890)
* test: add failing test for merge-form behavior

* chore: attempt 1

* chore: attempt 2

* chore: attempt 3

* chore: attempt 4

* chore: attempt 5

* CHORE!: REMOVE THIS ATTEMP

* chore: attempt 6

* WIP: TO REVERT: Temp replace Next action with failing usage

* chore: add logs

* chore: attempt 7

* chore: demo working version

* feat: move to useMerge away from useTransform

* chore: fix remix and start

* ci: apply automated fixes and generate docs

* chore: attempt 8

* chore: attempt to fix Start and Remix as well

* ci: apply automated fixes and generate docs

* chore: add our own deepCopy impl

* ci: apply automated fixes and generate docs

* chore: fix eslint

* chore: fix more issues

* ci: apply automated fixes and generate docs

* fix: JS disabled SSR envs should work now

* test: add tests for SSR mergeForm

* fix: handle field errors from transform

* chore: remove log

* chore: fix props

* test: add React unit test

* chore: refactor to remove setTimeout

* Update packages/form-core/src/utils.ts

Co-authored-by: LeCarbonator <18158911+LeCarbonator@users.noreply.github.com>

* chore: add changeset

Things should now work as-expected in many more scenarios than before.

* ci: apply automated fixes and generate docs

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: LeCarbonator <18158911+LeCarbonator@users.noreply.github.com>
2026-02-12 19:40:46 -08:00
github-actions[bot]
089195c5cb
ci: Version Packages (#2004)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-26 07:31:26 +01:00
github-actions[bot]
38f2e5d66a
ci: Version Packages (#1999)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-18 22:42:38 +01:00
github-actions[bot]
623dccc7b4
ci: Version Packages (#1977)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-06 15:53:54 +01:00
github-actions[bot]
83bb01c3c0
ci: Version Packages (#1960)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-28 21:02:37 -08:00
github-actions[bot]
e54355c6a0
ci: Version Packages (#1949)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-22 10:54:17 +01:00
github-actions[bot]
e32b27fff2
ci: Version Packages (#1941)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-18 11:20:09 +01:00
github-actions[bot]
f786f0792d
ci: Version Packages (#1937)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-15 03:55:07 -08:00
github-actions[bot]
e15267c4df
ci: Version Packages (#1926)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-11 16:16:51 -08:00
github-actions[bot]
ebe0978454
ci: Version Packages (#1918)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-09 14:09:03 -08:00
github-actions[bot]
e82f0a8b7c
ci: Version Packages (#1904)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-04 14:58:45 -08:00
github-actions[bot]
15f3e39f27
ci: Version Packages (#1875)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-01 11:01:37 -08:00
vedanta
03c2beed86
fix: improve perf and fix Start usage (#1882)
* bumps up the @tanstack/react-store dependency to 0.8.0

* test -- example deps

* chore: fix PNPM lock

* chore: add changest

---------

Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
2025-12-01 10:52:17 -08:00
fuko
73eeabb4a4
docs: update the large-form example to work with async validators (#1777) 2025-12-01 04:57:33 -08:00
github-actions[bot]
982d7b4b0d
ci: Version Packages (#1857)
* ci: Version Packages

* ci: fix PR reference

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: LeCarbonator <18158911+LeCarbonator@users.noreply.github.com>
2025-11-25 07:40:00 +01:00
github-actions[bot]
5ae9c07623
ci: Version Packages (#1851)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-13 20:16:24 +01:00
Leonardo Montini
d3883e9c40
feat: update start to rc (#1771)
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
Co-authored-by: Harry Whorlow <whorlowharry@gmail.com>
Co-authored-by: Harry Whorlow <79278353+harry-whorlow@users.noreply.github.com>
Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
2025-11-13 19:46:25 +01:00
github-actions[bot]
987d8ff0c2
ci: Version Packages (#1821)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-13 11:19:03 +01:00
Harry Whorlow
154ac183a6
feat(devtools): update to devtools utils, add solid devtools (#1789) 2025-11-12 19:57:01 +01:00