actix-web v4.0.0-beta.1 Release Notes

Release Date: 2021-01-07 // over 3 years ago
  • โž• Added

    • Compat middleware enabling generic response body/error type of middlewares like Logger and Compress to be used in middleware::Condition and Resource, Scope services. [#1865]

    ๐Ÿ”„ Changed

    • โšก๏ธ Update actix-* dependencies to tokio 1.0 based versions. [#1813]
    • โฌ†๏ธ Bumped rand to 0.8.
    • โšก๏ธ Update rust-tls to 0.19. [#1813]
    • ๐Ÿ“‡ Rename Handler to HandlerService and rename Factory to Handler. [#1852]
    • ๐Ÿ“š The default TrailingSlash is now Trim, in line with existing documentation. See migration guide for implications. [#1875]
    • Rename DefaultHeaders::{content_type => add_content_type}. [#1875]
    • MSRV is now 1.46.0.

    ๐Ÿ›  Fixed

    • Added the underlying parse error to test::read_body_json's panic message. [#1812]

    โœ‚ Removed

    • Public modules middleware::{normalize, err_handlers}. All necessary middleware structs are now exposed directly by the middleware module.
    • โœ‚ Remove actix-threadpool as dependency. actix_threadpool::BlockingError error type can be imported from actix_web::error module. [#1878]

    ๐ŸŒ [#1812]: https://github.com/actix/actix-web/pull/1812 ๐ŸŒ [#1813]: https://github.com/actix/actix-web/pull/1813 ๐ŸŒ [#1852]: https://github.com/actix/actix-web/pull/1852 ๐ŸŒ [#1865]: https://github.com/actix/actix-web/pull/1865 ๐ŸŒ [#1875]: https://github.com/actix/actix-web/pull/1875 ๐ŸŒ [#1878]: https://github.com/actix/actix-web/pull/1878