Skip to content

v0.5.0

Latest
Compare
Choose a tag to compare
@unleashy unleashy released this 02 May 22:38
72927bd

Added

  • Several internal types are now exported
  • ParserError to represent errors from the err function

Changed

  • BREAKING CHANGES:
    • ParserResult errors changed; now they take a generic E type to define
      their error property. No code changes are needed if your custom parsers
      only use the err function.
    • Instead of throwing on failure, schema now returns a ParserResult
      object. See README.md for details.

Removed

  • BREAKING CHANGES:
    • Drop support for async validation: AsyncParser removed, SyncParser
      renamed to just Parser.
    • ValidationError removed.