Skip to content

Latest commit

 

History

History
246 lines (150 loc) · 7.44 KB

CHANGELOG.md

File metadata and controls

246 lines (150 loc) · 7.44 KB

0.40.0 [unreleased]

  • Update to libp2p-swarm v0.39.0.

0.39.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-swarm v0.38.0.

  • Update to libp2p-core v0.35.0.

0.38.0

  • Update to libp2p-core v0.34.0.

  • Update to libp2p-swarm v0.37.0.

0.37.1

  • Limit # of inbound streams to 32. [See PR 2699].

0.37.0

  • Update to libp2p-core v0.33.0.

  • Update to libp2p-swarm v0.36.0.

  • Derive Error for GetRecordError (see PR 2614).

0.36.0

  • Update to libp2p-swarm v0.35.0.

0.35.0 [2022-02-22]

  • Update to libp2p-core v0.32.0.

  • Update to libp2p-swarm v0.34.0.

  • Require owned key in get_record() method (see PR 2477).

  • Merge NetworkBehaviour's inject_* paired methods (see PR 2445).

0.34.0 [2022-01-27]

  • Update dependencies.

  • Migrate to Rust edition 2021 (see PR 2339).

  • Derive Clone for KademliaEvent (see PR 2411)

  • Derive Serialize, Deserialize for store::record::Key (see PR 2408)

  • Add get_closest_local_peers to Kademlia (see PR 2436)

0.33.0 [2021-11-16]

  • Use instant and futures-timer instead of wasm-timer (see PR 2245).

  • Rename KademliaEvent::InboundRequestServed to KademliaEvent::InboundRequest and move InboundPutRecordRequest into InboundRequest::PutRecord and InboundAddProviderRequest into InboundRequest::AddProvider (see PR 2297).

  • Populate the key field when converting KadRequestMsg::PutValue to proto::Message (see PR 2309).

  • Update dependencies.

0.32.0 [2021-11-01]

  • Make default features of libp2p-core optional. PR 2181

  • Update dependencies.

  • Introduce KademliaStoreInserts option, which allows to filter records (see PR 2163).

  • Check local store when calling Kademlia::get_providers (see PR 2221).

0.31.0 [2021-07-12]

  • Update dependencies.

  • Expose inbound request information (see PR 2087). Note: KademliaEvent::QueryResult is renamed to KademliaEvent::OutboundQueryCompleted.

  • Expose whether KademliaEvent::RoutingUpdated is triggered with new peer (see PR 2087).

  • Expose kbucket range on KademliaEvent::RoutingUpdated (see PR 2087).

  • Remove false debug_assert on connected_peers (see PR 2120).

  • Return correct number of remaining bootstrap requests (see PR 2125).

0.30.0 [2021-04-13]

  • Update libp2p-swarm.

0.29.0 [2021-03-17]

  • Add KademliaCaching and KademliaConfig::set_caching to configure whether Kademlia should track, in lookups, the closest nodes to a key that did not return a record, via GetRecordOk::cache_candidates. As before, if a lookup used a quorum of 1, these candidates will automatically be sent the found record. Otherwise, with a lookup quorum of > 1, the candidates can be used with Kademlia::put_record_to after selecting one of the return records to cache. As is the current behaviour, caching is enabled by default with a max_peers of 1, i.e. it only tracks the closest node to the key that did not return a record.

  • Add Kademlia::put_record_to for storing a record at specific nodes, e.g. for write-back caching after a successful read with quorum > 1.

  • Update libp2p-swarm.

  • Update dependencies.

0.28.1 [2021-02-15]

  • Update dependencies.

0.28.0 [2021-01-12]

  • Update dependencies.

0.27.1 [2021-01-11]

  • Add From impls for kbucket::Key. PR 1909.

0.27.0 [2020-12-17]

  • Update libp2p-core and libp2p-swarm.

0.26.0 [2020-11-25]

  • Update libp2p-core and libp2p-swarm.

  • Have two ProviderRecords be equal iff their key and provider fields are equal. PR 1850.

0.25.0 [2020-11-09]

  • Upon newly established connections, delay routing table updates until after the configured protocol name has been confirmed by the connection handler, i.e. until after at least one substream has been successfully negotiated. In configurations with different protocol names, this avoids undesirable nodes being included in the local routing table at least temporarily. PR 1821.

  • Update dependencies.

0.24.0 [2020-10-16]

  • Update libp2p-core and libp2p-swarm.

  • Update sha2 dependency.

0.23.0 [2020-09-09]

  • Increase default max packet size from 4KiB to 16KiB. See issue 1622.

  • Add Distance::log2 (PR 1719).

  • Update libp2p-swarm and libp2p-core.

0.22.1 [2020-08-19]

  • Explicitly convert from u8 to usize in BucketIndex::range to prevent type inference issues (PR 1716).

0.22.0 [2020-08-18]

  • Store addresses in provider records. See PR 1708.

  • Update libp2p-core and libp2p-swarm dependencies.

  • Add KBucketRef::range exposing the minimum inclusive and maximum inclusive Distance for the bucket (PR 1680).

  • Add NetworkBehaviour::inject_address_change implementation (PR 1649).

0.21.0 [2020-07-01]

  • Remove KademliaEvent::Discovered (PR 1632)

  • More control and insight for k-buckets (PR 1628). In particular, Kademlia::kbuckets_entries has been removed and replaced by Kademlia::kbuckets/Kademlia::kbucket which provide more information than just the peer IDs. Furthermore Kademlia::add_address now returns a result and two new events, KademliaEvent::RoutablePeer and KademliaEvent::PendingRoutablePeer are introduced (but are not required to be acted upon in order to retain existing behaviour). For more details, see the PR description.

0.20.1 [2020-06-23]

0.20.0 [2020-06-22]

  • Optionally require iterative queries to use disjoint paths based on S/Kademlia for increased resiliency in the presence of potentially adversarial nodes (PR 1473).

  • Re-export several types (PR 1595).

  • Updated dependencies.