Skip to content

Releases: marvinhagemeister/mobx-form-reactions

5.0.0

01 Jul 10:24
Compare
Choose a tag to compare

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 now field.validator.errors.
  • Breaking: field._validating which is now officially part of the public api and is moved to field.validator.validating.

4.1.1

15 May 20:31
Compare
Choose a tag to compare
  • Prevent babel from transpiling for-of loops with generators.

4.1.0

24 Apr 06:40
Compare
Choose a tag to compare
  • Add back support for enforceActions (previously called useStrict() in mobx)
  • Add support for revisions for forms. This is great for dirty checking/syncing
  • Make validator-property on Field non-private to allow setting Validators with circular references
  • Add setter for initial-property and don't set it to false upon calling setValue. 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

15 Apr 09:54
Compare
Choose a tag to compare

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 getter value
  • Add support for treeshaking
  • autogenerate TypeScript bindings

3.4.2

10 Feb 17:50
Compare
Choose a tag to compare
  • There could be a case where the validating flag wasn't reset properly after validation.
  • Simplify submit code (only internal changes)

3.4.1

10 Feb 10:42
Compare
Choose a tag to compare
  • Fix validation bug when only default value is set

3.4.0

07 Feb 17:36
Compare
Choose a tag to compare

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

07 Feb 17:33
Compare
Choose a tag to compare
  • required validation should trim strings

3.3.3

07 Feb 17:33
Compare
Choose a tag to compare
  • Bind this for all actions

3.3.2

06 Feb 15:25
Compare
Choose a tag to compare
  • Fix missing action decorator in FieldArray validation