acanthis 1.3.0 copy "acanthis: ^1.3.0" to clipboard
acanthis: ^1.3.0 copied to clipboard

Acanthis is an easy-to-use validation library for Dart and Flutter.

Changelog #

1.3.0 #

  • feat: add AcanthisString#contained to check if the string is one of the contained values.
  • fix: AcanthisString#enumerated now accepts a optional parameter nameTransformer to transform the name property of the enum values if needed. #12 by Hanibachi

1.2.3 #

  • refactor: improve overall code quality and performance.
  • feat: allow custom error message for all validators.

1.2.2 #

  • refactor: add possiblity to use both String and RegExp for AcanthisString#pattern validator.
  • feat: add AcanthisType#elementType to get the type of the schema.

1.2.1 #

  • refactor: improve overall code quality and performance.
  • remove 'fast_immutable_collections' dependency.

1.2.0 #

1.1.0 #

  • fix: AcanthisMap.extend method now does not override existing key-value pairs. #7 by francescovallone
  • refactor: codebase is now immutable. #6 by dickermoshe

1.0.2 #

  • Add differsFromNow to the AcanthisDate validator.
  • Add double and between to the AcanthisNumber validator.
  • Add time, url, card and hexColor to the AcanthisString validator.

1.0.1 #

  • Add lazy validator to allow for recursive schemas.

1.0.0 #

  • Upgrade dependencies.
  • Add async checks for all validators to allow for a more flexible validation process.
  • Add partial validator to object validator.
  • Add more String validators.
  • Rename customCheck to refine in all validators.
  • Add refineAsync to all validators.
  • Add pipe and AcanthisPipeline to allow for more complex validation and transformation processes.

0.1.3 #

Features #

  • Add the optionals function to the object validator.

Docs #

  • Add information about optionals in the object validator.

0.1.2 #

  • Add the addFieldDependency function to the object validator.
  • Add information about addFieldDependency in the object validator.
  • Remove the Operations section from the documentation.

0.1.1 #

Refactor #

  • The function jsonObject has been renamed as object.
  • Add explicit information about the parse result object AcanthisParseResult.

0.1.0 #

  • Add the nullable validator.
  • Add the union validator.
  • Add the boolean validator.
  • Add transformation functions for all the validators except nullable, boolean and union.
  • Add tests for all the validators (100% coverage 🎉).
  • Add documentation for all the validators.
  • [#1] Fix the string().email() validator that will now use the email_validator package.

0.0.1 #

  • Initial version.
32
likes
160
points
606
downloads

Publisher

verified publisherserinus.app

Weekly Downloads

Acanthis is an easy-to-use validation library for Dart and Flutter.

Homepage
Repository (GitHub)
View/report issues

Topics

#validation #dart #validation-form #validators #zod

Documentation

Documentation
API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

crypto, email_validator, meta, nanoid2

More

Packages that depend on acanthis