Coralite v0.16.0
Coralite v0.16.0 introduces foundational support for managing DOM references, improves scripting workflows, and enhances tooling for project setup and publishing. This release strengthens the framework’s usability for developers building interactive, component-driven applications.
Key Improvements #
refsplugin now exports core functionality for referencing DOM elements directly in components.- Script handling in
defineComponentnow supports callbacks, enabling lifecycle-aware logic execution. - DOM references are collected and managed automatically, with cleanup on unmount to prevent memory leaks.
- Script execution now includes built-in support for reference management, improving consistency across component lifecycles.
- A dedicated
refsplugin for Coralite provides a clean API for accessing DOM elements viaref="id"attributes. - Initial setup script
create-coraliteis now available, streamlining project initialization. - Added
publish-scriptscommand tocoralite-scriptsfor automated publishing workflows.
Bug Fixes #
- Fixed SCSS watch trigger condition to ensure proper recompilation on file changes.
- Updated dependency versions in
package.jsonto ensure compatibility and security.
Documentation & Tooling #
Documentation has been expanded to support new users and contributors:
- Added
README.mdwith setup and usage guidance. - Updated image paths for the introductory GIF in documentation.
- Enhanced type definitions for document values, including support for a
removeflag in DOM operations. - Added detailed READMEs for
create-coraliteandcoralite-releasepackages. - Updated changelog to reflect all changes in this release.
Code Quality & Refactoring #
- Cleaned up internal ref attribute handling to improve consistency and reduce edge-case issues.
How to Upgrade #
To upgrade to Coralite v0.16.0, run:
npm install coralite@0.16.0
After installation, verify your project’s dependencies and review the updated documentation for any changes in API usage, especially around refs and script execution.
For full details, view the full changelog.
