Skip to content

Releases: cockroachdb/errors

v1.14.0

Choose a tag to compare

@dhartunian dhartunian released this 18 Jun 19:31
4fc17f8

What's Changed

Full Changelog: v1.13.0...v1.14.0

v1.13.0

Choose a tag to compare

@dhartunian dhartunian released this 27 Apr 15:46
fc93249

What's Changed

New Contributors

Full Changelog: v1.12.0...v1.13.0

v1.12.0

Choose a tag to compare

@dhartunian dhartunian released this 02 May 18:26
2008f7c

What's Changed

Full Changelog: v1.11.3...v1.12.0

v1.11.3

Choose a tag to compare

@dhartunian dhartunian released this 28 May 16:34
698c58c

What's Changed

New Contributors

Full Changelog: v1.11.2...v1.11.3

v1.11.2

Choose a tag to compare

@dhartunian dhartunian released this 24 May 19:05
bafdccd

What's Changed

New Contributors

Full Changelog: v1.11.1...v1.11.2

v1.11.1

Choose a tag to compare

@dhartunian dhartunian released this 28 Aug 18:01
c062e01

No functionality or API changes in this version. We downgrade the go version requirement in go.mod to 1.19 since only tests actually use go 1.20 APIs.

This makes the 1.11.1 version suitable for deploying with projects that are not yet on go 1.20 but require forward compatibility with multi-cause errors encoded by version 1.11.0 or greater of this library. (We had previously released 1.10.1 for this purpose, but that wasn't necessary in retrospect.)

What's Changed

New Contributors

Full Changelog: v1.11.0...v1.11.1

v1.11.0 go 1.20 compatibility and multi-cause error support

Choose a tag to compare

@dhartunian dhartunian released this 24 Aug 22:05
ca59e56

This release adds support for go 1.20 and its multi-cause errors introduced into the errors API.

Multi-cause errors are now supported

These were introduced in go 1.20

  • Errors with multiple causes are encoded/decoded over the network along with their error causal tree
  • Errors with multiple causes are formatted appropriately when printed verbosely
  • Errors with multiple causes are formatted appropriately in Sentry reports
  • Is and As support is now compatible with multi-cause errors (matching stdlib changes)

The public API gains a number of new functions

See the README for details.

  • Join adds a drop-in replacement for the new stdlib function to combine an arbitrary number of errors into one (Thank you @StevenACoffman)
  • Ability to register multi-cause encoders/decoders for custom error types
  • Ability to register encoders for custom error types that override the error messages of their causal chain (previously, this behavior was inferred in the decoder and could result in unintended formatting behavior)

A bug was fixed in the formatting of wrapped errors that resulted in only the innermost cause getting printed (#113)

What's Changed

New Contributors

Full Changelog: v1.10.0...v1.11.0

v1.10.1 multi-cause error support without requiring go 1.20

Choose a tag to compare

@dhartunian dhartunian released this 24 Aug 22:09

This release is identical to v1.11.0 except that it remains compatible with pre 1.20 go versions. This allows for rolling out support in your system in a backwards compatible manner, allowing applications that are not using go 1.20 to decode and interpret multi-cause errors generated by newer versions of this library.


This release adds support for go 1.20 and its multi-cause errors introduced into the errors API.

Multi-cause errors are now supported

These were introduced in go 1.20

  • Errors with multiple causes are encoded/decoded over the network along with their error causal tree
  • Errors with multiple causes are formatted appropriately when printed verbosely
  • Errors with multiple causes are formatted appropriately in Sentry reports
  • Is and As support is now compatible with multi-cause errors (matching stdlib changes)

The public API gains a number of new functions

See the README for details.

  • Join adds a drop-in replacement for the new stdlib function to combine an arbitrary number of errors into one (Thank you @StevenACoffman)
  • Ability to register multi-cause encoders/decoders for custom error types
  • Ability to register encoders for custom error types that override the error messages of their causal chain (previously, this behavior was inferred in the decoder and could result in unintended formatting behavior)

A bug was fixed in the formatting of wrapped errors that resulted in only the innermost cause getting printed (#113)

What's Changed

New Contributors

Full Changelog: v1.10.0...v1.11.0

v1.10.0 Dependency updates, gRPC API and redaction improvements

Choose a tag to compare

@dhartunian dhartunian released this 24 Aug 20:45
a95e895

Add status.Errorf to the gRPC Wrappers #110

This change updates our gRPC API to match the grpc-go status package more closely.

Update the redact dependency. #111

This release upgrade the cockroachdb/redact dependency in this project.
The upgrade leads to improved empty string handling in redacted error outputs. Details can be seen in the data driven test changes.

Bug fix and fewer dependencies

Choose a tag to compare

@knz knz released this 24 Jan 21:51
3fdcae9

This releases fixes a small bug in errors.Is and greatly simplifies the set of indirect dependencies via go.mod.

This is useful because some of the older (now-unused) dependencies were reported as "vulnerable" by some security checking tools.