Skip to content

Releases: VeryGoodOpenSource/formz

v0.8.0

22 Oct 14:16
333f6c2
Compare
Choose a tag to compare
  • chore: tighten dependencies (#127) - Note: This now requires Dart 3.5.0 or higher.
  • chore(deps): bump VeryGoodOpenSource/very_good_coverage from 2 to 3 (#120)
  • chore(deps): bump very_good_analysis from 5.1.0 to 6.0.0 in /example (#124)
  • chore(deps): bump very_good_analysis from 5.1.0 to 6.0.0 (#125)

v0.7.0

21 Feb 15:15
938c423
Compare
Choose a tag to compare
  • feat!: update Dart version constraints to "^3.0.0" (#115)

v0.6.1

20 Sep 14:40
da79487
Compare
Choose a tag to compare
  • fix(example): update validation to throw on empty values (#100)
  • chore: update very good analysis to 5.1.0 (#104)
  • fix(docs): wrong docs (#106)

v0.6.0

23 Mar 18:02
91b2573
Compare
Choose a tag to compare
  • feat: add FormzInputErrorCacheMixin mixin
  • feat: add isInProgressOrSuccess to FormzSubmissionStatusX
  • feat: add purity check to FormzMixin

v0.5.0+1

28 Feb 18:49
1043039
Compare
Choose a tag to compare
chore: v0.5.0+1 (#80)

v0.5.0

28 Feb 18:26
edc7647
Compare
Choose a tag to compare
  • docs: add a caching example
  • refactor: update very good analysis, workflows, flutter/dart version
  • feat: update very good analysis
  • feat: add dependabot
  • BREAKING: this release promotes 0.5.0-dev.1 which brings breaking changes

v0.5.0-dev.1

03 May 22:28
3587e3d
Compare
Choose a tag to compare
v0.5.0-dev.1 Pre-release
Pre-release

0.5.0-dev.1

  • docs: use nullable validator in README

  • feat: add example Flutter app

  • BREAKING: decouple purity, validity, and submission status

    Changes

    1. FormzStatus renamed to FormzSubmissionStatus:
    /// Enum representing the submission status of a form.
    enum FormzSubmissionStatus {
    /// The form is in the process of being submitted.
    inProgress,
    
    /// The form has been submitted successfully.
    success,
    
    /// The form submission failed.
    failure,
    
    /// The form submission has been canceled.
    canceled
    }
    1. FormzInput class no longer exposes a status (FormzInputStatus). Instead there are isValid and isNotValid getters:
    class NameInput extends FormzInput<String, NameInputError> {
    const NameInput.pure() : super.pure('');
    const NameInput.dirty({String value = ''}) : super.dirty(value);
    
    @override
    NameInputError? validator(String value) {
        return value.isNotEmpty == true ? null : NameInputError.empty;
    }
    }
    
    void main() {
    const name = NameInput.pure();
    print(name.isValid); // false
    print(name.isNotValid); // true
    
    const joe = NameInput.dirty(value: 'joe');
    print(joe.isValid); // true
    print(joe.isNotValid); // false
    }
    1. FormzInput has a displayError getter which returns an error to display if the input is not valid and has been modified by the user (closes #44)
    void main() {
    const name = NameInput.pure();
    print(name.displayError); // null
    
    const invalid = NameInput.dirty(value: '');
    print(name.displayError); // NameInputError.empty
    }
    1. Renamed pure to isPure for consistency

v0.4.1

14 Oct 19:43
26a22df
Compare
Choose a tag to compare
  • feat: add submissionCanceled to FormzStatus

v0.4.0

26 Apr 04:31
51da5ba
Compare
Choose a tag to compare
  • BREAKING: opt into null safety
  • feat!: upgrade Dart SDK constraints to >=2.12.0-0 <3.0.0

v0.4.0-nullsafety.0

22 Dec 17:24
Compare
Choose a tag to compare
v0.4.0-nullsafety.0 Pre-release
Pre-release
  • chore!: migrate to null safety