v1.8.0
版本发布时间: 2021-06-16 09:22:19
spf13/viper最新发布版本:v1.20.0-alpha.3(2024-06-24 23:24:09)
This is a maintenance release primarily containing fixes and improvements. The most prominent change is the etcd update to 3.5.0. Thanks to proper Go modules support, the dependency graph became much smaller.
Changes
Added
- Allow BindEnv to register multiple environment variables
- Support for accessing slices
- Experimental WASM support: Viper compiles on WASM
- INI load options
Changed
- Ensure
BindPFlag
detects a nil flag parameter
Fixed
- Merging a key into a nil target
- Panics during saving INI files
Security
- Updated etcd to 3.5 which should make a lot of false positive vulnerability reports disappear
In addition to the above changes, this release comes with tons of minor improvements, documentation changes an dependency updates. Find more details in the 1.8.0 milestone.
Many thanks to everyone who contributed to this release!