@libp2p/floodsub 3.0.3 → 3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/floodsub",
3
- "version": "3.0.3",
3
+ "version": "3.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-floodsub#readme",
@@ -150,14 +150,14 @@
150
150
  "@libp2p/interface-peer-id": "^1.0.2",
151
151
  "@libp2p/interface-pubsub": "^2.0.0",
152
152
  "@libp2p/logger": "^2.0.0",
153
- "@libp2p/pubsub": "^3.0.1",
154
- "protons-runtime": "^2.0.2",
153
+ "@libp2p/pubsub": "^3.1.1",
154
+ "protons-runtime": "^3.0.1",
155
155
  "uint8arraylist": "^2.1.1",
156
156
  "uint8arrays": "^3.0.0"
157
157
  },
158
158
  "devDependencies": {
159
159
  "@libp2p/components": "^2.0.0",
160
- "@libp2p/interface-mocks": "^3.0.1",
160
+ "@libp2p/interface-mocks": "^4.0.1",
161
161
  "@libp2p/interface-pubsub-compliance-tests": "^2.0.1",
162
162
  "@libp2p/peer-collections": "^2.0.0",
163
163
  "@libp2p/peer-id": "^1.1.10",
@@ -166,7 +166,7 @@
166
166
  "aegir": "^37.2.0",
167
167
  "multiformats": "^9.4.5",
168
168
  "p-wait-for": "^5.0.0",
169
- "protons": "^4.0.1",
169
+ "protons": "^5.0.0",
170
170
  "sinon": "^14.0.0",
171
171
  "wherearewe": "^1.0.0"
172
172
  }
package/src/index.ts CHANGED
@@ -51,7 +51,7 @@ export class FloodSub extends PubSubBaseProtocol {
51
51
  /**
52
52
  * Encode an RPC object into a Uint8Array
53
53
  */
54
- encodeRpc (rpc: PubSubRPC): Uint8ArrayList {
54
+ encodeRpc (rpc: PubSubRPC): Uint8Array {
55
55
  return RPC.encode(rpc)
56
56
  }
57
57
 
@@ -59,7 +59,7 @@ export class FloodSub extends PubSubBaseProtocol {
59
59
  return RPC.Message.decode(bytes)
60
60
  }
61
61
 
62
- encodeMessage (rpc: PubSubRPCMessage): Uint8ArrayList {
62
+ encodeMessage (rpc: PubSubRPCMessage): Uint8Array {
63
63
  return RPC.Message.encode(rpc)
64
64
  }
65
65