0.18.0
0.17.3
- Use
web-timeinstead ofinstant. See PR 5347. - Fix manual closure of relayed listener. See PR 5491
- Add resource limits to
CircuitReqto be set See PR 5493
0.17.2
- Fix support for unlimited relay connection according to spec. See PR 5244.
- use
web_timeInstantandSystemTimeversions for wasm support. See PR 5328.
0.17.1
- Automatically register relayed addresses as external addresses. See PR 4809.
- Fix an error where performing too many reservations at once could lead to inconsistent internal state. See PR 4841.
0.17.0
Don't close connections on protocol failures within the relay-server. To achieve this, error handling was restructured:
libp2p::relay::outbound::stop::FatalUpgradeErrorhas been removed.libp2p::relay::outbound::stop::{Error, ProtocolViolation}have been introduced.- Several variants of
libp2p::relay::Eventhave been deprecated.
See PR 4718.
Fix a rare race condition when making a reservation on a relay that could lead to a failed reservation. See PR 4747.
Propagate errors of relay client to the listener / dialer. A failed reservation will now appear as
SwarmEvent::ListenerClosedwith theListenerIdof the correspondingSwarm::listen_oncall. A failed circuit request will now appear asSwarmEvent::OutgoingConnectionErrorwith theConnectionIdof the correspondingSwarm::dialcall. Lastly, a failed reservation or circuit request will no longer close the underlying relay connection. As a result, we remove the following enum variants:relay::client::Event::ReservationReqFailedrelay::client::Event::OutboundCircuitReqFailedrelay::client::Event::InboundCircuitReqDeniedrelay::client::Event::InboundCircuitReqDenyFailed
See PR 4745.
0.16.2
0.16.1
Export
RateLimitertype. See PR 3742.Add functions to access data within
Limit. See PR 4162.Remove unconditional
async-stddependency. See PR 4283.
0.16.0
Raise MSRV to 1.65. See PR 3715.
Hide internals of
Connectionand expose onlyAsyncReadandAsyncWrite. See PR 3829.Remove
Event::CircuitReqReceiveFailedandEvent::InboundCircuitReqFailedvariants. These variants are no longer constructed. See PR 3605.Remove deprecated items. See PR 3948.
0.15.2
Send correct
PeerIdin outbound STOP message to client. See PR 3767.As a relay, when forwarding data between relay-connection-source and -destination and vice versa, flush write side when read currently has no more data available. See PR 3765.
0.15.1
- Migrate from
prosttoquick-protobuf. This removesprotocdependency. See PR 3312.
0.15.0
Rename types as per discussion 2174.
Relayhas been renamed toBehaviour. TheRelay, andClientprefixes have been removed from various types likeClientTransport. thev2namespace has also been removed, users should prefer importing the relay protocol as a module (use libp2p::relay;), and refer to its types viarelay::. For example:relay::Behaviourorrelay::client::Behaviour. See PR 3238.Update to
libp2p-corev0.39.0.Update to
libp2p-swarmv0.42.0.
0.14.0
Update to
prost-codecv0.3.0.Update to
libp2p-corev0.38.0.Update to
libp2p-swarmv0.41.0.Replace
ClientandRelay'sNetworkBehaviourimplementioninject_*methods with the newon_*methods. See PR 3011.Replace
client::Handlerandrelay::Handler'sConnectionHandlerimplementioninject_*methods with the newon_*methods. See PR 3085.Update
rust-versionto reflect the actual MSRV: 1.62.0. See PR 3090.
0.13.0
Update to
libp2p-corev0.37.0.Update to
libp2p-swarmv0.40.0.Fix WASM compilation. See PR 2991.
0.12.0
Update to
libp2p-swarmv0.39.0.Update to
libp2p-corev0.36.0.
0.11.0
Update prost requirement from 0.10 to 0.11 which no longer installs the protoc Protobuf compiler. Thus you will need protoc installed locally. See PR 2788.
Update to
libp2p-swarmv0.38.0.Expose
HOP_PROTOCOL_NAMEandSTOP_PROTOCOL_NAME. See PR 2734.Update to
libp2p-corev0.35.0.
0.10.0
Update to
libp2p-corev0.34.0.Update to
libp2p-swarmv0.37.0.Do not duplicate the p2p/xxx component with the relay PeerId when a client requests a reservation. See PR 2701.
Drive the
RelayListeners within theClientTransport. AddTransport::pollandTransport::remove_listenerforClientTransport. See PR 2652.
0.9.1
Respond to at most one incoming reservation request. Deny <= 8 incoming circuit requests with one per peer. And deny new circuits before accepting new circuits. See PR 2698.
Expose explicits errors via
UpgradeErrorinstead of genericio::Error. See PR 2698.
0.9.0
Update to
libp2p-corev0.33.0.Update to
libp2p-swarmv0.36.0.
0.8.0
Expose
{Inbound,Outbound}{Hop,Stop}UpgradeError. See PR 2586.Update to
libp2p-swarmv0.35.0.Remove support for Circuit Relay v1 protocol. See PR 2549.
0.7.0 [2022-02-22]
Update to
libp2p-corev0.32.0.Update to
libp2p-swarmv0.34.0.Merge NetworkBehaviour's inject_* paired methods (see PR 2445).
0.6.1 [2022-02-02]
- Remove empty peer entries in
reservationsHashMap. See PR 2464.
0.6.0 [2022-01-27]
Update dependencies.
Migrate to Rust edition 2021 (see PR 2339).
0.5.0 [2021-11-16]
Use
instantinstead ofwasm-timer(see PR 2245).Update dependencies.
0.4.0 [2021-11-01]
Make default features of
libp2p-coreoptional. PR 2181Update dependencies.
Implement
DebugforRelayHandlerEventandRelayHandlerIn. See PR 2183.
0.3.0 [2021-07-12]
- Update dependencies.
0.2.0 [2021-04-13]
- Update
libp2p-swarm.
0.1.0 [2021-03-17]
- First release supporting all major features of the circuit relay v1 specification. PR 1838.