Release

Coralite v0.8.0

Coralite v0.8.0 introduces robust pagination, enhanced metadata handling, and improved HTML parsing for static site generation. Upgrade now with breaking change notes.

TD
Thomas David May 11, 2025

Coralite’s v0.8.0 release introduces robust pagination support, improved HTML parsing, and metadata enhancements while addressing critical type handling and breaking changes to ensure compatibility with modern workflows.

Core Functionality

  • Introduced full pagination system with dynamic attribute generation, document handling, and template rendering based on configuration (BREAKING CHANGE: replaces previous sort function logic).
  • Enhanced metadata processing to support filtering via options.filter and updated token prefix from ‘meta_’ to ’$' (BREAKING CHANGE: requires configuration updates for existing metadata tokens).
  • Integrated htmlparser2 and dom-serializer for improved HTML parsing reliability and consistency in document rendering.
  • Refactored aggregation logic with Aggregation typedef, structured data collection, and enhanced type safety through CoraliteFilePath and HTMLData interfaces.

Breaking Changes

  • Metadata Token Prefix: All references to metadata tokens must now use the ’$' prefix instead of ‘meta_’.
  • Function Parameter Removal: The ‘html’ parameter has been removed from parseModule’s interface (BREAKING CHANGE: update dependent code accordingly).
  • Return Type Change: createComponent now returns a CoraliteComponent object instead of a raw CoraliteElement. Access the element property on the returned object.

Get the release

bash
Code copied!
  npm install coralite@0.8.0

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

TD

Thomas David

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