Skip to content

Releases: multiformats/js-multiaddr

v10.1.1

04 Jan 14:23
0ec3e27
Compare
Choose a tag to compare

10.1.1 (2022-01-04)

Bug Fixes

v10.1.0

04 Jan 12:18
62b16d8
Compare
Choose a tag to compare

10.1.0 (2022-01-04)

Features

v10.0.1

19 Aug 07:34
Compare
Choose a tag to compare
chore: release version v10.0.1

v10.0.0

06 Jul 11:23
Compare
Choose a tag to compare

chore

BREAKING CHANGES

  • uses the CID class from the new multiformats module

v9.0.2

23 Jun 07:00
Compare
Choose a tag to compare
chore: release version v9.0.2

v9.0.1

08 Apr 14:32
Compare
Choose a tag to compare

Bug Fixes

v9.0.0

08 Apr 12:36
Compare
Choose a tag to compare

Features

BREAKING CHANGES

  • entry point uses named exports
// before

const multiaddr = require('multiaddr')
multiaddr.resolvers
multiaddr.protocols

// after

const {multiaddr , Multiaddr, protocols, resolvers} = = require('multiaddr')
Multiaddr.resolvers
Multiaddr.protocols
  • Multiaddr is a normal class now
  • toOptions output changed to match node
// before
multiaddr('/ip4/127.0.0.1/tcp/4001').toOptions()
{ family: 'ipv4', host: '127.0.0.1', transport: 'tcp', port: 4001 }

// after
new Multiaddr('/ip4/127.0.0.1/tcp/4001').toOptions()
{ family: 4, host: '127.0.0.1', transport: 'tcp', port: 4001 }
  • fromNodeAddress and nodeAddress inputs/outputs now match
// before the family type was not the same between them
multiaddr('/ip4/127.0.0.1/tcp/4001').nodeAddress()
{family: 4, address: '127.0.0.1', port: '4001'}

multiaddr.fromNodeAddress({family: 'IPv4', address: '127.0.0.1', port: '4001'}, 'tcp')
<Multiaddr 047f000001060fa1 - /ip4/127.0.0.1/tcp/4001>

// after 
new Multiaddr('/ip4/127.0.0.1/tcp/4001').nodeAddress()
{family: 4, address: '127.0.0.1', port: 4001}

Multiaddr.fromNodeAddress({family: 4, address: '127.0.0.1', port: '4001'}, 'tcp')
<Multiaddr 047f000001060fa1 - /ip4/127.0.0.1/tcp/4001>

v8.1.2

11 Dec 16:18
Compare
Choose a tag to compare

Bug Fixes

  • tell bundlers to return false for node dns module (#163) (0ac20ba)

v8.1.1

30 Oct 10:55
Compare
Choose a tag to compare

Bug Fixes

v8.1.0

29 Oct 19:25
Compare
Choose a tag to compare

Features