Skip to content

Latest commit

 

History

History
143 lines (106 loc) · 2.88 KB

CHANGELOG.md

File metadata and controls

143 lines (106 loc) · 2.88 KB

All notable changes to this project are documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

  • Major: backwards incompatible package updates
  • Minor: feature additions, removal of deprecated features
  • Patch: bug fixes, backward compatible model and function changes, etc.

v2.1.2 - 2021-05-12

Added

  • n/a

Changed

  • Updated func (e *E) Error() string implementation to handle nil pointer references.

Removed

  • n/a

v2.1.1 - 2020-05-30

Added

  • n/a

Changed

  • Updated various docs

Removed

  • n/a

v2.1.0 - 2020-05-30

Added

  • Additional documentation
  • Pre-generics implementation of As, returns the error instance when found

Changed

  • Upgrade to bdlm/std v2.1.0
  • Cleaner type checking in Is methods

Removed

  • deprecated Has methods, use Is instead

v2.0.1 - 2020-05-01

Added

  • n/a

Changed

  • Refactoring to better implement the std/errors.Error interface

Removed

  • n/a

v2.0.0 - 2020-05-01

v2.0.0 is the production release of the v0.2.0 development branch.

Added

  • go.mod
  • github.com/bdlm/std/v2/errors interfaces

Changed

  • licence changed from BSD to MIT
  • replace interfaces with github.com/bdlm/std/v2/errors implementations
  • simplified formatting and marshalling logic
  • renamed GetCaller(error) std_err.Caller to Caller(error) std_err.Caller

Removed

  • unused code

v0.2.1 - 2019-07-18

Added

  • Documentation and examples

Changed

  • Minor formatting updates and cleanup

Removed

  • n/a

v0.2.0 - 2019-07-18

This release is a full rewrite of the errors package. See the README for further details.

Added

  • Caller interface
  • Error interface
  • Exported methods
    • Errorf(msg string, data ...interface{}) Error
    • GetCaller(err error) Caller
    • Has(err, test error) bool
    • Is(err, test error) bool
    • Trace(e error) Error
    • Track(e error) Error

Changed

  • Exported methods
    • New(code std.Code, msg string, data ...interface{}) *Err
      • New(msg string) Error
    • Wrap(err error, code std.Code, msg string, data ...interface{}) *Err
      • Wrap(e error, msg string, data ...interface{}) Error

Removed

  • Exported methods
    • From(code std.Code, err error) *Err
  • Support for error codes
  • Support for sanitized vs raw error messages
  • Support for HTTP status codes

v0.1.3 - 2018-10-02

Added

  • n/a

Changed

  • Fixes a message formatting error

Removed

  • n/a

v0.1.2 - 2018-09-09

Added

  • n/a

Changed

  • Fixes issues with concurrent writes

Removed

  • n/a

v0.1.1 - 2018-08-22

Added

  • Implemented a Trace method

Changed

  • n/a

Removed

  • n/a

v0.1.0 - 2018-06-23

Added

  • Initial release

Changed

  • n/a

Removed

  • n/a