All Versions
18
Latest Version
Avg Release Cycle
69 days
Latest Release
31 days ago

Changelog History
Page 1

  • v4.2.1

    April 28, 2020
  • v4.2.0

    April 26, 2020
    • ⬆️ Upgraded govalidator to v10 and added the EmailFormat validation rule to validate an email address without checking the existence of MX record
    • 🛠 Fixes #103: Modified the reDomain regex to support upper/lowercase for the is.Domain rule. (thanks to @TheSecEng)
    • 🛠 Fixes #105: fixed typo of ErrCurrencyCode (thanks to @maratori)
    • 🛠 Fixes #106: Added the Nil and Empty rules (thanks to @samber)
    • 🛠 Fixes #107: Added the Else clause to the When conditional validation construct (thanks to @samber)
    • 🛠 Fixes #109: Fixed the bug in the Length rule when requiring zero length (thanks to @0perl)
    • 🛠 Fixes #110: RequiredRule struct is made public (thanks to @erdaltsksn)
  • v4.1.0

    February 07, 2020
    • 👍 #95, #96: Added validation.When() and validation.Required.When() to support conditional validation. Thanks to @mehran-prs for the great contribution to this new feature!
  • v4.0.0

    January 31, 2020
    • ⚡️ #91: Updated all built-in validation rules to use validation.Error as the validation error type. It supports error code and parameter placeholders in error messages, which allows checking validation errors programmatically and translating error messages based on error codes. Thanks to @mehran-prs for the great contribution to this new feature!
    • 👌 Improved the performance of Errors.Error(). Thanks to @geekflyer for the profiling work and code contribution!
  • v3.8.1

    December 05, 2019
    • 🛠 Fixes #72: The validation.In rule now supports less restrictive equality comparison by using reflect.DeepEqual()
    • 🛠 Fixes #63: Built-in validation rules are created as structs instead of pointers to improve memory usage performance
  • v3.8.0

    December 04, 2019

    ➕ Added support for context-aware validation.

  • v3.7.0

    December 03, 2019

    ➕ Added support for go mod

  • v3.6.0

    August 07, 2019
    • ➕ Add validation rule for ISO 4217 currency code (#70)
    • ➕ Add Each() method for validating iterables. (#71)
  • v3.5.0

    September 29, 2018
    • ➕ Added MultipleOf rule (see #49)
    • 👍 Better error message for Length rule when Min and Max are the same
    • ⬆️ Bumped up Go version requirement to 1.8 and above
  • v3.4.0

    June 22, 2018
    • ➕ Added Not-in rule (#40)
    • ➕ Added Sub-domain rule (#42)
    • ➕ Added domain rule (#43)
    • ➕ Added empty check support for time.Time (#48)
    • ➕ Added E164 phone rule (#46)