Skip to content

Releases: RussellLuo/validating

v3.0.0

26 Jun 10:25
Compare
Choose a tag to compare

This is the official release of v3.0.0 👏

Major changes (Since v3.0.0-beta.1):

  • Improve Map and Slice to support scalar elements (c97eada)
  • Add EachMap and EachSlice (6de4da4)
  • Use any instead of interface{} (72cd271)
  • Improve error messages (bb82618)

v3.0.0-beta.1

22 Mar 10:57
Compare
Choose a tag to compare
v3.0.0-beta.1 Pre-release
Pre-release

Improve several validator factories (3a2cb10).

Major changes (Since v3.0.0-beta.0):

  • Enhance Map and Slice by leveraging Go generics
  • Add Nested, and remove redundant Lazy
  • Remove EachMapValue (use Map instead)
  • Remove Each (use Slice instead)
  • Remove Assert (use Is instead)

v3.0.0-beta.0

20 Mar 08:24
Compare
Choose a tag to compare
v3.0.0-beta.0 Pre-release
Pre-release

Significant overall improvements (9a71a15).

Major changes:

  • Change the Field struct, which now holds the raw value to be validated as an interface{}
  • Change the Validator interface, whose method Validate now takes *Field as the type of its argument
  • Rewrite most of the existing validator factories by leveraging Go generics (Go 1.18 is required)
  • Add Each, EachMapValue, Is, LenString and LenSlice, and remove Len
  • Change the Errors type, which now supports a method Map to convert the errors to a map[string]Error

This introduces large breaking changes, so we increment the major version to v3.