Skip to content

Releases: libp2p/go-libp2p-pubsub

v0.3.1

26 May 17:43
Compare
Choose a tag to compare

This is a patch release, fixing a bug in outbound mesh quota maitenance; see #344.

v0.3.0

20 May 19:08
Compare
Choose a tag to compare

v0.2.6

15 Feb 20:43
a1999db
Compare
Choose a tag to compare

Changelog:

  • #251 -- fix typo in validator data field
  • #255 -- configurable size of validator queues
  • #258 -- replace LRU blacklist with timecache based one.

v0.2.5

16 Dec 12:51
1d5191c
Compare
Choose a tag to compare

Changes:

  • #248 -- configurable message id functions
  • updated dependencies

v0.2.4

02 Dec 18:20
b55894f
Compare
Choose a tag to compare

This is a minor patch release that updates dependencies and regenerates protobuf decoding/encoding code.

v0.2.3

19 Nov 00:52
01b9825
Compare
Choose a tag to compare

Changes:

  • #227 -- adds tracing support

v0.2.2

15 Nov 18:39
28a87b3
Compare
Choose a tag to compare

Changes:

  • #230 -- makes peer queue sizes configurable.
  • #231 -- adds a ValidatorData field to the message envelope to allow validators to pass data to the application.

v0.2.1

04 Nov 09:19
534fe2f
Compare
Choose a tag to compare
  • Fixed bugs related to closing a topic #224
  • Fixed issue with PubSub functions hanging if called after the PubSub context was cancelled (instead of returning an error) #226

v0.2.0

31 Oct 23:23
55f4ad6
Compare
Choose a tag to compare

This release has a number of large changes and bugfixes:

Functionality and Interfaces

Active Peer Discovery

PubSub can now actively discover peers for a given topic using libp2p Discovery libp2p/go-libp2p-pubsub-router#28 #184

  • Passing the WithDiscovery option into PubSub will cause active discovery of peers until they reach an appropriate threshold defined by each router (i.e. floodsub, gossipsub, etc.)
  • This includes both initial bootstrapping and continuous polling if the number of peers for a given topic drops too low

Topic Handles

Added Topic and TopicEventHandler objects to serve as the entry points to PubSub functionality #198 #184

  • Calling pubsub.Join(topic, topicOpts...) will return a Topic object that Publish and Subscribe can be called on.
    • The new topic.Publish function has an updated function signature
    • The old pubsub.Publish and pubsub.Subscribe methods are still usable, but have been deprecated
    • Option for publish to block until the router has enough peers. Fixes #211 and some testing race conditions
  • The events added in v0.1.0 have been moved from Subscription to a separate TopicEventHandler that can be created by the Topic.

Message contains reference to the message deliverer

Messages returned by Subscription now contain the peer ID of the peer that actually delivered the message

Bugfixes

v0.1.1

19 Aug 16:08
9f04364
Compare
Choose a tag to compare

This release adds support for notifications when a peer joins or leaves a PubSub channel that we have a Subscription for (#190).

Also, takes of a rare race condition (#188)