formdator 0.5.1 formdator: ^0.5.1 copied to clipboard
A formidable collection of Flutter form field validators that can be selected and grouped into various combinations through composition — Decorator Pattern.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Dart Package Versioning.
[Unreleased] #
[0.5.0] - 2021-07-06 #
[0.4.0] - 2021-07-01 #
[0.3.1] - 2021-06-19 #
[0.3.0] - 2021-06-16 #
Changed - BREAKING #
- rename this package to formdator - Formidable form validator.
[0.2.0] - 2021-06-16 #
Added #
- Demo app as an example of how to use this package effectively.
- unit tests so that each validator is fully covered by tests.
- Brazil-related classes:
- Cpf validator: "Cadastro da Pessoa Física", kind of brazilian SSN - Social Security Number.
- CpfStripped: helper class that removes from a properly masked CPF field the two dots '.' and the dash '-'.
- Cnpj validator: "Cadastro Nacional de Pessoa Jurídica", kind of "National Registry of Legal Entities".
- CnpjStripped: helper class that removes from a properly masked CNPJ the two dots '.', the slash '/', and the dash '-'.
Changed - BREAKING #
- add an optional extra step validation parameter to Req - 17
- classes renaming - 13
- lint as the linter tool - 10
- null-safety migration - 11
- huge refactoring.
- rearrangement in directories structure.
Removed - BREAKING #
- OkDt and any other DateTime-related validator.
- The validator classes:
- ReqCnpj, ReqCpf, ReqDigit, ReqEmail, TrimReq, TrimReq, TrimReqCpf, TrimReqEmail, TrimRules.
[0.1.3] - 2020-23-01 #
Added #
- OkDt -- DateTime validator that always validates the incoming datetime value.
[0.1.2] - 2020-22-01 #
[0.1.1] - 2020-22-01 #
Changed #
- Equal validator has a "to" method in addition to overloading the "call" operator.
[0.1.0] - 2020-22-01 #
[0.0.4] - 2020-22-01 #
Added #
- "Tautological" Ok validator -- it always validates the incoming value.
- Required DateTime validator.
- Wellformed DateTime validator.
- Multiple rules DateTime validator.
[0.0.3] - 2020-04-01 #
[0.0.2] - 2019-12-23 #
Added #
- Cpf(Cadastro da Pessoa Física) validator -- Brazil's version of ssn (Social Security Number).
- Cnpj(Cadastro Nacional da Pessoa Jurídica) validator -- brazilian National Registry of Legal Entities.
[0.0.1] - 2019-12-23 #
Added #
- Required validator -- for mandatory fields.
- Rules validator -- applies multiple validity rules.
- Email validator -- checks whether the email is well formed.
- MinLength validator -- mininum number of characteres.
- MaxLength validator -- maximum number of characteres.
- Numberic validator -- for digit only fields.
- Equal validator -- ensures equality with a given value.