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.
- Bump up dependencies.
- Stricter linting rules.
- Example app tested and running on multiple platforms: Android, IOS, Web and MacOS.
- Url and ReqUrl classes to validate both optional and mandatory Url form fields — 96.
- 'Contribute' section to README — 156.
- IPv6 and ReqIPv6 classes to validate both optional and mandatory IPv6 form fields — 98.
- MacAddr and ReqMacAddr classes to validate both optional and mandatory MAC Address form fields — 95.
- IPv4 and ReqIPv4 classes to validate both optional and mandatory IPv4 form fields — 97.
- remove redundant imports.
- running demo app on Android — 146.
- increase the allowed maximum length of the local part of emails (before the @) to 128 characters — 143.
- minor changes to the README file.
- rename parameters 'less' to 'short' and 'great' to 'long' in length-related constructors — 140 BREAKING CHANGES.
- improvements in README.
- several doc comments.
- Update lint and test packages.
- Stricter linting rules.
- Shorter package description.
- README improvements.
- BrPhone class to validate both masked and unmasked Brazilian landline numbers — 108.
- BrMobile class to validate both masked and unmasked Brazilian mobile numbers — 107.
- ReqBrPhone and ReqBrMobile classes — 128.
- useless 'call' method implementation from classes CpfStrip and CnpjStrip — 130 BREAKING CHANGE.
- rename the parameter "non" to "mal" in classes that use it — 122 BREAKING CHANGE.
- turn this package into a dependency-free package; it doesn't even depend on the Flutter SDK — 120.
- Integer Constraint Validators, Int and ReqInt — 113.
- Num.pos (numbers >= 0) and Num.neg (numbers < 0) constructors — 117.
- stricter lint rules 111.
- rename the error message of Num and ReqNum from "nan" to "non" — 115 BREAKING CHANGE.
- drop the dependency on the "cpf_cnpj_validator" package — 104.
- Hex and ReqHex for validating hexadecimal input values 93.
- Match and ReqMatch for string pattern validations — 94.
- Reorganization of the validator categories — 92 BREAKING CHANGES.
- Some improvements to the README's content — 89.
- 'ReqCnpj' which is the composition between the validators 'Req' and 'Cnpj' — 65.
- 'ReqCpf' which is the composition between the validators 'Req' and 'Cpf' — 65.
- better README content — 86.
- 'ReqDigit' which is the composition between the validators 'Req' and 'Digit' — 64.
- 'ReqNum' which is the composition between the validators 'Req' and 'Num' — 66.
- more elaborate content in the README file.
- 'Digit.len', 'Digit.min', 'Digit.max', and 'Digit.range' constructors — 63.
- 'Cep' and 'ReqCep' validators along with the 'CepStrip' utility class — 71.
- 'ReqLen' class — 62.
- The 'Digit' constructor is no longer const — BREAKING CHANGE.
- The name of Len's parameters. The 'short' param. was renamed to 'less'; the 'long' param., to 'great'. BREAKING CHANGE.
- Len's default error messages — 69.
- Refactoring of classes CnpjStrip, CpfStrip, and CepStrip — 73.
- Optimization of the Pair aggregator — 75 BREAKING CHANGES.
- Superfluous constructos — 78 BREAKING CHANGES.
- 'Req' validator accept an additional validation step as a parameter — 56.
- 'Req' validator constructors are no longer const — BREAKING CHANGE.
- 'Pair' validator that groups two validators as if they were only one.
- 'ToValObj' adapter that restricts the input data type to String.
- 'ReqEmail.len' constructor — 60.
- the 'len' named constructor to the Email validator class — 53.
- Update the validators error message type to 'String?' — 43 BREAKING CHANGES.
- Rename the validator types aliases — 49 BREAKING CHANGES.
- Len class refactoring — 47 BREAKING CHANGES.
- Num class refactoring — 45 BREAKING CHANGES.
- Num class for number relating validation — 35.
- Len class for field length validation — 34.
- move all functionality from the MaxLen and MinLen classes to Len the class.
- MaxLen and MinLen classes — BREAKING CHANGE.
- ReqEmail class — Convenient validator for required email fields - 28.
- shorter package description.
- rename this package to formdator - Formidable form validator.
- create section 0.2.0 in this CHANGELOG.
- 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 '-'.
- 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.
- OkDt and any other DateTime-related validator.
- The validator classes:
- ReqCnpj, ReqCpf, ReqDigit, ReqEmail, TrimReq, TrimReq, TrimReqCpf, TrimReqEmail, TrimRules.
- OkDt -- DateTime validator that always validates the incoming datetime value.
- ReqNum (Required Numeric) convenience validator.
- Removed unused import from ReqEmail class.
- Equal validator has a "to" method in addition to overloading the "call" operator.
- Equal validator message parameter name to "diff".
- Equal validator bug.
- "Tautological" Ok validator -- it always validates the incoming value.
- Required DateTime validator.
- Wellformed DateTime validator.
- Multiple rules DateTime validator.
- Trimmer validators -- validators that trims the value before validating it.
- Set of required and well formed special case classes.
- Equal validator code reformatted.
- Equal validator docoment comments enhanced.
- Created the "unreleased" section to this CHANGELOG file.
- 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.
- 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.