@ac-kit/net-websocket 0.4.1 → 0.5.0
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,92 @@
|
|
|
1
1
|
# @ac-kit/net-websocket
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0b4fe43: `closeTimeoutMs` is now the deadline of the whole closing handshake. It starts
|
|
8
|
+
when the handshake does — when `close()` is called, before its close frame is
|
|
9
|
+
written, when the peer's close frame arrives, or when a protocol failure closes
|
|
10
|
+
the connection — and is never extended by a later step. Writing the close
|
|
11
|
+
frame, waiting for the peer's and waiting for the transport to close all fall
|
|
12
|
+
under it, so a transport that stopped draining can no longer hold `close()`
|
|
13
|
+
past it; when it passes, the connection is dropped. Before, the timeout only
|
|
14
|
+
started once the close frame was written and restarted after the peer's reply.
|
|
15
|
+
|
|
16
|
+
`close(code, reason, signal)` takes an `AbortSignal` that cancels the wait: the
|
|
17
|
+
call rejects with the abort reason while the handshake goes on under its
|
|
18
|
+
deadline (call `destroy()` to drop the connection at once); an already-aborted
|
|
19
|
+
signal rejects without starting the handshake.
|
|
20
|
+
|
|
21
|
+
The `close` event's `wasClean` is now `true` only when this end's close frame
|
|
22
|
+
was actually written, not merely queued.
|
|
23
|
+
|
|
24
|
+
Migration: a caller that wrapped `close()` in its own timeout to cover the
|
|
25
|
+
write can drop the wrapper and rely on `closeTimeoutMs`.
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [0b4fe43]
|
|
30
|
+
- Updated dependencies [0b4fe43]
|
|
31
|
+
- Updated dependencies [0b4fe43]
|
|
32
|
+
- Updated dependencies [0b4fe43]
|
|
33
|
+
- Updated dependencies [0b4fe43]
|
|
34
|
+
- Updated dependencies [0b4fe43]
|
|
35
|
+
- Updated dependencies [0b4fe43]
|
|
36
|
+
- Updated dependencies [0b4fe43]
|
|
37
|
+
- Updated dependencies [0b4fe43]
|
|
38
|
+
- Updated dependencies [0b4fe43]
|
|
39
|
+
- Updated dependencies [0b4fe43]
|
|
40
|
+
- Updated dependencies [0b4fe43]
|
|
41
|
+
- Updated dependencies [0b4fe43]
|
|
42
|
+
- Updated dependencies [0b4fe43]
|
|
43
|
+
- Updated dependencies [0b4fe43]
|
|
44
|
+
- Updated dependencies [0b4fe43]
|
|
45
|
+
- Updated dependencies [0b4fe43]
|
|
46
|
+
- Updated dependencies [0b4fe43]
|
|
47
|
+
- @ac-kit/core@0.13.0
|
|
48
|
+
- @ac-kit/net-core@0.5.2
|
|
49
|
+
- @ac-kit/async@0.8.1
|
|
50
|
+
- @ac-kit/format-http@0.9.1
|
|
51
|
+
- @ac-kit/format-media-type@0.3.2
|
|
52
|
+
- @ac-kit/crypto-hash@0.1.12
|
|
53
|
+
- @ac-kit/format-websocket@0.3.5
|
|
54
|
+
- @ac-kit/net-http@0.9.2
|
|
55
|
+
|
|
56
|
+
## 0.4.2
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- Updated dependencies [34e8cfa]
|
|
61
|
+
- Updated dependencies [34e8cfa]
|
|
62
|
+
- Updated dependencies [34e8cfa]
|
|
63
|
+
- Updated dependencies [34e8cfa]
|
|
64
|
+
- Updated dependencies [34e8cfa]
|
|
65
|
+
- Updated dependencies [34e8cfa]
|
|
66
|
+
- Updated dependencies [34e8cfa]
|
|
67
|
+
- Updated dependencies [34e8cfa]
|
|
68
|
+
- Updated dependencies [34e8cfa]
|
|
69
|
+
- Updated dependencies [34e8cfa]
|
|
70
|
+
- Updated dependencies [34e8cfa]
|
|
71
|
+
- Updated dependencies [34e8cfa]
|
|
72
|
+
- Updated dependencies [34e8cfa]
|
|
73
|
+
- Updated dependencies [34e8cfa]
|
|
74
|
+
- Updated dependencies [34e8cfa]
|
|
75
|
+
- Updated dependencies [34e8cfa]
|
|
76
|
+
- Updated dependencies [34e8cfa]
|
|
77
|
+
- Updated dependencies [34e8cfa]
|
|
78
|
+
- Updated dependencies [34e8cfa]
|
|
79
|
+
- Updated dependencies [34e8cfa]
|
|
80
|
+
- Updated dependencies [34e8cfa]
|
|
81
|
+
- @ac-kit/async@0.8.0
|
|
82
|
+
- @ac-kit/core@0.12.0
|
|
83
|
+
- @ac-kit/net-http@0.9.1
|
|
84
|
+
- @ac-kit/format-http@0.9.0
|
|
85
|
+
- @ac-kit/format-media-type@0.3.1
|
|
86
|
+
- @ac-kit/format-websocket@0.3.4
|
|
87
|
+
- @ac-kit/net-core@0.5.1
|
|
88
|
+
- @ac-kit/crypto-hash@0.1.11
|
|
89
|
+
|
|
3
90
|
## 0.4.1
|
|
4
91
|
|
|
5
92
|
### Patch Changes
|
|
@@ -10,8 +10,11 @@ export type WebSocketPeerOptions = {
|
|
|
10
10
|
*/
|
|
11
11
|
readonly maxMessageSize?: number;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
* handshake before
|
|
13
|
+
* The deadline, in milliseconds, of the whole closing handshake: it starts
|
|
14
|
+
* when the handshake does — before this end's close frame is written, or when
|
|
15
|
+
* the peer's close frame or a protocol failure starts it — and is never
|
|
16
|
+
* extended. It covers writing the close frame, waiting for the peer's and the
|
|
17
|
+
* transport's closure; past it, the connection is dropped. Default: `5000`.
|
|
15
18
|
*/
|
|
16
19
|
readonly closeTimeoutMs?: number;
|
|
17
20
|
/** The subprotocol the handshake settled on, or `null`. Default: `null`. */
|
|
@@ -55,7 +58,9 @@ export declare class WebSocketClosedError extends Error {
|
|
|
55
58
|
*
|
|
56
59
|
* Closing follows §7: {@link close} sends a close frame and waits for the
|
|
57
60
|
* peer's, a close frame received is echoed, and the server end closes the
|
|
58
|
-
* transport first. Either way `close` is emitted once.
|
|
61
|
+
* transport first. Either way `close` is emitted once. One deadline,
|
|
62
|
+
* `closeTimeoutMs`, bounds the whole closing handshake from its start, the
|
|
63
|
+
* close frame's write included; past it the connection is dropped.
|
|
59
64
|
*
|
|
60
65
|
* @see `acceptWebSocket` and `connectWebSocket` for the opening handshake.
|
|
61
66
|
*/
|
|
@@ -72,6 +77,8 @@ export declare class WebSocketPeer extends EventDispatcherMapBase<WebSocketPeerE
|
|
|
72
77
|
private fragmentsSize;
|
|
73
78
|
private fragmentOpcode;
|
|
74
79
|
private closeSent;
|
|
80
|
+
private closeWritten;
|
|
81
|
+
private deadlineStarted;
|
|
75
82
|
private received;
|
|
76
83
|
private readonly closed;
|
|
77
84
|
private readonly maxMessageSize;
|
|
@@ -97,14 +104,22 @@ export declare class WebSocketPeer extends EventDispatcherMapBase<WebSocketPeerE
|
|
|
97
104
|
*/
|
|
98
105
|
ping(payload?: Uint8Array, signal?: AbortSignal): Promise<void>;
|
|
99
106
|
/**
|
|
100
|
-
* Start the closing handshake and wait for
|
|
101
|
-
*
|
|
107
|
+
* Start the closing handshake and wait for the connection to close: once both
|
|
108
|
+
* close frames are exchanged and the transport is closed, or when the
|
|
109
|
+
* `closeTimeoutMs` deadline drops it, whichever comes first. The deadline
|
|
110
|
+
* starts before the close frame is written, so a transport that stopped
|
|
111
|
+
* draining cannot hold the call longer. When the handshake has already
|
|
112
|
+
* started, this waits for it under the deadline it started.
|
|
102
113
|
*
|
|
103
114
|
* @param code A sendable close code; defaults to `1000`.
|
|
104
115
|
* @param reason At most 123 UTF-8 bytes.
|
|
116
|
+
* @param signal Cancels the wait only: the call rejects with the abort
|
|
117
|
+
* reason, and the handshake goes on under its deadline (call
|
|
118
|
+
* {@link destroy} to drop the connection at once). Already aborted, the
|
|
119
|
+
* call rejects without starting the handshake.
|
|
105
120
|
* @throws {RangeError} When `code` may not be sent or `reason` is too long.
|
|
106
121
|
*/
|
|
107
|
-
close(code?: number, reason?: string): Promise<void>;
|
|
122
|
+
close(code?: number, reason?: string, signal?: AbortSignal): Promise<void>;
|
|
108
123
|
/** Drop the connection without a closing handshake. */
|
|
109
124
|
destroy(error?: unknown): void;
|
|
110
125
|
/** Closes the peer, so it can be used with `await using`. */
|
|
@@ -123,6 +138,8 @@ export declare class WebSocketPeer extends EventDispatcherMapBase<WebSocketPeerE
|
|
|
123
138
|
private sendPong;
|
|
124
139
|
private sendClose;
|
|
125
140
|
private endTransport;
|
|
141
|
+
/** Starts the closing deadline once; it is never restarted or extended. */
|
|
142
|
+
private startDeadline;
|
|
126
143
|
/** RFC 6455 §7.1.7: send a close frame with the error's code, then close. */
|
|
127
144
|
private fail;
|
|
128
145
|
private failWith;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket-peer.d.ts","sourceRoot":"","sources":["../../src/peer/websocket-peer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"websocket-peer.d.ts","sourceRoot":"","sources":["../../src/peer/websocket-peer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AASvD,OAAO,EASN,KAAK,aAAa,EAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7D,gEAAgE;AAChE,MAAM,MAAM,oBAAoB,GAAG;IAClC;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAEjC;;;;;;OAMG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAEjC,4EAA4E;IAC5E,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC,CAAC;AAEF,iDAAiD;AACjD,MAAM,MAAM,mBAAmB,GAAG;IACjC,6DAA6D;IAC7D,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC;IAErC,sDAAsD;IACtD,IAAI,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IAE5B,IAAI,EAAE,CAAC,OAA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;;OAKG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAUnE;IAED;;;;;;OAMG;IACH,IAAI,CACH,OAAO,GAAE,UAA8B,EACvC,MAAM,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,IAAI,CAAC,CAKf;IAED;;;;;;;;;;;;;;;OAeG;IACG,KAAK,CAAC,IAAI,SAAO,EAAE,MAAM,SAAK,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAWzE;IAED,uDAAuD;IACvD,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAG7B;IAED,6DAA6D;IAC7D,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAErC;IAED,OAAO,CAAC,OAAO;IAKf;;;OAGG;YACW,OAAO;YAwBP,WAAW;YAqBX,UAAU;YA0DV,WAAW;IAmBzB,wEAAwE;IACxE,OAAO,CAAC,aAAa;YAUP,QAAQ;YAQR,SAAS;YAeT,YAAY;IAS1B,2EAA2E;IAC3E,OAAO,CAAC,aAAa;IAQrB,6EAA6E;IAC7E,OAAO,CAAC,IAAI;YAWE,QAAQ;IAKtB,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,MAAM;CAWd"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventDispatcherMapBase } from "@ac-kit/async";
|
|
2
|
-
import { BYTES_PER_MIB, concatBytes, decodeText, encodeTextUtf8, Timer, } from "@ac-kit/core";
|
|
2
|
+
import { BYTES_PER_MIB, concatBytes, decodeText, encodeTextUtf8, raceAbortSignal, Timer, } from "@ac-kit/core";
|
|
3
3
|
import { createWebSocketMaskStream, decodeWebSocketClosePayload, encodeWebSocketClosePayload, isWebSocketCloseCodeSendable, WebSocketFrameCodec, WebSocketFrameError, } from "@ac-kit/format-websocket";
|
|
4
4
|
import { FrameLink } from "@ac-kit/net-core";
|
|
5
5
|
/** The peer is closing or closed and cannot send. */
|
|
@@ -23,7 +23,9 @@ const DEFAULT_CLOSE_TIMEOUT_MS_ = 5000;
|
|
|
23
23
|
*
|
|
24
24
|
* Closing follows §7: {@link close} sends a close frame and waits for the
|
|
25
25
|
* peer's, a close frame received is echoed, and the server end closes the
|
|
26
|
-
* transport first. Either way `close` is emitted once.
|
|
26
|
+
* transport first. Either way `close` is emitted once. One deadline,
|
|
27
|
+
* `closeTimeoutMs`, bounds the whole closing handshake from its start, the
|
|
28
|
+
* close frame's write included; past it the connection is dropped.
|
|
27
29
|
*
|
|
28
30
|
* @see `acceptWebSocket` and `connectWebSocket` for the opening handshake.
|
|
29
31
|
*/
|
|
@@ -40,6 +42,8 @@ export class WebSocketPeer extends EventDispatcherMapBase {
|
|
|
40
42
|
fragmentsSize = 0;
|
|
41
43
|
fragmentOpcode = null;
|
|
42
44
|
closeSent = false;
|
|
45
|
+
closeWritten = false;
|
|
46
|
+
deadlineStarted = false;
|
|
43
47
|
received = null;
|
|
44
48
|
closed = Promise.withResolvers();
|
|
45
49
|
maxMessageSize;
|
|
@@ -98,24 +102,32 @@ export class WebSocketPeer extends EventDispatcherMapBase {
|
|
|
98
102
|
return this.link.send({ opcode: "ping", payload }, signal);
|
|
99
103
|
}
|
|
100
104
|
/**
|
|
101
|
-
* Start the closing handshake and wait for
|
|
102
|
-
*
|
|
105
|
+
* Start the closing handshake and wait for the connection to close: once both
|
|
106
|
+
* close frames are exchanged and the transport is closed, or when the
|
|
107
|
+
* `closeTimeoutMs` deadline drops it, whichever comes first. The deadline
|
|
108
|
+
* starts before the close frame is written, so a transport that stopped
|
|
109
|
+
* draining cannot hold the call longer. When the handshake has already
|
|
110
|
+
* started, this waits for it under the deadline it started.
|
|
103
111
|
*
|
|
104
112
|
* @param code A sendable close code; defaults to `1000`.
|
|
105
113
|
* @param reason At most 123 UTF-8 bytes.
|
|
114
|
+
* @param signal Cancels the wait only: the call rejects with the abort
|
|
115
|
+
* reason, and the handshake goes on under its deadline (call
|
|
116
|
+
* {@link destroy} to drop the connection at once). Already aborted, the
|
|
117
|
+
* call rejects without starting the handshake.
|
|
106
118
|
* @throws {RangeError} When `code` may not be sent or `reason` is too long.
|
|
107
119
|
*/
|
|
108
|
-
async close(code = 1000, reason = "") {
|
|
120
|
+
async close(code = 1000, reason = "", signal) {
|
|
109
121
|
if (!isWebSocketCloseCodeSendable(code)) {
|
|
110
122
|
throw new RangeError(`Close code ${code} may not be sent`);
|
|
111
123
|
}
|
|
112
124
|
const payload = encodeWebSocketClosePayload({ code, reason });
|
|
125
|
+
signal?.throwIfAborted();
|
|
113
126
|
if (this.state_ === "open") {
|
|
114
127
|
this.state_ = "closing";
|
|
115
|
-
|
|
116
|
-
this.closeTimer.start();
|
|
128
|
+
void this.sendClose(payload);
|
|
117
129
|
}
|
|
118
|
-
await this.closed.promise;
|
|
130
|
+
await raceAbortSignal(this.closed.promise, signal);
|
|
119
131
|
}
|
|
120
132
|
/** Drop the connection without a closing handshake. */
|
|
121
133
|
destroy(error) {
|
|
@@ -247,9 +259,7 @@ export class WebSocketPeer extends EventDispatcherMapBase {
|
|
|
247
259
|
if (this.role === "server") {
|
|
248
260
|
void this.endTransport();
|
|
249
261
|
}
|
|
250
|
-
|
|
251
|
-
this.closeTimer.restart();
|
|
252
|
-
}
|
|
262
|
+
// A client waits, under the deadline, for the server to close it.
|
|
253
263
|
}
|
|
254
264
|
async sendPong(payload) {
|
|
255
265
|
try {
|
|
@@ -264,15 +274,18 @@ export class WebSocketPeer extends EventDispatcherMapBase {
|
|
|
264
274
|
return;
|
|
265
275
|
}
|
|
266
276
|
this.closeSent = true;
|
|
277
|
+
// Before the write: a transport that stopped draining is covered too.
|
|
278
|
+
this.startDeadline();
|
|
267
279
|
try {
|
|
268
280
|
await this.link.send({ opcode: "close", payload });
|
|
281
|
+
this.closeWritten = true;
|
|
269
282
|
}
|
|
270
283
|
catch {
|
|
271
284
|
this.terminate();
|
|
272
285
|
}
|
|
273
286
|
}
|
|
274
287
|
async endTransport() {
|
|
275
|
-
this.
|
|
288
|
+
this.startDeadline();
|
|
276
289
|
try {
|
|
277
290
|
await this.link.end();
|
|
278
291
|
}
|
|
@@ -280,6 +293,14 @@ export class WebSocketPeer extends EventDispatcherMapBase {
|
|
|
280
293
|
this.terminate();
|
|
281
294
|
}
|
|
282
295
|
}
|
|
296
|
+
/** Starts the closing deadline once; it is never restarted or extended. */
|
|
297
|
+
startDeadline() {
|
|
298
|
+
if (this.deadlineStarted || this.state_ === "closed") {
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
this.deadlineStarted = true;
|
|
302
|
+
this.closeTimer.start();
|
|
303
|
+
}
|
|
283
304
|
/** RFC 6455 §7.1.7: send a close frame with the error's code, then close. */
|
|
284
305
|
fail(error) {
|
|
285
306
|
if (this.state_ === "closed") {
|
|
@@ -294,7 +315,7 @@ export class WebSocketPeer extends EventDispatcherMapBase {
|
|
|
294
315
|
await this.endTransport();
|
|
295
316
|
}
|
|
296
317
|
handlePeerEnd() {
|
|
297
|
-
if (this.received && this.
|
|
318
|
+
if (this.received && this.closeWritten) {
|
|
298
319
|
this.terminate();
|
|
299
320
|
return;
|
|
300
321
|
}
|
|
@@ -311,7 +332,7 @@ export class WebSocketPeer extends EventDispatcherMapBase {
|
|
|
311
332
|
}
|
|
312
333
|
this.state_ = "closed";
|
|
313
334
|
this.closeTimer.cancel();
|
|
314
|
-
const clean = this.
|
|
335
|
+
const clean = this.closeWritten && this.received !== null;
|
|
315
336
|
const { code, reason } = this.received ?? { code: ABNORMAL_, reason: "" };
|
|
316
337
|
this.dispatch("close", [code, reason, clean]);
|
|
317
338
|
this.closed.resolve();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket-peer.js","sourceRoot":"","sources":["../../src/peer/websocket-peer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EA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AAE,CAAC;IACf,CAAC;IAEO,MAAM;QACb,IAAI,IAAI,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO;QACR,CAAC;QACD,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC;QACvB,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;QACzB,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC;QAC1D,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;QAC1E,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;QAC9C,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;IACvB,CAAC;CACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ac-kit/net-websocket",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "WebSocket endpoints (RFC 6455) over any @ac-kit/net-core Transport: a message-level peer and the opening handshake for both sides.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rfc6455",
|
|
@@ -44,23 +44,23 @@
|
|
|
44
44
|
"prepack": "yarn build"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@ac-kit/async": "^0.
|
|
48
|
-
"@ac-kit/core": "^0.
|
|
49
|
-
"@ac-kit/crypto-hash": "^0.1.
|
|
50
|
-
"@ac-kit/format-http": "^0.
|
|
51
|
-
"@ac-kit/format-media-type": "^0.3.
|
|
52
|
-
"@ac-kit/format-websocket": "^0.3.
|
|
53
|
-
"@ac-kit/net-core": "^0.5.
|
|
54
|
-
"@ac-kit/net-http": "^0.9.
|
|
47
|
+
"@ac-kit/async": "^0.8.1",
|
|
48
|
+
"@ac-kit/core": "^0.13.0",
|
|
49
|
+
"@ac-kit/crypto-hash": "^0.1.12",
|
|
50
|
+
"@ac-kit/format-http": "^0.9.1",
|
|
51
|
+
"@ac-kit/format-media-type": "^0.3.2",
|
|
52
|
+
"@ac-kit/format-websocket": "^0.3.5",
|
|
53
|
+
"@ac-kit/net-core": "^0.5.2",
|
|
54
|
+
"@ac-kit/net-http": "^0.9.2",
|
|
55
55
|
"@types/web": "^0.0.367"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@ac-kit/integration-test-util": "0.
|
|
59
|
-
"@ac-kit/net-quic": "0.3.
|
|
60
|
-
"@ac-kit/net-transport-node": "0.4.
|
|
58
|
+
"@ac-kit/integration-test-util": "0.6.0",
|
|
59
|
+
"@ac-kit/net-quic": "0.3.3",
|
|
60
|
+
"@ac-kit/net-transport-node": "0.4.3",
|
|
61
61
|
"@ac-kit/tsconfig": "0.1.0",
|
|
62
62
|
"@ac-kit/typedoc-config": "0.1.0",
|
|
63
|
-
"@ac-kit/vitest-config": "0.
|
|
63
|
+
"@ac-kit/vitest-config": "0.2.0",
|
|
64
64
|
"@types/node": "^26.5.1",
|
|
65
65
|
"@typescript/native": "typescript@7.0.2",
|
|
66
66
|
"rimraf": "6.1.4",
|