@libp2p/bootstrap 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -35,23 +35,23 @@ Clients that need constant connections to bootstrap nodes (e.g. browsers) can se
35
35
 
36
36
  ```JavaScript
37
37
  import { createLibp2p } from 'libp2p'
38
- import { Bootstrap } from '@libp2p/bootstrap'
39
- import { TCP } from 'libp2p/tcp'
40
- import { Noise } from '@libp2p/noise'
41
- import { Mplex } from '@libp2p/mplex'
38
+ import { bootstrap } from '@libp2p/bootstrap'
39
+ import { tcp } from 'libp2p/tcp'
40
+ import { noise } from '@libp2p/noise'
41
+ import { mplex } from '@libp2p/mplex'
42
42
 
43
43
  let options = {
44
44
  transports: [
45
- new TCP()
45
+ tcp()
46
46
  ],
47
47
  streamMuxers: [
48
- new Mplex()
48
+ mplex()
49
49
  ],
50
50
  connectionEncryption: [
51
- new Noise()
51
+ noise()
52
52
  ],
53
53
  peerDiscovery: [
54
- new Bootstrap({
54
+ bootstrap({
55
55
  list: [ // a list of bootstrap peer multiaddrs to connect to on node startup
56
56
  "/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
57
57
  "/dnsaddr/bootstrap.libp2p.io/ipfs/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/bootstrap",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "Node.js IPFS Implementation of the railing process of a Node through a bootstrap peer list",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/libp2p/js-libp2p-bootstrap#readme",