Skip to content

Commit b15b8e2

Browse files
kixelatedclaude
andauthored
Bump @moq deps and switch from @moq/lite to @moq/net (#99)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 4ddabf8 commit b15b8e2

5 files changed

Lines changed: 20 additions & 31 deletions

File tree

bun.lock

Lines changed: 12 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
"fix": "biome check --write && bun audit fix"
1414
},
1515
"dependencies": {
16-
"@moq/boy": "^0.2.9",
17-
"@moq/lite": "^0.2.4",
18-
"@moq/publish": "^0.2.7",
19-
"@moq/watch": "^0.2.11",
16+
"@moq/boy": "^0.2.10",
17+
"@moq/publish": "^0.2.8",
18+
"@moq/watch": "^0.2.12",
2019
"astro": "^5.18.1",
2120
"highlight.js": "^11.11.1",
2221
"solid-js": "^1.9.12",

src/components/watch-embed.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ export default function WatchEmbed() {
2222
</moq-watch>
2323
</moq-watch-ui>`;
2424

25-
const embedJs = `import * as Moq from "@moq/lite";
26-
import * as Watch from "@moq/watch";
25+
const embedJs = `import * as Watch from "@moq/watch";
2726
2827
// A MoQ connection that is automatically re-established on drop.
29-
const connection = new Moq.Connection.Reload({
28+
const connection = new Watch.Lite.Connection.Reload({
3029
url: new URL("${publicUrl}"),
3130
enabled: true,
3231
});
@@ -35,7 +34,7 @@ const connection = new Moq.Connection.Reload({
3534
const broadcast = new Watch.Broadcast({
3635
connection: connection.established,
3736
enabled: true,
38-
name: Moq.Path.from("${name}"),
37+
name: Watch.Lite.Path.from("${name}"),
3938
});
4039
4140
// Synchronize audio and video playback.

src/pages/boy.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Click a game to play. Multiple players can play at the same time; anarchy includ
1717
## Features
1818

1919
- 🦀 **Rust**: [moq-boy](https://doc.moq.dev/rs/crate/moq-boy) handles emulation and encoding. [moq-mux](https://doc.moq.dev/rs/crate/moq-mux) slurps in H.264/Opus bitstreams while [moq-lite](https://doc.moq.dev/rs/crate/moq-lite) handles the networking/caching.
20-
- 🌐 **Web**: [@moq/boy](https://doc.moq.dev/js/@moq/boy) is the browser player. [@moq/watch](https://doc.moq.dev/js/@moq/watch) handles decoding/rendering while [@moq/lite](https://doc.moq.dev/js/@moq/lite) handles the networking.
20+
- 🌐 **Web**: [@moq/boy](https://doc.moq.dev/js/@moq/boy) is the browser player. [@moq/watch](https://doc.moq.dev/js/@moq/watch) handles decoding/rendering while [@moq/net](https://doc.moq.dev/js/@moq/net) handles the networking.
2121
- 💤 **On-Demand**: Nothing is emulated or encoded until at least one viewer subscribes (per track). Saves you CPU and bandwidth!
2222
- 🧩 **Extensible**: Player controls and game status are sent as custom tracks (JSON in this case). You can do whatever you want!
2323
- 🌍 **Global CDN**: A generic MoQ CDN routes subscriptions over the backbone. Every client connects to the closest edge node to maximize QoS and minimize latency.

src/pages/source.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Web code is written in [Typescript](https://github.com/moq-dev/moq/tree/main/js)
4040

4141
| package | description |
4242
| ------- | ----------- |
43-
| [@moq/lite](https://www.npmjs.com/package/@moq/lite) | A moq-lite client that mirrors the Rust API. You can publish and subscribe to generic tracks. Any media stuff is implemented at a higher layer. |
43+
| [@moq/net](https://www.npmjs.com/package/@moq/net) | A moq-lite client that mirrors the Rust API. You can publish and subscribe to generic tracks. Any media stuff is implemented at a higher layer. |
4444
| [@moq/publish](https://www.npmjs.com/package/@moq/publish) | Publishing library with web components and UI. Provides `<moq-publish>` element and `<moq-publish-ui>` wrapper. |
4545
| [@moq/watch](https://www.npmjs.com/package/@moq/watch) | Watching library with web components and UI. Provides `<moq-watch>` element and `<moq-watch-ui>` wrapper. |
4646

0 commit comments

Comments
 (0)