Skip to content

Latest commit

 

History

History
74 lines (46 loc) · 5.75 KB

CHANGELOG.md

File metadata and controls

74 lines (46 loc) · 5.75 KB

Changelog

0.3.2 (2024-11-28)

Bug Fixes

  • always return *Diagnostics. (b2483f7)

0.3.1 (2024-11-28)

Bug Fixes

  • makes diagnostic methods chainable again. (a72c897)

0.3.0 (2024-11-28)

Features

  • diag: migrates Diagnostics to a struct to track error state. (b4931a5)

Changes

  • Adds a number of new methods, Len(), Merge(diags Diagnostics) and All() []Diagnostic.
  • Adds properties HasFatal, HasError and HasWarn to detect if a >=error level diagnostic has been recorded.

Migration

  • diags = append(diags, diag) should migrate to diags.Append(diag).
  • diags = append(diags, newDiags...) should migrate to diags.Merge(newDiags).
  • len(diags) should migrate to diags.Len().

0.2.0 (2024-09-13)

Features

0.1.0 (2024-06-19)

Features

  • .github: ConfigParser adds Type() 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 for Parse. (e0b0b9b)
  • ConfigFileType: makes naming consistent and simplifies implementation due to functionality provided by ConfigType. (2b711f6)
  • ConfigImplementer: Validate now takes in a diag.Component. (247a51e)
  • ConfigParser: Parse now returns filepath and Values 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 to ConfigFileParser, implements Stat 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 updates Parse to return the environment variable prefix. (efd3036)
  • file: implements fmt.Stringer. (4894201)

Bug Fixes

  • diag: Diagnostics no longer attempts to append if supplied diags are empty. (4306601)
  • diag: if Diagnostics is nil, builder will now return an empty Diagnostics. (7466466)

Miscellaneous Chores