Update module github.com/go-ozzo/ozzo-validation/v4 to v4.4.1 - #155
Open
renovate[bot] wants to merge 1 commit into
Open
Update module github.com/go-ozzo/ozzo-validation/v4 to v4.4.1#155renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v4.3.0→v4.4.1Release Notes
go-ozzo/ozzo-validation (github.com/go-ozzo/ozzo-validation/v4)
v4.4.1: — Performance: 36% fewer allocationsCompare Source
Performance
Struct field offset cache eliminates repeated
reflect.StructFieldallocations.Also fixes benchmark to pre-compile regex (was inflating alloc count).
Full Changelog: go-ozzo/ozzo-validation@v4.4.0...v4.4.1
v4.4.0: — Revival ReleaseCompare Source
Revival release — ozzo-validation is actively maintained again after 6 years.
12 community PRs merged, maintainer bug fixes, modernized CI infrastructure.
Added
is.UUIDv7validation rule per RFC 9562 (#205 by @dmitryzhvinklis)is.ULIDvalidation rule (#171 by @upamune)is.Originvalidation rule for CORS origins (#198 by @nguyenvantuan2391996)OptionalKey()andDynamicMap()convenience constructors (#151 by @Jessinra)EachUntilFirstError()rule for large collections (#93 by @geekflyer)Fixed
+prefix per ITU-T standard (#208 by @Yanhu007)Each()now passes pointers correctly toBy()callbacks (#160 by @dane)IsEmpty()treats all zero-valued structs as empty (#144 by @soranoba)Errors.Error()no longer panics on nil values (#212)Min()/Max()now validate zero values instead of silently skipping them (#212)Breaking Changes
These are bug fixes — the old behavior was incorrect:
is.E164rejects phone numbers without+prefix (spec-correct)Each()withBy()on pointer slices passes*Tinstead ofTIsEmpty()returnstruefor zero-valued structs (was onlytime.Time{})Min()/Max()validate numeric zero andtime.Time{}(were silently skipped)Thank You
Thanks to all contributors who waited patiently — some PRs were open for 5+ years.
Special thanks to @qiangxue for entrusting the project to new maintainers.
Configuration
📅 Schedule: (in timezone Asia/Tokyo)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.