Release

Coralite v0.4.0

Coralite HTML module v0.4.0 release: Template-driven rendering, E2E tests, and updated CLI options. Explore the latest features!

TD
Thomas David January 27, 2025

Coralite’s latest release, **v0.4.0**, introduces foundational updates to its HTML module static site generator, with a focus on improving template handling and End-to-End (E2E) testing infrastructure. This update includes a breaking change that renames the -c/--components option to -t/--templates, reflecting a shift in architecture toward explicit template management.

Key Changes

  • BREAKING CHANGE: The -c/--components command-line option has been deprecated in favor of -t/--templates, aligning with a new emphasis on template-driven rendering. Documentation and type definitions have been updated accordingly.
  • Moved component-related files to the templates directory, improving organisational clarity for project structures.
  • Updated evalComputedTokens function to ensure compatibility with modern Node.js versions through revised Dirent handling in package.json parsing.
  • Enhanced TypeScript definitions by adding the CoraliteComment type and updating CoralTypePath for better template-specific metadata extraction.

Infrastructure Improvements

  • Integrated Playwright for E2E testing, including a dedicated debug webserver and updated CI/CD pipelines to run tests across one browser per branch event.
  • Added E2E test coverage for index.html, ensuring core rendering logic is validated during development and deployment workflows.
  • Refactored CI configurations, including the addition of --experimental-vm-modules to the HTML script for broader compatibility.

Get the release

bash
Code copied!
  npm install coralite@0.4.0

For detailed information on all changes, refer to the git v0.4.0 changelog

TD

Thomas David

Creator of Coralite. Writing about the intersection of native web APIs, compiler design, and AI-assisted development.