1.3 KiB
1.3 KiB
Tasks — events v1.1.0 port
Core (@suaveplan/events)
- Add
bufferSizeoption toEventBusOptions— replay buffered events to late subscribers - Add
wildcardoption toEventBusOptions— pattern matching on event names - Add
iter(type, signal?)— async iteration over events - Add
prepend(type, listener)— prepend listener to dispatch queue - Add
listeners(type)— return copy of exact-match listeners - Add
listenerCount(type)— return exact-match listener count - Add
offAll(type?)— remove all listeners for a type or everything - Fix
once()→off()round-trip via WeakMap tracking - Add
concurrencyoption toEmitAsyncOptions(sequential/parallel/allSettled) - Add
maxListeners+errorSinktoEventBusOptions - Add
EVENTS.LISTENER.MAX_EXCEEDEDerror code - Implement
Symbol.disposeonEventBusandUnsubscribe - Update
event-bus.mddocumentation - Add tests for all new capabilities
- Type-check and test downstream dependents
- Update
openspec/specs/events/spec.md
Acceptance
- 100% test coverage maintained on
@suaveplan/events - All downstream packages that import
@suaveplan/eventscompile and test green - No breaking changes to existing public API