Skip to content

[codex] Mirror @moq/net role modules#2091

Draft
kixelated wants to merge 1 commit into
devfrom
codex/js-net-role-modules
Draft

[codex] Mirror @moq/net role modules#2091
kixelated wants to merge 1 commit into
devfrom
codex/js-net-role-modules

Conversation

@kixelated

Copy link
Copy Markdown
Collaborator

Summary

  • mirror the Rust role-module shape in @moq/net with broadcast, track, group, and announce namespaces
  • split mixed JS handles into explicit producer and consumer roles for broadcasts, groups, and announcements
  • update @moq/net consumers across JSON, HANG, LOC, watch, publish, clock, MoQ Boy, and the web demo

Public API

This is a breaking @moq/net API change for JavaScript consumers. The root-level flat exports such as Broadcast, Group, TrackProducer, and TrackSubscriber move under role namespaces, for example broadcast.Producer, broadcast.Consumer, group.Producer, group.Consumer, track.Producer, and track.Subscriber.

Validation

  • bun run --filter @moq/net check
  • bun run --filter @moq/net test
  • bun run --filter @moq/json check
  • bun run --filter @moq/hang check
  • bun run --filter @moq/loc check
  • bun run --filter @moq/msf check
  • bun run --filter @moq/publish check
  • bun run --filter @moq/watch check
  • bun run --filter @moq/clock check
  • bun run --filter @moq/boy check
  • bun run --filter @moq/demo check

(Written by GPT-5)

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @kixelated, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@kixelated kixelated force-pushed the codex/js-net-role-modules branch from 1ffe461 to 9ca7b4e Compare July 4, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant