Skip to content

Releases: go-playground/errors

Release 5.1.0

01 Jul 05:08
9dfe262
Compare
Choose a tag to compare

What's new

  • Updated to make it a 100% drop-in replacement for the std Go library errors package
  • Updated to make error chain work with std Go errors Unwrap, As, and Is interfaces. It's 100% inter-operable with std Go wrapping.
  • Added RegisterErrorFormatFn to allow custom formatting of error output.
  • Optimized default error printing.
  • Updated output format to include full path to the file to clearly delineate where the error happened if the file name is the same.

Release 5.0.1

11 Nov 18:10
e4cd6a5
Compare
Choose a tag to compare

What was fixed?

  • Fixed the Go Modules version + import paths.
  • Updated deps to their go modules counterparts.

Release v5.0.0

11 May 18:32
b661b75
Compare
Choose a tag to compare

What's new?

Updated to use new go-playground/pkg provides that stack and frame information that
can now be used without this package. It allows for reuse of components.

Release 4.0.0

11 Mar 04:41
4050dd2
Compare
Choose a tag to compare

What's new?

  • Rewrote stack frame logic from scratch and now uses runtime.CallerFrames
  • Added the ability for error helper to be registered via import alone.
  • Updated error string logic for better performance
  • updated to using Go modules

NOTE:
This is a breaking change for 2 reasons only if neither applies to you it is backward compatible.

  1. If you're using the Stack() or StackLevel(...) functions the levels have changed.
  2. Update to using Go modules makes it compatible with Go 1.11+

Release 3.3.0

04 Jul 22:32
9aa88f6
Compare
Choose a tag to compare

What's new?

  • Added new helper functions Newf and Wrapf for convenient formatting.
  • cleaned up for linting.

Release 3.2.1

27 Apr 21:27
14d2d30
Compare
Choose a tag to compare

What was fixed?

The Chain Error function was printing out recursively causing a lot of repetitive information being generated, this was corrected to give the proper error chain, like a stack trace, printed.

Release 3.2.0

17 Apr 01:09
7a5a373
Compare
Choose a tag to compare

What New?

Added SkipWithFrames function for when you wish to wrap this library, see #5 for details thanks @andreiko for the PR

Release 3.1.0

16 Apr 21:22
29a69c6
Compare
Choose a tag to compare

What's New?

Added new Wrap function that can be used directly by the Chain see PR #4 Thanks @andreiko for the PR

Release 3.0.0

02 Apr 23:51
59a499b
Compare
Choose a tag to compare

What changed?

Updated With prefix for functions to Add to signify that it does, in fact, mutate the values instead of copying.

Release 2.0.0

02 Apr 23:06
5a91b6f
Compare
Choose a tag to compare

What changed?

Updates some internals and naming.

  • Wrapped - is now called Chain to represent a chain of errors
  • Each error in the chain is now of type Link
  • Added a New function for when you wish to create your error using text.
  • Cause now returns the naked error instead of the origin Wrapped error; also removed IsErr as it's no longer needed.