Coralite v0.10.0
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
metafield via theparseHTMLfunction, replacing the deprecatedparseHTMLMetautility (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
idproperty 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
parseHTMLMetafunction has been removed; use themetaproperty inparseHTMLreturn values instead (BREAKING CHANGE). - Updated plugin parameter types from
CoralitePlugin[]toCoralitePluginInstance[]; 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 #
npm install coralite@0.10.0
For detailed information on all changes, refer to the git v0.10.0 changelog
Related posts
- Coralite v0.18.7 Release Notes - 18 Oct 25
- Coralite v0.18.6 Release Notes - 24 Sept 25
- Coralite v0.18.5 Release Notes - 18 Sept 25
