Skip to content

Releases: JakobJingleheimer/form5

v3.2.4

v3.2.3

29 Feb 12:02
Compare
Choose a tag to compare

v3.2.2

v3.2.1-x

19 Feb 11:23
Compare
Choose a tag to compare

Do not use this release—the fix was showing false-positives. Use v3.2.2 instead.

v3.2.0

25 Jan 13:53
f254352
Compare
Choose a tag to compare
  • feat: Add TypeScript types #2
    • feat: add generated types
    • chore: remove prop-types peer-dep & declarations
    • add jsx preserve to tsconfig
    • feat: expose component prop types as export
    • fix: Group.displayName type

v3.1.2

25 Jan 13:48
4a4523a
Compare
Choose a tag to compare

v3.1.1

05 Dec 16:22
Compare
Choose a tag to compare

v3.1.0

v3.0.0

29 Sep 12:10
Compare
Choose a tag to compare

Breaking changes

  • f013d35 The delta argument passed to Form::onSubmit has been corrected to exclude fields that were read-only, instead of setting their value as null (which should happen only for disabled). Per the specification, read-only fields should not be submitted in the form's payload.
  • cef6db2 The argument passed to Form::onDirty and Form::onPristine have changed from event to true and false respectively. This simplifies consumption with useState(): <Form onDirty={setDirty} onPristine={setDirty}>
  • 03f1196 The library's peer dependency on classname has changed to clsx (which has an identical API, so no code changes should be needed for consumers of form5, merely a change in your own dependency). clsx has a smaller footprint and is more efficient.

New features

  • 5097a9a <Form> automatically aborts the submission immediately when the form is pristine.

Non-breaking bug fixes:

  • 68e93ee Fixed the transition on toggles

v2.4.7