Releases: knadh/koanf
v2.1.2
What's Changed
- chore: Update godoc URL in README by @rhnvrm in #279
- Add support for parser TOML v2 spec by @knadh in #286
- Bump golang.org/x/net from 0.17.0 to 0.23.0 in /providers/consul by @dependabot in #289
- Bump golang.org/x/net from 0.17.0 to 0.23.0 in /providers/vault by @dependabot in #288
- Bump golang.org/x/net from 0.17.0 to 0.23.0 in /examples by @dependabot in #290
- Bump golang.org/x/net from 0.17.0 to 0.23.0 in /providers/etcd by @dependabot in #287
- upgrade toml v2 package to 2.2.2 by @GreyXor in #292
- Bump github.com/hashicorp/go-retryablehttp from 0.7.2 to 0.7.7 in /providers/vault by @dependabot in #301
- Upgrade fsnotify lib in file provider. by @knadh in #302
- Bump github.com/hashicorp/go-retryablehttp from 0.7.2 to 0.7.7 in /examples by @dependabot in #303
- Add
Unwatch()
to file provider. by @knadh in #306 - docs: Improve marshal section by @bersace in #311
- fix(basicflag): option not apply by @qianlongzt in #322
- Fix incorrect unflatten in env provider. Closes #319. by @knadh in #324
- fix: update file watch to trigger callback after symbolic link changes by @jondavidnd1 in #326
- Update mapstructure to a stable version by @StefMa in #331
New Contributors
- @bersace made their first contribution in #311
- @qianlongzt made their first contribution in #322
- @jondavidnd1 made their first contribution in #326
- @StefMa made their first contribution in #331
Full Changelog: v2.1.1...v2.1.2
v2.1.1
What's Changed
- fix: run submodule tests by @rhnvrm in #276
- Bump google.golang.org/protobuf from 1.30.0 to 1.33.0 in /examples by @dependabot in #282
- Bump google.golang.org/protobuf from 1.30.0 to 1.33.0 in /providers/etcd by @dependabot in #281
- Bump google.golang.org/protobuf from 1.30.0 to 1.33.0 in /providers/nats by @dependabot in #280
- feat: add ParserEnvWithValue by @tlipoca9 in #284
- Fix map unflattening no-delimiter behaviour by @knadh in #278
New Contributors
Full Changelog: v2.1.0...v2.1.1
v2.1.0
Important
mitchellh/mapstructure#349 (comment) is discontinued and koanf has switched to using the fork github.com/go-viper/mapstructure/v2
.
If you are referencing the mapstructure lib in your code (custom DecoderConfig), you have to switch the paths to the above forked version of mapstructure
lib.
github.com/mitchellh/mapstructure
-> github.com/go-viper/mapstructure/v2
What's Changed
Full Changelog: v2.0.2...v2.1.0
v2.0.2
Important
mitchellh/mapstructure#349 (comment) is discontinued and koanf has switched to using the fork github.com/go-viper/mapstructure/v2
.
If you are referencing the mapstructure lib in your code (custom DecoderConfig), you have to switch the paths to the above forked version of koanf.
github.com/mitchellh/mapstructure
=> github.com/go-viper/mapstructure/v2
What's Changed
- feat: add nats provider by @TECHNOFAB11 in #213
- feat: add flag to optionally fetch secret metadata by @Thunderbottom in #219
- chore: change WithMeta to ExcludeMeta for backwards compatibility by @Thunderbottom in #220
- typos and little clearer code by @GreyXor in #222
- Fixed a nil panic issue in vault provider by @wangkang in #224
- Not use deprecated io/ioutil by @tchssk in #226
- Proposal: support Vault auth method by @missedone in #229
- Add parameterstore provider by @tchssk in #227
- feat: optional support net/http transport by @missedone in #232
- breaking change: #233 return error struct to avoid panic at runtime by @missedone in #234
- Bump github.com/nats-io/nkeys from 0.4.4 to 0.4.6 in /providers/nats by @dependabot in #246
- Bump golang.org/x/net from 0.7.0 to 0.17.0 in /providers/etcd by @dependabot in #248
- Bump golang.org/x/net from 0.7.0 to 0.17.0 in /providers/vault by @dependabot in #247
- Bump github.com/nats-io/nats-server/v2 from 2.9.15 to 2.9.23 in /providers/nats by @dependabot in #241
- Bump google.golang.org/grpc from 1.53.0 to 1.56.3 in /providers/etcd by @dependabot in #243
- fix: typo by @testwill in #251
- Bump golang.org/x/crypto from 0.14.0 to 0.17.0 in /providers/vault by @dependabot in #261
- Bump golang.org/x/crypto from 0.14.0 to 0.17.0 in /providers/nats by @dependabot in #260
- Add optional
Opt{}
param that takes a koanf instance to match posflag's default value behaviour in basic flag. Closes #255. by @knadh in #259 - Parser: KDL by @dezren39 in #266
- Parser: KDL kdl-go dependency update by @dezren39 in #267
New Contributors
- @TECHNOFAB11 made their first contribution in #213
- @GreyXor made their first contribution in #222
- @wangkang made their first contribution in #224
- @tchssk made their first contribution in #226
- @missedone made their first contribution in #229
- @testwill made their first contribution in #251
- @dezren39 made their first contribution in #266
Full Changelog: v2.0.1...v2.0.2
v2.0.1
What's Changed
- Bump golang.org/x/text from 0.3.5 to 0.3.8 in /providers/etcd by @dependabot in #204
- Fix README typo by @glenn-m in #208
- Fix issue 200 by @jxsl13 in #209
New Contributors
- @dependabot made their first contribution in #204
Full Changelog: v2.0.0...v2.0.1
v2.0.0
This is a major breaking change that ends koanf v1 (v1.5.0) and moves to v2. Continued usage of v1 is unaffected. While koanf does not bundle external dependencies into its core thereby avoiding them in the build, a go get
would still pull them and go.mod, bringing in unnecessary references as all the providers and parsers were "sub" packages of the main module.
This PR upgrades koanf to v2 and separates every single provider and parser package into its own module, go.mod, and release tag (eg: providers/yaml/v0.1.0
). That is, one-repository, many modules. This removes references to all indirect dependencies in the main koanf package significantly de-cluttering it.
What changes?
- Going forward, koanf references should change to
github.com/knadh/koanf/v2
. - The required parsers and providers should be installed explicitly as they do not come bundled with the main koanf package anymore. Eg:
go get github.com/knadh/koanf/providers/s3
,go get github.com/knadh/koanf/parsers/json
etc. - That's all. There is no change in functionality.
Full Changelog: v1.5.0...v2.0.0
v1.5.0
v1.4.5
What's Changed
- etcd_watch by @mkvolkov in #168
- make dotenv.Parser behave like env.Provider by @jxsl13 in #179
- aws secrets manager and parameter store providers added to read me by @gsingh-ds in #186
New Contributors
- @jxsl13 made their first contribution in #179
- @gsingh-ds made their first contribution in #186
Full Changelog: v1.4.4...v1.4.5
v1.4.4
v1.4.2
What's Changed
- Document another viper footgun by @albertvaka in #141
- Add missing types to
FlagVal
by @muXxer in #147 - Add github workflow status badge in Readme by @amarlearning in #148
- Make copyable go command by @gozeloglu in #149
- Add test for YAML parser by @amarlearning in #150
- Add test for HCL parser by @amarlearning in #151
- Add test for TOML parser by @amarlearning in #155
- Update gopkg.in/yaml.v2 to gopkg.in/yaml.v3 by @1995parham in #156
New Contributors
- @albertvaka made their first contribution in #141
- @muXxer made their first contribution in #147
- @amarlearning made their first contribution in #148
Full Changelog: v1.4.1...v1.4.2