Coralite v0.36.1 Released
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
_setupBindingsmethod inCoraliteElementto respect the specifictypeproperty defined in the hydration map. - Preserve element attributes: Replaces the experimental and deprecated
setHTMLmethod withsetHTMLUnsafe(with a fallback toinnerHTML) 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:
npm install coralite@0.36.1
npm install coralite-scripts@0.36.1
