|
1 |
| -### v0.13.0-alpha.4 (2019-10-01) |
| 1 | +## v0.13.0 (2019-12-10) |
2 | 2 |
|
3 | 3 |
|
4 | 4 | #### Bug Fixes
|
5 | 5 |
|
6 |
| -* **body:** allow `http_body::Body` to be object-safe |
| 6 | +* **client:** |
| 7 | + * fix polling dispatch channel after it has closed ([039281b8](https://github.com/hyperium/hyper/commit/039281b89cf1ab54a0ecc10c5e7fee56d4da0cf4)) |
| 8 | + * fix panic from unreachable code ([e6027bc0](https://github.com/hyperium/hyper/commit/e6027bc02db92d1137c54a26eef2e1cb4d810e25)) |
| 9 | +* **dependencies:** require correct bytes minimum version (#1975) ([536b1e18](https://github.com/hyperium/hyper/commit/536b1e184e9704f50716cf10bf9d4e11a79337da)) |
| 10 | +* **server:** |
| 11 | + * change `Builder` window size methods to be by-value ([a22dabd0](https://github.com/hyperium/hyper/commit/a22dabd0935e5471fb6b7e511fc9c585ced0a53a), closes [#1814](https://github.com/hyperium/hyper/issues/1814)) |
| 12 | + * ignore expect-continue with no body in debug mode ([ca5836f1](https://github.com/hyperium/hyper/commit/ca5836f1ece7c4a67172bcbe72745cb49e8951b0), closes [#1843](https://github.com/hyperium/hyper/issues/1843)) |
| 13 | + * Remove unneeded `'static` bound of `Service` on `Connection` (#1971) ([4d147126](https://github.com/hyperium/hyper/commit/4d14712643e4c2ba235a569bb5d9e3099101c1a1)) |
7 | 14 |
|
8 | 15 |
|
9 |
| -### v0.13.0-alpha.3 (2019-10-01) |
| 16 | +#### Features |
10 | 17 |
|
| 18 | +* **body:** |
| 19 | + * change `Sender::send_data` to an `async fn`. ([62a96c07](https://github.com/hyperium/hyper/commit/62a96c077b85792fbf6eb080ec8fec646c47e385)) |
| 20 | + * require `Sync` when wrapping a dynamic `Stream` ([44413721](https://github.com/hyperium/hyper/commit/4441372121e8b278ac773ddd4e408a642dadf2d8)) |
| 21 | + * add `body::aggregate` and `body::to_bytes` functions ([8ba9a8d2](https://github.com/hyperium/hyper/commit/8ba9a8d2c4bab0f44b3f94a326b3b91c82d7877e)) |
| 22 | + * replace `Chunk` type with `Bytes` ([5a598757](https://github.com/hyperium/hyper/commit/5a59875742500672f253719c1e1a16b4eddfacc7), closes [#1931](https://github.com/hyperium/hyper/issues/1931)) |
| 23 | + * replace the `Payload` trait with `HttpBody` ([c63728eb](https://github.com/hyperium/hyper/commit/c63728eb38182ad2f93edd729dbf50f3d5c40479)) |
| 24 | +* **client:** |
| 25 | + * impl tower_service::Service for Client ([edbd10ac](https://github.com/hyperium/hyper/commit/edbd10ac96c5cc6dbeca80ada80f143dbd13d118)) |
| 26 | + * provide tower::Service support for clients (#1915) ([eee2a728](https://github.com/hyperium/hyper/commit/eee2a728797346f8c96c15c5958a05432a4e4453)) |
| 27 | + * change connectors to return an `impl Connection` ([4d7a2266](https://github.com/hyperium/hyper/commit/4d7a2266b88b2c5c92231bcd2bd75d5842198add)) |
| 28 | + * remove `Destination` for `http::Uri` in connectors ([319e8aee](https://github.com/hyperium/hyper/commit/319e8aee1571d8d3639b3259e7a1edb964e6a26c)) |
| 29 | + * filter remote IP addresses by family of given local IP address ([131962c8](https://github.com/hyperium/hyper/commit/131962c86ab0a31c2413261cf4532eca88d67dcb)) |
| 30 | + * change `Resolve` to be `Service<Name>` ([9d9233ce](https://github.com/hyperium/hyper/commit/9d9233ce7ceddb0fa6f5e725b0a781929add3c58), closes [#1903](https://github.com/hyperium/hyper/issues/1903)) |
| 31 | + * change `Connect` trait into an alias for `Service` ([d67e49f1](https://github.com/hyperium/hyper/commit/d67e49f1491327a78f804bab32804dc6c73d2974), closes [#1902](https://github.com/hyperium/hyper/issues/1902)) |
| 32 | + * change `GaiResolver` to use a global blocking threadpool ([049b5132](https://github.com/hyperium/hyper/commit/049b5132dbb6199a32e1795d005003f99d0e0b74)) |
| 33 | + * Add connect timeout to HttpConnector (#1972) ([4179297a](https://github.com/hyperium/hyper/commit/4179297ac9805af8f84d54525e089ff3f19008ab)) |
| 34 | +* **lib:** |
| 35 | + * update to `std::future::Future` ([8f4b05ae](https://github.com/hyperium/hyper/commit/8f4b05ae78567dfc52236bc83d7be7b7fc3eebb0)) |
| 36 | + * add optional `tcp` feature, split from `runtime` ([5b348b82](https://github.com/hyperium/hyper/commit/5b348b821c3f43d8dd71179862190932fcca6a1c)) |
| 37 | + * make `Stream` trait usage optional behind the `stream` feature, enabled by default ([0b03b730](https://github.com/hyperium/hyper/commit/0b03b730531654b1b5f632099386ab27c94eb9f4), closes [#2034](https://github.com/hyperium/hyper/issues/2034)) |
| 38 | + * update Tokio, bytes, http, h2, and http-body ([cb3f39c2](https://github.com/hyperium/hyper/commit/cb3f39c2dc6340060f6b17f354f04c872a947574)) |
| 39 | +* **rt:** introduce `rt::Executor` trait ([6ae5889f](https://github.com/hyperium/hyper/commit/6ae5889f8378b6454d4dc620f33bd1678d0e00e4), closes [#1944](https://github.com/hyperium/hyper/issues/1944)) |
| 40 | +* **server:** |
| 41 | + * introduce `Accept` trait ([b3e55062](https://github.com/hyperium/hyper/commit/b3e5506261c33dcaca39a126e891a0b9d5df5eea)) |
| 42 | + * give `Server::local_addr` a more general type ([3cc93e79](https://github.com/hyperium/hyper/commit/3cc93e796aad59b3996fc26b8839a783e0307925)) |
| 43 | + * change `http1_half_close` option default to disabled ([7e31fd88](https://github.com/hyperium/hyper/commit/7e31fd88a86ac032d05670ba4e293e3e5fcccbaf)) |
| 44 | +* **service:** |
| 45 | + * use tower_service::Service for hyper::service ([ec520d56](https://github.com/hyperium/hyper/commit/ec520d5602d819fd92f497cc230df436c1a39eb0)) |
| 46 | + * rename `Service` to `HttpService`, re-export `tower::Service` ([4f274399](https://github.com/hyperium/hyper/commit/4f2743991c227836c3886778512afe1297df3e5b), closes [#1959](https://github.com/hyperium/hyper/issues/1959)) |
11 | 47 |
|
12 |
| -#### Features |
13 | 48 |
|
14 |
| -* **lib:** add optional `tcp` feature, split from `runtime` ([5b348b82](https://github.com/hyperium/hyper/commit/5b348b821c3f43d8dd71179862190932fcca6a1c)) |
| 49 | +#### Breaking Changes |
15 | 50 |
|
| 51 | +* All usage of async traits (`Future`, `Stream`, |
| 52 | +`AsyncRead`, `AsyncWrite`, etc) are updated to newer versions. |
16 | 53 |
|
17 |
| -### v0.13.0-alpha.2 (2019-09-24) |
| 54 | + ([8f4b05ae](https://github.com/hyperium/hyper/commit/8f4b05ae78567dfc52236bc83d7be7b7fc3eebb0)) |
| 55 | +* All usage of `hyper::Chunk` should be replaced with |
| 56 | + `bytes::Bytes` (or `hyper::body::Bytes`). |
18 | 57 |
|
| 58 | + ([5a598757](https://github.com/hyperium/hyper/commit/5a59875742500672f253719c1e1a16b4eddfacc7)) |
| 59 | +* Using a `Body` as a `Stream`, and constructing one via |
| 60 | + `Body::wrap_stream`, require enabling the `stream` feature. |
19 | 61 |
|
20 |
| -#### Bug Fixes |
| 62 | + ([511ea388](https://github.com/hyperium/hyper/commit/511ea3889b5cceccb3a42aa72465fe38adef71a4)) |
| 63 | +* Calls to `GaiResolver::new` and `HttpConnector::new` no |
| 64 | + longer should pass an integer argument for the number of threads. |
21 | 65 |
|
22 |
| -* **client:** allow client GET requests with explicit body headers ([0867ad5c](https://github.com/hyperium/hyper/commit/0867ad5c15fa52b7af3fc840ee7a1e256c469942), closes [#1925](https://github.com/hyperium/hyper/issues/1925)) |
| 66 | + ([049b5132](https://github.com/hyperium/hyper/commit/049b5132dbb6199a32e1795d005003f99d0e0b74)) |
| 67 | +* Connectors no longer return a tuple of |
| 68 | + `(T, Connected)`, but a single `T: Connection`. |
23 | 69 |
|
| 70 | + ([4d7a2266](https://github.com/hyperium/hyper/commit/4d7a2266b88b2c5c92231bcd2bd75d5842198add)) |
| 71 | +* All usage of `hyper::client::connect::Destination` |
| 72 | + should be replaced with `http::Uri`. |
24 | 73 |
|
25 |
| -#### Features |
| 74 | + ([319e8aee](https://github.com/hyperium/hyper/commit/319e8aee1571d8d3639b3259e7a1edb964e6a26c)) |
| 75 | +* All usage of `hyper::body::Payload` should be replaced |
| 76 | + with `hyper::body::HttpBody`. |
26 | 77 |
|
27 |
| -* **body:** |
28 |
| - * identify aborted body write errors ([dc54ee19](https://github.com/hyperium/hyper/commit/dc54ee199f2d19d65913d224b900a61ab3bf2415)) |
29 |
| - * put `Stream` impl for `Body` behind `unstable-stream` feature ([511ea388](https://github.com/hyperium/hyper/commit/511ea3889b5cceccb3a42aa72465fe38adef71a4)) |
30 |
| -* **server:** introduce `Accept` trait ([b3e55062](https://github.com/hyperium/hyper/commit/b3e5506261c33dcaca39a126e891a0b9d5df5eea)) |
| 78 | + ([c63728eb](https://github.com/hyperium/hyper/commit/c63728eb38182ad2f93edd729dbf50f3d5c40479)) |
| 79 | +* Any type passed to the `executor` builder methods must |
| 80 | + now implement `hyper::rt::Executor`. |
31 | 81 |
|
| 82 | + `hyper::rt::spawn` usage should be replaced with `tokio::task::spawn`. |
32 | 83 |
|
33 |
| -#### Breaking Changes |
| 84 | + `hyper::rt::run` usage should be replaced with `#[tokio::main]` or |
| 85 | + managing a `tokio::runtime::Runtime` manually. |
34 | 86 |
|
35 |
| -* Using a `Body` as a `Stream`, and constructing one via |
36 |
| - `Body::wrap_stream`, require enabling the `unstable-stream` feature. |
| 87 | + ([6ae5889f](https://github.com/hyperium/hyper/commit/6ae5889f8378b6454d4dc620f33bd1678d0e00e4)) |
| 88 | +* The `Resolve` trait is gone. All custom resolvers should |
| 89 | + implement `tower::Service` instead. |
37 | 90 |
|
38 |
| - ([511ea388](https://github.com/hyperium/hyper/commit/511ea3889b5cceccb3a42aa72465fe38adef71a4)) |
| 91 | + The error type of `HttpConnector` has been changed away from |
| 92 | + `std::io::Error`. |
| 93 | + |
| 94 | + ([9d9233ce](https://github.com/hyperium/hyper/commit/9d9233ce7ceddb0fa6f5e725b0a781929add3c58)) |
| 95 | +* Any manual implementations of `Connect` must instead |
| 96 | + implement `tower::Service<Uri>`. |
| 97 | + |
| 98 | + ([d67e49f1](https://github.com/hyperium/hyper/commit/d67e49f1491327a78f804bab32804dc6c73d2974)) |
| 99 | +* The server's behavior will now by default close |
| 100 | + connections when receiving a read EOF. To allow for clients to close |
| 101 | + the read half, call `http1_half_close(true)` when configuring a |
| 102 | + server. |
| 103 | + |
| 104 | + ([7e31fd88](https://github.com/hyperium/hyper/commit/7e31fd88a86ac032d05670ba4e293e3e5fcccbaf)) |
39 | 105 | * Passing a `Stream` to `Server::builder` or
|
40 | 106 | `Http::serve_incoming` must be changed to pass an `Accept` instead. The
|
41 |
| - `unstable-stream` optional feature can be enabled, and the a stream can be |
| 107 | + `stream` optional feature can be enabled, and then a stream can be |
42 | 108 | converted using `hyper::server::accept::from_stream`.
|
43 | 109 |
|
44 | 110 | ([b3e55062](https://github.com/hyperium/hyper/commit/b3e5506261c33dcaca39a126e891a0b9d5df5eea))
|
| 111 | +* Usage of `send_data` should either be changed to |
| 112 | + async/await or use `try_send_data`. |
45 | 113 |
|
| 114 | + ([62a96c07](https://github.com/hyperium/hyper/commit/62a96c077b85792fbf6eb080ec8fec646c47e385)) |
46 | 115 |
|
47 |
| -### v0.13.0-alpha.1 (2019-09-04) |
48 |
| - |
49 |
| - |
50 |
| -#### Bug Fixes |
51 | 116 |
|
52 |
| -* **server:** change `Builder` window size methods to be by-value ([a22dabd0](https://github.com/hyperium/hyper/commit/a22dabd0935e5471fb6b7e511fc9c585ced0a53a), closes [#1814](https://github.com/hyperium/hyper/issues/1814)) |
| 117 | +### v0.12.35 (2019-09-13) |
53 | 118 |
|
54 | 119 |
|
55 | 120 | #### Features
|
56 | 121 |
|
57 |
| -* **body:** |
58 |
| - * change `Sender::send_data` to an `async fn`. ([62a96c07](https://github.com/hyperium/hyper/commit/62a96c077b85792fbf6eb080ec8fec646c47e385)) |
59 |
| - * Update `Payload` to be a trait alias of `http_body::Body` (#1908) ([79c32f89](https://github.com/hyperium/hyper/commit/79c32f89530e47735155eb9bd19466bcb6aec90d)) |
60 |
| - * require `Sync` when wrapping a dynamic `Stream` ([44413721](https://github.com/hyperium/hyper/commit/4441372121e8b278ac773ddd4e408a642dadf2d8)) |
61 |
| -* **client:** |
62 |
| - * provide tower::Service support for clients (#1915) ([eee2a728](https://github.com/hyperium/hyper/commit/eee2a728797346f8c96c15c5958a05432a4e4453)) |
63 |
| - * change `GaiResolver` to use a global blocking threadpool ([049b5132](https://github.com/hyperium/hyper/commit/049b5132dbb6199a32e1795d005003f99d0e0b74)) |
64 |
| -* **lib:** update to `std::future::Future` ([8f4b05ae](https://github.com/hyperium/hyper/commit/8f4b05ae78567dfc52236bc83d7be7b7fc3eebb0)) |
65 |
| -* **rt:** export `hyper::rt::main` attribute macro ([f0478c62](https://github.com/hyperium/hyper/commit/f0478c62677a953aae84aa8d976bec1d28ef21b1)) |
66 |
| -* **service:** use tower_service::Service for hyper::service ([ec520d56](https://github.com/hyperium/hyper/commit/ec520d5602d819fd92f497cc230df436c1a39eb0)) |
| 122 | +* **body:** identify aborted body write errors ([32869224](https://github.com/hyperium/hyper/commit/3286922460ab63d0a804d8170d862ff4ba5951dd)) |
67 | 123 |
|
68 | 124 |
|
69 |
| -#### Breaking Changes |
| 125 | +### v0.12.34 (2019-09-04) |
70 | 126 |
|
71 |
| -* Usage of `send_data` should either be changed to |
72 |
| - async/await or use `try_send_data`. |
73 | 127 |
|
74 |
| - ([62a96c07](https://github.com/hyperium/hyper/commit/62a96c077b85792fbf6eb080ec8fec646c47e385)) |
75 |
| -* Calls to `GaiResolver::new` and `HttpConnector::new` no |
76 |
| - longer should pass an integer argument for the number of threads. |
77 |
| - |
78 |
| - ([049b5132](https://github.com/hyperium/hyper/commit/049b5132dbb6199a32e1795d005003f99d0e0b74)) |
79 |
| -* All usage of async traits (`Future`, `Stream`, |
80 |
| -`AsyncRead`, `AsyncWrite`, etc) are updated to newer versions. |
| 128 | +#### Bug Fixes |
81 | 129 |
|
82 |
| - ([8f4b05ae](https://github.com/hyperium/hyper/commit/8f4b05ae78567dfc52236bc83d7be7b7fc3eebb0)) |
| 130 | +* **client:** allow client GET requests with explicit body headers ([23fc8b08](https://github.com/hyperium/hyper/commit/23fc8b0806e7fde435ca00479cd5e3c8c5bdeee7), closes [#1925](https://github.com/hyperium/hyper/issues/1925)) |
83 | 131 |
|
84 | 132 |
|
85 | 133 | ### v0.12.33 (2019-09-04)
|
|
0 commit comments