Recent Releases of hash
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
- TypeScript
Published by TimDiekmann 6 months ago
hash - 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
- @dpc made their first contribution in https://github.com/hashintel/hash/pull/3228
Full Changelog: https://github.com/hashintel/hash/compare/error-stack@0.4.1...error-stack@0.5.0
- TypeScript
Published by TimDiekmann over 1 year ago
hash - error-stack@0.4.1
Fixes
- Fix deprecation warning typo for
IntoReport(#3088)
- TypeScript
Published by TimDiekmann over 2 years ago
hash - error-stack@0.4.0
Breaking Changes
- Add
ResultExt::Contextas associated type (#2883)
Features
- Implement
ResultExtforResulteven if theErr-variant is notReport<C>but onlyC: Context(#2883)
Deprecations
IntoReport: UseReportExtorFromviaResult::map_err(Report::from)instead (#2883)
- TypeScript
Published by TimDiekmann over 2 years ago
hash - error-stack@0.3.1
What's Changed
- Fix multiline attachments not being aligned (#2022)
- TypeScript
Published by TimDiekmann about 3 years ago
hash - 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)
- TypeScript
Published by TimDiekmann about 3 years ago
hash - error-stack@0.2.4
What's Changed
- The output of
Locationis no longer hard-coded and can now be adjusted through hooks. (#1237) - The
TypeIdof a value contained in aFramecan now be accessed viaFrame::type_id(#1289) - Deprecate
Frame::locationin favor of an additional attachment on context change/creation (#1311)
- TypeScript
Published by TimDiekmann over 3 years ago
hash - error-stack@0.2.3
What's Changed
- Add Apache 2.0 as an additional license option (#1172)
- TypeScript
Published by TimDiekmann over 3 years ago
hash - error-stack@0.2.2
What's Changed
error-stackformatting introduce space before attachment content by @indietyp in https://github.com/hashintel/hash/pull/1174
- TypeScript
Published by TimDiekmann over 3 years ago
hash - error-stack@0.2.1
What's Changed
- Make image link in README.md absolute by @TimDiekmann in https://github.com/hashintel/hash/pull/1153
- TypeScript
Published by TimDiekmann over 3 years ago
hash - error-stack@0.2.0
See the blog post on the new release >
What changed?
Breaking Changes
- Set the MSRV to 1.63 (#944)
- Use
ProviderAPI fromcore::any(#697) - Remove the unused features
hooks,futures, andfutures-core(#695, #1138)
Features
- Support backtraces on non-nightly channels starting with 1.65.0-beta (#1098)
- Add support for
core::error::Erroron nightly (#1038) - Add support for
Error::provide()(#904) - New output for Debug (#794)
- New hook interface for Debug (#794)
- Add support for related errors and multiple error sources (#747)
- Add compatibility for
anyhowandeyreto convert their types intoReport(#763) - Implement
TerminationforReport(#671) Report::set_debug_hookandReport::set_display_hookno longer return an error (#794)
Deprecations
IntoReport::report: UseIntoReport::into_reportinstead (#698)Report::backtrace: UseReport::downcast_ref::<Backtrace>(non-nightly),Report::requested_ref::<Backtrace>(nightly) instead (#747)Report::span_trace: UseReport::downcast_ref::<SpanTrace>(non-nightly),Report::requested_ref::<SpanTrace>(nightly) instead (#747)Frame::source: UseFrame::sourcesinstead (#747)Frame::source_mut: UseFrame::sources_mutinstead (#747)Report::set_debug_hook: UseReport::install_debug_hookinstead (#794)Report::set_display_hook(#794)
Internal improvements
- Greatly reduce the amount of
unsafecode (#774)
- TypeScript
Published by TimDiekmann over 3 years ago
hash - error-stack@0.1.1
What's Changed
- Update readme from #628 by @TimDiekmann in https://github.com/hashintel/hash/pull/636
- TypeScript
Published by TimDiekmann over 3 years ago
hash - error-stack@0.1.0
The initial release of error-stack: A context-aware error library for Rust that supports arbitrary attached user data.
Read our announcement post for the story behind its origins.
- TypeScript
Published by TimDiekmann over 3 years ago