Release

Coralite v0.16.0

Coralite v0.16.0 adds robust DOM reference management, callback support in component scripts, and new CLI tools for project setup and publishing. Explore key updates, bug fixes.

TD
Thomas David September 8, 2025

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

  • refs plugin now exports core functionality for referencing DOM elements directly in components.
  • Script handling in defineComponent now 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 refs plugin for Coralite provides a clean API for accessing DOM elements via ref="id" attributes.
  • Initial setup script create-coralite is now available, streamlining project initialization.
  • Added publish-scripts command to coralite-scripts for automated publishing workflows.

Bug Fixes

  • Fixed SCSS watch trigger condition to ensure proper recompilation on file changes.
  • Updated dependency versions in package.json to ensure compatibility and security.

Documentation & Tooling

Documentation has been expanded to support new users and contributors:

  • Added README.md with setup and usage guidance.
  • Updated image paths for the introductory GIF in documentation.
  • Enhanced type definitions for document values, including support for a remove flag in DOM operations.
  • Added detailed READMEs for create-coralite and coralite-release packages.
  • 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:

bash
Code copied!
  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.

TD

Thomas David

Creator of Coralite. Writing about the intersection of native web APIs, compiler design, and AI-assisted development.