Changelog History
Page 31
-
v4.15.0 Changes
๐ The most notable change here is to the
<for>
,<macro>
and<await>
core tags. These tags previously each relied on custom syntax to implement an API that was not possible to do in userland when they were introduced. Generic solutions for these problems has arrived in the form of attribute tags and tag parameters.๐ With these new features in place and currently available in userland we set out to normalize these existing tags, hopefully making the learning process for Marko a little easier, and also promoting the use of these new features. We've also spent time formalizing some best practices, and highlighting this new syntax in the documentation on the markojs.com website.
๐ฆ The existing syntax will continue to be supported until Marko 5 and will currently log a deprecation warning. For these deprecations and most others you can automatically migrate existing code using the marko migrate cli tool.
- ๐ Updated documentation with guides and changes to syntax/core tags. #1260
- ๐ Modernize the
<for>
tag. #1238 - ๐ Modernize the
<await>
tag. #1244 - ๐ Modernize the
<macro>
tag. #1227 - ๐ Deprecated legacy top level imports (jquery/ready) and compiler option tags (recommended to use marko.json instead). #1258
- ๐ Modern arguments support for the dynamic tag. #1259
- ๐ Improves parsing inside of the
<html-comment>
tag to support the same style of content as actual html comments. #1261 - ๐
Ignore only whitespace content inside of concise mode tags (including
class
andstyle
) which would previously error. #1256 - ๐ Fixes a regression with passing a string literal as a
${dynamic}
attribute and add a deprecation warning. #1257
-
v4.15.x
-
v4.14.25 Changes
- ๐ Fix regression with non standard template literals (
"stuff ${placeholder}"
) that have escaped content such as newlines #1254
- ๐ Fix regression with non standard template literals (
-
v4.14.24 Changes
- ๐ Fix regression in
<await>
that caused flushing to not occur in all cases #1252
- ๐ Fix regression in
-
v4.14.22 Changes
- ๐ Fix issue with
no-update
not moving preserved items #1247. - ๐ Fix regression with include tag migration where
<include(data())>
has side effects. #1246 - ๐ง Treat importing tags the same as using them in the template (uses
load
api instead ofrequire
when configured). #1245 - Gracefully handle async client-reorder when nodes are missing during hydrate. #1243
- ๐ Fix issue with
-
v4.14.21 Changes
- โก๏ธ Update
htmljs-parser
to improve parsing regexes htmljs-parser #61
- โก๏ธ Update
-
v4.14.19 Changes
- ๐ Fixes walking into some AST nodes which was causing some migrations to not be as effective #1233