@tanstack/preact-form#
2.0.0-alpha.3#
Major Changes#
- Release the first alpha of TanStack Form v2.
Minor Changes#
Feature: Specify default options for
createFormHook#2426
395d61c- BREAKING:schemaOutputsno longer exists. It is superceded byvalidatorOutputs. This is only a name change, the schema's result is the same as beforevalidatorOutputsnow allows a callback validator to specify data that the submit function should know. Schemas do this automatically, but now you can do it manually as well:run: ({ createOutput }) => createOutput('This is not a validation error and onSubmit can use this')The current map is:
Validator onSubmit: ({ validatorOutputs }) => ...Schema Schema's output data createOutput(X)XDefault callback validator undefinedValidation error N/A, onSubmitdoesn't run#2365
f8bbc25- Feat: Field groups may now omit identity bindings likefields={{ a: 'a' }}
Patch Changes#
Refactor: Adapter
formOptions/appFormOptionsno longer shim the core types and runtime.BREAKING:
formOptions.looseSchemaandformOptions.strictSchemanow require a schema as first parameter. This locks down inference to get the best type safety out of it vs. the options object alone.Fix:
formOptions.looseSchemanow allowsdefaultValuesto omit properties instead of requiring them to be explicitly undefined.Fix: Subscription selectors now infer tuple return values without requiring
as const.#2434
fceed8a- Provide the field context inside App FormArrayField, so registered field components render there instead of throwing.Updated dependencies [
584fcd9,a679245,395d61c,f8bbc25]:- @tanstack/form-core@2.0.0-alpha.3
2.0.0-alpha.2#
Minor Changes#
Patch Changes#
#2348
4e37c69- Refactor: AdapterformOptions/appFormOptionsno longer shim the core types and runtime.BREAKING:
formOptions.looseSchemaandformOptions.strictSchemanow require a schema as first parameter. This locks down inference to get the best type safety out of it vs. the options object alone.Fix:
formOptions.looseSchemanow allowsdefaultValuesto omit properties instead of requiring them to be explicitly undefined.#2339
c7e102b- Fix: Subscription selectors now infer tuple return values without requiringas const.Updated dependencies [
532cba4,4e37c69,c7e102b,63c9ea3]:- @tanstack/form-core@2.0.0-alpha.2
2.0.0-alpha.1#
Patch Changes#
2.0.0-alpha.0#
Major Changes#
Patch Changes#
- Updated dependencies [
e68d53b]:- @tanstack/form-core@2.0.0-alpha.0
1.30.3#
Patch Changes#
- Updated dependencies []:
- @tanstack/form-core@1.33.3
1.30.2#
Patch Changes#
- Updated dependencies []:
- @tanstack/form-core@1.33.2
1.30.1#
Patch Changes#
#2206
df52a12- Re-exportuseSelectorfrom TanStack Store adapters and document migration from deprecateduseStore(fixes #2203).Updated dependencies [
3c57f6d,7b3012b,741da6b,3c57f6d,6cd477a,887a129]:- @tanstack/form-core@1.33.1
1.30.1#
Patch Changes#
- Re-export
useSelectorfrom@tanstack/preact-store(fixes #2203).useStoreremains available but is deprecated.
1.30.0#
Minor Changes#
Patch Changes#
- Updated dependencies [
808f158]:- @tanstack/form-core@1.33.0
1.29.8#
Patch Changes#
1.29.7#
Patch Changes#
re-render arrays when length doesn't change but values do (#2172)
Updated dependencies [
5dd1ed4,556e35e,427b3d9,01f51b5,4d250c0]:- @tanstack/form-core@1.32.0
1.29.6#
Patch Changes#
- Updated dependencies []:
- @tanstack/form-core@1.31.0
1.29.5#
Patch Changes#
- Updated dependencies []:
- @tanstack/form-core@1.30.0
1.29.4#
Patch Changes#
- Initial release of Preact adapter (#2148)