Skip to content

Releases: stevent-team/react-zoom-form

v0.3.0

09 Jul 03:24
7aac992
Compare
Choose a tag to compare

Minor Changes

  • 616791d: Introduce errors helper fn.

    This is a breaking change that removes the errors object from the return of useForm, and instead introduces a global function errors() that takes a field and returns an array of ZodIssues.

Patch Changes

v0.2.1

08 Jul 11:21
c54c860
Compare
Choose a tag to compare

Patch Changes

  • f889c10: Don't apply Partial to custom field if type is an array

v0.2.0

08 Jul 10:22
3f5a5bb
Compare
Choose a tag to compare

Minor Changes

  • 8c6590a: Remove useField hook and replace with a "controlled" method.

    This allows for more ergonomic usage of custom elements, as you can now wrap a custom field with controlled like so and it will give you value, onChange etc.

    const schema = z.object({ myInput: z.string() });
    
    const { fields } = useForm({ schema });
    
    const { value, onChange } = controlled(fields.myInput);

v0.1.0

08 Jul 09:03
46b3c64
Compare
Choose a tag to compare

Minor Changes

  • 1b854ed: Add support for radio fields

Patch Changes

  • 7f71035: Allow symbol access to proxies for introspection

v0.0.3

05 Jul 03:35
2dfa708
Compare
Choose a tag to compare

Patch Changes

  • 721abd5: Always init Proxy with object

v0.0.2

04 Jul 12:46
b2ee5eb
Compare
Choose a tag to compare

Patch Changes

  • 97a35ee: Remove peer deps from bundle

v0.0.1

04 Jul 12:26
41a93ef
Compare
Choose a tag to compare

Patch Changes