@caprid/relay-quic 0.1.1 → 0.3.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/README.md +68 -26
- package/dist/index.d.ts +27 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
# @caprid/relay-quic
|
|
2
2
|
|
|
3
|
-
The Relay SDK's transport adapter for Node. It carries MOQT straight on a QUIC connection (native QUIC,
|
|
4
|
-
|
|
5
|
-
and subscribe without a browser.
|
|
6
|
-
[`spec/transport-adapter.md`](
|
|
7
|
-
[ADR 0002](
|
|
8
|
-
|
|
9
|
-
The package is private for now: its prebuilt binaries are built and packed in CI, but not yet published (#195).
|
|
3
|
+
The Relay SDK's transport adapter for Node. It carries MOQT straight on a QUIC connection (native QUIC), offering the
|
|
4
|
+
ALPNs `moqt-22`, then `moqt-20`. A napi-rs addon over [quinn](https://github.com/quinn-rs/quinn) does the QUIC work, so
|
|
5
|
+
a plain Node script can publish and subscribe without a browser. The adapter follows the transport adapter contract in
|
|
6
|
+
[`spec/transport-adapter.md`](https://github.com/caprids/relay-sdks/blob/main/spec/transport-adapter.md) and passes its conformance suite. The design is
|
|
7
|
+
[ADR 0002](https://github.com/caprids/relay-sdks/blob/main/docs/adr/0002-node-adapter-speaks-native-quic.md).
|
|
10
8
|
|
|
11
9
|
## Use
|
|
12
10
|
|
|
13
|
-
Most scripts need no code from this package: `@caprid/relay/node` uses it by
|
|
14
|
-
(see the [SDK README](
|
|
11
|
+
Install it next to `@caprid/relay`. Most scripts need no code from this package: `@caprid/relay/node` uses it by
|
|
12
|
+
default and takes the trust options below (see the [SDK README](https://github.com/caprids/relay-sdks/blob/main/ts/README.md#node)).
|
|
15
13
|
|
|
16
|
-
To use it with `@caprid/relay` directly, pass the factory as `createTransport`. The URL
|
|
17
|
-
only its host and port, and the core sends the path, the token and the authority in
|
|
14
|
+
To use it with `@caprid/relay` directly, pass the factory as `createTransport`. The URL is the same `https://` endpoint
|
|
15
|
+
the browser uses. The adapter dials only its host and port, and the core sends the path, the token, and the authority in
|
|
16
|
+
SETUP.
|
|
18
17
|
|
|
19
18
|
```ts
|
|
20
19
|
import { connectRelayPublisher } from '@caprid/relay';
|
|
@@ -22,6 +21,7 @@ import { nativeQuicTransport } from '@caprid/relay-quic';
|
|
|
22
21
|
|
|
23
22
|
const publisher = await connectRelayPublisher({
|
|
24
23
|
url: 'https://relay.mux.global',
|
|
24
|
+
namespace: ['acme', 'rooms', '42'],
|
|
25
25
|
getToken: () => process.env.RELAY_TOKEN,
|
|
26
26
|
createTransport: nativeQuicTransport(),
|
|
27
27
|
});
|
|
@@ -36,19 +36,61 @@ By default a dial trusts the platform's root certificates.
|
|
|
36
36
|
|
|
37
37
|
- `ca`: extra trust anchors, PEM, as a string, bytes, or an array of either. They are added to the platform's roots.
|
|
38
38
|
- `serverCertificateHashes`: `[{ algorithm: 'sha-256', value }]`, in the W3C WebTransport shape. The server's
|
|
39
|
-
end-entity certificate must match one hash, and
|
|
40
|
-
|
|
39
|
+
end-entity certificate must match one hash, and the adapter does not validate its chain. It still checks the
|
|
40
|
+
handshake signature. Unlike a browser, the adapter does not require the certificate to be valid for 14 days or less.
|
|
41
|
+
|
|
42
|
+
## Stream credit
|
|
43
|
+
|
|
44
|
+
`anticipatedConcurrentIncomingUnidirectionalStreams` is how many unidirectional streams the relay may have open to the
|
|
45
|
+
connection at once: the MAX_STREAMS credit this end grants (RFC 9000 §4.6). It is an integer from 1 to 65535, and the
|
|
46
|
+
default is 1000. quinn's own default is 100. The relay sends each group on a stream of its own, so a voice track at 50
|
|
47
|
+
frames a second takes 50 streams a second, and the credit for each closed stream returns over your uplink. In relay-dev's
|
|
48
|
+
voice benchmark (finding P-06), a subscriber whose own upload queued its uplink for about 2 s ran out of credit at 100:
|
|
49
|
+
locally, the median arrival delay was 2865 ms, and 21.5 ms with more credit. 1000 covers a 20 s stall of the uplink on
|
|
50
|
+
one such track.
|
|
51
|
+
|
|
52
|
+
quinn sets aside an entry per allowed stream up front, so a higher value costs memory on every connection. Unlike the
|
|
53
|
+
W3C WebTransport option of the same name, which is a hint that the browser may round up, this is the exact limit. A
|
|
54
|
+
value that is not an integer from 1 to 65535 throws a `RangeError` at once, before the addon loads. Bidirectional
|
|
55
|
+
streams keep quinn's default of 100, because the relay opens one per request, not per object. `@caprid/relay/node` uses
|
|
56
|
+
the default and takes no such option. To change it, build the factory yourself:
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
import { connectRelaySubscriber } from '@caprid/relay';
|
|
60
|
+
import { nativeQuicTransport } from '@caprid/relay-quic';
|
|
61
|
+
|
|
62
|
+
const subscriber = await connectRelaySubscriber({
|
|
63
|
+
url: 'https://relay.mux.global',
|
|
64
|
+
getToken: () => process.env.RELAY_TOKEN,
|
|
65
|
+
createTransport: nativeQuicTransport({ anticipatedConcurrentIncomingUnidirectionalStreams: 5000 }),
|
|
66
|
+
});
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## qlog
|
|
70
|
+
|
|
71
|
+
`nativeQuicTransport({ qlogDir })` writes a qlog trace of every connection into that directory. Without the option,
|
|
72
|
+
the `RELAY_QUIC_QLOG_DIR` environment variable is read when the factory is made; an empty string turns qlog off. It is
|
|
73
|
+
off by default. The directory is created if it is missing, and a failure to create it throws at once. Each connection
|
|
74
|
+
attempt gets one file, `relay-quic-<unix ms>-<pid>-<n>.sqlog`: JSON text sequences, written by quinn's `qlog` feature.
|
|
75
|
+
A trace holds each packet's number and type as it is sent and received, the size of each packet sent, the packets
|
|
76
|
+
declared lost, and the RTT, congestion window and bytes in flight as they change. quinn 0.11 logs no frames, so a trace holds no stream data and no
|
|
77
|
+
token. A file that cannot be created is skipped, and the dial goes on. `@caprid/relay/node` takes no such option, but
|
|
78
|
+
reads the environment variable, so `RELAY_QUIC_QLOG_DIR=/tmp/qlog node script.mjs` traces a script without changing it.
|
|
79
|
+
|
|
80
|
+
The feature has a cost in size. The linux-x64-gnu release addon grew from 2,766,896 to 2,912,848 bytes (+145,952 B,
|
|
81
|
+
+5.3%), and gzip -9 of it from 1,306,675 to 1,372,739 bytes (+66,064 B), built locally with Rust 1.97.1 from `main`
|
|
82
|
+
and from this change. The sizes in the table under "Prebuilt binaries" are from before it.
|
|
41
83
|
|
|
42
84
|
## Process lifetime
|
|
43
85
|
|
|
44
86
|
An open session keeps the Node process alive, from the start of the dial until `closed` settles. After that the
|
|
45
|
-
adapter holds nothing
|
|
87
|
+
adapter holds nothing, so a script exits once it has closed its connections. Closing before the dial completes cancels
|
|
46
88
|
the dial and releases its socket.
|
|
47
89
|
|
|
48
90
|
## Prebuilt binaries
|
|
49
91
|
|
|
50
|
-
Each platform's binary ships in its own package, which `@caprid/relay-quic` lists as an optional dependency,
|
|
51
|
-
|
|
92
|
+
Each platform's binary ships in its own package, which `@caprid/relay-quic` lists as an optional dependency, as napi-rs
|
|
93
|
+
packages do. A package manager installs only the one whose `os`, `cpu`, and `libc` match, so you need no Rust.
|
|
52
94
|
|
|
53
95
|
| Platform package | Built on | Packed | Installed |
|
|
54
96
|
| --- | --- | --- | --- |
|
|
@@ -66,7 +108,7 @@ needs too.
|
|
|
66
108
|
|
|
67
109
|
`src/addon.ts` loads a local build, `native/relay-quic.<platform>.node`, first, so a build from source always wins.
|
|
68
110
|
Without one it loads `@caprid/relay-quic-<platform>`. If neither is there, the error names both. A platform package that is
|
|
69
|
-
installed but cannot load
|
|
111
|
+
installed but cannot load, such as one built for the wrong libc, throws its own error. The loader does not skip it.
|
|
70
112
|
|
|
71
113
|
The `relay-quic binaries` workflow (`.github/workflows/relay-quic-binaries.yml`) runs on each PR that touches the crate,
|
|
72
114
|
the loader or the packaging. It builds every target, and `scripts/pack.mjs` packs the main package, the platform
|
|
@@ -74,21 +116,21 @@ packages and `@caprid/moq-core`, with the sizes in the job summary. `scripts/smo
|
|
|
74
116
|
npm on each platform (musl in Alpine, arm64 Linux under QEMU, darwin-x64 under Rosetta). It checks that npm picked only
|
|
75
117
|
the matching binary, that the loader finds it, and that a dial sends a QUIC Initial and can be cancelled. The
|
|
76
118
|
`Release TypeScript SDK` workflow (`release-ts.yml`) calls this one and publishes the tarballs it packs, with the rest of
|
|
77
|
-
the TypeScript packages ([releasing](
|
|
119
|
+
the TypeScript packages ([releasing](https://github.com/caprids/relay-sdks/blob/main/docs/releasing.md)).
|
|
78
120
|
|
|
79
|
-
The platform packages live in `npm/<platform
|
|
80
|
-
optional dependencies on them
|
|
81
|
-
`pnpm check:boundaries` checks that
|
|
121
|
+
The platform packages live in `npm/<platform>/`. `napi create-npm-dirs` generates them from `napi.targets` in
|
|
122
|
+
`package.json`. `scripts/pack.mjs` adds the optional dependencies on them only when it packs, so the lockfile never
|
|
123
|
+
names them. `pnpm check:boundaries`, run from `ts/`, checks that `npm/` and `napi.targets` agree.
|
|
82
124
|
|
|
83
125
|
## Stability
|
|
84
126
|
|
|
85
127
|
Before 1.0, a minor version can break the API. This package and its platform packages release
|
|
86
|
-
together with `@caprid/relay` at the same version; see the [changelog](
|
|
128
|
+
together with `@caprid/relay` at the same version; see the [changelog](https://github.com/caprids/relay-sdks/blob/main/ts/CHANGELOG.md).
|
|
87
129
|
|
|
88
130
|
## Building the addon
|
|
89
131
|
|
|
90
|
-
To work on the crate, build the addon locally with Rust. The mise tasks bring the toolchain `mise.toml` pins
|
|
91
|
-
else in the repo installs one.
|
|
132
|
+
To work on the crate, build the addon locally with Rust. The mise tasks bring the toolchain that `mise.toml` pins.
|
|
133
|
+
Nothing else in the repo installs one.
|
|
92
134
|
|
|
93
135
|
```sh
|
|
94
136
|
mise run ts:test:conformance:node # builds the addon, then runs the conformance suite against it
|
|
@@ -103,7 +145,7 @@ With a Rust toolchain of your own, `cd ts && pnpm --filter @caprid/relay-quic bu
|
|
|
103
145
|
`build:native` also regenerates `src/native.d.ts`, the addon's typings, from the Rust. Commit it with any change to
|
|
104
146
|
the crate. CI checks that it matches.
|
|
105
147
|
|
|
106
|
-
`pnpm check` builds and checks the TypeScript only, so the rest of the workspace needs no Rust.
|
|
148
|
+
`pnpm check`, run from `ts/`, builds and checks the TypeScript only, so the rest of the workspace needs no Rust.
|
|
107
149
|
|
|
108
150
|
## Layout
|
|
109
151
|
|
|
@@ -114,6 +156,6 @@ the crate. CI checks that it matches.
|
|
|
114
156
|
| `src/streams.ts` | WHATWG streams over the addon's stream halves. |
|
|
115
157
|
| `src/errors.ts` | The addon's failures as the contract's error shapes (TA-22). |
|
|
116
158
|
| `src/addon.ts` | Finds and loads the addon for this platform: a local build, else the platform package. |
|
|
117
|
-
| `native/` | The Rust crate: trust (`tls.rs`), stream halves (`stream.rs`), failures as data (`failure.rs`), the dial and the session (`lib.rs`). |
|
|
159
|
+
| `native/` | The Rust crate: trust (`tls.rs`), stream halves (`stream.rs`), failures as data (`failure.rs`), the dial, qlog and the session (`lib.rs`). |
|
|
118
160
|
| `npm/<platform>/` | The platform packages, one per `napi.targets` entry; CI puts each binary in its own. |
|
|
119
161
|
| `scripts/pack.mjs`, `scripts/smoke.mjs` | Pack the release tarballs with their sizes; install and smoke-load them. |
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,10 @@ export interface CertificateHash {
|
|
|
13
13
|
/** The SHA-256 of the certificate's DER encoding. */
|
|
14
14
|
value: BufferSource;
|
|
15
15
|
}
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* What {@link nativeQuicTransport}'s dials trust, how many streams they let the relay open, and where they write qlog.
|
|
18
|
+
* With neither trust option, a dial trusts the platform's roots.
|
|
19
|
+
*/
|
|
17
20
|
export interface NativeQuicTransportOptions {
|
|
18
21
|
/**
|
|
19
22
|
* Extra trust anchors, PEM encoded, added to the platform's roots: one string or buffer may hold several
|
|
@@ -26,6 +29,26 @@ export interface NativeQuicTransportOptions {
|
|
|
26
29
|
* apply is not.
|
|
27
30
|
*/
|
|
28
31
|
serverCertificateHashes?: readonly CertificateHash[];
|
|
32
|
+
/**
|
|
33
|
+
* How many unidirectional streams the relay may have open to this connection at once: the MAX_STREAMS credit the
|
|
34
|
+
* connection grants (RFC 9000 §4.6), an integer from 1 to 65535; 1000 when absent.
|
|
35
|
+
*
|
|
36
|
+
* The relay delivers each group of a track on a stream of its own, so a voice track at 50 frames a second takes 50
|
|
37
|
+
* streams a second, and the credit for each closed stream returns over this end's uplink. 1000 is a 20 s stall of
|
|
38
|
+
* that uplink on one such track; quinn's own default, 100, starved a subscriber whose upload queued its uplink for
|
|
39
|
+
* 2 s. quinn sets aside an entry per allowed stream up front, which is the cost of a higher value. Unlike
|
|
40
|
+
* WebTransport's option of the same name, which is a hint the browser may round up, this is the exact limit.
|
|
41
|
+
*/
|
|
42
|
+
anticipatedConcurrentIncomingUnidirectionalStreams?: number;
|
|
43
|
+
/**
|
|
44
|
+
* A directory to write a qlog trace of every connection into, one `relay-quic-<ms>-<pid>-<n>.sqlog` file (JSON text
|
|
45
|
+
* sequences, qlog 0.3) per connection attempt, created if it does not exist. Absent, the `RELAY_QUIC_QLOG_DIR`
|
|
46
|
+
* environment variable is read when the factory is made; an empty string turns qlog off. Off by default. A trace
|
|
47
|
+
* holds each packet's number and type, the size of each packet sent, the packets lost, and the RTT and congestion
|
|
48
|
+
* window as they change; quinn 0.11 logs no frames, so it holds no stream data and no token. A file that cannot be
|
|
49
|
+
* created is skipped, and the dial goes on.
|
|
50
|
+
*/
|
|
51
|
+
qlogDir?: string;
|
|
29
52
|
}
|
|
30
53
|
/** The transport a {@link NativeQuicConnection} carries: a `MoqtTransport` that reports the selected protocol. */
|
|
31
54
|
export interface NativeQuicMoqtTransport extends MoqtTransport {
|
|
@@ -56,8 +79,9 @@ export type NativeQuicTransportFactory = (url: string, protocols: string[]) => N
|
|
|
56
79
|
* const publisher = await connectRelayPublisher({ url, getToken, createTransport: nativeQuicTransport() });
|
|
57
80
|
* ```
|
|
58
81
|
*
|
|
59
|
-
* Throws at once when
|
|
60
|
-
*
|
|
82
|
+
* Throws at once when `anticipatedConcurrentIncomingUnidirectionalStreams` is not an integer from 1 to 65535,
|
|
83
|
+
* `qlogDir` is not a string or cannot be created, the native addon is missing for this platform, a `ca` entry holds no
|
|
84
|
+
* PEM certificate, or a certificate hash is not a 32-byte SHA-256.
|
|
61
85
|
*/
|
|
62
86
|
export declare function nativeQuicTransport(options?: NativeQuicTransportOptions): NativeQuicTransportFactory;
|
|
63
87
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOtD,wGAAwG;AACxG,MAAM,WAAW,eAAe;IAC9B,yDAAyD;IACzD,SAAS,EAAE,SAAS,CAAC;IACrB,qDAAqD;IACrD,KAAK,EAAE,YAAY,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC,MAAM,GAAG,UAAU,CAAC,EAAE,CAAC;IAC5D;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IACrD;;;;;;;;;OASG;IACH,kDAAkD,CAAC,EAAE,MAAM,CAAC;IAC5D;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,kHAAkH;AAClH,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC5D,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,oHAAoH;AACpH,MAAM,WAAW,oBAAoB;IACnC,8CAA8C;IAC9C,SAAS,EAAE,uBAAuB,CAAC;IACnC,4FAA4F;IAC5F,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACrB,2FAA2F;IAC3F,OAAO,EAAE,aAAa,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,oBAAoB,CAAC;AAYpG;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,0BAA+B,GAAG,0BAA0B,CA4BxG"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { loadAddon } from './addon.js';
|
|
2
2
|
import { NativeQuicTransport } from './transport.js';
|
|
3
|
+
/** The environment variable that turns qlog on when {@link NativeQuicTransportOptions.qlogDir} is absent. */
|
|
4
|
+
const QLOG_DIR_ENV = 'RELAY_QUIC_QLOG_DIR';
|
|
3
5
|
/** PEM text from a string or bytes. */
|
|
4
6
|
function pem(value) {
|
|
5
7
|
return typeof value === 'string' ? value : new TextDecoder().decode(value);
|
|
@@ -19,10 +21,18 @@ function bytesOf(value) {
|
|
|
19
21
|
* const publisher = await connectRelayPublisher({ url, getToken, createTransport: nativeQuicTransport() });
|
|
20
22
|
* ```
|
|
21
23
|
*
|
|
22
|
-
* Throws at once when
|
|
23
|
-
*
|
|
24
|
+
* Throws at once when `anticipatedConcurrentIncomingUnidirectionalStreams` is not an integer from 1 to 65535,
|
|
25
|
+
* `qlogDir` is not a string or cannot be created, the native addon is missing for this platform, a `ca` entry holds no
|
|
26
|
+
* PEM certificate, or a certificate hash is not a 32-byte SHA-256.
|
|
24
27
|
*/
|
|
25
28
|
export function nativeQuicTransport(options = {}) {
|
|
29
|
+
const streams = options.anticipatedConcurrentIncomingUnidirectionalStreams;
|
|
30
|
+
if (streams !== undefined && !(Number.isInteger(streams) && streams >= 1 && streams <= 0xffff)) {
|
|
31
|
+
throw new RangeError(`anticipatedConcurrentIncomingUnidirectionalStreams must be an integer from 1 to 65535, not ${streams}`);
|
|
32
|
+
}
|
|
33
|
+
const qlogDir = options.qlogDir ?? process.env[QLOG_DIR_ENV];
|
|
34
|
+
if (qlogDir !== undefined && typeof qlogDir !== 'string')
|
|
35
|
+
throw new TypeError('qlogDir must be a string');
|
|
26
36
|
const { Client } = loadAddon();
|
|
27
37
|
const ca = options.ca === undefined ? [] : Array.isArray(options.ca) ? options.ca : [options.ca];
|
|
28
38
|
const client = new Client({
|
|
@@ -32,6 +42,8 @@ export function nativeQuicTransport(options = {}) {
|
|
|
32
42
|
throw new TypeError(`unsupported certificate hash algorithm ${hash.algorithm}`);
|
|
33
43
|
return bytesOf(hash.value);
|
|
34
44
|
}),
|
|
45
|
+
...(streams === undefined ? {} : { maxConcurrentUniStreams: streams }),
|
|
46
|
+
...(qlogDir ? { qlogDir } : {}),
|
|
35
47
|
});
|
|
36
48
|
return (url, protocols) => {
|
|
37
49
|
// Only the host and port are read (TA-3): the path and query, token included, travel in SETUP.
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,6GAA6G;AAC7G,MAAM,YAAY,GAAG,qBAAqB,CAAC;AAsE3C,uCAAuC;AACvC,SAAS,GAAG,CAAC,KAA0B;IACrC,OAAO,OAAO,KAAK,KAAK,QAAQ,CA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ANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caprid/relay-quic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Native QUIC transport adapter for the Relay SDK in Node",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@caprid/moq-core": "0.
|
|
36
|
+
"@caprid/moq-core": "0.3.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@napi-rs/cli": "3.10.5",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@caprid/relay-quic-darwin-arm64": "0.
|
|
50
|
-
"@caprid/relay-quic-darwin-x64": "0.
|
|
51
|
-
"@caprid/relay-quic-linux-arm64-gnu": "0.
|
|
52
|
-
"@caprid/relay-quic-linux-arm64-musl": "0.
|
|
53
|
-
"@caprid/relay-quic-linux-x64-gnu": "0.
|
|
54
|
-
"@caprid/relay-quic-linux-x64-musl": "0.
|
|
55
|
-
"@caprid/relay-quic-win32-x64-msvc": "0.
|
|
49
|
+
"@caprid/relay-quic-darwin-arm64": "0.3.0",
|
|
50
|
+
"@caprid/relay-quic-darwin-x64": "0.3.0",
|
|
51
|
+
"@caprid/relay-quic-linux-arm64-gnu": "0.3.0",
|
|
52
|
+
"@caprid/relay-quic-linux-arm64-musl": "0.3.0",
|
|
53
|
+
"@caprid/relay-quic-linux-x64-gnu": "0.3.0",
|
|
54
|
+
"@caprid/relay-quic-linux-x64-musl": "0.3.0",
|
|
55
|
+
"@caprid/relay-quic-win32-x64-msvc": "0.3.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsc -p tsconfig.json",
|