Repository navigation
Keep Alpine listener coverage stable across morphs - #10
Merged
Merged
Conversation
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.
Preserve Alpine CSP coverage through morphdom rebinds. The collector deduplicates Alpine’s final attribute records after native cleanup. Each bound coverage getter follows the live template marker and original directive name. Static binding markers carry that name so a restore can reorder DOM attributes. The served directive expression remains unchanged.
On
v2.1.3, one batched click incremented twice, a restored conditional directive incremented once and recorded zero hits, and a marker-only template swap credited template A. The 2.1.4 candidate increments once in all three cases and credits the exact current statement. The stock-context tests also pass. Eight repeated same-response morphs produce no additional attribute mutations.Local validation passed 55 unit tests, 21 Playwright checks, 19 Cypress checks, TypeScript and
npm pack --dry-run. The local MageLens clean Hyvä Playwright run with the packed candidate is underway.Consumer tracking is in MageLens #104. The 2.1.4 package version is prepared for maintainer review.