@minip2p/node 0.11.0 → 0.11.2
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/dist/addon.d.ts +18 -0
- package/package.json +9 -9
- package/src/addon.d.ts +18 -0
package/dist/addon.d.ts
CHANGED
|
@@ -139,6 +139,8 @@ export interface NodeEndpointConfig {
|
|
|
139
139
|
mdns?: NodeMdnsOptions
|
|
140
140
|
/** Transport limit overrides. */
|
|
141
141
|
limits?: NodeLimitsOptions
|
|
142
|
+
/** Protocol deadline overrides. */
|
|
143
|
+
timeouts?: NodeTimeoutsOptions
|
|
142
144
|
}
|
|
143
145
|
|
|
144
146
|
/** Transport limit overrides accepted from Node.js; see `LimitsOptions`. */
|
|
@@ -197,6 +199,12 @@ export interface NodeQuicLimitsOptions {
|
|
|
197
199
|
sendWindow?: bigint
|
|
198
200
|
/** WebTransport handshake timeout in milliseconds. */
|
|
199
201
|
webtransportHandshakeTimeoutMs?: bigint
|
|
202
|
+
/** `"cubic"`, `"newReno"` or `"bbr"`. */
|
|
203
|
+
congestionController?: string
|
|
204
|
+
/** Packet reordering threshold. */
|
|
205
|
+
packetThreshold?: number
|
|
206
|
+
/** Time reordering threshold, as a multiple of the RTT. */
|
|
207
|
+
timeThreshold?: number
|
|
200
208
|
}
|
|
201
209
|
|
|
202
210
|
/** TCP limit overrides accepted from Node.js; see `TcpLimitsOptions`. */
|
|
@@ -213,6 +221,16 @@ export interface NodeTcpLimitsOptions {
|
|
|
213
221
|
yamux?: NodeYamuxOptions
|
|
214
222
|
}
|
|
215
223
|
|
|
224
|
+
/** Protocol deadline overrides accepted from Node.js; see `TimeoutsOptions`. */
|
|
225
|
+
export interface NodeTimeoutsOptions {
|
|
226
|
+
/** How long an outbound stream may negotiate its protocol, in ms. */
|
|
227
|
+
negotiationMs?: bigint
|
|
228
|
+
/** How long a connection's first Identify may take, in ms. */
|
|
229
|
+
identifyMs?: bigint
|
|
230
|
+
/** How long a ping waits for its echo, in ms. */
|
|
231
|
+
pingMs?: bigint
|
|
232
|
+
}
|
|
233
|
+
|
|
216
234
|
/** Yamux limit overrides accepted from Node.js; see `YamuxOptions`. */
|
|
217
235
|
export interface NodeYamuxOptions {
|
|
218
236
|
/** Per-stream receive window. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minip2p/node",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "Node.js bindings for minip2p",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libp2p",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"registry": "https://registry.npmjs.org/"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@minip2p/core": "0.11.
|
|
41
|
+
"@minip2p/core": "0.11.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@minip2p/test-fixtures": "0.0.0",
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"typescript": "7.0.2"
|
|
49
49
|
},
|
|
50
50
|
"optionalDependencies": {
|
|
51
|
-
"@minip2p/node-darwin-arm64": "0.11.
|
|
52
|
-
"@minip2p/node-darwin-x64": "0.11.
|
|
53
|
-
"@minip2p/node-linux-arm64-gnu": "0.11.
|
|
54
|
-
"@minip2p/node-linux-arm64-musl": "0.11.
|
|
55
|
-
"@minip2p/node-linux-x64-gnu": "0.11.
|
|
56
|
-
"@minip2p/node-linux-x64-musl": "0.11.
|
|
57
|
-
"@minip2p/node-win32-x64-msvc": "0.11.
|
|
51
|
+
"@minip2p/node-darwin-arm64": "0.11.2",
|
|
52
|
+
"@minip2p/node-darwin-x64": "0.11.2",
|
|
53
|
+
"@minip2p/node-linux-arm64-gnu": "0.11.2",
|
|
54
|
+
"@minip2p/node-linux-arm64-musl": "0.11.2",
|
|
55
|
+
"@minip2p/node-linux-x64-gnu": "0.11.2",
|
|
56
|
+
"@minip2p/node-linux-x64-musl": "0.11.2",
|
|
57
|
+
"@minip2p/node-win32-x64-msvc": "0.11.2"
|
|
58
58
|
},
|
|
59
59
|
"napi": {
|
|
60
60
|
"binaryName": "minip2p",
|
package/src/addon.d.ts
CHANGED
|
@@ -139,6 +139,8 @@ export interface NodeEndpointConfig {
|
|
|
139
139
|
mdns?: NodeMdnsOptions
|
|
140
140
|
/** Transport limit overrides. */
|
|
141
141
|
limits?: NodeLimitsOptions
|
|
142
|
+
/** Protocol deadline overrides. */
|
|
143
|
+
timeouts?: NodeTimeoutsOptions
|
|
142
144
|
}
|
|
143
145
|
|
|
144
146
|
/** Transport limit overrides accepted from Node.js; see `LimitsOptions`. */
|
|
@@ -197,6 +199,12 @@ export interface NodeQuicLimitsOptions {
|
|
|
197
199
|
sendWindow?: bigint
|
|
198
200
|
/** WebTransport handshake timeout in milliseconds. */
|
|
199
201
|
webtransportHandshakeTimeoutMs?: bigint
|
|
202
|
+
/** `"cubic"`, `"newReno"` or `"bbr"`. */
|
|
203
|
+
congestionController?: string
|
|
204
|
+
/** Packet reordering threshold. */
|
|
205
|
+
packetThreshold?: number
|
|
206
|
+
/** Time reordering threshold, as a multiple of the RTT. */
|
|
207
|
+
timeThreshold?: number
|
|
200
208
|
}
|
|
201
209
|
|
|
202
210
|
/** TCP limit overrides accepted from Node.js; see `TcpLimitsOptions`. */
|
|
@@ -213,6 +221,16 @@ export interface NodeTcpLimitsOptions {
|
|
|
213
221
|
yamux?: NodeYamuxOptions
|
|
214
222
|
}
|
|
215
223
|
|
|
224
|
+
/** Protocol deadline overrides accepted from Node.js; see `TimeoutsOptions`. */
|
|
225
|
+
export interface NodeTimeoutsOptions {
|
|
226
|
+
/** How long an outbound stream may negotiate its protocol, in ms. */
|
|
227
|
+
negotiationMs?: bigint
|
|
228
|
+
/** How long a connection's first Identify may take, in ms. */
|
|
229
|
+
identifyMs?: bigint
|
|
230
|
+
/** How long a ping waits for its echo, in ms. */
|
|
231
|
+
pingMs?: bigint
|
|
232
|
+
}
|
|
233
|
+
|
|
216
234
|
/** Yamux limit overrides accepted from Node.js; see `YamuxOptions`. */
|
|
217
235
|
export interface NodeYamuxOptions {
|
|
218
236
|
/** Per-stream receive window. */
|