Skip to content

Releases: hashintel/hash

error-stack@0.6.0

30 Aug 18:21
25b8d30

Choose a tag to compare

crates.io libs.rs rust-version documentation license

What changed

Features

  • Report has been split into Report<C> and Report<[C]> to distinguish between a group of related errors and a single error. These errors can still be nested. (#5047)
  • Introduce a new unstable flag, which is used to enable unstable features, these features are not covered by semver and may be modified or removed at any time. (#5181)
  • Reintroduce a new IntoReport trait, which is used to determine when a type can be converted to a Report. This allows the usage of errors more idiomatically in traits, such as type Error: IntoReport. (#6738)

Breaking Changes

  • Rename attach[_lazy] to attach_opaque[_with] and attach_printable[_lazy] to attach[_with]. (#7753)
  • Set the MSRV to 1.83 (#5333)
  • Extend is no longer implemented by Report<C>, instead it is implemented on Report<[C]>, either use From or Report::expand to convert between Report<C> into Report<[C]>. (#5047)
  • extend_one has been renamed to push and is only implemented on Report<[C]>. (#5047)
  • bail!(report,) has been removed, one must now use bail!(report). This is in preparation for the unstable bail! macro that allows to construct Report<[C]>. (#5047)

Deprecations

  • Context: Use core::error::Error instead (#5533)
  • Result<T, C>: Use core::result::Result<T, Report<C>> instead (#5533)
  • report!, use IntoReport::into_report instead. (#6738)

Full Changelog: https://github.com/hashintel/hash/compare/error-stack@0.5.0...error-stack@0.6.0

error-stack@0.5.0

12 Jul 14:23
79dbaf6

Choose a tag to compare

crates.io libs.rs rust-version documentation license

What changed

Features

  • Capture source() errors when converting Error to Report (#4678)

Breaking Changes

  • Backtraces are not included in the std feature anymore. Instead, the backtrace feature is used which is enabled by default (#4685)
  • Remove deprecated IntoReport (#4706)

New Contributors

  • @dpc made their first contribution in #3228

Full Changelog: https://github.com/hashintel/hash/compare/error-stack@0.4.1...error-stack@0.5.0

error-stack@0.4.1

04 Sep 07:42
428d836

Choose a tag to compare

crates.io libs.rs rust-version documentation license discord

Fixes

  • Fix deprecation warning typo for IntoReport (#3088)

error-stack@0.4.0

23 Aug 09:53
12017c4

Choose a tag to compare

crates.io libs.rs rust-version documentation license discord

Breaking Changes

  • Add ResultExt::Context as associated type (#2883)

Features

  • Implement ResultExt for Result even if the Err-variant is not Report<C> but only C: Context (#2883)

Deprecations

  • IntoReport: Use ReportExt or From via Result::map_err(Report::from) instead (#2883)

error-stack@0.3.1

08 Feb 20:17
c7a8f70

Choose a tag to compare

crates.io libs.rs rust-version documentation license discord

What's Changed

  • Fix multiline attachments not being aligned (#2022)

Full Changelog

error-stack@0.3.0

01 Feb 14:58
f271dd3

Choose a tag to compare

What's Changed

Breaking Changes

  • Remove all previously deprecated methods (#1485)
  • Remove pretty-print feature (#1800)

Features

  • Add initial serializing support using serde (#1290)
  • Support Debug hooks on no-std platforms via the hooks feature (#1556)
  • Support converting Report into Error via Report::as_error and Report::into_error (#1749)
  • Support converting Report into Box<dyn Error> via the From trait (#1749)
  • Programmatic selection of color mode and charset used for Debug output (#1800)

Full Changelog

error-stack@0.2.4

04 Nov 09:39
593ee6e

Choose a tag to compare

What's Changed

  • The output of Location is no longer hard-coded and can now be adjusted through hooks. (#1237)
  • The TypeId of a value contained in a Frame can now be accessed via Frame::type_id (#1289)
  • Deprecate Frame::location in favor of an additional attachment on context change/creation (#1311)

Full Changelog

error-stack@0.2.3

12 Oct 11:23
a0873e2

Choose a tag to compare

What's Changed

  • Add Apache 2.0 as an additional license option (#1172)

Full Changelog

error-stack@0.2.2

07 Oct 12:26
e26e373

Choose a tag to compare

What's Changed

  • error-stack formatting introduce space before attachment content by @indietyp in #1174

error-stack@0.2.1

07 Oct 11:55
e433c74

Choose a tag to compare

What's Changed