npm / @solid-primitives/event-listener
@solid-primitives/event-listener
What changed in @solid-primitives/event-listener 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
2 breaking1 behavior and defaults1 tooling2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@solid-primitives/event-listener 35 changes
Breaking changes 2
Without an owner, makeEventListenerStack no longer registers cleanup or emits a dev-only NO_OWNER_CLEANUP diagnostic; unowned callers must call clear() to avoid leaks.
Solid.js 2.0 beta.14 or later is now required as a peer dependency.
Behavior and default changes 1
Called with props alone, eventListener now returns a ref callback for use with Solid 2's ref shape; the two-argument form still works.
Tooling 1
The build emits explicit named exports through barrels so Rolldown can resolve named imports reliably.
Fixes and other changes 1
Hydration IDs are now balanced for createEventListener.
@solid-primitives/event-listener 21 changes
Fixes and other changes 1
Named imports now resolve under Rolldown because dist output includes explicit exports for runtime exports reachable through star re-exports.