Releases: Ripple-TS/ripple
ripple@0.2.216
Patch Changes
-
#757
9fb507d
Thanks @leonidaz! - fixes compiler error that was
generating async functions for call expressions inside if conditions when inside
async context -
#751
e1de4bb
Thanks @copilot-swe-agent! - Fix
HMR "zoom" issue when a Ripple file is changed in the dev server.When a layout component contained children with nested
if/forblocks,
hydration would leavehydrate_nodepointing deep inside the layout's root
element (e.g. a HYDRATION_END comment inside<main>). Theappend()
function'sparentNode === domcheck only handled direct children, so it missed
grandchild/deeper positions and incorrectly updated the branch block'ss.end
to that deep internal node.This caused two problems on HMR re-render:
remove_block_dom(s.start, s.end)removed wrong elements (the deep node was
treated as a sibling boundary, causing removal of unrelated content including
the root HYDRATION_END comment).target = hydrate_node(set after the initial render) becamenullor
pointed outside the component's region, so new content was inserted at the
wrong DOM location — producing a layout that appeared "zoomed" because it
rendered outside its CSS container context.
The fix changes the
parentNode === domcheck todom.contains(hydrate_node),
consistent with theanchor === dombranch that already useddom.contains().
This correctly resetshydrate_nodetodom's sibling level regardless of how
deeply nested it was insidedom. -
#764
95ea864
Thanks @leonidaz! - Fixes syntax color
highlighting forpending -
Updated dependencies
[9fb507d,
e1de4bb,
95ea864]:- ripple@0.2.216
create-ripple@0.2.216
Patch Changes
- Updated dependencies []:
- @ripple-ts/cli@0.2.216
@ripple-ts/vite-plugin@0.2.216
Patch Changes
- Updated dependencies []:
- @ripple-ts/adapter@0.2.216
@ripple-ts/typescript-plugin@0.2.216
@ripple-ts/rollup-plugin@0.2.216
@ripple-ts/rollup-plugin@0.2.216
@ripple-ts/prettier-plugin@0.2.216
@ripple-ts/prettier-plugin@0.2.216
@ripple-ts/language-server@0.2.216
@ripple-ts/eslint-plugin@0.2.216
Patch Changes
- Updated dependencies []:
- @ripple-ts/eslint-parser@0.2.216
@ripple-ts/eslint-parser@0.2.216
@ripple-ts/eslint-parser@0.2.216