Socket
Socket
Sign inDemoInstall

multiaddr

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multiaddr - npm Package Versions

23
7

10.0.1

Diff

Changelog

Source

10.0.1 (2021-08-19)

chore

  • update to new multiformats (#200) (7e3aff9)

BREAKING CHANGES

  • uses the CID class from the new multiformats module
vascosantos
published 10.0.0 •

Changelog

Source

10.0.1 (2021-08-19)

chore

BREAKING CHANGES

  • uses the CID class from the new multiformats module
vascosantos
published 9.0.2 •

Changelog

Source

9.0.2 (2021-06-23)

vascosantos
published 9.0.1 •

Changelog

Source

9.0.1 (2021-04-08)

Bug Fixes

vascosantos
published 9.0.0 •

Changelog

Source

9.0.0 (2021-04-08)

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>
vascosantos
published 8.1.2 •

Changelog

Source

8.1.2 (2020-12-11)

Bug Fixes

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

Changelog

Source

8.1.1 (2020-10-30)

Bug Fixes

vascosantos
published 8.1.0 •

Changelog

Source

8.1.0 (2020-10-29)

Features

<a name="8.0.0"></a>

jacobheun
published 8.0.0 •

Changelog

Source

8.0.0 (2020-08-07)

Bug Fixes

BREAKING CHANGES

    • Where node Buffers were returned, now Uint8Arrays are
  • The .buffer property has been renamed .bytes similar to cid@1.0.0
  • chore: downgrade aegir

<a name="7.5.0"></a>

jacobheun
published 7.5.0 •

Changelog

Source

7.5.0 (2020-06-25)

Features

  • add new memory protocol for testing and other simulation scenarios (bba22d2)

<a name="7.4.3"></a>

23
7
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc