Skip to content

Releases

Magento template coverage v2.0.0

Choose a tag to compare

@VitaliyBoyko VitaliyBoyko released this 09 Nov 07:48
bd6ed85
  • Update parse5 to 8.1.1 to fix malformed-HTML crashes, excessive parsing time and incorrect foreign-content tree construction used during template analysis.
  • Require Node.js ^20.19.0 or >=22.12.0 for synchronous loading of the ESM-only parser; CommonJS package exports remain available.
  • Recreate manifests and instrumented copies, then regenerate coverage reports after upgrading.

Magento template coverage v1.5.5

Choose a tag to compare

@VitaliyBoyko VitaliyBoyko released this 07 Nov 13:01
bee7859
  • Update Acorn to 8.19.0 for Unicode 17/18 identifiers and expression-validation fixes in Alpine, Knockout and template parsing, preserving Node.js 18.3 compatibility.

Magento template coverage v1.5.4

Choose a tag to compare

@VitaliyBoyko VitaliyBoyko released this 06 Nov 09:43
9e54ef1
  • Verify Playwright 1.65 compatibility with Chrome for Testing 156.0.8078.80, including inert controls, rendered accessible names and authenticated CSP fixtures with path-scoped cookies.

Template coverage 1.5.3

Choose a tag to compare

@VitaliyBoyko VitaliyBoyko released this 29 Oct 07:28
  • Verify Node.js 26 compatibility alongside Node.js 24 for template analysis, Playwright integration and TypeScript declarations.

Template coverage 1.5.2

Choose a tag to compare

@VitaliyBoyko VitaliyBoyko released this 27 Oct 15:27
  • Keep unsupported-binding warnings on their original PHTML lines after multiline PHP-generated Alpine event names.

Template coverage 1.5.1

Choose a tag to compare

@VitaliyBoyko VitaliyBoyko released this 27 Oct 13:44
  • Measure Alpine listeners with PHP-generated event names, including Hyvä gallery and price updates, at their original PHTML locations.
  • Preserve modifier-only listeners such as @submit.prevent without warnings or invented expression coverage.
  • Keep other Alpine bindings working when PHP omits a conditional listener.
  • Recreate manifests, instrumented copies and raw records when upgrading: version 1.5.1 uses new template identities.

Magento Template Coverage v1.5.0

Choose a tag to compare

@VitaliyBoyko VitaliyBoyko released this 18 Oct 09:30
  • Support Hyvä CSP Alpine bindings without dynamic code generation, preserving event arguments, model writes, loop locals and inserted templates.
  • Collect DOM observations under strict CSP without requiring unsafe-eval, while retaining Magento Admin’s Prototype DOM extensions.
  • Measure PHP-selected lexical declarations in inline scripts, including the Hyvä CSP date-option template.
  • Keep auxiliary Playwright login contexts functional without adding their setup activity to measured records.
  • Provide installTemplateRuntime for Playwright warm-up contexts that serve instrumented templates without recording coverage.

Recreate manifests, instrumented copies and raw records when upgrading: version 1.5 uses new template identities.

Magento Template Coverage v1.4.0

Choose a tag to compare

@VitaliyBoyko VitaliyBoyko released this 18 Oct 08:30
  • Link PHP-rendered JavaScript fragments to instrumented child templates in HTML and JSON reports.
  • Distinguish empty output, linked child sources, unresolved generated code and output not observed during the run.
  • Keep execution counters at the child source; rendering a fragment does not cover its functions or branches.
  • Collect source references through Cypress and Playwright across navigation, without adding template entries to JavaScript coverage.

Recreate manifests, disposable copies, static assets and raw records when upgrading. Version 1.4 changes template identities; JSON remains schema 2.

Magento Template Coverage v1.3.0

Choose a tag to compare

@VitaliyBoyko VitaliyBoyko released this 18 Oct 07:34
  • Include inline classic/module scripts in HTML/PHTML template coverage, with statement, function and branch counters mapped to the original template.
  • Collect script execution through the existing Cypress and Playwright adapters, including inserted fragments and consumed native templates, without adding template entries to JavaScript coverage.
  • Include static PHTML browser markup in DOM coverage and detect Knockout, legacy engines and Alpine bindings in PHTML.
  • Preserve PHP code and line positions; show unsupported scripts and PHP-generated fragments as explicit coverage gaps.
  • Keep inline scripts and JavaScript template literals in Alpine attributes from affecting template-engine detection and retain zero counters for unused templates and handlers.

Recreate manifests, disposable copies, static assets and raw records when upgrading. Version 1.3 changes template identities and adds script/function/branch details to schema 2 reports.

Install with npm install --save-dev --save-exact @vitaliiboiko/magento-template-coverage@1.3.0.

Magento Template Coverage v1.2.0

Choose a tag to compare

@VitaliyBoyko VitaliyBoyko released this 17 Oct 12:38

Adds Playwright collection and regular Hyvä/Alpine 3 template coverage while preserving Cypress and Luma/Knockout compatibility.

  • Playwright context collector, composable fixtures, TypeScript declarations, and elgentos integration examples.
  • Alpine directive execution in HTML and PHTML with original PHP source lines preserved.
  • Coverage across navigation, frames, page closure, two-way model updates, and untouched branches.
  • Fix for global Knockout builds that populate exports after publishing their object.

Validation: 32 unit tests, TypeScript checks, five Playwright tests each in Chromium and Firefox, and four isolated MageLens Magento installations covering Luma/Hyvä × Cypress/Playwright. All installations generated verified PHP, JavaScript, and template reports.

Upgrade: regenerate manifests and raw records for Alpine sources. The restricted Alpine CSP evaluator, inline PHTML JavaScript bodies, and Hyvä Checkout are outside this release’s coverage scope.

Install: npm install --save-dev @vitaliiboiko/magento-template-coverage@1.2.0

Full changelog