Skip to content

2.0.0

Compare
Choose a tag to compare
released this 06 Feb 08:16
· 40 commits to master since this release

Breaking

  • Updated AlphabeticCondition and AlphanumericCondition to allow unicode characters by default (NumericCondition already allowed unicode characters by default).
  • AlphabeticCondition, AlphanumericCondition, CreditCardCondition, NumericCondition, PasswordStrengthCondition, PostcodeCondition, and RangeCondition now store their configurations in a configuration property rather than as top-level properties of the condition's instance. As an example, for an instance of AlphabeticCondition the check condition.allowsWhitespace == true would become condition.configuration.allowsWhitespace == true.

Added

  • Added Configuration, ConfigurableCondition, ConfigurableValidator protocols. Updated existing conditions and validators to take advantage of new protocols.
  • Added macOS support.

Updated

  • NumericCondition now supports ASCII only (as opposed to allowing any Unicode numeric characters) as an option. The default remains allowing Unicode characters.
  • The shouldAllowViolation property on validator controls now works as expected.