Repository navigation
fix(events): restore stable public impl field on impl:created/impl:changed (#433) - #434
Merged
Merged
Conversation
…impl`, drop the internal wrapper handle (#433) #398 correctly removed the raw unwrapped impl from the public tier, but between 3.16.2 and 3.17.0 the wrapped callable was reachable only via the reserved internal wrapper.__impl handle — a public subscriber reading the pre-3.17 `e.impl` field silently got undefined (breaking @cldmv/rummage's ext-host and view composer). Expose the wrapped callable on a stable public `impl` field on both public re-emits, and DROP `wrapper` from the public event entirely: it was redundant with `impl` and re-exposed an internal name (the coupling #433 removes). The INTERNAL event still carries `wrapper` + `__wrapperRef` for ownership / metadata / routine subscribers (they read it via subscribeInternal), so onImplCreated and the payload-hardening are unchanged. `impl` is the same wrapped callable, never the raw impl and never __wrapperRef; null before a lazy wrapper materializes. Removing the public wrapper eliminates the metadata-security "wrapper leakage" attack surface at the source (nothing to harden — the reworked tests now assert the public event exposes only the documented safe fields).
Shinrai
force-pushed
the
fix/impl-event-callable
branch
from
September 20, 2026 23:55
8972d31 to
33747cf
Compare
Shinrai
approved these changes
Sep 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 What's Changed
💥 Breaking Changes
No breaking changes
✨ Features
No new features
🐛 Bug Fixes
impl, drop the internal wrapper handle (Publicimpl:created/impl:changedevent dropped its stable callable field — value relocated into internalwrapper.__impl(3.16→3.17 payload regression) #433) (33747cf)📦 Dependencies
No dependency updates
🔧 Other Changes
No other changes
👥 Contributors