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
meta
field via theparseHTML
function, replacing the deprecatedparseHTMLMeta
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 themeta
property inparseHTML
return 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.11.3 - 18 June 25
- Coralite v0.11.2 - 15 June 25
- Coralite v0.11.1 - 5 June 25