* 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>
* 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>
* 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>
* 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>
* 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>