@libp2p/floodsub 9.0.3-f81be145a → 9.0.4

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.
package/README.md CHANGED
@@ -15,9 +15,9 @@ It exists for academic purposes only, you should not use it in production.
15
15
 
16
16
  Instead please use [gossipsub](https://www.npmjs.com/package/@chainsafe/libp2p-gossipsub) - a more complete implementation which is also compatible with floodsub.
17
17
 
18
- ## Example
18
+ ## Example - Configuring libp2p to use floodsub
19
19
 
20
- ```JavaScript
20
+ ```TypeScript
21
21
  import { createLibp2pNode } from 'libp2p'
22
22
  import { floodsub } from '@libp2p/floodsub'
23
23
 
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * @example Configuring libp2p to use floodsub
13
13
  *
14
- * ```JavaScript
14
+ * ```TypeScript
15
15
  * import { createLibp2pNode } from 'libp2p'
16
16
  * import { floodsub } from '@libp2p/floodsub'
17
17
  *
@@ -23,7 +23,7 @@
23
23
  *
24
24
  * node.pubsub.subscribe('fruit')
25
25
  * node.pubsub.addEventListener('message', (evt) => {
26
- * console.this.log(evt)
26
+ * console.log(evt)
27
27
  * })
28
28
  *
29
29
  * node.pubsub.publish('fruit', new TextEncoder().encode('banana'))
package/dist/src/index.js CHANGED
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * @example Configuring libp2p to use floodsub
13
13
  *
14
- * ```JavaScript
14
+ * ```TypeScript
15
15
  * import { createLibp2pNode } from 'libp2p'
16
16
  * import { floodsub } from '@libp2p/floodsub'
17
17
  *
@@ -23,7 +23,7 @@
23
23
  *
24
24
  * node.pubsub.subscribe('fruit')
25
25
  * node.pubsub.addEventListener('message', (evt) => {
26
- * console.this.log(evt)
26
+ * console.log(evt)
27
27
  * })
28
28
  *
29
29
  * node.pubsub.publish('fruit', new TextEncoder().encode('banana'))
@@ -0,0 +1,11 @@
1
+ {
2
+ "FloodSub": "https://libp2p.github.io/js-libp2p/classes/_libp2p_floodsub.FloodSub.html",
3
+ ".:FloodSub": "https://libp2p.github.io/js-libp2p/classes/_libp2p_floodsub.FloodSub.html",
4
+ "FloodSubComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_floodsub.FloodSubComponents.html",
5
+ ".:FloodSubComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_floodsub.FloodSubComponents.html",
6
+ "FloodSubInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_floodsub.FloodSubInit.html",
7
+ ".:FloodSubInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_floodsub.FloodSubInit.html",
8
+ "multicodec": "https://libp2p.github.io/js-libp2p/variables/_libp2p_floodsub.multicodec.html",
9
+ "floodsub": "https://libp2p.github.io/js-libp2p/functions/_libp2p_floodsub.floodsub-1.html",
10
+ ".:floodsub": "https://libp2p.github.io/js-libp2p/functions/_libp2p_floodsub.floodsub-1.html"
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/floodsub",
3
- "version": "9.0.3-f81be145a",
3
+ "version": "9.0.4",
4
4
  "description": "libp2p-floodsub, also known as pubsub-flood or just dumbsub, this implementation of pubsub focused on delivering an API for Publish/Subscribe, but with no CastTree Forming (it just floods the network).",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/pubsub-floodsub#readme",
@@ -59,17 +59,17 @@
59
59
  "test:electron-main": "aegir test -t electron-main"
60
60
  },
61
61
  "dependencies": {
62
- "@libp2p/interface": "1.0.2-f81be145a",
63
- "@libp2p/pubsub": "9.0.2-f81be145a",
62
+ "@libp2p/interface": "^1.0.2",
63
+ "@libp2p/pubsub": "^9.0.3",
64
64
  "protons-runtime": "^5.0.0",
65
65
  "uint8arraylist": "^2.4.3",
66
66
  "uint8arrays": "^5.0.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@libp2p/interface-compliance-tests": "5.0.7-f81be145a",
70
- "@libp2p/logger": "4.0.2-f81be145a",
71
- "@libp2p/peer-collections": "5.1.1-f81be145a",
72
- "@libp2p/peer-id-factory": "4.0.1-f81be145a",
69
+ "@libp2p/interface-compliance-tests": "^5.0.8",
70
+ "@libp2p/logger": "^4.0.2",
71
+ "@libp2p/peer-collections": "^5.1.1",
72
+ "@libp2p/peer-id-factory": "^4.0.1",
73
73
  "@multiformats/multiaddr": "^12.1.10",
74
74
  "@types/sinon": "^17.0.0",
75
75
  "aegir": "^41.0.2",
package/src/index.ts CHANGED
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * @example Configuring libp2p to use floodsub
13
13
  *
14
- * ```JavaScript
14
+ * ```TypeScript
15
15
  * import { createLibp2pNode } from 'libp2p'
16
16
  * import { floodsub } from '@libp2p/floodsub'
17
17
  *
@@ -23,7 +23,7 @@
23
23
  *
24
24
  * node.pubsub.subscribe('fruit')
25
25
  * node.pubsub.addEventListener('message', (evt) => {
26
- * console.this.log(evt)
26
+ * console.log(evt)
27
27
  * })
28
28
  *
29
29
  * node.pubsub.publish('fruit', new TextEncoder().encode('banana'))