Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Releases: libp2p/js-libp2p-websockets

v0.15.5

12 Apr 07:56
Compare
Choose a tag to compare
chore: release version v0.15.5

v0.15.4

31 Mar 14:15
Compare
Choose a tag to compare
chore: release version v0.15.4

v0.15.3

22 Feb 10:56
Compare
Choose a tag to compare
chore: release version v0.15.3

v0.15.2

09 Feb 09:34
Compare
Choose a tag to compare

Bug Fixes

v0.15.1

05 Feb 16:06
Compare
Choose a tag to compare

Bug Fixes

v0.15.0

24 Nov 09:15
Compare
Choose a tag to compare

Bug Fixes

Features

BREAKING CHANGES

  • Only DNS+WSS addresses are now returned on filter by default in the browser. This can be overritten by the filter option and filters are provided in the module.

While this is not an API breaking change, there was a behavioral breaking change on the Websockets transport when in a browser environment. This change might create issues on local test setups.
libp2p-websockets has allowed TCP and DNS addresses, both with ws or wss to be used for dial purposes. Taking into account security (and browser policies), we are now restricting addresses to DNS + wss in the browser
With this new behavior, if you need to use non DNS addresses for testing, you can configure your libp2p node as follows:

const Websockets = require('libp2p-websockets')
const filters = require('libp2p-websockets/src/filters')
const Libp2p = require('libp2p')

const transportKey = Websockets.prototype[Symbol.toStringTag]
const libp2p = await Libp2p.create({
  modules: {
    transport: [Websockets]
    // ... Add required modules according to the Configuration docs
  },
  config: {
    transport: {
      [transportKey]: {
        filter: filters.all
      }
    }
  }
})

v0.14.0

11 Aug 14:18
662d041
Compare
Choose a tag to compare

Bug Fixes

  • replace node buffers with uint8arrays (#115) (a277bf6)

BREAKING CHANGES

    • All deps used by this module now use Uint8Arrays in place of Buffers
  • chore: remove gh dep

v0.13.6

23 Mar 18:06
a37c2bd
Compare
Choose a tag to compare

Bug Fixes

v0.13.5

26 Feb 16:18
a33db55
Compare
Choose a tag to compare

Bug Fixes

  • catch thrown maConn errors in listener (8bfb19a)

v0.13.4

14 Feb 13:40
eb9e5bd
Compare
Choose a tag to compare

Bug Fixes