Coralite v0.4.1
Explore Coralite v0.4.1 updates including improved TypeScript definitions, parsing logic refinements, and build tool optimizations for enhanced static site generation.
Coralite’s latest release of its HTML module static site generator introduces critical refactoring and type improvements, with a focus on refining internal parsing logic and enhancing developer tooling for consistency.
Core Functionality
- Updated
.npmignorepatterns to exclude unnecessary files from package distributions, improving deployment efficiency. - Enhanced type definitions by introducing
CoraliteModuleValues, ensuring precise typing for module value tokens and aligning function parameters with new type structures. - Refactored parsing logic to handle string values in attribute and text replacements more reliably, avoiding edge-case failures during template rendering.
- Reorganized code structure by moving parse stack management into internal functions, improving maintainability and reducing external dependencies.
- Improved comment handling using the spread operator for cleaner syntax and better compatibility with modern JS environments.
- Resolved an issue where text node creation inadvertently omitted original content, ensuring full fidelity in DOM rendering.
- Fixed a bug related to custom element replacement logic, addressing inconsistencies during module compilation.
Get the release
npm install coralite@0.4.1
For detailed information on all changes, refer to the git v0.4.1 changelog