Release

Coralite v0.36.1 Released

Coralite v0.36.1 resolves a critical issue in the client-side hydration runtime, ensuring HTML content bindings are correctly respected and attributes are preserved.

TD
Thomas David May 27, 2026

Coralite v0.36.1 is now available. This release addresses a bug in the client-side runtime that affected how HTML content and element attributes were handled during hydration.

HTML Hydration and Attribute Preservation

Prior to this release, the client-side runtime hardcoded text node bindings to the text type. This caused HTML content, such as aggregated blog pagination, to be escaped and rendered as plain text during client-side hydration.

This update introduces two key changes to improve hydration accuracy:

  • Respect hydration map binding type: Updates the _setupBindings method in CoraliteElement to respect the specific type property defined in the hydration map.
  • Preserve element attributes: Replaces the experimental and deprecated setHTML method with setHTMLUnsafe (with a fallback to innerHTML) to ensure content and attributes are preserved without sanitization side-effects during hydration.

How to Upgrade

To upgrade to the latest version, update your project dependencies:

bash
Code copied!
  npm install coralite@0.36.1
bash
Code copied!
  npm install coralite-scripts@0.36.1
TD

Thomas David

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