v1.12.0
版本发布时间: 2022-05-26 23:52:53
spf13/viper最新发布版本:v1.20.0-alpha.3(2024-06-24 23:24:09)
This release makes YAML v3 and TOML v2 the default versions used for encoding.
You can switch back to the old versions by adding viper_yaml2
and viper_toml1
to the build tags.
Please note that YAML v2 and TOML v1 are considered deprecated from this release and may be removed in a future release.
Please provide feedback in discussions and report bugs on the issue tracker. Thanks!
What's Changed
Exciting New Features 🎉
- Add etcd3 support to remote by @sagikazarmark in https://github.com/spf13/viper/pull/1356
- Make YAML 3 the default by @sagikazarmark in https://github.com/spf13/viper/pull/1357
- Make TOML 2 the default by @sagikazarmark in https://github.com/spf13/viper/pull/1358
Enhancements 🚀
- chore: fix Error log calls in mergeMaps by @wwade in https://github.com/spf13/viper/pull/1341
- Add MustBindEnv by @meowfaceman in https://github.com/spf13/viper/pull/1301
Dependency Updates ⬆️
- build(deps): bump github/codeql-action from 1 to 2 by @dependabot in https://github.com/spf13/viper/pull/1336
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.0-beta.8 to 2.0.0 by @dependabot in https://github.com/spf13/viper/pull/1339
- build(deps): bump github.com/mitchellh/mapstructure from 1.4.3 to 1.5.0 by @dependabot in https://github.com/spf13/viper/pull/1332
- build(deps): bump github.com/pelletier/go-toml from 1.9.4 to 1.9.5 by @dependabot in https://github.com/spf13/viper/pull/1335
- build(deps): bump github.com/fsnotify/fsnotify from 1.5.1 to 1.5.4 by @dependabot in https://github.com/spf13/viper/pull/1338
- build(deps): bump github.com/spf13/cast from 1.4.1 to 1.5.0 by @dependabot in https://github.com/spf13/viper/pull/1344
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.0 to 2.0.1 by @dependabot in https://github.com/spf13/viper/pull/1343
- build(deps): bump github.com/subosito/gotenv from 1.2.0 to 1.3.0 by @dependabot in https://github.com/spf13/viper/pull/1349
New Contributors
- @meowfaceman made their first contribution in https://github.com/spf13/viper/pull/1301
- @wwade made their first contribution in https://github.com/spf13/viper/pull/1341
Full Changelog: https://github.com/spf13/viper/compare/v1.11.0...v1.12.0