Skip to content

feat(plugin): select event subscriptions - #42830

Open
thdxr wants to merge 2 commits into
v2from
plugin-event-type
Open

feat(plugin): select event subscriptions#42830
thdxr wants to merge 2 commits into
v2from
plugin-event-type

Conversation

@thdxr

@thdxr thdxr commented Aug 15, 2026

Copy link
Copy Markdown
Member

Summary

  • add plugin-only ctx.event.subscribe(type) selection alongside the existing wildcard form
  • resolve selected public event types through EventManifest.Server and use the Bus single-definition subscription path
  • forward selections through the Promise adapter and migrate single-event built-in plugins
  • exclude the network-only server.connected marker and reject arrays and unknown runtime event types

This does not change network client subscriptions, the HTTP/Protocol event endpoint, generated SDKs, EventFeed, Bus routing machinery, or existing Location behavior.

Testing

  • bun test && bun typecheck in packages/plugin
  • bun test test/plugin.test.ts test/plugin/promise.test.ts in packages/core
  • bun typecheck, bun validate, and bun run build in packages/www
  • Prettier check and git diff --check

The full repository/core typecheck is currently blocked on unchanged origin/v2 by environment-wide DOM type errors where Headers, Request, and Response members are missing; the pre-push hook was bypassed after the focused checks above passed.

@thdxr
thdxr enabled auto-merge (squash) August 15, 2026 22:57
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