| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2023-12-18 | 841 Bytes | |
| v1.18.2 source code.tar.gz | 2023-12-18 | 118.5 kB | |
| v1.18.2 source code.zip | 2023-12-18 | 142.9 kB | |
| Totals: 3 Items | 262.2 kB | 1 | |
tl;dr Skip 1.18.0 and 1.18.1 and upgrade to this version instead.
This release fixes a regression that appears in rare circumstances when using Unmarshal or UnmarshalExact to decode values onto pointers with multiple indirection (eg. pointer to a pointer, etc). The change was introduced in 1.18.0 as a means to resolve a long-standing bug when decoding environment variables to structs.
The feature is now disabled by default and can be enabled using the viper_bind_struct build tag. It's also considered experimental at this point, so breaking changes may be introduced in the future.
What's Changed
Bug Fixes 🐛
- feat!: hide struct binding behind a feature flag by @sagikazarmark in https://github.com/spf13/viper/pull/1715
Full Changelog: https://github.com/spf13/viper/compare/v1.18.1...v1.18.2