Repository navigation
v1.4.0
Highlights
New Context helpers (#115)
XML(data)andBindXML(v)— XML response and request-body binding, mirroringJSON/BindJSON(XML responses support ETag).StatusCode()— read back the status code set viaStatus().QueryValue*typed getters (QueryValueInt,QueryValueInt64,QueryValueFloat32/64,QueryValueTrimSpace[Comma]) for query-only reads, mirroring theFormValue*family.FormValues/PostFormValues/QueryValues— slice getters for multi-valued fields (checkboxes, multi-select, repeated params).
⚠️ Behavior change (#114)
Registering a duplicate component name via ParseComponent / ParseComponentFile now panics with ErrComponentDuplicate instead of silently overwriting the existing component. This was a bug — the duplicate check looked at the template namespace instead of the component namespace, and now matches the Component() loader. If you relied on the silent overwrite, give the components distinct names.
Tooling & quality
- Requires Go 1.25; dependencies upgraded — parapet, testify, minify (#112).
- Statement coverage raised to ~97% with a substantial regression-test pass (#114).
- Runnable
example_test.goadded so usage shows on pkg.go.dev (#116). - CI: dropped codecov, added the GitHub Actions test badge (#113).
What's Changed
- chore: require Go 1.25, upgrade dependencies, add CLAUDE.md by @acoshift in #112
- ci: drop codecov, add GitHub Actions test badge by @acoshift in #113
- test: add regression tests and fix component duplicate-detection bug by @acoshift in #114
- feat: add XML/BindXML, StatusCode getter, and query-value helpers by @acoshift in #115
- docs: add runnable examples (example_test.go) by @acoshift in #116
Full Changelog: v1.3.0...v1.4.0