Minor Changes
- #4732
e06caceThanks @DylanPiercey! - Add theMarko.TemplateOf<Signature>type: a template typed by its signature as a tag, such as a generic template's<T>(input: Input<T>) => Return<T>, so that a declaration can state a generic template's type with Marko's public types alone.
Patch Changes
-
#4708
6ef72e0Thanks @DylanPiercey! - A recursive<define>whose recursive call passes a param back (depth=depth - 1) now writes server data for that param only where its outer calls do, instead of guarding it at runtime in every render. -
#4710
e3b829cThanks @DylanPiercey! - Compile a recursive tag whose values branch and rejoin before it passes them back to itself in time linear in its size, instead of doubling with every branch. -
#4715
6b8d09aThanks @DylanPiercey! - The deprecated<attrs>and<effect>tags no longer make an interop template Tags API: a template whose only Tags API sign was one of them is now Class API, which has neither tag (mark it<!-- use tags -->or move it into atags/directory). -
#4712
7b8c967Thanks @DylanPiercey! - Compile faster by looking for a child<return>a render waits for only in sections with a tag variable that holds one. -
#4711
4559697Thanks @DylanPiercey! - Run the effects and event handlers of a<try>that finishes loading while an enclosing<try>is still pending, which were dropped. -
#4704
ae6e5c0Thanks @DylanPiercey! - Fix a<for>key read through a<const>rendering empty when content in a resumed row, such as an<if>toggled by state outside the loop, is shown again. -
#4727
e5031a6Thanks @DylanPiercey! -$global.cspNoncenow always reaches the client$global, so a<script>or<style>rendered in the browser gets the nonce without listing it inserializedGlobals. -
#4716
bbd8075Thanks @DylanPiercey! - A page entry walks the templates each template's analysis loaded rather than loading each again through the entry, so a compile whose analyses are cached reads none of them from disk, and a Marko 5 project's page entry imports a root that several templates reach once. -
#4729
33d16ebThanks @DylanPiercey! - Server output inlines a write guard read only once instead of declaring it, since the section's marker guard is now built only where it is used. -
#4718
d0a4ebaThanks @DylanPiercey! - Keep the html runtime's generator patch out of the translator, so loading the compiler no longer replacesnexton every generator in the build process. -
#4707
9b3c45eThanks @DylanPiercey! - Server output for a<define>no longer keeps a write guard group that nothing writes, which shifted the index of every later guard. -
#4705
1382badThanks @DylanPiercey! - Fix a value that reads a property of something computed from a tag variable (<child/r/>,<const/o={ ...r }/>, then${o.a + other}) rendering before the tag's<return>updates, which left stale text after an update and showedNaNwhen rendered in the browser. -
Updated dependencies [
bbd8075,732f283,942b5e6]:- @marko/compiler@5.43.5