Skip to content

v0.4.0

Compare
Choose a tag to compare
@mroth mroth released this 30 Oct 00:24
953da99

Major Changes 馃毀

This major release version changes the NewChooser constructor to check for and error on edge conditions that could later cause a runtime issue during Pick. NOTE: As this changes the API signature for NewChooser, thus you might have to adjust your code. Since we are still in pre-release semantic versioning now is the time to make these beneficial API refinements before we hit v1.0 and need to enforce stability.

// previous
func NewChooser(choices ...Choice) Chooser
// now
func NewChooser(choices ...Choice) (*Chooser, error)

All relevant documentation and examples has been updated to reflect this change.

Changelog

  • checked constructor for potential error conditions (#4) 953da99
  • docs: tiny word choice suggestion for clarity 3b00289

v0.3.1...v0.4.0