@marko/runtime-tags@6.1.20
·
3 commits
to main
since this release
Patch Changes
-
#3298
c199491Thanks @DylanPiercey! - Run a lazily-loaded branch's setup effects only after it is connected. When a lazy tag loads with pending input values its insertion is deferred until those values resolve, but its setup -- and the effects it queues, such as<script>content and event-attach effects -- previously ran before the branch's nodes were inserted. Setup now runs in that same deferred render, so its effects run only once the branch is connected, whether or not a<try>ancestor is present. -
#3300
4f8f805Thanks @DylanPiercey! - Fix a batch of runtime and translator bugs:- Sibling dynamic attribute tags first discovered within a single control-flow branch now share a group, so the DOM output no longer assigns to an undeclared variable (ReferenceError) and correctly delivers each tag's reactive value.
- Multi-segment
<style.module.css>shorthand extensions now compile instead of being rejected as unsupported html attributes. - Optimized builds no longer emit the dev-only
_assert_initwrapper for derived own-variable reads (the guard read a stale config value instead of the activeoptimizeoption). - Known attribute lookups no longer resolve
Object.prototypemembers for attribute names likeconstructorortoString. $signaldeduplication is keyed correctly for the first expression in a section, avoiding a duplicate abort controller and reset.- A serialized
RegExpwhose source contains<is now escaped so it cannot break out of the inline resume<script>. - An
Errorserialized with an explicitly falsycause(0,"",false,null) now preserves the cause on resume instead of dropping it. - An uncontrolled
<select>no longer force-selects an empty/falsy-value<option>. - A controlled-checked
<input>(e.g. a radio button) no longer drops its staticvalueattribute; the controlled-attribute skip is now scoped per branch consistently in both the server and client runtimes. - Rendering a Marko 5 class component as tags with
nullinput no longer throws.