Coralite v0.8.0
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.
- 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.
- 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.
npm install coralite@0.8.0
For detailed information on all changes, refer to the git v0.8.0 changelog
