Skip to content

chore: release packages - #65

Merged
yashschandra merged 1 commit into
mainfrom
changeset-release/main
Aug 5, 2026
Merged

yashschandra merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@ciolabs/framecast@0.3.0

Minor Changes

  • #64 3e68e91 Thanks @yashschandra! - Fix window message listener leak and add destroy() method. The constructor previously passed a fresh this.handlePostedMessage.bind(this) to both removeEventListener and addEventListener, so the removal never matched and every Framecast instance leaked its listener for the life of the page. A single bound handler is now kept on the instance, and the new destroy() method removes the listener, rejects pending call()s with a "Framecast destroyed" error (clearing their timeouts), clears broadcast listeners, discards queued broadcasts, and nulls the target window so a detached iframe can be garbage collected. After destroy(), postMessage becomes a no-op instead of posting to a stale window.

@yashschandra
yashschandra merged commit c90ac7d into main Aug 5, 2026
4 checks passed
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