| 1 | # Changelog |
| 2 | |
| 3 | The format is based on [Keep a Changelog]. |
| 4 | |
| 5 | [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ |
| 6 | |
| 7 | ## 0.8.1 |
| 8 | |
| 9 | - [fixed] ignore I/O error after successful close handshake [#115](https://github.com/paritytech/soketto/pull/115) |
| 10 | |
| 11 | ## 0.8.0 |
| 12 | |
| 13 | - [changed] move to rust 2021 [#56](https://github.com/paritytech/soketto/pull/56) |
| 14 | - [changed] Replace sha-1 v0.9 with sha1 v0.10 [#62](https://github.com/paritytech/soketto/pull/62) |
| 15 | - [changed] Update hyper requirement from v0.14 to v1.0 [#99](https://github.com/paritytech/soketto/pull/99) |
| 16 | - [changed] Update base64 requirement from 0.13 to 0.22 [#97](https://github.com/paritytech/soketto/pull/97) |
| 17 | - [changed] Bump MSRV to 1.71.1. |
| 18 | - [fixed] doc typo on Client resource field [#79](https://github.com/paritytech/soketto/pull/97) |
| 19 | |
| 20 | ## 0.7.1 |
| 21 | |
| 22 | - [fixed] Advance reader when a too big message is received [#54](https://github.com/paritytech/soketto/pull/54) |
| 23 | |
| 24 | ## 0.7.0 |
| 25 | |
| 26 | - [added] Added the `handshake::http` module and example usage at `examples/hyper_server.rs` to make using Soketto in conjunction with libraries that use the `http` types (like Hyper) simpler [#45](https://github.com/paritytech/soketto/pull/45) [#48](https://github.com/paritytech/soketto/pull/48) |
| 27 | - [added] Allow setting custom headers on the client to be sent to WebSocket servers when the opening handshake is performed [#47](https://github.com/paritytech/soketto/pull/47) |
| 28 | |
| 29 | ## 0.6.0 |
| 30 | |
| 31 | - [changed] Expose the `Origin` headers from the client handshake on `ClientRequest` [#35](https://github.com/paritytech/soketto/pull/35) |
| 32 | - [changed] Update handshake error to expose a couple of new variants (`IncompleteHttpRequest` and `SecWebSocketKeyInvalidLength`) [#35](https://github.com/paritytech/soketto/pull/35) |
| 33 | - [added] Add `send_text_owned` method to `Sender` as an optimisation when you can pass an owned `String` in [#36](https://github.com/paritytech/soketto/pull/36) |
| 34 | - [updated] Run rustfmt over the repository, and minor tidy up [#41](https://github.com/paritytech/soketto/pull/41) |
| 35 | |
| 36 | ## 0.5.0 |
| 37 | |
| 38 | - Update examples to Tokio 1 [#27](https://github.com/paritytech/soketto/pull/27) |
| 39 | - Update deps and remove unnecessary transients [#30](https://github.com/paritytech/soketto/pull/30) |
| 40 | - Add CLOSE reason handling [#31](https://github.com/paritytech/soketto/pull/31) |
| 41 | - Fix handshake with case-sensible servers [#32](https://github.com/paritytech/soketto/pull/32) |
| 42 | |
| 43 | ## 0.4.2 |
| 44 | |
| 45 | - Added connection ID to log output (#21). |
| 46 | - Added `ClientRequest::path` to access the path requested by the client |
| 47 | (See #23 by @mward for details). |
| 48 | - Updated `sha-1` dependency to 0.9 (#24). |
| 49 | |
| 50 | ## 0.4.1 |
| 51 | |
| 52 | - Update some `dev-dependencies`. |
| 53 | |
| 54 | ## 0.4.0 |
| 55 | |
| 56 | - Remove all `unsafe` code blocks. |
| 57 | - Remove internal use of `futures::io::BufWriter`. |
| 58 | - `Extension::decode` now takes a `&mut Vec<u8>` instead of a `BytesMut`. |
| 59 | - `Incoming::Pong` contains the PONG payload data slice inline. |
| 60 | - `Data` not longer contains application data, but reports only the number |
| 61 | of bytes. The actual data is written directly into the `&mut Vec<u8>` |
| 62 | parameter of `Receiver::receive` or `Receiver::receive_data`. |
| 63 | - `Receiver::into_stream` has been removed. |
| 64 | |
| 65 | ## 0.3.2 |
| 66 | |
| 67 | - Bugfix release. `Codec::encode_header` contained a hidden assumption that |
| 68 | a `usize` would be 8 bytes long, which is obviously only true on 64-bit |
| 69 | architectures. See #18 for details. |
| 70 | |
| 71 | ## 0.3.1 |
| 72 | |
| 73 | - A method `into_inner` to get back the socket has been added to |
| 74 | `handshake::{Client, Server}`. |
| 75 | |
| 76 | ## 0.3.0 |
| 77 | |
| 78 | Update to use and work with async/await: |
| 79 | |
| 80 | - `Connection` has been split into a `Sender` and `Receiver` pair with |
| 81 | async methods to send and receive data or control frames such as Pings |
| 82 | or Pongs. |
| 83 | - `connection::into_stream` has been added to get a `futures::stream::Stream` |
| 84 | from a `Receiver`. |
| 85 | - A `connection::Builder` has been added to setup connection parameters. |
| 86 | `handshake::Client` and `handshake::Server` no longer have an |
| 87 | `into_connection` method, but an `into_builder` one which returns the |
| 88 | `Builder` and allows further configuration. |
| 89 | - `base::Data` has been moved to `data`. In addition `data::Incoming` |
| 90 | supports control frame data. |
| 91 | - `base::Codec` no longer implements `Encoder`/`Decoder` traits but has |
| 92 | inherent methods for encoding and decoding websocket frame headers. |
| 93 | - `base::Frame` has been removed. The `base::Codec` only deals with |
| 94 | headers. |
| 95 | - The `handshake` module contains separate sub-modules for `client` and |
| 96 | `server` handshakes. Some handshake related types have been refactored |
| 97 | slightly. |
| 98 | - `Extension`s `decode` methods work on `&mut BytesMut` parameters |
| 99 | instead of `Data`. For `encode` a new type `Storage` has been added |
| 100 | which unifies different types of data, i.e. shared, unique and owned data. |
| 101 | |
| 102 | ## 0.2.3 |
| 103 | |
| 104 | - Maintenance release. |
| 105 | |
| 106 | ## 0.2.2 |
| 107 | |
| 108 | - Improved handshake header matching which is now more robust and can cope with |
| 109 | repeated header names and comma separated values. |
| 110 | |
| 111 | ## 0.2.1 |
| 112 | |
| 113 | - The DEFLATE extension now allows custom maximum window bits for client and server. |
| 114 | - Fix handling of reserved bits in base codec. |
| 115 | |
| 116 | ## 0.2.0 |
| 117 | |
| 118 | - Change `Extension` trait and add an optional DEFLATE extension (RFC 7692). |
| 119 | For now the possibility to use reserved opcodes in extensions is not enabled. |
| 120 | The DEFLATE extension does not support setting of window bits other than 15 |
| 121 | currently. |
| 122 | - Limit the max. buffer size in `Connection` (see `Connection::set_max_buffer_size`). |
| 123 | |
| 124 | ## 0.1.0 |
| 125 | |
| 126 | Initial release. |