- FIX: errors[''] is nothing special, remove special handling for it.
- Support form errors via an
ValidationError
onsubmit
.
- Do not extend submit when already present
- Use yarn and esbuild
- Compatibility with mobx>=4
- Support overriding
getPatch
- Support overriding
getSnapshot
andgetNestedSnapshot
- Support a JSON schema definition for the form
- Do not add a default
fields
property on array fields.
- Allow for data-testid on form elements. If no identifier is passed "unknown" will be assumed as the namespace
- Set submit error state to null after validation has occurred
- set value default to an empty object
- Pass
form
to validator function
- Add
label
to the form
- Add path to node
- Detect field removals on
getPatch()
- Bugfix: Unflatten all fields on
F.getNestedSnapshot
- Bugfix: Use safe clone instead of
_.cloneDeep
internally
- Do not take
path
onnode.remove
. Useform.getField(path).remove()
- Make sure array fields are observables when replacing array values
- Add nested fields support
- Add array fields support
- Drop
{form,field}.empty
methods.
- Export validators
- Chore: drop webpack
- Chore: package bumps
- Correctly initialize field value
- 0.0.16 v3. Convert other value to a plain javascript object before doing the comparison
- Add
{form,field}.empty
methods.
- 0.0.16 v2. Convert value to a plain javascript object before doing the comparison
{form,node}.isDirty
now correctly identify dirty arrays/objects
- add
clean
method to Fields and Forms to allow dirty checking against current values
- Fix issue with preserving already invalid fields when validating a field subset
- Validating a field should also include fields which are currently invalid
- Clear validation errors on form reset
- Fix mobx peer dependency minimum
- ValidatorJS rules need to be converted to plain JS
- Fix validatorJS rules existance check
- When using validatorJS validator, skip fields that do not have validation rules defined
- Function validator now looks for
validator
instead ofvalidate
to not clash with the per field validate method
- Add support for validating subsets of the form.
- Updated duti
- Add mobx and futil to externals
- Remove
async
function declaration to avoid regenerator runtime / babel-polyfill
- Fix entry point to use built version
- Initial Commit