@libp2p/floodsub 11.0.25-bd7f0cda6 → 11.0.25-fb9e8a76e

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.
@@ -2,11 +2,10 @@ import type { RPC } from './message/rpc.ts';
2
2
  import type { DecodeOptions } from 'protons-runtime';
3
3
  /**
4
4
  * Limits applied when decoding incoming RPC messages. A single RPC frame is
5
- * already byte-capped by the underlying byte stream (`maxBufferSize`, which
6
- * defaults to 4 MiB), but that bounds bytes, not element counts - protobuf
7
- * packs many small repeated entries into a few bytes. These caps bound the
8
- * number of decoded elements so a single frame cannot expand into millions of
9
- * objects.
5
+ * already byte-capped by the length-prefixed stream (see `maxDataLength`), but
6
+ * that bounds bytes, not element counts - protobuf packs many small repeated
7
+ * entries into a few bytes. These caps bound the number of decoded elements so
8
+ * a single frame cannot expand into millions of objects.
10
9
  */
11
10
  export interface DecodeRPCLimits {
12
11
  maxSubscriptions: number;
@@ -1 +1 @@
1
- {"version":3,"file":"decodeRpc.d.ts","sourceRoot":"","sources":["../../src/decodeRpc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAEpD;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,MAAM,CAAA;IACxB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,sBAAsB,EAAE,eAGpC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAA;AAE1D;;;GAGG;AACH,wBAAgB,qBAAqB,CAAE,MAAM,EAAE,eAAe,GAAG,eAAe,CAK/E"}
1
+ {"version":3,"file":"decodeRpc.d.ts","sourceRoot":"","sources":["../../src/decodeRpc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAEpD;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,MAAM,CAAA;IACxB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,sBAAsB,EAAE,eAGpC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAA;AAE1D;;;GAGG;AACH,wBAAgB,qBAAqB,CAAE,MAAM,EAAE,eAAe,GAAG,eAAe,CAK/E"}
@@ -1 +1 @@
1
- {"version":3,"file":"decodeRpc.js","sourceRoot":"","sources":["../../src/decodeRpc.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAC,MAAM,sBAAsB,GAAoB;IACrD,gBAAgB,EAAE,IAAI;IACtB,WAAW,EAAE,IAAI;CAClB,CAAA;AAID;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAE,MAAuB;IAC5D,OAAO;QACL,aAAa,EAAE,MAAM,CAAC,gBAAgB;QACtC,QAAQ,EAAE,MAAM,CAAC,WAAW;KAC7B,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"decodeRpc.js","sourceRoot":"","sources":["../../src/decodeRpc.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,sBAAsB,GAAoB;IACrD,gBAAgB,EAAE,IAAI;IACtB,WAAW,EAAE,IAAI;CAClB,CAAA;AAID;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAE,MAAuB;IAC5D,OAAO;QACL,aAAa,EAAE,MAAM,CAAC,gBAAgB;QACtC,QAAQ,EAAE,MAAM,CAAC,WAAW;KAC7B,CAAA;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/floodsub",
3
- "version": "11.0.25-bd7f0cda6",
3
+ "version": "11.0.25-fb9e8a76e",
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/floodsub#readme",
@@ -54,12 +54,12 @@
54
54
  "test:electron-main": "aegir test -t electron-main"
55
55
  },
56
56
  "dependencies": {
57
- "@libp2p/crypto": "5.1.21-bd7f0cda6",
58
- "@libp2p/interface": "3.2.5-bd7f0cda6",
59
- "@libp2p/interface-internal": "3.1.8-bd7f0cda6",
60
- "@libp2p/peer-collections": "7.0.23-bd7f0cda6",
61
- "@libp2p/peer-id": "6.0.12-bd7f0cda6",
62
- "@libp2p/utils": "7.2.4-bd7f0cda6",
57
+ "@libp2p/crypto": "5.1.21-fb9e8a76e",
58
+ "@libp2p/interface": "3.2.5-fb9e8a76e",
59
+ "@libp2p/interface-internal": "3.1.8-fb9e8a76e",
60
+ "@libp2p/peer-collections": "7.0.23-fb9e8a76e",
61
+ "@libp2p/peer-id": "6.0.12-fb9e8a76e",
62
+ "@libp2p/utils": "7.2.4-fb9e8a76e",
63
63
  "it-length-prefixed": "^11.0.1",
64
64
  "main-event": "^1.0.1",
65
65
  "multiformats": "^14.0.0",
@@ -69,7 +69,7 @@
69
69
  "uint8arrays": "^6.1.1"
70
70
  },
71
71
  "devDependencies": {
72
- "@libp2p/logger": "6.2.10-bd7f0cda6",
72
+ "@libp2p/logger": "6.2.10-fb9e8a76e",
73
73
  "@multiformats/multiaddr": "^13.0.3",
74
74
  "@types/sinon": "^21.0.1",
75
75
  "aegir": "^48.1.1",
package/src/decodeRpc.ts CHANGED
@@ -3,11 +3,10 @@ import type { DecodeOptions } from 'protons-runtime'
3
3
 
4
4
  /**
5
5
  * Limits applied when decoding incoming RPC messages. A single RPC frame is
6
- * already byte-capped by the underlying byte stream (`maxBufferSize`, which
7
- * defaults to 4 MiB), but that bounds bytes, not element counts - protobuf
8
- * packs many small repeated entries into a few bytes. These caps bound the
9
- * number of decoded elements so a single frame cannot expand into millions of
10
- * objects.
6
+ * already byte-capped by the length-prefixed stream (see `maxDataLength`), but
7
+ * that bounds bytes, not element counts - protobuf packs many small repeated
8
+ * entries into a few bytes. These caps bound the number of decoded elements so
9
+ * a single frame cannot expand into millions of objects.
11
10
  */
12
11
  export interface DecodeRPCLimits {
13
12
  maxSubscriptions: number