diff --git a/.changeset/empty-text-resume.md b/.changeset/empty-text-resume.md deleted file mode 100644 index 99b7e25f24c..00000000000 --- a/.changeset/empty-text-resume.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@marko/runtime-tags": patch ---- - -Fix resume claiming the wrong DOM node for a placeholder that renders empty on the server (eg `
${value}` where `value` starts empty and is assigned later). Placeholders now serialize a single `_text_resume`/`_html_resume` call which writes an `EmptyText` resume marker when the rendered text is empty, letting resume create the text node instead of guessing a neighbor. - -Fix resume of an unescaped placeholder (`$!{value}`) whose markup parses to multiple top-level nodes: the server now brackets the markup with range markers so resume reconstructs the full range (including its last-child accessor), instead of claiming only the final node and orphaning the rest on the first client update. - -This also removes the `` separator comments previously written for empty positions and shrinks both the SSR output and the client resume runtime. diff --git a/.changeset/show-if-attr-error.md b/.changeset/show-if-attr-error.md deleted file mode 100644 index f09421dc16e..00000000000 --- a/.changeset/show-if-attr-error.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@marko/runtime-tags": patch ---- - -Improve the `` missing-`value=` error when the condition was written as another attribute: `` now suggests `` and points the code frame at the offending attribute. diff --git a/packages/runtime-tags/CHANGELOG.md b/packages/runtime-tags/CHANGELOG.md index d8aa21049a1..1128881487c 100644 --- a/packages/runtime-tags/CHANGELOG.md +++ b/packages/runtime-tags/CHANGELOG.md @@ -1,5 +1,17 @@ # @marko/runtime-tags +## 6.3.47 + +### Patch Changes + +- [#4071](https://github.com/marko-js/marko/pull/4071) [`1080f81`](https://github.com/marko-js/marko/commit/1080f81799b576c04abb252979a9dd4935981d5b) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Fix resume claiming the wrong DOM node for a placeholder that renders empty on the server (eg `
${value}` where `value` starts empty and is assigned later). Placeholders now serialize a single `_text_resume`/`_html_resume` call which writes an `EmptyText` resume marker when the rendered text is empty, letting resume create the text node instead of guessing a neighbor. + + Fix resume of an unescaped placeholder (`$!{value}`) whose markup parses to multiple top-level nodes: the server now brackets the markup with range markers so resume reconstructs the full range (including its last-child accessor), instead of claiming only the final node and orphaning the rest on the first client update. + + This also removes the `` separator comments previously written for empty positions and shrinks both the SSR output and the client resume runtime. + +- [#4068](https://github.com/marko-js/marko/pull/4068) [`a0d1bc1`](https://github.com/marko-js/marko/commit/a0d1bc1e215b14e30a91e1381e3b75333b0f2849) Thanks [@LuLaValva](https://github.com/LuLaValva)! - Improve the `` missing-`value=` error when the condition was written as another attribute: `` now suggests `` and points the code frame at the offending attribute. + ## 6.3.46 ### Patch Changes diff --git a/packages/runtime-tags/package.json b/packages/runtime-tags/package.json index 4bf13277865..d6164c6d3f7 100644 --- a/packages/runtime-tags/package.json +++ b/packages/runtime-tags/package.json @@ -1,6 +1,6 @@ { "name": "@marko/runtime-tags", - "version": "6.3.46", + "version": "6.3.47", "description": "Optimized runtime for Marko templates.", "keywords": [ "api",