Releases: marvinhagemeister/mobx-form-reactions
Releases · marvinhagemeister/mobx-form-reactions
5.0.0
This release moves all validation logic into the Validator
class. This was something that was bugging me for a while, and didn't have time to think about a proper solution for it. Thanks to a great tip by a co-worker, it is much less work than I originally anticipated.
- Breaking:
field.errors
is nowfield.validator.errors
. - Breaking:
field._validating
which is now officially part of the public api and is moved tofield.validator.validating
.
4.1.1
- Prevent babel from transpiling
for-of
loops with generators.
4.1.0
- Add back support for
enforceActions
(previously calleduseStrict()
in mobx) - Add support for revisions for forms. This is great for dirty checking/syncing
- Make
validator
-property onField
non-private to allow setting Validators with circular references - Add setter for
initial
-property and don't set it to false upon callingsetValue
. This is needed because ux requirements differ quite a bit about when a validation error should be shown to the user the first time
4.0.0
During the last year I gained a lot more experiences in dealing with complex form constructs. This release combines the new learnings and makes the library even a bit lighter.
- Breaking: Rename package to
@marvinh/mobx-form-reactions
- Breaking: Refactor validation logic to support proper cancellation and
prevent race conditions for asynchronous validations. See the Readme for more information - Breaking: Removed
submit()
in favor of a simple gettervalue
- Add support for treeshaking
- autogenerate TypeScript bindings
3.4.2
- There could be a case where the
validating
flag wasn't reset properly after validation. - Simplify submit code (only internal changes)
3.4.1
- Fix validation bug when only default value is set
3.4.0
Upgrade mobx
to 3.1.0
which allows modifying non-observed members without being wrapped with action
. This is extremely useful for initialization in constructors. Also up the version number because the removal of action
will now throw an error on older versions of mobx.
3.3.4
required
validation should trimstrings
3.3.3
- Bind
this
for all actions
3.3.2
- Fix missing action decorator in
FieldArray
validation