Skip to content

v0.8.1

Latest

Choose a tag to compare

@carlosforero carlosforero released this 19 Jul 02:52

Valgo v0.8.1 Release Notes

Valgo v0.8.1 is a backward-compatible release with shorter string length
validator names, clearer deprecation guidance, and refreshed docs.

What's New

  • Added shorter string length validators for String and StringP:
    ByteLength, ByteLengthBetween, Length, and LengthBetween.
val := v.Is(
  v.String("Bob", "full_name").Not().Blank().LengthBetween(4, 20),
)

Deprecations

The older Of* string length methods remain available as deprecated aliases in
v0.8.1 and are planned for removal in v1.0:

  • OfByteLength -> ByteLength
  • OfByteLengthBetween -> ByteLengthBetween
  • OfLength -> Length
  • OfLengthBetween -> LengthBetween

Deprecation notes were also clarified for Validation.Error,
Validation.IsValid, and Validation.MergeErrorInRow. Prefer ToError,
PathValid, and MergeErrorInIndex.

Docs and Maintenance

  • Updated v0.8.1 examples and migration docs.
  • Added the v0.8 docs archive and corrected v0.7 OR operator docs.
  • Improved docs SEO metadata, sitemap handling, robots.txt, and social image.
  • Updated GitHub Actions dependencies for checkout and setup-go.

Compatibility

No breaking changes are intended in this release. Existing v0.8.0 code should
continue to compile.