- Introduced
JOI
validation plugin and driver. - Added
ValidatorConstructor
inferface
- Fix: #636
- Fix: Added
editable
props to initial props state.
- introduced
SubmitOptions
andSubmitHooks
models.
- deprecated
checkSVKValidationPlugin
- introduced
validate()
input types. - introduced
ValidateOptions
&ValidateOptionsInterface
models.
- Validator types improvements.
- introduced
ValidationPlugin
,ExtendPlugin
andValidationPluginConfig
models. - mandatory
package
prop when defining Validation Plugins. - deprecated
allowRequired
option (SVK). - Fix:
showErrors()
deep disabled when validating field.
- Fix: deprecated field
showAsyncErrors()
, useshowErrors()
. - FIx: field import in
FormInterface
- Fix: call
invalidate()
withdeep
argument.
- Fix: call
invalidate()
withasync
argument.
- Field
invalidate()
methods arguments updated, introduceddeep
.
- better handling of
deep
argument forshowErrors()
&invalidate()
methods. - removed
mixed
mode warning
- Fix: extend hooks and handlers on form instance using set()
- Fix: reset validation action for mobx strict mode
- Fix: mobx strict mode for hooks and handlers
- Fix: #632 observable hooks and handlers
- Feat: introduced
class
/classes
props to handleField
extension in Fields Definitions.
- Fix: added missing bind method to field interface
- Introduced ZOD validation driver
- Added SVK support for array of objects
- Fix: #404
- Deprecatad:
setHooks()
&getHooks()
methods. - Handle
set()/get()
forhooks
andhandlers
- Feat: ability to define or override hooks after initialization.
- Feat: Introduced
setHooks()
&getHooks()
methods.
- Fix: handle
onSubmit
hook return promise
- Fix: composer
error()
method. - Fix: default models/interfaces have now named exports.
- Fix: check event w/
isEvent()
to callpreventDefault()
for native support.
- Fix:
parseCheckArray
checks forincremental
field status. - Updated
semantic-release
- Fix:
isEmptyArray
reimplemented inisArrayFromStruct
util function; - Removed lodash
_.isArray()
withArray.isArray()
- Introduced
struct
prop inmakeField
method.
- Fix:
get('value')
retrieve empty array removed byupdate()
- Fix:
composer
returned invalidate/submit
instead of single methods.
- Fix:
preserveDeletedFieldsValues
onadd()
action to handlefields
prop.
- Introduced field
computed
prop. To handle nested array fields computed values.
- Introduced Forms Composer
- Introduced Functional Computed Field Props
- Introduced
strictSelect
andstrictSet
form options. - Form option
strictUpdate
behavior changed (now applied onupdate()
action). - Field prop
validators
does not accept anymore a single function, an array of functions is needed.
- Introduced
applyInputConverterOnInit
,applyInputConverterOnSet
,applyInputConverterOnUpdate
form options. - Introduced
converter
function applied onset value
. - Fix:
input
function removed fromset value
.
- Fix: mobx cycle detected in computation (get() strict mode)
- Refactored set value with input function
- Deprecated input function on
initial
anddefault
props. - Fix: input function applied 2 times when using
set()
- Feat: #433 (File input append mode)
- Fix: #624 (defaults() helpers)
- Introduced
fallbackValue
andretrieveNullifiedEmptyStrings
form options. - Fix:
get()
strict mode improved - Fix: default type file value;
- stable typescript release
set()
will applyinput
function also toinitial
anddefault
props.- Fix: #519
- Introduced Field
trim()
method. - Introduced
validateTrimmedValue
form option. - Introduced
resetValidationBeforeValidate
form option. validationOrder
form option renamed tovalidationPluginsOrder
.- Added computed
validating
&submitting
in allowed props guard. - Fix:
clearing
andresetting
observable mutation. - Updated Issue: #283
- Fix: using
autoTrimValue
option will not triggeronChange
Event Hook
- Introduced
inputMode
Field property. - Introduced
autoTrimValue
form option (can be also enabled on single field). - Fix: #283
set()
method will increasechanged
prop and triggeronChange
Event Hook- Mobx events (observe/intercept) allowed props guarded.
- Introduced
onSync
Hook (triggered ononChange
Event Handler) - Introduced
validateOnSubmit
form option (active by default). - Fix:
ref
prop for separated props mode renamed torefs
(plural) - Fix: #337
- fix: allow
ref
prop onset()
- fix:
ref
computed accessible (before was accessed by $ref)
- Introduced
ref
Field prop. (handle React Refs); ref
is auto-binded with the input when usingbind()
or can be defined/changed withset()
autoFocus
bheavior changed, now can be defined in field definitions or can be assigned withset()
.focus()
method reimplemented using auto-ref (fixed).- Introduced Field
blur()
method (using auto-ref). - Fix: #529 #250 #524
- Fix: Empty Constructor (was requiring at least an empyt object if used with only class fileds definitions)
- Introduced
preserveDeletedFieldsValues
form option (disabled by default). - Fix: after deleting and adding same field, the defined initial values will not be preserverd anymore.
- Updated add()/del()/update() actions to handle
changed
field prop. (not triggering anymoreonChange
when using add(), useonAdd
/onDel
hooks instead). - Updated
changed
computed prop behavior for nested fields and Event Hooks triggering. - Events Hooks now are triggered also from actions if not used Event Handlers.
- fix: #585 #531
fix: #371 #399 #408
- Support for
default
Bindings Template. clear()
&reset()
methods will revert to initial validation state instead ofvalidate()
.- introduced
onKeyUp
andonKeyDown
fields Hooks and Handlers. - introduced
validateOnClear
&validateOnReset
form options (disabled by default). - introduced
removeNullishValuesInArrays
form option (disabled by default). - introduced
retrieveOnlyEnabledFieldsErrors
form option (disabled by default). retrieveOnlyDirtyValues
form option renamed toretrieveOnlyDirtyFieldsValues
.retrieveOnlyEnabledFields
form option renamed toretrieveOnlyEnabledFieldsValues
- fix: #617 #615 #613 #614 #544 #454 #518 #376 #497 #582 #394
- fix: Support
validatedWith
with nested property of a field's value
- fix: cannot change disabled prop on fields
- nested fields trigger onchange hook on container
- trigger onChange hook on add/del
- Form level onChange hook
- introduced reducer
- Typescript support
- mobx 6.3.3 support
- stopValidationOnError & validationOrder options (fix #576)
- labels for DVR dependant fields for before/after rules
- mobx6.1 support
- mobx6 support
- pull #528
- pull #525
- fix #521
- fix #514 #516
- fix #507
- introduced
fallback
form option
- introduced
validateOnChangeAfterSubmit
form option
- reimplemented
initial
/default
isDirty
/isPristine
- introduced
validateDeletedFields
form option
- decoupled validation plugins drivers
- introduced
yup
validation plugin - changed validation plugins
extend
callback props - AJV schema definition moved to plugin setup
- introduced
softDelete
option - introduced
submitted
&validated
prop
- mobx5 support
- Introduced observable
type
field prop - Removed
label
fallback to fieldname
- fix: #432 #415 #355 #347 #425 #429 #416
- Added
struct
constructor prop - Reimplemented add() method
- mobx4 support
- Validate with different props.
- Reimplemented Event Hooks & Handlers.
- Introduced new Event Hooks.
- Introduced
input
/output
props (converters). - Introduced
hooks
Field prop and class function. - Introduced
handlers
Field prop and class function. - Introduced
validatedWith
Field prop. - Introduced
validatedValue
Field computed. - Option
alwaysShowDefaultError
removed. - Option
uniqueId
(Custom Function) added. - Option
validateDisabledFields
added. - Computed
hasIncrementalNestedFields
renamed tohasIncrementalKeys
. - No more manually wire
onDrop
toonChange
.
- Option
validateOnBlur
added. - Option
validateOnChange
isfalse
by default. - Option
showErrorsOnUpdate
renamedshowErrorsOnChange
. - Option
showErrorsOnChange
istrue
by default. - Option
retrieveAlsoDisabledFields
renamedretrieveOnlyEnabledFields
. - Option
retrieveOnlyEnabledFields
isfalse
by default. - Option
validationDebounceOptions
default is{ leading: false, trailing: true }
options
Field prop renamedextra
.options
Field prop handle individual Field Options.- Field Options will fallback on Form Options.
- Implemented input file
type
handling. - Introduced
onDrop
Field Event Handler. - Introduced
onDrop
Field Hook. - Introduced
files
Field prop. - Introduced
resetting
&clearing
computed. - Dropzone support.
- Ability to pass
onChange
&onToggle
in constructor.
- New
onClear
&onReset
Form & Fields Hooks. - Introduced
retrieveAlsoDisabledFields
option. observe
/intercept
now supports Form props.changed
&touched
are now false afterclear
/reset
.- Fixed unified mode
initial
prop handling.
- Event Hooks deprecated.
- Method
forEach()
renamedeach()
. - Refactored & semplified
map()
. - Introduced
has()
method. - Introduced Form
showErrors()
method. - Introduced
size
computed prop. - Prop
validate
renamedvalidators
for consistency. - Fixed empty nested array element (index 0 no more added).
focus
computed renamedfocused
.- Introduced
autoFocus
input support. - Introduced Field
focus()
method.
- Introduced
retrieveOnlyDirtyValues
option
- Introduced
extra
data
showErrors
onField
isfalse
by default.showErrors
onvalidate()
isfalse
by default.- Introduced new showErrors options.
showErrorsOnUpdate
is changed tofalse
by default.showErrorsOnBlur
is nowtrue
by default.- Introduced new
observeShowErrors()
Field method. - Introduced
debouncedValidation
onsubmit
.
- Auto invalidate
onSubmit
>onError
if defaultGenericError is defined. - Validation Handlers supports Promises.
- Introduced
submitting
prop - Introduced
submitThrowsError
. option.
- Introduced Sub-Form Submission.
- Register
onSubmit
callbacks with constructor. validate()
resolves to object (not boolean).- Fixed Single Field Validation.
- Introduced Interceptors.
dispose()
API changed.
- Introduced
debouncedValidation
. - Introduced Form & Field
validating
mobx computed (async check). - Events Hooks: returned Form instance (was a Field instance).
- Fixed Async error state (removed
loadingMessage
) - Fixed Async "validating..." Message (null as default).
loadingMessage
option removed.
- Introduced Observers.
- Introduced Converters (parse & format).
- Better Array Handling.
- Optional
submit()
onSuccess/onError callbacks. - Fixed Empty Array Handling in Field Container.
- Removed Initial Array element "0" (no more del(0)).
- Ability to pass 'plugins' with plugins() method
- Ability to pass 'options' with options() method
- Ability to pass 'options' as fields prop
- Ability to pass 'bindings' to Form constructor
- Form 'options' moved on the second argument of the Form constructor
- Form 'plugins' moved on the second argument of the Form constructor
- Updated dependencies.
- Code refactoring & optimization.
- Reimplemented del(), observe(), validate().
- Introduced field computed validators().
- Introduced form computed validating().
- Introduced alwaysShowDefaultError option.
- Introduced setup() method.
- Introduced "disabled" computed prop
- Introduced Fields Props Bindings
- Introduced initial props: types, bindings.
- Introduced field props: type, bindings.
- Introduced $try helper for bindings.
- Allow add() to include initial value
- Allow add() to assign custom field key
- Introduced Field invalidate() method
- Introduced Field placeholder
- Introduced unique Field ID
- Introduced autoParseNumbers option
- Extensible Field
- Computed Deep Check
- Nested Fields
- Nested Validation
- MobX as peer depdendency
- Lodash Cherry Pick
- Fixed #74 (validateOnChange option)
- Enhanced events handlers
- Added validateOnChange, strictUpdate, showErrorsOnUpdate options
- Define Fields Properties and Validators Separately
- Define fields as Array of Objects
- Added field set(prop, val) for edit props
- Added form onInit() event
- Added form options() get/set
- Bulk update() form properties
- Fixed some documentation errors
- Enabled VJF enhancement
- Support for React Select
- Validation Plugins
- Multiple Validation Styles
- Support for Async Validation
- Support for Material UI, React Widgets
- Package name changed from
mobx-ajv-form
tomobx-react-form
- Decoupled validator from fields
- Validation using mobx observe on field $value
- Display errors of related fields
- Custom Validation Functions
- Support for v5 json schema rules
- Updated constructor with single object
- Custom Validation Keywords
- Created API Documentation
- Added methods: isDirty();
- Renamed computed values: valid to isValid
- Added some tests
- Added silent mode
- Updated methods: validate(); clear(); reset();
- Clear genericErrorMessage on clear/reset
- Added methods: reset();
- Updated methods: clear();
- Fixed UMD build external libs
- Added UMD build/support
- Updated README.md
- First Release