diff --git a/axum-core/CHANGELOG.md b/axum-core/CHANGELOG.md index 514deb12f5..b3127ebc23 100644 --- a/axum-core/CHANGELOG.md +++ b/axum-core/CHANGELOG.md @@ -7,9 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 # Unreleased +- None. + +# 0.4.0 (27. November, 2023) + - **added:** Implement `IntoResponse` for `(R,) where R: IntoResponse` ([#2143]) - **fixed:** Fix broken docs links ([#2164]) - **fixed:** Clearly document applying `DefaultBodyLimit` to individual routes ([#2157]) +- **breaking:** The following types/traits are no longer generic over the request body + (i.e. the `B` type param has been removed) ([#1751] and [#1789]): + - `FromRequestParts` + - `FromRequest` + - `RequestExt` +- **breaking:** axum no longer re-exports `hyper::Body` as that type is removed + in hyper 1.0. Instead axum has its own body type at `axum_core::body::Body` ([#1751]) [#2143]: https://github.com/tokio-rs/axum/pull/2143 [#2164]: https://github.com/tokio-rs/axum/pull/2164 diff --git a/axum-core/Cargo.toml b/axum-core/Cargo.toml index 5295f61720..17de5af997 100644 --- a/axum-core/Cargo.toml +++ b/axum-core/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT" name = "axum-core" readme = "README.md" repository = "https://github.com/tokio-rs/axum" -version = "0.3.4" # remember to also bump the version that axum and axum-extra depend on +version = "0.4.0" # remember to also bump the version that axum and axum-extra depend on [features] tracing = ["dep:tracing"] @@ -38,7 +38,7 @@ tracing = { version = "0.1.37", default-features = false, optional = true } rustversion = "1.0.9" [dev-dependencies] -axum = { path = "../axum", version = "0.6.0" } +axum = { path = "../axum", version = "0.7.0" } axum-extra = { path = "../axum-extra", features = ["typed-header"] } futures-util = { version = "0.3", default-features = false, features = ["alloc"] } hyper = "1.0.0" diff --git a/axum-extra/CHANGELOG.md b/axum-extra/CHANGELOG.md index 161145ff04..d9070635df 100644 --- a/axum-extra/CHANGELOG.md +++ b/axum-extra/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning]. # Unreleased +- None. + +# 0.9.0 (27. November, 2023) + - **added:** `OptionalQuery` extractor ([#2310]) - **added:** `TypedHeader` which used to be in `axum` ([#1850]) - **breaking:** Update to prost 0.12. Used for the `Protobuf` extractor diff --git a/axum-extra/Cargo.toml b/axum-extra/Cargo.toml index 007b530a94..dd241c8175 100644 --- a/axum-extra/Cargo.toml +++ b/axum-extra/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT" name = "axum-extra" readme = "README.md" repository = "https://github.com/tokio-rs/axum" -version = "0.7.4" +version = "0.9.0" [features] default = [] @@ -36,8 +36,8 @@ typed-header = ["dep:headers"] typed-routing = ["dep:axum-macros", "dep:percent-encoding", "dep:serde_html_form", "dep:form_urlencoded"] [dependencies] -axum = { path = "../axum", version = "0.6.13", default-features = false } -axum-core = { path = "../axum-core", version = "0.3.4" } +axum = { path = "../axum", version = "0.7.0", default-features = false } +axum-core = { path = "../axum-core", version = "0.4.0" } bytes = "1.1.0" futures-util = { version = "0.3", default-features = false, features = ["alloc"] } http = "1.0.0" @@ -51,7 +51,7 @@ tower-layer = "0.3" tower-service = "0.3" # optional dependencies -axum-macros = { path = "../axum-macros", version = "0.3.7", optional = true } +axum-macros = { path = "../axum-macros", version = "0.4.0", optional = true } cookie = { package = "cookie", version = "0.18.0", features = ["percent-encode"], optional = true } form_urlencoded = { version = "1.1.0", optional = true } headers = { version = "0.4.0", optional = true } @@ -65,7 +65,7 @@ tokio-stream = { version = "0.1.9", optional = true } tokio-util = { version = "0.7", optional = true } [dev-dependencies] -axum = { path = "../axum", version = "0.6.0" } +axum = { path = "../axum", version = "0.7.0" } hyper = "1.0.0" reqwest = { version = "0.11", default-features = false, features = ["json", "stream", "multipart"] } serde = { version = "1.0", features = ["derive"] } diff --git a/axum-macros/CHANGELOG.md b/axum-macros/CHANGELOG.md index 32f36d00da..90dfd9bc59 100644 --- a/axum-macros/CHANGELOG.md +++ b/axum-macros/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 # Unreleased +- None. + +# 0.4.0 (27. November, 2023) + - **breaking:** `#[debug_handler]` no longer accepts a `body = _` argument. The body type is always `axum::body::Body` ([#1751]) - **fixed:** Fix `rust-version` specific in Cargo.toml ([#2204]) diff --git a/axum-macros/Cargo.toml b/axum-macros/Cargo.toml index 45ef16203a..1b3ee0086a 100644 --- a/axum-macros/Cargo.toml +++ b/axum-macros/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT" name = "axum-macros" readme = "README.md" repository = "https://github.com/tokio-rs/axum" -version = "0.3.7" # remember to also bump the version that axum and axum-extra depends on +version = "0.4.0" # remember to also bump the version that axum and axum-extra depends on [features] default = [] @@ -30,8 +30,8 @@ syn = { version = "2.0", features = [ ] } [dev-dependencies] -axum = { path = "../axum", version = "0.6.0", features = ["macros"] } -axum-extra = { path = "../axum-extra", version = "0.7.0", features = ["typed-routing", "cookie-private", "typed-header"] } +axum = { path = "../axum", version = "0.7.0", features = ["macros"] } +axum-extra = { path = "../axum-extra", version = "0.9.0", features = ["typed-routing", "cookie-private", "typed-header"] } rustversion = "1.0" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" diff --git a/axum/CHANGELOG.md b/axum/CHANGELOG.md index 56e3dd4822..9343737d0a 100644 --- a/axum/CHANGELOG.md +++ b/axum/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 # Unreleased +- None. + +# 0.7.0 (27. November, 2023) + - **breaking:** Remove deprecated `WebSocketUpgrade::max_send_queue` - **breaking:** The following types/traits are no longer generic over the request body (i.e. the `B` type param has been removed) ([#1751] and [#1789]): diff --git a/axum/Cargo.toml b/axum/Cargo.toml index bb915d007a..9701517b6a 100644 --- a/axum/Cargo.toml +++ b/axum/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "axum" -version = "0.6.16" +version = "0.7.0" categories = ["asynchronous", "network-programming", "web-programming::http-server"] description = "Web framework that focuses on ergonomics and modularity" edition = "2021" @@ -32,7 +32,7 @@ __private_docs = ["tower/full", "dep:tower-http"] [dependencies] async-trait = "0.1.67" -axum-core = { path = "../axum-core", version = "0.3.4" } +axum-core = { path = "../axum-core", version = "0.4.0" } bytes = "1.0" futures-util = { version = "0.3", default-features = false, features = ["alloc"] } http = "1.0.0" @@ -51,7 +51,7 @@ tower-layer = "0.3.2" tower-service = "0.3" # optional dependencies -axum-macros = { path = "../axum-macros", version = "0.3.7", optional = true } +axum-macros = { path = "../axum-macros", version = "0.4.0", optional = true } base64 = { version = "0.21.0", optional = true } hyper = { version = "1.0.0", optional = true } hyper-util = { version = "0.1.1", features = ["tokio", "server", "server-auto"], optional = true } @@ -104,7 +104,7 @@ rustversion = "1.0.9" [dev-dependencies] anyhow = "1.0" -axum-macros = { path = "../axum-macros", version = "0.3.7", features = ["__private"] } +axum-macros = { path = "../axum-macros", version = "0.4.0", features = ["__private"] } quickcheck = "1.0" quickcheck_macros = "1.0" reqwest = { version = "0.11.14", default-features = false, features = ["json", "stream", "multipart"] }