github marko-js/marko @marko/compiler@5.42.0

5 hours ago

Minor Changes

  • #3925 011ce07 Thanks @DylanPiercey! - Support an async keyword before shorthand methods, eg <button async onClick() { await save() }> and the default attribute form <my-tag async (event) { ... }>. A shorthand method can no longer be named async.

Patch Changes

  • #3877 4adcb25 Thanks @DylanPiercey! - Bound a failed attribute value parse to the attribute value instead of the rest of the file.

  • #3878 e03de1a Thanks @DylanPiercey! - Keep preserving whitespace after a nested preserve-whitespace tag (eg a <textarea> inside <pre>) closes.

  • #3913 f0650fe Thanks @DylanPiercey! - Stop the source printer reindenting the body of a whitespace-preserving tag (pre, script, style, textarea), which rewrote user content on every output: "source" / markoc --migrate pass.

  • #3881 ab2d7c9 Thanks @DylanPiercey! - Keep the @-half's attribute props (type, required, default-value, autocomplete) when an "@x <x>" taglib shorthand also declares a nested tag, and accept the dashed target-property spelling there.

  • #3879 710d920 Thanks @DylanPiercey! - Detect "template within a tags directory" from the taglib finder's discovered directories, so a package itself named tags can still contain Class API templates.

  • #3876 3c2b628 Thanks @DylanPiercey! - Fix a trimmed text node's end position overshooting by the amount of trimmed leading whitespace.

Don't miss a new marko release

NewReleases is sending notifications on new releases.