Releases: JakobJingleheimer/form5
Releases · JakobJingleheimer/form5
v3.2.4
v3.2.3
v3.2.2
v3.2.1-x
Do not use this release—the fix was showing false-positives. Use v3.2.2 instead.
v3.2.0
- 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
v3.1.1
- chore: remove unnecessary checks in
is.onSubmit
resetting dirty etc - fix: adjust
onSubmit
abort to check whether the diff is empty
It's a more expensive check, but it's more robust and allows for changes made inappropriately to form elements.
v3.1.0
- chore: exclude UI test files from source coverage
- fix:
<Input readOnly type="checkbox|radio">
alteringForm::pristine
- chore: correct filename of
<Field>
UI test - feat: adjust layout of
<FileInput>
previews - fix: ignore vendor application mime-types when determining preview-able
- improve performance:
String::match()
→RegExp::test()
- improve performance:
v3.0.0
Breaking changes
- f013d35 The
delta
argument passed toForm::onSubmit
has been corrected to exclude fields that were read-only, instead of setting their value asnull
(which should happen only fordisabled
). Per the specification, read-only fields should not be submitted in the form's payload. - cef6db2 The argument passed to
Form::onDirty
andForm::onPristine
have changed fromevent
totrue
andfalse
respectively. This simplifies consumption with useState():<Form onDirty={setDirty} onPristine={setDirty}>
- 03f1196 The library's peer dependency on
classname
has changed toclsx
(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