Skip to content

feat: introduce system domains for event ID routing#5

Merged
lete114 merged 1 commit into
mainfrom
feat/system-domains
May 24, 2026
Merged

feat: introduce system domains for event ID routing#5
lete114 merged 1 commit into
mainfrom
feat/system-domains

Conversation

@lete114

@lete114 lete114 commented May 24, 2026

Copy link
Copy Markdown
Member
  • Add SYSTEM_DOMAINS constant object (PREFIX, USER, RESPONSE)
  • Add EVENTS constant object (INVOKE_RESPONSE)
  • Change event ID from ipc:: to ipc::: with domain fixed at position 1 to prevent namespace injection
  • Transport.send/onReceive now use (systemDomain, route) parameters
  • #handleReceive dispatches by system domain: RESPONSE -> emit to matching invoke Promise by route (= invoke id) USER -> parse Packet, route to on/handle handlers
  • Remove fixed @response channel, response routing via domain isolation
  • Clean up old constants (CHANNELS, RESPONSE_ENDPOINT, IPC_NAMESPACE, RESPONSE_EVENT_PREFIX)
  • Update tests and snapshots

- Add SYSTEM_DOMAINS constant object (PREFIX, USER, RESPONSE)
- Add EVENTS constant object (INVOKE_RESPONSE)
- Change event ID from ipc:<ns>:<ch> to ipc:<domain>:<ns>:<route>
  with domain fixed at position 1 to prevent namespace injection
- Transport.send/onReceive now use (systemDomain, route) parameters
- #handleReceive dispatches by system domain:
  RESPONSE -> emit to matching invoke Promise by route (= invoke id)
  USER -> parse Packet, route to on/handle handlers
- Remove fixed @response channel, response routing via domain isolation
- Clean up old constants (CHANNELS, RESPONSE_ENDPOINT, IPC_NAMESPACE,
  RESPONSE_EVENT_PREFIX)
- Update tests and snapshots
@lete114 lete114 merged commit e984b54 into main May 24, 2026
4 checks passed
@lete114 lete114 deleted the feat/system-domains branch May 24, 2026 04:37
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