Releases: caarlos0/env
Releases · caarlos0/env
v11.3.0
Changelog
New Features
- 59284e4: feat: implement interface { Unwrap() []error } for AggregateError to be compatibility with std errors.Join go1.20 without any breaking change (#336) (@itsabgr-raika)
- 17fdb91: feat: set custom tag name for envDefault (#324) (@dnovikoff)
- 1cb1967: feat: set custom tag name for envPrefix (#332) (@sv-kozlov)
- 0136931: feat: support
time.Location
(#326) (@BorzdeG) - 4ab8b37: feat: support ignored value "-" for env tag (#338) (@sv-kozlov)
Bug fixes
- 6f3a5c0: fix: better handle envDefault, refactor merge options (#349) (@astak16)
- 3afa723: fix: improve errors (#329) (@caarlos0)
- 0cbf40b: fix: map value with : in it (@caarlos0)
- e55230b: fix: parsing into ptr fields with value (#340) (@hypnoglow)
Documentation updates
- 84c7739: docs: DefaultValueTagName example (@caarlos0)
- 0847ba1: docs: add installation instructions to README.md (#330) (@eduardolat)
- 76faca5: docs: project state (@caarlos0)
Other work
- b76caa9: ci: add EditorConfig (#327) (@BorzdeG)
- 1f955b7: ci: update (@caarlos0)
- f68d1dc: refactor: enable gocritic linter and fix lint issues (#342) (@alexandear)
- 52e7186: refactor: modify the init logic for env tag options to make it more reasonable (#347) (@astak16)
Released with GoReleaser Pro!
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!