Skip to content

marko@6.5.0

Latest

Choose a tag to compare

@github-actions github-actions released this 18 Nov 14:33
· 7 commits to main since this release

Minor Changes

  • #4732 e06cace Thanks @DylanPiercey! - Add the Marko.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 6ef72e0 Thanks @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 e3b829c Thanks @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 6b8d09a Thanks @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 a tags/ directory).

  • #4712 7b8c967 Thanks @DylanPiercey! - Compile faster by looking for a child <return> a render waits for only in sections with a tag variable that holds one.

  • #4711 4559697 Thanks @DylanPiercey! - Run the effects and event handlers of a <try> that finishes loading while an enclosing <try> is still pending, which were dropped.

  • #4704 ae6e5c0 Thanks @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 e5031a6 Thanks @DylanPiercey! - $global.cspNonce now always reaches the client $global, so a <script> or <style> rendered in the browser gets the nonce without listing it in serializedGlobals.

  • #4716 bbd8075 Thanks @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 33d16eb Thanks @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 d0a4eba Thanks @DylanPiercey! - Keep the html runtime's generator patch out of the translator, so loading the compiler no longer replaces next on every generator in the build process.

  • #4707 9b3c45e Thanks @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 1382bad Thanks @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 showed NaN when rendered in the browser.

  • Updated dependencies [bbd8075, 732f283, 942b5e6]:

    • @marko/compiler@5.43.5