errors v0.9.1 Release Notes
Release Date: 2020-01-14 // about 5 years ago-
๐ pkg/errors 0.9.1 is a bug fix release for errors 0.9.0. This restore the previous behaviour on Cause method, this behaviour was changed on the PR: #215 and many breaking changes was produced by that.
Previous changes from v0.9.0
-
๐ errors 0.9.0 is a preparation release for a 1.0 final release. Also we were working on removing support for Go 1.8, 1.9 and 1.10 and earlier, and become compatible this package with new way of errors on Go 1.13.
๐ We tried to move into
runtime.CallerFrames
but this was not possible, you can show the explanation here: Issue 188.๐ฆ The motivation for do the backward compatible this package with Go 1.13 is that you can migrate the easy way for this to the new way.
Now you could use the methods,
Is
andAs
, and theUnwrap()
interface like on the standard library.The method
Cause
is now compatible withfmt.Errorf("%w", err)
and with theUnwrap()
interface.๐ฆ On the same way the methods related with
wrapping
on this package now are compatible withCause
andUnwrap()
interface.๐ Improvements
.travis.yml
Now use make file.- โฌ๏ธ reduce allocations when printing stack traces. Thanks @cstockton
- โฌ๏ธ Reduce allocations in Stacktrace.Format
- โ Add Support to Go 1.13. Thanks @jayschwa, @Sherlock-Holo and @puellanivis.
- โ Add json.Marshaler support to the Frame type. Thanks @flimzy
๐ Bugs fixed