Skip to content

0.2.0

Latest

Choose a tag to compare

@Ryu0118 Ryu0118 released this 07 Jul 16:58
a230607

Breaking Changes

  • Redesign ValidationRule as an async, closure-based value type by @Ryu0118 in #2

ValidationRule/PredicateValidationRule (a protocol pair with a sync Bool predicate and a fixed error message) is replaced by a single closure-backed ValidationRule struct. Rules now return ValidationError? directly, can compute their message dynamically from the rejected input, and may be async (e.g. to validate against the filesystem). NonEmptyRule becomes ValidationRule.nonEmpty(message:). Terminal.readText(_:) is now async.

Full Changelog: 0.1.1...0.2.0