Releases: hashintel/hash
Releases · hashintel/hash
error-stack@0.6.0
What changed
Features
Reporthas been split intoReport<C>andReport<[C]>to distinguish between a group of related errors and a single error. These errors can still be nested. (#5047)- Introduce a new
unstableflag, 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
IntoReporttrait, which is used to determine when a type can be converted to aReport. This allows the usage of errors more idiomatically in traits, such astype Error: IntoReport. (#6738)
Breaking Changes
- Rename
attach[_lazy]toattach_opaque[_with]andattach_printable[_lazy]toattach[_with]. (#7753) - Set the MSRV to 1.83 (#5333)
Extendis no longer implemented byReport<C>, instead it is implemented onReport<[C]>, either useFromorReport::expandto convert betweenReport<C>intoReport<[C]>. (#5047)extend_onehas been renamed topushand is only implemented onReport<[C]>. (#5047)bail!(report,)has been removed, one must now usebail!(report). This is in preparation for the unstablebail!macro that allows to constructReport<[C]>. (#5047)
Deprecations
Context: Usecore::error::Errorinstead (#5533)Result<T, C>: Usecore::result::Result<T, Report<C>>instead (#5533)report!, useIntoReport::into_reportinstead. (#6738)
Full Changelog: https://github.com/hashintel/hash/compare/error-stack@0.5.0...error-stack@0.6.0
error-stack@0.5.0
What changed
Features
- Capture
source()errors when convertingErrortoReport(#4678)
Breaking Changes
Backtraces are not included in thestdfeature anymore. Instead, thebacktracefeature is used which is enabled by default (#4685)- Remove deprecated
IntoReport(#4706)
New Contributors
Full Changelog: https://github.com/hashintel/hash/compare/error-stack@0.4.1...error-stack@0.5.0
error-stack@0.4.1
error-stack@0.4.0
error-stack@0.3.1
error-stack@0.3.0
What's Changed
Breaking Changes
Features
- Add initial serializing support using
serde(#1290) - Support
Debughooks onno-stdplatforms via thehooksfeature (#1556) - Support converting
ReportintoErrorviaReport::as_errorandReport::into_error(#1749) - Support converting
ReportintoBox<dyn Error>via theFromtrait (#1749) - Programmatic selection of color mode and charset used for
Debugoutput (#1800)
error-stack@0.2.4
error-stack@0.2.3
error-stack@0.2.2
error-stack@0.2.1
What's Changed
- Make image link in README.md absolute by @TimDiekmann in #1153