Release

Coralite v0.10.0

Coralite v0.10.0 introduces major updates to its HTML module static site generator, including enhanced metadata extraction, context-aware component scoping, plugin template support, and refined type system improvements.

TD
Thomas David May 30, 2025

Coralite v0.10.0 introduces foundational improvements for building and rendering static websites, with a focus on component-based architecture, metadata extraction, and type system refinements.

Core Functionality

  • Introduced support for templates within plugins (feat: add support for templates in plugins) to enable dynamic content generation during site rendering.
  • Added metadata extraction from HTML into a dedicated meta field via the parseHTML function, replacing the deprecated parseHTMLMeta utility (BREAKING CHANGE).
  • Implemented context-aware scoping for component values using unique context IDs derived from path, element name, and position to isolate value management and improve modularity (feat: introduce context ID for scoped component value management) (BREAKING CHANGE).

Key Improvements

  • Refactored type definitions to include an id property in the value context type and standardised plugin and types directory configurations (types: add id property, types configuration for plugins).
  • Enhanced file handling by validating template paths at runtime and preventing mutations of original pages lists during processing.
  • Improved tracking of custom elements during file updates to avoid duplicates and ensure accurate removal of outdated references.

Breaking Changes

  • The parseHTMLMeta function has been removed; use the meta property in parseHTML return values instead (BREAKING CHANGE).
  • Updated plugin parameter types from CoralitePlugin[] to CoralitePluginInstance[]; existing code using the legacy type must be adjusted (BREAKING CHANGE).
  • Component value overrides may require modification when using nested components due to context-aware scoping refactoring (BREAKING CHANGE).

Get the release

bash
Code copied!
  npm install coralite@0.10.0

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

TD

Thomas David

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