- fix: Mobx error
Field not found.
- fix: umd bundler defaults exports
- Bundler optimizations
- Replace Webpack with Rollup
- Introduced
extraform config for better dependencies injection. - Deprecated form.validatedValues in Form class. use form.flatMapValues instead.
- Fixed imports paths in validation plugins.
- Feat: Support for YUP .ref() and .when() methods
- Fix: #626
- Feat: validation package type inference when extending validation plugins
- Fix:
autocompletetoautoComplete
ValidationPluginsinterface allows custom plugins keys.- Introduced
autocompletefield prop. - Deprecated
checkValidationPluginsmethod.
- Full
nullvalues support for fields values. - Introduced
nullablefield prop.
- Introduced
JOIvalidation plugin and driver. - Added
ValidatorConstructorinferface
- Fix: #636
- Fix: Added
editableprops to initial props state.
- introduced
SubmitOptionsandSubmitHooksmodels.
- deprecated
checkSVKValidationPlugin
- introduced
validate()input types. - introduced
ValidateOptions&ValidateOptionsInterfacemodels.
- Validator types improvements.
- introduced
ValidationPlugin,ExtendPluginandValidationPluginConfigmodels. - mandatory
packageprop when defining Validation Plugins. - deprecated
allowRequiredoption (SVK). - Fix:
showErrors()deep disabled when validating field.
- Fix: deprecated field
showAsyncErrors(), useshowErrors(). - FIx: field import in
FormInterface
- Fix: call
invalidate()withdeepargument.
- Fix: call
invalidate()withasyncargument.
- Field
invalidate()methods arguments updated, introduceddeep.
- better handling of
deepargument forshowErrors()&invalidate()methods. - removed
mixedmode 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/classesprops to handleFieldextension 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()forhooksandhandlers
- Feat: ability to define or override hooks after initialization.
- Feat: Introduced
setHooks()&getHooks()methods.
- Fix: handle
onSubmithook 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:
parseCheckArraychecks forincrementalfield status. - Updated
semantic-release
- Fix:
isEmptyArrayreimplemented inisArrayFromStructutil function; - Removed lodash
_.isArray()withArray.isArray() - Introduced
structprop inmakeFieldmethod.
- Fix:
get('value')retrieve empty array removed byupdate() - Fix:
composerreturned invalidate/submitinstead of single methods.
- Fix:
preserveDeletedFieldsValuesonadd()action to handlefieldsprop.
- Introduced field
computedprop. To handle nested array fields computed values.
- Introduced Forms Composer
- Introduced Functional Computed Field Props
- Introduced
strictSelectandstrictSetform options. - Form option
strictUpdatebehavior changed (now applied onupdate()action). - Field prop
validatorsdoes not accept anymore a single function, an array of functions is needed.
- Introduced
applyInputConverterOnInit,applyInputConverterOnSet,applyInputConverterOnUpdateform options. - Introduced
converterfunction applied onset value. - Fix:
inputfunction removed fromset value.
- Fix: mobx cycle detected in computation (get() strict mode)
- Refactored set value with input function
- Deprecated input function on
initialanddefaultprops. - Fix: input function applied 2 times when using
set()
- Feat: #433 (File input append mode)
- Fix: #624 (defaults() helpers)
- Introduced
fallbackValueandretrieveNullifiedEmptyStringsform options. - Fix:
get()strict mode improved - Fix: default type file value;
- stable typescript release
set()will applyinputfunction also toinitialanddefaultprops.- Fix: #519
- Introduced Field
trim()method. - Introduced
validateTrimmedValueform option. - Introduced
resetValidationBeforeValidateform option. validationOrderform option renamed tovalidationPluginsOrder.- Added computed
validating&submittingin allowed props guard. - Fix:
clearingandresettingobservable mutation. - Updated Issue: #283
- Fix: using
autoTrimValueoption will not triggeronChangeEvent Hook
- Introduced
inputModeField property. - Introduced
autoTrimValueform option (can be also enabled on single field). - Fix: #283
set()method will increasechangedprop and triggeronChangeEvent Hook- Mobx events (observe/intercept) allowed props guarded.
- Introduced
onSyncHook (triggered ononChangeEvent Handler) - Introduced
validateOnSubmitform option (active by default). - Fix:
refprop for separated props mode renamed torefs(plural) - Fix: #337
- fix: allow
refprop onset() - fix:
refcomputed accessible (before was accessed by $ref)
- Introduced
refField prop. (handle React Refs); refis auto-binded with the input when usingbind()or can be defined/changed withset()autoFocusbheavior 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
preserveDeletedFieldsValuesform 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
changedfield prop. (not triggering anymoreonChangewhen using add(), useonAdd/onDelhooks instead). - Updated
changedcomputed 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
defaultBindings Template. clear()&reset()methods will revert to initial validation state instead ofvalidate().- introduced
onKeyUpandonKeyDownfields Hooks and Handlers. - introduced
validateOnClear&validateOnResetform options (disabled by default). - introduced
removeNullishValuesInArraysform option (disabled by default). - introduced
retrieveOnlyEnabledFieldsErrorsform option (disabled by default). retrieveOnlyDirtyValuesform option renamed toretrieveOnlyDirtyFieldsValues.retrieveOnlyEnabledFieldsform option renamed toretrieveOnlyEnabledFieldsValues- fix: #617 #615 #613 #614 #544 #454 #518 #376 #497 #582 #394
- fix: Support
validatedWithwith 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
fallbackform option
- introduced
validateOnChangeAfterSubmitform option
- reimplemented
initial/defaultisDirty/isPristine
- introduced
validateDeletedFieldsform option
- decoupled validation plugins drivers
- introduced
yupvalidation plugin - changed validation plugins
extendcallback props - AJV schema definition moved to plugin setup
- introduced
softDeleteoption - introduced
submitted&validatedprop
- mobx5 support
- Introduced observable
typefield prop - Removed
labelfallback to fieldname - fix: #432 #415 #355 #347 #425 #429 #416
- Added
structconstructor prop - Reimplemented add() method
- mobx4 support
- Validate with different props.
- Reimplemented Event Hooks & Handlers.
- Introduced new Event Hooks.
- Introduced
input/outputprops (converters). - Introduced
hooksField prop and class function. - Introduced
handlersField prop and class function. - Introduced
validatedWithField prop. - Introduced
validatedValueField computed. - Option
alwaysShowDefaultErrorremoved. - Option
uniqueId(Custom Function) added. - Option
validateDisabledFieldsadded. - Computed
hasIncrementalNestedFieldsrenamed tohasIncrementalKeys. - No more manually wire
onDroptoonChange.
- Option
validateOnBluradded. - Option
validateOnChangeisfalseby default. - Option
showErrorsOnUpdaterenamedshowErrorsOnChange. - Option
showErrorsOnChangeistrueby default. - Option
retrieveAlsoDisabledFieldsrenamedretrieveOnlyEnabledFields. - Option
retrieveOnlyEnabledFieldsisfalseby default. - Option
validationDebounceOptionsdefault is{ leading: false, trailing: true } optionsField prop renamedextra.optionsField prop handle individual Field Options.- Field Options will fallback on Form Options.
- Implemented input file
typehandling. - Introduced
onDropField Event Handler. - Introduced
onDropField Hook. - Introduced
filesField prop. - Introduced
resetting&clearingcomputed. - Dropzone support.
- Ability to pass
onChange&onTogglein constructor.
- New
onClear&onResetForm & Fields Hooks. - Introduced
retrieveAlsoDisabledFieldsoption. observe/interceptnow supports Form props.changed&touchedare now false afterclear/reset.- Fixed unified mode
initialprop handling.
- Event Hooks deprecated.
- Method
forEach()renamedeach(). - Refactored & semplified
map(). - Introduced
has()method. - Introduced Form
showErrors()method. - Introduced
sizecomputed prop. - Prop
validaterenamedvalidatorsfor consistency. - Fixed empty nested array element (index 0 no more added).
focuscomputed renamedfocused.- Introduced
autoFocusinput support. - Introduced Field
focus()method.
- Introduced
retrieveOnlyDirtyValuesoption
- Introduced
extradata
showErrorsonFieldisfalseby default.showErrorsonvalidate()isfalseby default.- Introduced new showErrors options.
showErrorsOnUpdateis changed tofalseby default.showErrorsOnBluris nowtrueby default.- Introduced new
observeShowErrors()Field method. - Introduced
debouncedValidationonsubmit.
- Auto invalidate
onSubmit>onErrorif defaultGenericError is defined. - Validation Handlers supports Promises.
- Introduced
submittingprop - Introduced
submitThrowsError. option.
- Introduced Sub-Form Submission.
- Register
onSubmitcallbacks with constructor. validate()resolves to object (not boolean).- Fixed Single Field Validation.
- Introduced Interceptors.
dispose()API changed.
- Introduced
debouncedValidation. - Introduced Form & Field
validatingmobx 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).
loadingMessageoption 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-formtomobx-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