Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

CHANGELOG.md

159 lines8.0 KB

@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: schemaOutputs no longer exists. It is superceded by validatorOutputs. This is only a name change, the schema's result is the same as before

    validatorOutputs now 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:

    ValidatoronSubmit: ({ validatorOutputs }) => ...
    SchemaSchema's output data
    createOutput(X)X
    Default callback validatorundefined
    Validation errorN/A, onSubmit doesn't run
  • #2365 f8bbc25 - Feat: Field groups may now omit identity bindings like fields={{ a: 'a' }}

Patch Changes

  • Refactor: Adapter formOptions/appFormOptions no longer shim the core types and runtime.

    BREAKING: formOptions.looseSchema and formOptions.strictSchema now 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.looseSchema now allows defaultValues to 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 Form ArrayField, 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

  • #2343 532cba4 - Feature: Specify default options for createFormHook

Patch Changes

  • #2348 4e37c69 - Refactor: Adapter formOptions/appFormOptions no longer shim the core types and runtime.

    BREAKING: formOptions.looseSchema and formOptions.strictSchema now 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.looseSchema now allows defaultValues to omit properties instead of requiring them to be explicitly undefined.

  • #2339 c7e102b - Fix: Subscription selectors now infer tuple return values without requiring as 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

  • #2288 e68d53b - Release the first alpha of TanStack Form v2.

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

1.30.1

Patch Changes

  • Re-export useSelector from @tanstack/preact-store (fixes #2203). useStore remains 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

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)