0.3.2 (2024-11-28)
- always return
*Diagnostics
. (b2483f7)
0.3.1 (2024-11-28)
- makes diagnostic methods chainable again. (a72c897)
0.3.0 (2024-11-28)
- diag: migrates
Diagnostics
to a struct to track error state. (b4931a5)
- Adds a number of new methods,
Len()
,Merge(diags Diagnostics)
andAll() []Diagnostic
. - Adds properties
HasFatal
,HasError
andHasWarn
to detect if a >=error level diagnostic has been recorded.
diags = append(diags, diag)
should migrate todiags.Append(diag)
.diags = append(diags, newDiags...)
should migrate todiags.Merge(newDiags)
.len(diags)
should migrate todiags.Len()
.
0.2.0 (2024-09-13)
- .github:
ConfigParser
addsType() string
for informing the user which parser is being used. (#4) (e2b675e) - a lot of new goodies. (f322f89)
- adds MIT license. (98b86f3)
- ConfigFileType: implements
ConfigParser
return of filepath forParse
. (e0b0b9b) - ConfigFileType: makes naming consistent and simplifies implementation due to functionality provided by
ConfigType
. (2b711f6) - ConfigImplementer:
Validate
now takes in adiag.Component
. (247a51e) - ConfigParser:
Parse
now returns filepath andValues
returns the state of the parsed configuration. (ee7e7d0) - ConfigTypeable: now requires implementing
fmt.Stringer
. (a5d73d7) - ConfigType: implements
ConfigParser.Values
. (4e7a860) - ConfigType: simplifies dependant use by implementing base functionality. (e76bdbc)
- configurator:
FileParser
renamed toConfigFileParser
, implementsStat
with diagnostic support. (23a6378) - diag: adds
FromComponent
to enable logging on a passed in component. (87723d4) - diag: adds diag builder for a developer friendly API. (07cc7cb)
- diag: builder now returns
Diagnostics
instead of*Diagnostics
. (c76038d) - diag: reverses the parameters for builder as summary should be smaller than detail. (35b507e)
- diags: initial diagnostics implementation. (68f3319)
- env/envconfig: hoists env to a top level package, simplifies envconfig implementation. (b5fbc38)
- env/envconfig: implements
ConfigTypeable
fmt.Stringer
and updatesParse
to return the environment variable prefix. (efd3036) - file: implements
fmt.Stringer
. (4894201)