Skip to content

refactor!: rename hub → relay (UserHub → UserRelay) - #2

Merged
owenob1 merged 1 commit into
mainfrom
refactor/rename-hub-to-relay
Jul 6, 2026
Merged

refactor!: rename hub → relay (UserHub → UserRelay)#2
owenob1 merged 1 commit into
mainfrom
refactor/rename-hub-to-relay

Conversation

@owenob1

@owenob1 owenob1 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Renames the real-time events module for clarity, done now before anyone depends on 1.0.0.

Rename map

  • @mvrx/mail/hub@mvrx/mail/relay
  • UserHubUserRelay (the Durable Object class)
  • hubRouterrelayRouter, hubBusrelayBus
  • DO binding HUBRELAY; SSE route /hub/relay
  • Unchanged (not hub-named): publishEvent, MailEvent, NotificationBus

Verification

pnpm test 111/111 (real D1/R2/DO bindings) · pnpm -r typecheck + build clean · example worker typechecks against the rebuilt package · dist/relay/ emits, no dist/hub/.

Related

Paired with the AECS-SDK-1 spec rename (mvrxapp/aecs, §16) so the standard and the SDK stay in lockstep.

BREAKING CHANGE — but pre-adoption (1.0.0 shipped minutes ago).

Renames the real-time module for clarity, before 1.0.0 adoption:
- @mvrx/mail/hub → @mvrx/mail/relay
- UserHub → UserRelay (Durable Object class)
- hubRouter → relayRouter, hubBus → relayBus
- binding HUB → RELAY; SSE route /hub → /relay
publishEvent, MailEvent, and NotificationBus are unchanged (not
hub-named). 111 tests pass; typecheck + build + example typecheck clean.

BREAKING CHANGE: the @mvrx/mail/hub subpath and the UserHub/hubRouter/
hubBus exports are renamed to @mvrx/mail/relay and UserRelay/relayRouter/
relayBus.

Signed-off-by: owenob1 <me@oweninnes.com>
@owenob1
owenob1 merged commit b3cb9de into main Jul 6, 2026
2 checks passed
@owenob1
owenob1 deleted the refactor/rename-hub-to-relay branch July 6, 2026 17:16
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