Skip to content

@marko/runtime-tags@6.3.26

Latest

Choose a tag to compare

Patch Changes

  • #3635 7a4306b Thanks @DylanPiercey! - Stop an attribute tag whose attributes are a lone spread (<@item ...obj/>) from mutating the spread object itself, which added Symbol.iterator and an internal symbol to the caller's own data and threw on a frozen object.

  • #3637 fe76065 Thanks @DylanPiercey! - Stop a Class-API component rendered at both an inert and an updating call site from inheriting the first call site's "preserve" boundary mode, which left the updating one serialized as a component that never re-renders in the browser.

  • #3646 5e7e830 Thanks @DylanPiercey! - Fix a DOM compile of a template containing a <define> with body content whose tag variable is never referenced failing with Marko internal error: analysis marked this template's setup export as empty but translation produced statements for it.

  • #3626 9512e6d Thanks @DylanPiercey! - Run <lifecycle> onDestroy and abort in-flight $signal requests when a scope is destroyed outside a render, such as from a mounted template's destroy().

  • #3639 66c377d Thanks @DylanPiercey! - Report a compile error when an <import>/<export> line holds more than one statement. Every statement after the first was silently discarded, leaving the template referencing an undefined binding at render.

  • #3627 d69a01b Thanks @DylanPiercey! - Fix a TypeError: Cannot read properties of undefined (reading 'default') when compiling a template containing <attrs> or <effect> through marko/translator, whose taglib merge dropped the array-form migrate hooks those tags declare.

  • #3631 bbeb2b4 Thanks @DylanPiercey! - Detect <attrs> and <effect> as Tags-API markers, so a template whose only Marko 6 signal is one of them is no longer translated as Class API, where the tag is not defined.

  • #3641 cab904b Thanks @DylanPiercey! - Fix x ||= …, x &&= … and x ??= … on a tag variable crashing the DOM compile with an internal Babel error, and skip the assignment entirely when the operator short circuits.

  • #3647 75de395 Thanks @DylanPiercey! - Drop $global from the input a mounted template's update forwards, matching mount. A template that spreads its input previously threw Invalid attribute name: "$global" on update, since the branch's global is fixed at mount and the property was passed through as an ordinary one.

  • #3634 c55d6cf Thanks @DylanPiercey! - Fix a SyntaxError in the resume payload when a serialized generator returns one of its own ancestors, which emitted an assignment with no property to assign to and broke the whole page's resume.

  • #3603 7a20a61 Thanks @DylanPiercey! - Keep two-way bindings alive when a controllable is declared as a static attribute next to a spread, both at client-render mount and whenever the spread re-runs.

  • #3644 a6acdde Thanks @DylanPiercey! - Keep a <textarea> value's leading newline through an SSR render. The HTML parser discards one newline directly after the start tag, so the first line of the value was silently dropped on the server while the client kept it.

  • Updated dependencies [ded2fd5, 3e29e2c]:

    • @marko/compiler@5.41.10