Skip to content

Releases: marrow16/valix

v1.13.1

10 Nov 17:11
b2803a3
Compare
Choose a tag to compare

Fix security vulnerabilities

v1.13.0

10 Nov 15:05
0c83ee9
Compare
Choose a tag to compare
  • Upgrade go version (to 1.19)
  • Ignore non-exported fields (in v8nConstraints())
  • Added OptionIgnoreOasTags (for use with ValidatorFor())

v1.12.3

11 Nov 19:14
5f19a94
Compare
Choose a tag to compare
  • Fixed NetIsCP - should not allow trailing :
  • Added CheckExchange option to StringValidEmail constraint
  • Added CheckHost option to NetIsHostname constraint

v1.12.2

04 Nov 08:13
5305986
Compare
Choose a tag to compare

Tag parsing now uses go-andiamo/splitter - which allows for quote escaping

v1.12.1

22 Oct 09:08
165ddc9
Compare
Choose a tag to compare

Added IsNull and IsNotNull constraints
Also removed constraint reference from README - now maintained in wiki

v1.12.0

20 Oct 19:16
0fb398c
Compare
Choose a tag to compare

Constraints that wrap other constraint(s) now verify if the wrapped is conditional (and only check it if the conditions are met)
Affected constraints are ArrayOf, ArrayConditionalConstraint and ConstraintSet

v1.11.3

16 Oct 15:34
46b73c3
Compare
Choose a tag to compare

Improve ValidatorFor options - can now pass individual options to ValidatorFor and MustCompileValidatorFor functions. Also means that these functions no longer need a 2nd nil arg when not setting options. The ValidatorForOptions struct is retained to maintain backward compatibility.

v1.11.2

12 Oct 18:05
99a4f39
Compare
Choose a tag to compare

Normalisation form in constraints now uses string token.
Also added NormalisationForm field to StringExactLength, StringLength, StringMaxLength and StringMinLength constraints.

v1.11.1

11 Oct 18:43
4adda30
Compare
Choose a tag to compare

StringCharacters constraint now accepts named unicode ranges

v1.11.0

09 Oct 12:08
3f44ea7
Compare
Choose a tag to compare
  • Reducing repeating code
  • Fix StringCharacters constraint (should not use ptrs to unicode.RangeTable)
  • Fix small bugs in tag parsing
  • Added docs on public vars and consts
  • Made pattern preset consts public
  • Added PropertyValidator.ToV8nTagString() method (converts to v8n tag representation)