Releases: go-playground/errors
Releases · go-playground/errors
Release 5.1.0
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 
RegisterErrorFormatFnto 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
What was fixed?
- Fixed the Go Modules version + import paths.
 - Updated deps to their go modules counterparts.
 
Release v5.0.0
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
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.
- If you're using the 
Stack()orStackLevel(...)functions the levels have changed. - Update to using Go modules makes it compatible with Go 1.11+
 
Release 3.3.0
What's new?
- Added new helper functions Newf and Wrapf for convenient formatting.
 - cleaned up for linting.
 
Release 3.2.1
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
Release 3.1.0
Release 3.0.0
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
What changed?
Updates some internals and naming.
Wrapped- is now calledChainto represent a chain of errors- Each error in the chain is now of type 
Link - Added a 
Newfunction for when you wish to create your error using text. Causenow returns the naked error instead of the origin Wrapped error; also removedIsErras it's no longer needed.