Repository navigation
Preserve Alpine bindings without the coverage runtime - #8
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.
What changed
Instrumented Alpine property paths now retain their original expressions in the served template. The shared Cypress and Playwright runtime adds each counter before Alpine reads the marked binding. PHP-generated listeners, loop collections and radio model grouping retain their original behavior and source attribution.
The regression opens the same strict-CSP fixture with plain and instrumented templates in a stock Playwright context. On
main, the instrumented component never finished initialization. The fix passes initialization, model writes, clicks, loops and dynamic insertion. The measured browser tests also verify binding hits, including both radio models.Validation
npm ci,npm test(55 passed),npm run test:types,npm run test:playwright(15 passed), andnpm pack --dry-run.npm run test:browserwith the Mage-OS assets and Cypress 16.3.0 (19 passed). Both browser suites used Chrome for Testing 158.0.8127.36 and PHP 8.4.28../bin/runner node --test tests/hyva-csp-pdp.cjspassed headed and headless with zero uncaught errors. The collector preserved 440 covered PDP statements, including 97 Alpine bindings.This is the upstream replacement for the temporary patch in MageLens #104. Regenerate instrumented copies after upgrading to the published fix.