Releases: go-viper/mapstructure
Releases · go-viper/mapstructure
v2.2.1
What's Changed
- Pass appropriate empty Value to hooks by @yurishkuro in #45
New Contributors
- @yurishkuro made their first contribution in #45
Full Changelog: v2.2.0...v2.2.1
v2.2.0
What's Changed
- feat(decoder-configs): add flag to force decoding nil input in decoder config by @mahadzaryab1 in #42
- Add decode hooks for *url.URL by @einzigartigerName in #41
New Contributors
- @mahadzaryab1 made their first contribution in #42
- @einzigartigerName made their first contribution in #41
Full Changelog: v2.1.0...v2.2.0
v2.1.0
What's Changed
- build(deps): bump actions/setup-go from 5.0.0 to 5.0.1 by @dependabot in #28
- build(deps): bump actions/checkout from 4.1.1 to 4.1.6 by @dependabot in #27
- build(deps): bump golangci/golangci-lint-action from 3.7.0 to 6.0.1 by @dependabot in #26
- build(deps): bump actions/setup-go from 5.0.1 to 5.0.2 by @dependabot in #34
- build(deps): bump actions/checkout from 4.1.6 to 4.1.7 by @dependabot in #29
- Port Succo's fix to cache decodeHooks by @cedric-cordenier in #33
- build(deps): bump golangci/golangci-lint-action from 6.0.1 to 6.1.0 by @dependabot in #38
- Add configuration option to specify tag value that indicates squash by @triarius in #18
- Adding support for squash: interface. by @m1k1o in #17
New Contributors
- @dependabot made their first contribution in #28
- @cedric-cordenier made their first contribution in #33
- @triarius made their first contribution in #18
- @m1k1o made their first contribution in #17
Full Changelog: v2.0.0...v2.1.0
v2.0.0
mapstructure v2 release 🎉🎉🎉🎉
⚠️ Breaking changes
Error
is removed in favor oferrors.Join
(backported from Go 1.20 to preserve compatibility with earlier versions)
What's Changed
- feat!: update module path by @sagikazarmark in #9
- build: update dev env by @sagikazarmark in #14
- feature: add StringToBasicTypeHookFunc and support complex by @tlipoca9 in #13
- Add an example showing how to use a DecodeHookFunc to parse a custom … by @carlohamalainen in #10
- Remove exposed error type by @sagikazarmark in #24
- Replace internal joined error with errors.Join by @sagikazarmark in #25
- Prepare release by @sagikazarmark in #23
New Contributors
- @tlipoca9 made their first contribution in #13
- @carlohamalainen made their first contribution in #10
Full Changelog: v1.6.0...v2.0.0
v2.0.0-alpha.1
First alpha release with the new import path: github.com/go-viper/mapstructure/v2
v1.6.0
This is a maintenance release after forking the library to make some of the fixes available without major changes.
Usage:
go get github.com/mitchellh/mapstructure
go mod edit -replace github.com/mitchellh/mapstructure=github.com/go-viper/mapstructure
go mod tidy
Consider upgrading to the new v2 release once it's out.
What's Changed
- Improve CI by @sagikazarmark in #1
- chore: fix lint violations by @sagikazarmark in #2
- Add decode hooks for netip Addr and AddrPort by @sagikazarmark in #3
- Decoding array of slices causes panic by @sagikazarmark in #4
- Dereference multiple pointers when decoding to maps by @sagikazarmark in #5
- fix: StringToSliceHookFunc incorrectly triggered when parsing []byte by @sagikazarmark in #6
- Fix untagged field decoding in case of decode to struct by @sagikazarmark in #7
- Fix Encoding Struct Back to Map Bug (mitchellh#279) by @sagikazarmark in #8
New Contributors
- @sagikazarmark made their first contribution in #1
Full Changelog: v1.5.0...v1.6.0