Releases
v2.0.0
Compare
Sorry, something went wrong.
No results found
Change Log
Refactor
refactor!: remove deprecated ValueLen (use reflects.Len) 06698ce
refactor(validate): use slices.Sort over sort.Strings (go1.21) c806920
refactor(rule): extract convertRuleArgs pure helper 127cf96
refactor(validators)!: unify Between to any params c0e43c6
refactor(validators): split validators.go by category into multiple files eab060a
refactor(validation): add resetForReuse for full per-validation state reset 3b2f205
refactor(internal): extract pure reflect helpers into internal/reflectx 01656c4
refactor(internal): move fieldValue into internal/fieldval 6dab9b8
refactor(util): replace hand-rolled helpers with goutil equivalents 406face
Fixed
fix(validators): avoid panic on non-string value for string validators 5f66d0d
fix(scene): empty-rule scene validates nothing (#314 ) d1031d6
fix(struct): nested *bool->false passes required, align with top-level (#217 ) da6eda7
fix(filter): apply filters per-element on interior wildcard path (#262 ) 6e600ed
fix(scene): match ".*" wildcard scene fields to slice-element rules (#283 ) 1fdb557
fix(validators): tighten fullUrl regex, reject invalid URLs (#138 ) e1e79ef
Feature
feat(register): support registering custom value types via AddCustomType e70bfa3
feat(factory): add opt-in pooled Validation factory (Struct/Map + Release) d2bdecd
feat(struct)!: cascade sub-struct validation only when parent field has a validate tag 5e71e41
feat(struct)!: exempt anonymous embedded structs from cascade gate 5075f05
feat(form): normalize bracket form keys to dot paths (#324 part 1/2) bbdad99
feat(bind): expand dot-path safeData into nested map (#324 part 2/2) a9c3fd3
feat(error): 新增 opt-in 开关 ErrShowValue 在错误消息追加触发值 9a6ea88
feat(message): #189 新增 StringMessage/StringMessages tag 写法声明字段消息 fc8c4cf
feat(validator): #292 新增规则级"逻辑或"校验器 rule_one_of 6bd2fcc
feat(validator): 新增 isActiveURL 校验 URL 是否可访问/活跃 b994b7a
Update
perf(rule): pre-convert static template args at build time 7a56656
perf(rule): share immutable args for pre-converted rules 2690940
perf(rule): share immutable argsReady rules instead of cloning per instance 7c643bd
Other
docs(plan): add v2.0 breaking-change implementation plan 80a047e
docs(plan): refine V3 — drop runtime convertArgsType via build-time arg conversion 723d352
docs(plan): mark V0 guardrail complete — golden/full/race/vet green 33d899d
chore(deps)!: bump go to 1.21, update CI matrix and dev sdk pin 4f4d5dc
docs(plan): mark V1 complete (go 1.21 + slices.Sort) 616d70d
docs(plan): mark V3 complete — build-time arg pre-conversion (5 commits) c4144d1
docs(plan): record validators.go split (1298->570, 4 files) 2c4ff08
docs(plan): rename phases V0..V8 to T0..T8 to avoid version confusion e9e7bae
docs(plan): redefine T4 to share immutable rules (drop DataFace design) 945d621
docs(plan): draft T5 custom-type API + add optional T9 internal migration 903f9c3
docs(plan): mark T5 complete (AddCustomType, zero-overhead gate) ea9b175
docs(plan): mark T6 complete (opt-in Factory/Pool, reuse 11 allocs) 7693ac9
docs(plan): mark T9 done (reflectx+fieldval slice; meta/exec stay) a4aa5fe
chore(mod)!: move module path to github.com/gookit/validate/v2 ff56235
docs(plan): mark T7 done (/v2 module path) 0301432
test(register): cover AddCustomType nil-sample guard branch 1b223aa
docs(v2.0): add upgrade guide and changelog 49cce3c
docs(readme): update import paths to /v2 6cd5054
docs(v2.0): archive final benchmarks feed771
docs(plan): mark T8 done + v2.0 plan complete (T0-T9) 17356a3
chore: move v1.6.0 bench file to subdir 83f20dc
test: migrate assert gookit testutil/assert to x/assert dd483da
test: mark nested fixtures with validate tag for cascade 9498aeb
docs(v2.0): document sub-struct cascade behavior change 6b70746
docs(v2.0): clarify anonymous embedded structs are exempt from cascade gate 7c847ec
docs(plan): record T10 sub-struct cascade gating (Java @Valid style) e43bd03
docs(readme): document sub-struct cascade, AddCustomType and NewFactory (v2.0) 830eff5
docs(readme): add missing built-in validators (numeric/intString/stringNumber/stringLength/pathExists/dirPath) 4d6ba50
test(issues): verify v2.0 resolution for #259 /#217 /#235 /#232 d9364fc
test(issues): verify v2.0 resolution for #283 /#314 e57a0a4
test(issues): verify v2.0 resolution for #327 /#262 fdfd0e6
docs(issues): v2.0 issue review handoff (8 checked, 4 still-broken, backlog) 3d7807f
docs(issues): mark #314 /#217 fixed, 2 still-broken remain (#283 /#262 ) 266ec6d
docs(issues): design for #283 /#262 wildcard path expansion 6af2e04
docs(issues): mark all 4 still-broken fixed (#314 /#217 /#262 /#283 ) d07a91a
test(issues): verify v2.0 behavior for #138 /#324 (both still-broken) 7d61cb9
docs(issues): record second-batch review of #138 /#324 (both still-broken) d90c864
test(issues): verify v2.0 behavior for #277 /#266 /#265 /#162 (question类) 94370b7
docs(issues): record review of #277 /#266 /#265 /#162 (question类) d54436b
docs(option)!: deprecate no-op CheckZero flag (#265 ) bd0dc60
docs(issues): mark #265 handled (CheckZero deprecated) 53f2afd
docs(issues): mark #138 fixed (fullUrl regex tightened) 9290cf7
docs(issues): design for #324 nested form-data binding 06f1b36
docs(issues): mark #324 fixed (nested form binding, object nesting) eeef5ce
docs: rename validte-refactor.md -> validate-v2-refactor.prd.md 0cb85c9
docs(benchmark): add v1.5.7/v1.6.0/v2.0.0 performance comparison 861fa34
docs(issues): #324 array bracket deferred — maputil reuse disproven e7c3cae
test(issues): verify v2.0 required/SkipOnEmpty behavior (#203 , answered) 6c11e93
chore: use goutil func instead of for range 62b4b95
test(issues): 用自定义 filter 解答 #244 (bluemonday 清洗) 86e1986
docs(issues): #244 核查结论入已核查表 (已核查 16 个) 051c5a9
test(error): #184 ErrShowValue 测试 + 更新核查文档 6d9e2ed
test(message): #189 StringMessage/StringMessages 测试用例 9a98212
docs(issues): #189 核查结论入已核查表 (已核查 18 个) 3421e32
docs(issues): design for #292 rule_one_of (logical OR between rules) 9ed07dc
test(validator): #292 rule_one_of 测试用例 TestIssue_292_v2 f472644
docs(issues): #292 rule_one_of 标记已实施并更新核查文档 5615bc4
test(validator): isActiveURL hermetic 用例(httptest,无外网) 26da10e
docs(issues): 核查文档将 #257 挪入已核查(feat 已实现 isActiveURL) aabaae4
You can’t perform that action at this time.