Skip to content

Releases: morikuni/failure

v2.0.0rc1

19 Apr 00:38
2551069
Compare
Choose a tag to compare
v2.0.0rc1 Pre-release
Pre-release

What's Changed

Full Changelog: v1.1.2...v2.0.0rc1

v1.1.2

25 Oct 09:16
Compare
Choose a tag to compare

What's Changed

  • Fix Frame.PkgPath for standard package by @morikuni in #48

Full Changelog: v1.1.1...v1.1.2

v1.1.1

25 Oct 07:31
3528d5f
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.0...v1.1.1

v1.1.0

25 Oct 06:14
b983e76
Compare
Choose a tag to compare

What's Changed

  • Add Messenger/Contexter interface to work Message (and Trace) with errors.As by @morikuni in #45
  • Add Frame.PkgPath by @morikuni in #46

Full Changelog: v1.0.0...v1.1.0

Note

Go 1.11 and 1.12 support has been dropped to use errors.As internally.

⚠️ Breaking Change ⚠️

If you implements As(interface{}) bool in your error and using type switch with case failure.Tracer, then you should change it to case *failure.Tracer (use pointer).
See #45 more details.
Ordinary users should not be affected.

v1.0.0

04 Jul 07:41
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.14.0...v1.0.0

v0.14.0

16 Feb 04:29
Compare
Choose a tag to compare
v0.14.0 Pre-release
Pre-release

Note: Minor version update before v1.0.0 may include breaking changes.

Changes

  • Add Trace function and Tracer interface for structured log. #39

v0.13.0

01 Jul 02:49
b37ed1e
Compare
Choose a tag to compare
v0.13.0 Pre-release
Pre-release

Note: Minor version update before v1.0.0 may include breaking changes.

Changes

Including breaking changes

  • Add WithUnexpected instead of WithoutCode #36

Migration guideline from older version

  • Stop using WithNoCode and use WithUnexpected.
  • Remove NoCode method if you have defined it on your error types.

v0.12.1

16 Jan 03:01
be6bccd
Compare
Choose a tag to compare
v0.12.1 Pre-release
Pre-release

Note: Minor version update before v1.0.0 may include breaking changes.

Changes

  • Remove unnecessary checking #32
  • Add deprecate comments #33
  • Rename receivers #34
  • Add MarkUnexpected and WithoutCode #35

v0.12.0

26 Sep 07:54
d9e6cd0
Compare
Choose a tag to compare
v0.12.0 Pre-release
Pre-release

Note: Minor version update before v1.0.0 may include breaking changes.

Changes

Including breaking changes

  • Support new As method #31

Migration guideline from older version

  • None for almost application. Even if there is, just fix compile error.

v0.11.1

16 Sep 13:11
2711976
Compare
Choose a tag to compare
v0.11.1 Pre-release
Pre-release
  • Support Go 1.13's error package #30

Note: Minor version update before v1.0.0 may include breaking changes.