2020-08-26 13:03:35 +02:00
|
|
|
# 0.22.0 [unreleased]
|
|
|
|
|
2020-09-03 11:29:52 +02:00
|
|
|
- Allow any closure to be passed as an executor.
|
|
|
|
[PR 1686](https://github.com/libp2p/rust-libp2p/pull/1686)
|
|
|
|
|
2020-08-26 13:03:35 +02:00
|
|
|
- Remove `PeerId` compatibility mode for "identity" and SHA2 hashes.
|
|
|
|
Historically, before 0.12, `PeerId`s were incorrectly always hashed with SHA2.
|
|
|
|
Starting from version 0.13, rust-libp2p accepted both hashed and non-hashed keys as
|
|
|
|
input. Starting from version 0.16 rust-libp2p compared `PeerId`s of "identity" and
|
|
|
|
SHA2 hashes equal, which made it possible to connect through secio or noise to nodes
|
|
|
|
with an identity hash for the same peer ID. Starting from version 0.17, rust-libp2p
|
|
|
|
switched to not hashing the key (i.e. the correct behaviour) while retaining
|
|
|
|
equality between peer IDs using the "identity" hash and SHA2. Finally, with
|
|
|
|
this release, that will no longer be the case and it is assumed that peer IDs
|
|
|
|
whose length is less or equal to 42 bytes always use the "identity" hash so
|
|
|
|
two peer IDs are equal if and only if they use the same hash algorithm and
|
|
|
|
have the same hash digest. [PR 1608](https://github.com/libp2p/rust-libp2p/pull/1608).
|
|
|
|
|
2020-09-08 12:07:15 +02:00
|
|
|
- Return dialer address instead of listener address as `remote_addr` in
|
|
|
|
`MemoryTransport` `Listener` `ListenerEvent::Upgrade`
|
|
|
|
[PR 1724](https://github.com/libp2p/rust-libp2p/pull/1724).
|
|
|
|
|
2020-08-18 17:04:34 +02:00
|
|
|
# 0.21.0 [2020-08-18]
|
2020-08-04 11:30:09 +02:00
|
|
|
|
2020-08-24 10:48:36 +02:00
|
|
|
- Remove duplicates when performing address translation
|
|
|
|
[PR 1697](https://github.com/libp2p/rust-libp2p/pull/1697).
|
|
|
|
|
2020-08-17 10:14:44 +02:00
|
|
|
- Add `transport::Builder::multiplex_ext` for further customisation during
|
|
|
|
`StreamMuxer` creation. [PR 1691](https://github.com/libp2p/rust-libp2p/pull/1691).
|
|
|
|
|
2020-08-04 11:30:09 +02:00
|
|
|
- Refactoring of connection close and disconnect behaviour. In particular, the former
|
|
|
|
`NetworkEvent::ConnectionError` is now `NetworkEvent::ConnectionClosed` with the `error`
|
|
|
|
field being an `Option` and `None` indicating an active (but not necessarily orderly) close.
|
|
|
|
This guarantees that `ConnectionEstablished` events are always eventually paired
|
|
|
|
with `ConnectionClosed` events, regardless of how connections are closed.
|
|
|
|
Correspondingly, `EstablishedConnection::close` is now `EstablishedConnection::start_close`
|
|
|
|
to reflect that an orderly close completes asynchronously in the background, with the
|
|
|
|
outcome observed by continued polling of the `Network`. In contrast, `disconnect`ing
|
|
|
|
a peer takes effect immediately without an orderly connection shutdown.
|
|
|
|
See [PR 1619](https://github.com/libp2p/rust-libp2p/pull/1619) for further details.
|
|
|
|
|
2020-08-06 15:35:24 +02:00
|
|
|
- Add `ConnectedPoint::get_remote_address`
|
|
|
|
([PR 1649](https://github.com/libp2p/rust-libp2p/pull/1649)).
|
|
|
|
|
2020-08-04 23:13:38 +02:00
|
|
|
# 0.20.1 [2020-07-17]
|
2020-07-17 12:01:49 +02:00
|
|
|
|
|
|
|
- Update ed25519-dalek dependency.
|
|
|
|
|
2020-07-01 15:36:20 +02:00
|
|
|
# 0.20.0 [2020-07-01]
|
|
|
|
|
|
|
|
- Conditional compilation fixes for the `wasm32-wasi` target
|
|
|
|
([PR 1633](https://github.com/libp2p/rust-libp2p/pull/1633)).
|
2020-06-30 17:10:53 +02:00
|
|
|
|
|
|
|
- Rename `StreamMuxer::poll_inbound` to `poll_event` and change the
|
|
|
|
return value to `StreamMuxerEvent`. This new `StreamMuxerEvent` makes
|
|
|
|
it possible for the multiplexing layer to notify the upper layers of
|
|
|
|
a change in the address of the underlying connection.
|
|
|
|
|
|
|
|
- Add `ConnectionHandler::inject_address_change`.
|
|
|
|
|
2020-06-22 11:41:28 +02:00
|
|
|
# 0.19.2 [2020-06-22]
|
|
|
|
|
|
|
|
- Add PartialOrd and Ord for PeerId
|
|
|
|
([PR 1594](https://github.com/libp2p/rust-libp2p/pull/1594)).
|
|
|
|
|
|
|
|
- Updated dependencies.
|
|
|
|
|
|
|
|
- Deprecate `StreamMuxer::is_remote_acknowledged`
|
|
|
|
([PR 1616](https://github.com/libp2p/rust-libp2p/pull/1616)).
|