Skip to content

Commit

Permalink
add changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
fakeshadow committed Feb 7, 2024
1 parent f7b126e commit 2da4c82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# unreleased 0.3.0
## Add
- enable Rust nightly feature `error_generic_member_access` when `xitca-web`'s `nightly` feature is enabled. this enables runtime context type interaction like `std::backtrace::BackTrace` for enhanced error handling.
- enable Rust nightly feature `error_generic_member_access` when `xitca-web`'s `nightly` crate feature is enabled. this enables runtime context type interaction like `std::backtrace::Backtrace` for enhanced error handling.
- `ErrorStatus` error type would try to capture `Backtrace` when `nightly` crate feature is enabled.

## Remove
- remove `xitca_web::error::{BadRequest, Internal}` types. `xitca_web::error::ErrorStatus` replace their roles where `ErrorStatus::bad_request` and `ErrorStatus::internal` would generate identical error information as `BadRequest` and `Internal` types. this change would simplify runtime error type casting a bit with two less possible error types.

## Change
- change `xitca_web::middleware::eraser::TypeEraser::error`'s trait bound. `From` trait is used for conversion between generic error type and `xitca_web::error::Error`. With this change `Error` does not double boxing itself therefore removing the need of nested type casting when handling typed error.
- `ErrorStatus::{bad_request, internal}` can't be used in const context anymore as they are tasked with capture thread backtrace.

# 0.2.2
## Add
Expand Down

0 comments on commit 2da4c82

Please sign in to comment.