Releases: caarlos0/env
Releases · caarlos0/env
v11.2.2
v11.2.1
Changelog
Bug fixes
Documentation updates
- fac6114: docs: cleanup readme (#322) (@caarlos0)
- 5d7eb0c: docs: fix bad example (@caarlos0)
- 19de57d: docs: more examples (@caarlos0)
- be1c262: docs: more examples (@caarlos0)
- fb84246: docs: more examples (@caarlos0)
- 1282042: docs: more examples (@caarlos0)
- 3d8627f: docs: typos (@caarlos0)
- d7efb64: docs: update license year range (@caarlos0)
Released with GoReleaser Pro!
v11.2.0
v11.1.0
v11.0.1
Changelog
Bug fixes
- 0f77fef: fix: add logic to handle nil pointer structs (#306) (@NithinGudla)
Documentation updates
- 1e2d9e1: docs: better explain UseFieldNameByDefault (@caarlos0)
- b436dff: docs: document generics (@caarlos0)
Released with GoReleaser Pro!
v11.0.0
Changelog
Breaking changes
- Updated module's Go version to 1.18
New Features
Bug fixes
Documentation updates
- b400510: docs: add related projects (#290) (@g4s8)
- 5235aff: docs: add used and supported by section to readme (#289) (@caarlos0)
- 506c331: docs: update (@caarlos0)
- af0d375: docs: update caution banner (@caarlos0)
- 8cddcf2: docs: update readme (@caarlos0)
- fa32ef4: docs: update readme (@caarlos0)
Other work
Released with GoReleaser Pro!
v10.0.0
Changelog
Breaking changes
- 62b4ae1: feat!: ParseWithOptions: add the ability to override default opt.FuncMap keys (#272) (@Daniel538)
New Features
- e7e49c4: feat: GetFieldParams and GetFieldParamsWithOptions functions (#261) (@saturn4er)
- 92df8c4: feat: adds public ToMap function (#275) (@maxfilov)
- 13ac655: feat: custom key value separator (#284) (@ruslan944)
- 3f90e4a: enhancement: Expand with default values (#285) (@gabrielcipriano)
Documentation updates
- 6723663: docs: add map usage (#282) (@rfyiamcool)
Other work
Released with GoReleaser Pro!
v9.0.0
Changelog
New Features
- 7a25c17: feat!: accept expand as an option to the env tag (#263) (@caarlos0)
- 4f6bb22: feat!: v9 (@caarlos0)
- 9124b0a: feat: add support Web Assembly (#265) (@BorzdeG)
Bug fixes
- 0f07b7f: fix: invalid environment variable (#271) (@aymanbagabas)
- 0b4d8a6: fix: skip fields without env key in onSet (#266) (@aymanbagabas)
Documentation updates
- 390412e: docs: clarify custom parser funcs and required fields (@caarlos0)
- 3f7d8cf: docs: fix examples in readme for v8.0.0 (#264) (@Mattias-)
Migrating from v8
Replace envExpand:"true"
with ,expand
, e.g.:
type Foo struct {
Foo string `env:"FOO,expand"`
}
Released with GoReleaser Pro!
v8.0.0
Changelog
Other work
- 224d85f: build: fix goreleaser flags (@caarlos0)
- fac0414: build: test on go stable and oldstable (#259) (@caarlos0)
- 4e0f915: feat!: refactor parse and parse with options (#256) (@caarlos0)
Updating from v7
- if you use
env.Parse
with no options, no change is required. - if you use
env.Parse
with oneOptions{}
, callenv.ParseWithOptions
instead. - if you use
env.Parse
with options, and pass more than oneOptions{}
, merge them into a single one, and useenv.ParseWithOptions
instead. - if you use
env.ParseWithFuncs
, useenv.ParseWithOptions
instead, and put your parsers intoOptions{ FuncMap: <here> }
.
Released with GoReleaser Pro!
v7.1.0
Changelog
New Features
- b135bbd: feat: error types (#240) (@akutuev)
- 17f0a63: feat: implement Is on AggregateError (#254) (@caarlos0)
- 266f68b: feat: support map kind env (#244) (@ken8203)
- c08b0f9: feat: use field name by default (#253) (@caarlos0)
Bug fixes
- dfd68b2: fix: improve map handling, coverage (@caarlos0)
- e5472ec: fix: remove untested behavior (@caarlos0)
Documentation updates
- 65ba2db: docs: caveats (@caarlos0)
- f434e98: docs: document how to handle error (@caarlos0)
- 2d26ce1: docs: fix examples (@caarlos0)
- 91e69e8: docs: maps (@caarlos0)
- 850c2d8: docs: update to v7 (#249) (@alexandear)
Released with GoReleaser Pro!