marko 4.28.9 → 4.28.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,2583 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
+
5
+ ### [4.28.10](https://github.com/marko-js/marko/compare/v4.28.9...v4.28.10) (2025-03-07)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * conditional nested attr tags ([6d0764c](https://github.com/marko-js/marko/commit/6d0764ccbe330602d3c03bb7219fa5cb0770bdd0))
11
+
12
+ ### [4.28.9](https://github.com/marko-js/marko/compare/v4.28.8...v4.28.9) (2025-02-21)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * in/out of order await nesting ([b3b002b](https://github.com/marko-js/marko/commit/b3b002be940f2ee485d1f5c0dfb80c6876a9f8ae))
18
+
19
+ ### [4.28.8](https://github.com/marko-js/marko/compare/v4.28.7...v4.28.8) (2025-02-19)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * backport await tag fixes ([44708e0](https://github.com/marko-js/marko/commit/44708e0440893de844f25d534b09508a8b562f57))
25
+
26
+ ### [4.28.7](https://github.com/marko-js/marko/compare/v4.28.6...v4.28.7) (2024-09-20)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * attr tag regression for vdom ([80e0344](https://github.com/marko-js/marko/commit/80e0344c09151544545c7826a481d78f22b88555))
32
+
33
+ ### [4.28.6](https://github.com/marko-js/marko/compare/v4.28.4...v4.28.6) (2024-09-10)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * forward taglib errors to compile cb ([3a9983e](https://github.com/marko-js/marko/commit/3a9983e708d1bebb2627c9bf029db7fd3442e11c))
39
+ * prefer .marko.js precompiled files when using load api ([bc9dbab](https://github.com/marko-js/marko/commit/bc9dbabc4d345069e25760911ee122ecf6c69b68))
40
+
41
+ ### [4.28.5](https://github.com/marko-js/marko/compare/v4.28.4...v4.28.5) (2024-08-05)
42
+
43
+
44
+ ### Bug Fixes
45
+
46
+ * prefer .marko.js precompiled files when using load api ([bc9dbab](https://github.com/marko-js/marko/commit/bc9dbabc4d345069e25760911ee122ecf6c69b68))
47
+
48
+ ### [4.28.4](https://github.com/marko-js/marko/compare/v4.28.3...v4.28.4) (2024-04-03)
49
+
50
+
51
+ ### Bug Fixes
52
+
53
+ * regression with split text nodes across component hydration ([8994a91](https://github.com/marko-js/marko/commit/8994a915dadfdaedb876fa816cb4554a8ceb6fff))
54
+
55
+ ### [4.28.3](https://github.com/marko-js/marko/compare/v4.28.2...v4.28.3) (2024-03-11)
56
+
57
+
58
+ ### Bug Fixes
59
+
60
+ * issue with ignoreUnrecognizedTags and nested attribute tags ([a0861ed](https://github.com/marko-js/marko/commit/a0861edfe5c97ee478f889ca71c56a1d69f56821))
61
+ * **ts:** add script-lang to v4 ([924df52](https://github.com/marko-js/marko/commit/924df5237108556c8032e25f15ba5367c491a840))
62
+
63
+ ### [4.28.2](https://github.com/marko-js/marko/compare/v4.28.1...v4.28.2) (2024-02-25)
64
+
65
+
66
+ ### Bug Fixes
67
+
68
+ * split text node hydrate issue ([cf71c44](https://github.com/marko-js/marko/commit/cf71c4426e815bbc8ee6ca5c977dc7998e0f93e5))
69
+
70
+ ### [4.28.1](https://github.com/marko-js/marko/compare/v4.28.0...v4.28.1) (2024-02-16)
71
+
72
+
73
+ ### Bug Fixes
74
+
75
+ * diffing edge cases ([236d92b](https://github.com/marko-js/marko/commit/236d92ba4a035407e5fcdeac2d440813563343ba))
76
+ * relax dynamic nested attr tag restrictions ([e9cb3c7](https://github.com/marko-js/marko/commit/e9cb3c72832121cd0defb3f00985ff7219f143fd))
77
+
78
+ ## [4.28.0](https://github.com/marko-js/marko/compare/v4.27.0...v4.28.0) (2024-01-26)
79
+
80
+
81
+ ### Features
82
+
83
+ * support esm compiled component files ([0b7f948](https://github.com/marko-js/marko/commit/0b7f94802825058f864a0e7c91e4e5f87df6b591))
84
+ * support exports field in marko.json ([be0d24f](https://github.com/marko-js/marko/commit/be0d24f547a2e3e7c83c692b62963ce8dc7590ab))
85
+
86
+ ## [4.27.0](https://github.com/marko-js/marko/compare/v4.26.5...v4.27.0) (2023-08-07)
87
+
88
+
89
+ ### Features
90
+
91
+ * remove deprecations for features added in Marko 5 compat layer ([4b868ee](https://github.com/marko-js/marko/commit/4b868eeded4034fb50e50c6126ea6db8f0934612))
92
+
93
+ ### [4.26.5](https://github.com/marko-js/marko/compare/v4.26.4...v4.26.5) (2023-06-27)
94
+
95
+ ### [4.26.4](https://github.com/marko-js/marko/compare/v4.26.3...v4.26.4) (2023-06-27)
96
+
97
+
98
+ ### Bug Fixes
99
+
100
+ * bind render method on legacy widgets ([163d2ae](https://github.com/marko-js/marko/commit/163d2ae33063dd7399b6e4e9b531d445458f7c77))
101
+
102
+ ### [4.26.3](https://github.com/marko-js/marko/compare/v4.26.2...v4.26.3) (2023-06-27)
103
+
104
+
105
+ ### Bug Fixes
106
+
107
+ * strict mode issues around calling render on legacy components ([d04449a](https://github.com/marko-js/marko/commit/d04449a99918ad01bfc944965c72101a17691495))
108
+
109
+ ### [4.26.2](https://github.com/marko-js/marko/compare/v4.26.1...v4.26.2) (2023-06-07)
110
+
111
+
112
+ ### Bug Fixes
113
+
114
+ * regression with components registered only via browser.json ([183011e](https://github.com/marko-js/marko/commit/183011ed18ad3cfff4a0f2e5d4d68cf351bee1c4))
115
+
116
+ ### [4.26.1](https://github.com/marko-js/marko/compare/v4.26.0...v4.26.1) (2023-05-23)
117
+
118
+
119
+ ### Bug Fixes
120
+
121
+ * add missing exposed _wrr flag ([b95b3c4](https://github.com/marko-js/marko/commit/b95b3c4e70c0ad5c78d20de29e1a46112b0355dc))
122
+
123
+ ## [4.26.0](https://github.com/marko-js/marko/compare/v4.25.0...v4.26.0) (2023-05-23)
124
+
125
+
126
+ ### Features
127
+
128
+ * backport Marko 5 runtime improvements ([1f40cae](https://github.com/marko-js/marko/commit/1f40cae8071dae4bea0870a5db4000bdb9e4779a))
129
+
130
+ ## [4.25.0](https://github.com/marko-js/marko/compare/v4.24.6...v4.25.0) (2023-03-02)
131
+
132
+
133
+ ### Features
134
+
135
+ * upgrade javascript parse/generate utils ([ef97e46](https://github.com/marko-js/marko/commit/ef97e46dec1bec2b990d9f5ccf280ab22924e37a))
136
+
137
+ ### [4.24.6](https://github.com/marko-js/marko/compare/v4.24.5...v4.24.6) (2022-10-12)
138
+
139
+
140
+ ### Bug Fixes
141
+
142
+ * improve tag dir scanning cache ([#1859](https://github.com/marko-js/marko/issues/1859)) ([412e2eb](https://github.com/marko-js/marko/commit/412e2eb77a57772dfd619756b40d962425332748))
143
+
144
+ ### [4.24.5](https://github.com/marko-js/marko/compare/v4.24.4...v4.24.5) (2022-07-14)
145
+
146
+
147
+ ### Bug Fixes
148
+
149
+ * ignoreUnrecognizedTags attr tags under control flow ([8e0aaf2](https://github.com/marko-js/marko/commit/8e0aaf227d4e192e3c02b494995f1f2682c4cbc3))
150
+
151
+ ### [4.24.4](https://github.com/marko-js/marko/compare/v4.24.3...v4.24.4) (2022-03-22)
152
+
153
+
154
+ ### Bug Fixes
155
+
156
+ * prevent bubbling non bubbling events ([#1781](https://github.com/marko-js/marko/issues/1781)) ([7230c76](https://github.com/marko-js/marko/commit/7230c76892ed2c346cdb161208dea70741a6b6b0))
157
+
158
+ ### [4.24.3](https://github.com/marko-js/marko/compare/v4.24.2...v4.24.3) (2022-03-08)
159
+
160
+
161
+ ### Bug Fixes
162
+
163
+ * performance hit in development mode because continually parsing stack trace ([#1777](https://github.com/marko-js/marko/issues/1777)) ([40d6599](https://github.com/marko-js/marko/commit/40d659979370900c18503a3dc6dab807f52c154d))
164
+
165
+ ### [4.24.2](https://github.com/marko-js/marko/compare/v4.24.1...v4.24.2) (2021-10-22)
166
+
167
+
168
+ ### Bug Fixes
169
+
170
+ * m4 npm publish dist tag ([478d772](https://github.com/marko-js/marko/commit/478d7720b281893ba16913b8292e96195f86a007))
171
+
172
+ ### [4.24.1](https://github.com/marko-js/marko/compare/v4.24.0...v4.24.1) (2021-10-22)
173
+
174
+
175
+ ### Bug Fixes
176
+
177
+ * regression with identical tag name & taglib deduping ([3da701c](https://github.com/marko-js/marko/commit/3da701c0f101ae064c943faf0a908b674992b845))
178
+ * upgrade htmljs parser ([18a41fb](https://github.com/marko-js/marko/commit/18a41fb96bdbc851480856bd6342d822d367866b))
179
+
180
+ ## [4.24.0](https://github.com/marko-js/marko/compare/v4.23.17...v4.24.0) (2021-10-11)
181
+
182
+
183
+ ### Features
184
+
185
+ * upgrade htmljs-parser ([31cc60c](https://github.com/marko-js/marko/commit/31cc60c6ad5e2f6b34382de79874afd1fa5e32ac))
186
+
187
+ ### [4.23.17](https://github.com/marko-js/marko/compare/v4.23.16...v4.23.17) (2021-08-11)
188
+
189
+
190
+ ### Bug Fixes
191
+
192
+ * remove file rename hack when writing files to disk ([22ae52f](https://github.com/marko-js/marko/commit/22ae52ff7c215b4a7f6ea1690e496be457abb039))
193
+
194
+ ### [4.23.16](https://github.com/marko-js/marko/compare/v4.23.15...v4.23.16) (2021-03-29)
195
+
196
+
197
+ ### Bug Fixes
198
+
199
+ * dynamic attr tags followed by html element ([49c6b0d](https://github.com/marko-js/marko/commit/49c6b0ddb435b34316f164e8d1b8ff26f3cc46cb))
200
+
201
+ ### [4.23.15](https://github.com/marko-js/marko/compare/v4.23.14...v4.23.15) (2021-03-08)
202
+
203
+
204
+ ### Bug Fixes
205
+
206
+ * **marko:** issue with delegating events from text nodes ([fadde17](https://github.com/marko-js/marko/commit/fadde17db1234b7d3b915fa0895af12bf70196b5))
207
+ * release command ([3b29aff](https://github.com/marko-js/marko/commit/3b29aff94ea4745cc3b8a71a8720d65e11ab2957))
208
+
209
+ ### [4.23.14](https://github.com/marko-js/marko/compare/v4.23.13...v4.23.14) (2021-02-18)
210
+
211
+
212
+ ### Bug Fixes
213
+
214
+ * improve windows support for taglib finder ([5b8ee7c](https://github.com/marko-js/marko/commit/5b8ee7c7d27c055d3fe9c2c7f5666bb547ea987f))
215
+
216
+ ### [4.23.13](https://github.com/marko-js/marko/compare/v4.23.12...v4.23.13) (2021-02-11)
217
+
218
+
219
+ ### Bug Fixes
220
+
221
+ * prevent potential race condition while tag scanning ([103eb85](https://github.com/marko-js/marko/commit/103eb85bc58c5b0898bdb75793a4413b05c168bb))
222
+
223
+ ### [4.23.12](https://github.com/marko-js/marko/compare/v4.23.11...v4.23.12) (2021-01-14)
224
+
225
+
226
+ ### Bug Fixes
227
+
228
+ * issue with using flags before defined ([8740f93](https://github.com/marko-js/marko/commit/8740f937c613dbbbfb34694db608adf5800a70ad))
229
+
230
+ ### [4.23.11](https://github.com/marko-js/marko/compare/v4.23.10...v4.23.11) (2021-01-13)
231
+
232
+
233
+ ### Bug Fixes
234
+
235
+ * issue with only renderBody being serialized ([4db3c18](https://github.com/marko-js/marko/commit/4db3c1835aea610088e1a6efb67f521bc884d966))
236
+
237
+ ### [4.23.10](https://github.com/marko-js/marko/compare/v4.23.9...v4.23.10) (2020-12-08)
238
+
239
+
240
+ ### Bug Fixes
241
+
242
+ * properly handle default renderBody with dynamic attribute tags ([451ce98](https://github.com/marko-js/marko/commit/451ce98d81cfccee01d6ce468d3b02ced90daebb))
243
+
244
+ ### [4.23.9](https://github.com/marko-js/marko/compare/v4.23.8...v4.23.9) (2020-10-13)
245
+
246
+
247
+ ### Bug Fixes
248
+
249
+ * regression with no-update-body with no renderBody ([5bd753b](https://github.com/marko-js/marko/commit/5bd753b3798315a62ac6a0b44e1a2cffa7797adc))
250
+
251
+ ### [4.23.8](https://github.com/marko-js/marko/compare/v4.23.7...v4.23.8) (2020-10-09)
252
+
253
+
254
+ ### Bug Fixes
255
+
256
+ * no longer use fragments for preserved native els ([c167cfa](https://github.com/marko-js/marko/commit/c167cfa1ab0d9d6db3aecc264fd830d804456f25))
257
+
258
+ ### [4.23.7](https://github.com/marko-js/marko/compare/v4.23.6...v4.23.7) (2020-10-02)
259
+
260
+
261
+ ### Bug Fixes
262
+
263
+ * prevent adding new global for legacy runtime ([0ec1497](https://github.com/marko-js/marko/commit/0ec1497bbbbc5430188c12d5ad37d3d0b04aafe1))
264
+
265
+ ### [4.23.6](https://github.com/marko-js/marko/compare/v4.23.5...v4.23.6) (2020-10-02)
266
+
267
+
268
+ ### Bug Fixes
269
+
270
+ * regression serializing empty component data with custom runtimeid ([d589737](https://github.com/marko-js/marko/commit/d5897375e4b95d587c307612050f8e0d8144e996))
271
+
272
+ ### [4.23.5](https://github.com/marko-js/marko/compare/v4.23.4...v4.23.5) (2020-09-28)
273
+
274
+ ### [4.23.4](https://github.com/marko-js/marko/compare/v4.23.3...v4.23.4) (2020-09-17)
275
+
276
+ ### [4.23.3](https://github.com/marko-js/marko/compare/v4.23.2...v4.23.3) (2020-09-15)
277
+
278
+
279
+ ### Bug Fixes
280
+
281
+ * duplicate export 'registerOptimizer' ([#1601](https://github.com/marko-js/marko/issues/1601)) ([ac20e50](https://github.com/marko-js/marko/commit/ac20e5040f71d35901ecce1e847d41a8ce53145e))
282
+ * prevent loading complain module in prod for legacy helpers ([e394ff0](https://github.com/marko-js/marko/commit/e394ff089bc56aafad4f6e73ba97b3a7fd4a63b8))
283
+
284
+ ### [4.23.2](https://github.com/marko-js/marko/compare/v4.23.1...v4.23.2) (2020-08-26)
285
+
286
+
287
+ ### Bug Fixes
288
+
289
+ * regression with manual component init with custom runtimeid ([f08a60a](https://github.com/marko-js/marko/commit/f08a60a3f64ab53fa387575a7658990c145c0fdd))
290
+
291
+ ### [4.23.1](https://github.com/marko-js/marko/compare/v4.23.0...v4.23.1) (2020-08-26)
292
+
293
+
294
+ ### Bug Fixes
295
+
296
+ * typo with aria-describedby autocomplete ([cd12a3a](https://github.com/marko-js/marko/commit/cd12a3a68873c9ce72a3d94d861fe2f48b6a2228))
297
+
298
+ ## [4.23.0](https://github.com/marko-js/marko/compare/v4.22.8...v4.23.0) (2020-08-25)
299
+
300
+
301
+ ### Features
302
+
303
+ * switch to espree from esprima ([#1596](https://github.com/marko-js/marko/issues/1596)) ([8c318cc](https://github.com/marko-js/marko/commit/8c318cc6f29f645026a97375cd5cbba53908a354))
304
+
305
+ ### [4.22.8](https://github.com/marko-js/marko/compare/v4.22.7...v4.22.8) (2020-08-20)
306
+
307
+
308
+ ### Bug Fixes
309
+
310
+ * issue with hydrating body-only content ([7837185](https://github.com/marko-js/marko/commit/7837185073b3ccd203267d5e853e03d2b8d72e7a))
311
+
312
+ ### [4.22.7](https://github.com/marko-js/marko/compare/v4.22.6...v4.22.7) (2020-08-13)
313
+
314
+ ### [4.22.6](https://github.com/marko-js/marko/compare/v4.22.5...v4.22.6) (2020-08-10)
315
+
316
+
317
+ ### Bug Fixes
318
+
319
+ * set default value for textarea when created ([#1593](https://github.com/marko-js/marko/issues/1593)) ([1efae18](https://github.com/marko-js/marko/commit/1efae18402df3a236410794fc3d4f6a2076d1d64))
320
+
321
+ ### [4.22.5](https://github.com/marko-js/marko/compare/v4.22.4...v4.22.5) (2020-08-07)
322
+
323
+
324
+ ### Bug Fixes
325
+
326
+ * add support for nested tag long hand properties ([#1592](https://github.com/marko-js/marko/issues/1592)) ([8f595fd](https://github.com/marko-js/marko/commit/8f595fd493d4462f8cc2b103d8ea77e04616edea))
327
+
328
+ ### [4.22.4](https://github.com/marko-js/marko/compare/v4.22.3...v4.22.4) (2020-08-04)
329
+
330
+ ### [4.22.3](https://github.com/marko-js/marko/compare/v4.22.1...v4.22.3) (2020-07-31)
331
+
332
+
333
+ ### Bug Fixes
334
+
335
+ * allow <await> in sync mode ([#1589](https://github.com/marko-js/marko/issues/1589)) ([2c50419](https://github.com/marko-js/marko/commit/2c50419117ea67fd64b61e10f8ad5e216d1ca16c))
336
+ * diffing dynamic attributes with mismatched keys ([#1587](https://github.com/marko-js/marko/issues/1587)) ([3832cfe](https://github.com/marko-js/marko/commit/3832cfea72efadb1bfcf9de7a83ba8b1fddf14f4))
337
+ * doc paths ([f5a4721](https://github.com/marko-js/marko/commit/f5a472133dbf7cc2b909bc9bb8ca24285d6ee08e))
338
+
339
+ ### [4.22.2](https://github.com/marko-js/marko/compare/v4.22.1...v4.22.2) (2020-07-28)
340
+
341
+
342
+ ### Bug Fixes
343
+
344
+ * diffing dynamic attributes with mismatched keys ([#1587](https://github.com/marko-js/marko/issues/1587)) ([3832cfe](https://github.com/marko-js/marko/commit/3832cfea72efadb1bfcf9de7a83ba8b1fddf14f4))
345
+ * doc paths ([f5a4721](https://github.com/marko-js/marko/commit/f5a472133dbf7cc2b909bc9bb8ca24285d6ee08e))
346
+
347
+ ### [4.22.1](https://github.com/marko-js/marko/compare/v4.22.0...v4.22.1) (2020-07-21)
348
+
349
+
350
+ ### Bug Fixes
351
+
352
+ * issue with hydrating no-update-if content ([#1581](https://github.com/marko-js/marko/issues/1581)) ([82b500e](https://github.com/marko-js/marko/commit/82b500e95b35af47565ace5e16e2812fc3b0353c))
353
+
354
+ ## [4.22.0](https://github.com/marko-js/marko/compare/v4.21.10...v4.22.0) (2020-06-22)
355
+
356
+
357
+ ### Features
358
+
359
+ * add new import dynamic tag syntax to migrations ([#1562](https://github.com/marko-js/marko/issues/1562)) ([755ffd6](https://github.com/marko-js/marko/commit/755ffd6e15bfdf1769eae64946c40651e6d729a9))
360
+
361
+
362
+ ### Bug Fixes
363
+
364
+ * issue with optional arguments for legacy macro migration ([#1577](https://github.com/marko-js/marko/issues/1577)) ([df556df](https://github.com/marko-js/marko/commit/df556df106c473a78fb5c10c02089754835929da))
365
+
366
+ ### [4.21.10](https://github.com/marko-js/marko/compare/v4.21.9...v4.21.10) (2020-05-20)
367
+
368
+
369
+ ### Bug Fixes
370
+
371
+ * nextTick timing regression ([#1573](https://github.com/marko-js/marko/issues/1573)) ([65ecb6f](https://github.com/marko-js/marko/commit/65ecb6fa334c5bf533a1de54d7820f89dbf2081a))
372
+
373
+ ### [4.21.9](https://github.com/marko-js/marko/compare/v4.21.8...v4.21.9) (2020-05-12)
374
+
375
+ ### [4.21.8](https://github.com/marko-js/marko/compare/v4.21.7...v4.21.8) (2020-05-07)
376
+
377
+
378
+ ### Bug Fixes
379
+
380
+ * support empty w-config ([#1570](https://github.com/marko-js/marko/issues/1570)) ([b62ff6a](https://github.com/marko-js/marko/commit/b62ff6a3ba1565ecfde5b8114682e3ac6d753903))
381
+
382
+ ### [4.21.7](https://github.com/marko-js/marko/compare/v4.21.6...v4.21.7) (2020-05-04)
383
+
384
+
385
+ ### Bug Fixes
386
+
387
+ * components not always initializing inside client-reorder await ([#1566](https://github.com/marko-js/marko/issues/1566)) ([28b3b7f](https://github.com/marko-js/marko/commit/28b3b7f728b9aa42e035e00b37e811dbcce1c79a))
388
+
389
+ ### [4.21.6](https://github.com/marko-js/marko/compare/v4.21.5...v4.21.6) (2020-04-30)
390
+
391
+
392
+ ### Bug Fixes
393
+
394
+ * issue with data-marko attributes under 'no-update' with <await> ([#1564](https://github.com/marko-js/marko/issues/1564)) ([211a8a3](https://github.com/marko-js/marko/commit/211a8a334b58af035347cb4f91f4e6a625c35d82))
395
+
396
+ ### [4.21.5](https://github.com/marko-js/marko/compare/v4.21.4...v4.21.5) (2020-04-24)
397
+
398
+
399
+ ### Bug Fixes
400
+
401
+ * regression with unquoted attribute with trailing slash ([#1561](https://github.com/marko-js/marko/issues/1561)) ([5c26b9b](https://github.com/marko-js/marko/commit/5c26b9b3ec6f5e8847ffe43e99f7593da806932a))
402
+
403
+ ### [4.21.4](https://github.com/marko-js/marko/compare/v4.21.3...v4.21.4) (2020-04-24)
404
+
405
+ ### [4.21.3](https://github.com/marko-js/marko/compare/v4.21.2...v4.21.3) (2020-04-24)
406
+
407
+
408
+ ### Bug Fixes
409
+
410
+ * allow legacy widgets to update after being destroyed ([#1560](https://github.com/marko-js/marko/issues/1560)) ([5bb800e](https://github.com/marko-js/marko/commit/5bb800e088455a03ccd951c9fcc582da062b499c))
411
+
412
+ ### [4.21.2](https://github.com/marko-js/marko/compare/v4.21.1...v4.21.2) (2020-04-23)
413
+
414
+
415
+ ### Bug Fixes
416
+
417
+ * split components under preserved root resetting ___isPreserved ([#1559](https://github.com/marko-js/marko/issues/1559)) ([03bb099](https://github.com/marko-js/marko/commit/03bb0991c571b182949d79ee0c42aee92f867f25))
418
+
419
+ ### [4.21.1](https://github.com/marko-js/marko/compare/v4.21.0...v4.21.1) (2020-04-21)
420
+
421
+
422
+ ### Bug Fixes
423
+
424
+ * **legacy dependencies:** relative path should begin with ./ ([#1558](https://github.com/marko-js/marko/issues/1558)) ([a01b644](https://github.com/marko-js/marko/commit/a01b644b8f3511777f9bda8d93f4ae93e5745b02))
425
+
426
+ ## [4.21.0](https://github.com/marko-js/marko/compare/v4.20.2...v4.21.0) (2020-04-21)
427
+
428
+
429
+ ### Features
430
+
431
+ * short hand syntax for component imports ([#1552](https://github.com/marko-js/marko/issues/1552)) ([b5453cc](https://github.com/marko-js/marko/commit/b5453cce8bbc3b96a406bf0cbd926ee7123d158a))
432
+
433
+ ### [4.20.2](https://github.com/marko-js/marko/compare/v4.20.1...v4.20.2) (2020-04-21)
434
+
435
+
436
+ ### Bug Fixes
437
+
438
+ * prevent lasso 2 from inlining full system paths ([#1555](https://github.com/marko-js/marko/issues/1555)) ([50750b4](https://github.com/marko-js/marko/commit/50750b4b9ec61210081e318175a5e8a746fe2069))
439
+ * switch safe renderer to use nextTick for errors ([#1554](https://github.com/marko-js/marko/issues/1554)) ([6ea9fe3](https://github.com/marko-js/marko/commit/6ea9fe330b499f9fdb125eaf0f25f2ee1553ef4e))
440
+
441
+ ### [4.20.1](https://github.com/marko-js/marko/compare/v4.20.0...v4.20.1) (2020-04-15)
442
+
443
+
444
+ ### Bug Fixes
445
+
446
+ * improve micro task helper ([76e2ab9](https://github.com/marko-js/marko/commit/76e2ab910dcdec1af750ca40bc287d147ec82e3f))
447
+
448
+ ## [4.20.0](https://github.com/marko-js/marko/compare/v4.19.13...v4.20.0) (2020-04-10)
449
+
450
+
451
+ ### Features
452
+
453
+ * improve serialization across multiple writes ([#1542](https://github.com/marko-js/marko/issues/1542)) ([81c4da7](https://github.com/marko-js/marko/commit/81c4da75c8e272d6b2d145e225078695c931dfd3))
454
+
455
+
456
+ ### Bug Fixes
457
+
458
+ * don't modify proto.init when creating a widget ([#1544](https://github.com/marko-js/marko/issues/1544)) ([f694a6b](https://github.com/marko-js/marko/commit/f694a6bee2ffd7d39ed651649e248499804144ff))
459
+ * improve a few small things legacy compatibility ([#1545](https://github.com/marko-js/marko/issues/1545)) ([72e716e](https://github.com/marko-js/marko/commit/72e716e42e264e8ee3c88220e0ebd96bcc1430f7))
460
+
461
+ ### [4.19.13](https://github.com/marko-js/marko/compare/v4.19.12...v4.19.13) (2020-04-08)
462
+
463
+
464
+ ### Bug Fixes
465
+
466
+ * add devmode warning for removing fragment markers ([#1541](https://github.com/marko-js/marko/issues/1541)) ([1c3852f](https://github.com/marko-js/marko/commit/1c3852f2c7938a689c249b6d59b6280becda216e))
467
+
468
+ ### [4.19.12](https://github.com/marko-js/marko/compare/v4.19.11...v4.19.12) (2020-04-07)
469
+
470
+
471
+ ### Bug Fixes
472
+
473
+ * implement missing methods for void-writer ([#1540](https://github.com/marko-js/marko/issues/1540)) ([2806066](https://github.com/marko-js/marko/commit/28060669a421837cec19f35f307f35c0ef636b0e))
474
+
475
+ ### [4.19.11](https://github.com/marko-js/marko/compare/v4.19.10...v4.19.11) (2020-04-06)
476
+
477
+ ### [4.19.10](https://github.com/marko-js/marko/compare/v4.19.9...v4.19.10) (2020-04-03)
478
+
479
+
480
+ ### Bug Fixes
481
+
482
+ * regression with nullish values in partial string attribute values ([#1537](https://github.com/marko-js/marko/issues/1537)) ([a469e02](https://github.com/marko-js/marko/commit/a469e020cc60089bae73bf1a311a8e6919bc0ce0))
483
+
484
+ ### [4.19.9](https://github.com/marko-js/marko/compare/v4.19.8...v4.19.9) (2020-03-30)
485
+
486
+ ### [4.19.8](https://github.com/marko-js/marko/compare/v4.19.7...v4.19.8) (2020-03-16)
487
+
488
+
489
+ ### Bug Fixes
490
+
491
+ * improve legacy compatibility with getWidgetForEl api ([#1533](https://github.com/marko-js/marko/issues/1533)) ([d5e3a27](https://github.com/marko-js/marko/commit/d5e3a272ae3c02ad48860d5ccddd8a6e2bcba3c9))
492
+
493
+ ### [4.19.7](https://github.com/marko-js/marko/compare/v4.19.6...v4.19.7) (2020-03-13)
494
+
495
+
496
+ ### Bug Fixes
497
+
498
+ * prevent issue with range loop iterating in reverse ([#1531](https://github.com/marko-js/marko/issues/1531)) ([cd6459d](https://github.com/marko-js/marko/commit/cd6459dc8d057de0eb88040c81dcf034ae7ca5ad))
499
+
500
+ ### [4.19.6](https://github.com/marko-js/marko/compare/v4.19.5...v4.19.6) (2020-03-13)
501
+
502
+
503
+ ### Bug Fixes
504
+
505
+ * spread attrs for native tag preserves case ([#1530](https://github.com/marko-js/marko/issues/1530)) ([f972707](https://github.com/marko-js/marko/commit/f97270746e7580d0d38e3a2a43e585721a256baf))
506
+
507
+ ### [4.19.5](https://github.com/marko-js/marko/compare/v4.19.4...v4.19.5) (2020-03-10)
508
+
509
+
510
+ ### Bug Fixes
511
+
512
+ * issue with keys under ssr no-update root ([#1527](https://github.com/marko-js/marko/issues/1527)) ([fd03031](https://github.com/marko-js/marko/commit/fd03031c47881bf5dd7b311dd1fec843c98a1c06))
513
+ * return raw state for legacy widgets ([#1526](https://github.com/marko-js/marko/issues/1526)) ([6905521](https://github.com/marko-js/marko/commit/6905521c875a1ecc18d7afbdfd0ef53df31831c5))
514
+
515
+ ### [4.19.4](https://github.com/marko-js/marko/compare/v4.19.3...v4.19.4) (2020-03-09)
516
+
517
+
518
+ ### Bug Fixes
519
+
520
+ * don't serialize component boundary keys if the owner isn't hydrated ([#1525](https://github.com/marko-js/marko/issues/1525)) ([9bf16b8](https://github.com/marko-js/marko/commit/9bf16b81f46abda06e42cbbd9341dd023fdcadc0))
521
+
522
+ ### [4.19.3](https://github.com/marko-js/marko/compare/v4.19.2...v4.19.3) (2020-03-05)
523
+
524
+
525
+ ### Bug Fixes
526
+
527
+ * add 'get' API for marko-widgets compat ([#1524](https://github.com/marko-js/marko/issues/1524)) ([095459f](https://github.com/marko-js/marko/commit/095459f43947b8f4be380286bd1f720109a3d86a))
528
+ * improve support for legacy widget for range ([#1523](https://github.com/marko-js/marko/issues/1523)) ([ca4afb9](https://github.com/marko-js/marko/commit/ca4afb98165a063b0b5f85255235b87f332ddf92))
529
+
530
+ ### [4.19.2](https://github.com/marko-js/marko/compare/v4.19.1...v4.19.2) (2020-03-04)
531
+
532
+
533
+ ### Bug Fixes
534
+
535
+ * don't serialize input for stateful widgets ([#1522](https://github.com/marko-js/marko/issues/1522)) ([3a14f62](https://github.com/marko-js/marko/commit/3a14f629688645d11b11678bd149a77cadfe745e))
536
+
537
+ ### [4.19.1](https://github.com/marko-js/marko/compare/v4.19.0...v4.19.1) (2020-02-28)
538
+
539
+
540
+ ### Bug Fixes
541
+
542
+ * support monkey patching lifecycle methods for legacy widgets ([#1521](https://github.com/marko-js/marko/issues/1521)) ([3056bd1](https://github.com/marko-js/marko/commit/3056bd11a63e2bf36d44657dc8d2ccf2381cfc92))
543
+
544
+ ## [4.19.0](https://github.com/marko-js/marko/compare/v4.18.51...v4.19.0) (2020-02-27)
545
+
546
+
547
+ ### Features
548
+
549
+ * all vnodes have owner components ([#1517](https://github.com/marko-js/marko/issues/1517)) ([cb42609](https://github.com/marko-js/marko/commit/cb426099ea83638f5feba85562ba7b56083dac4c))
550
+
551
+ ### [4.18.51](https://github.com/marko-js/marko/compare/v4.18.50...v4.18.51) (2020-02-26)
552
+
553
+
554
+ ### Bug Fixes
555
+
556
+ * always include nested contexts when serializing ([#1515](https://github.com/marko-js/marko/issues/1515)) ([c4f28e4](https://github.com/marko-js/marko/commit/c4f28e433cee13f206736c85431975e62b8ceed2))
557
+
558
+ ### [4.18.50](https://github.com/marko-js/marko/compare/v4.18.48...v4.18.50) (2020-02-26)
559
+
560
+ ### Bug Fixes
561
+
562
+ - non standard template literals filter out null & undefined ([#1514](https://github.com/marko-js/marko/issues/1514)) ([d5fa202](https://github.com/marko-js/marko/commit/d5fa20267b0b0bfc5c835ebdda1c6cb61955c9c7))
563
+
564
+ ### [4.18.49](https://github.com/marko-js/marko/compare/v4.18.48...v4.18.49) (2020-02-26)
565
+
566
+ ### 4.18.48
567
+
568
+ - Fixes a regression from [#1499](https://github.com/marko-js/marko/pull/1499) which caused `<${dynamic}>` tags with body content to not have their events registered. [#1507](https://github.com/marko-js/marko/pull/1507)
569
+ - Fixes issue with `getEl` being used on a keyed `<${dynamic}>` tag. [#1507](https://github.com/marko-js/marko/pull/1507)
570
+ - Fixes registering event handlers added to a `<${dynamic}>` tag that renders a native element under a split component. [#1507](https://github.com/marko-js/marko/pull/1507)
571
+
572
+ ### 4.18.47
573
+
574
+ - Deprecate implicit JSON.stringify for attributes, attr toString fix. [#1505](https://github.com/marko-js/marko/pull/1505)
575
+ - Remove data-widget, add warning for non-split, non-stateful widgets. [#1503](https://github.com/marko-js/marko/pull/1503)
576
+ - Flushing improvements. [#1502](https://github.com/marko-js/marko/pull/1502)
577
+
578
+ ### 4.18.46
579
+
580
+ - Fixed issue with `<init-components>` being rendered under nested async outs. [#1500](https://github.com/marko-js/marko/pull/1500)
581
+
582
+ ### 4.18.45
583
+
584
+ - Fixed dynamic tags to add data-marko-key for split components [#1499](https://github.com/marko-js/marko/pull/1499)
585
+ - Fixed dynamic tags properly render self-closing tags on the server [#1499](https://github.com/marko-js/marko/pull/1499)
586
+
587
+ ### 4.18.44
588
+
589
+ - Fix issue with diffing SSR'd `no-update` section. [#1498](https://github.com/marko-js/marko/pull/1498)
590
+
591
+ ### 4.18.43
592
+
593
+ - No longer serialize input for split legacy widgets. [#1497](https://github.com/marko-js/marko/pull/1497)
594
+
595
+ ### 4.18.42
596
+
597
+ - Fix regression for unkeyed elements with toggled spread attributes [#1496](https://github.com/marko-js/marko/pull/1496)
598
+ - Fix regression with body-only-if migration for legacy renderers [#1495](https://github.com/marko-js/marko/pull/1495)
599
+
600
+ ### 4.18.41
601
+
602
+ - Improve support for conditional `w-bind`. [#1494](https://github.com/marko-js/marko/pull/1494)
603
+ - No longer delete `onBeforeDestroy` and `onBeforeUpdate` from legacy widget prototypes. [#1494](https://github.com/marko-js/marko/pull/1494)
604
+ - Fix regression with registering event handlers for SSR content under a `no-update`. [#1493](https://github.com/marko-js/marko/pull/1493)
605
+
606
+ ### 4.18.40
607
+
608
+ - Fix issue with the `ignoreUnrecognizedTags` compiler option with `<@attribute>` tags inside of a `<${dynamic}>` tag. [#1491](https://github.com/marko-js/marko/pull/1491)
609
+ - Improve support for legacy widgets by allowing for custom `init` method on prototype. [#1490](https://github.com/marko-js/marko/pull/1490)
610
+ - Removes some unused properties that were serialized with legacy widgets [#1489](https://github.com/marko-js/marko/pull/1489)
611
+ - Improves consistency with `...spread` attributes onto native tags. [#1488](https://github.com/marko-js/marko/pull/1488)
612
+ - Now turns `camelCase` properties into `dash-cash`
613
+ - Now omits `renderBody` properties.
614
+ - Improves `this.el` warning for legacy widgets. [#1487](https://github.com/marko-js/marko/pull/1487)
615
+ - Fixes an issue with nested `no-update`'s around components not initializing properly. [#1486](https://github.com/marko-js/marko/pull/1486)
616
+
617
+ ### 4.18.39
618
+
619
+ - Support overriding the 'ready' method in legacy widgets. [#1484](https://github.com/marko-js/marko/pull/1484)
620
+
621
+ ### 4.18.38
622
+
623
+ - Fix regression with ssr'd components under 'no-update' not initializing. [#1483](https://github.com/marko-js/marko/pull/1483)
624
+
625
+ ### 4.18.37
626
+
627
+ - Fix regression with no-update-body on textarea tags. [#1482](https://github.com/marko-js/marko/pull/1482)
628
+
629
+ ### 4.18.36
630
+
631
+ - Fix issue for legacy widget rerenders not preserving props. [#1481](https://github.com/marko-js/marko/pull/1481)
632
+ - `no-update` will now preserve elements rendered from the server side. [#1480](https://github.com/marko-js/marko/pull/1480)
633
+
634
+ ### 4.18.35
635
+
636
+ - Improve support for legacy split widgets. [#1477](https://github.com/marko-js/marko/pull/1477)
637
+
638
+ ### 4.18.34
639
+
640
+ - Improve legacy widgets assigning into state causing a replace instead of merge. [#1476](https://github.com/marko-js/marko/pull/1476)
641
+
642
+ ### 4.18.33
643
+
644
+ - Fix event name case normalization for legacy components with `w-on`. [#1475](https://github.com/marko-js/marko/pull/1475)
645
+
646
+ ### 4.18.32
647
+
648
+ - Return the component id if no key is passed to getElId/elId. [#1474](https://github.com/marko-js/marko/pull/1474)
649
+ - Support having nullish keys in the legacy (v3) renderer. [#1473](https://github.com/marko-js/marko/pull/1473)
650
+
651
+ ### 4.18.31
652
+
653
+ - Fix legacy render lifecycle order to match marko-widgets@6. [#1472](https://github.com/marko-js/marko/pull/1472)
654
+
655
+ ### 4.18.30
656
+
657
+ - Fix regression with browser remap for legacy widgets. [#1471](https://github.com/marko-js/marko/pull/1471)
658
+
659
+ ### 4.18.29
660
+
661
+ - Fixed regression which was causing getTemplateData to be serialized.
662
+ - Refactor helpers, fix circular deps, improve code splitting [#1468](https://github.com/marko-js/marko/pull/1468)
663
+ - Remove unused deps, update package-lock [#1469](https://github.com/marko-js/marko/pull/1469)
664
+ - Fixed typo in example output [#1463](https://github.com/marko-js/marko/pull/1463)
665
+
666
+ ### 4.18.28
667
+
668
+ - Allow support for `<state>` tag and calling `setState` on null state [#1460](https://github.com/marko-js/marko/pull/1460)
669
+
670
+ ### 4.18.27
671
+
672
+ - Allow empty `<@catch>` in `<await>` [#1456](https://github.com/marko-js/marko/pull/1456)
673
+
674
+ ### 4.18.26
675
+
676
+ - Improve errors emitted from AsyncWriter
677
+
678
+ ### 4.18.25
679
+
680
+ - Better async stack traces in dev [#1453](https://github.com/marko-js/marko/pull/1453)
681
+
682
+ ### 4.18.24
683
+
684
+ - Remove circular dep for dom weakmaps. [#1449](https://github.com/marko-js/marko/pull/1449)
685
+ - Fix invalid deprecation message for core-tags on windows. [#1448](https://github.com/marko-js/marko/pull/1448)
686
+
687
+ ### 4.18.23
688
+
689
+ - Allow `<macro>` nested under `<if>`. [#1445](https://github.com/marko-js/marko/pull/1445)
690
+
691
+ ### 4.18.22
692
+
693
+ - Improve legacy compatibilty layer by exposing `widgetProps` on the `data` object. [#1443](https://github.com/marko-js/marko/pull/1443)
694
+ - Improve getComponentByEl lookup to prefer owner components. [#1444](https://github.com/marko-js/marko/pull/1444)
695
+
696
+ ### 4.18.21
697
+
698
+ - Fix issue where duplicated attributes were not being included properly in compiled templates. [#1442](https://github.com/marko-js/marko/pull/1442)
699
+
700
+ ### 4.18.20
701
+
702
+ - Fix initialization edge-case for top-level async components. [#1441](https://github.com/marko-js/marko/pull/1441)
703
+
704
+ ### 4.18.19
705
+
706
+ - Deprecate `$global.widgetIdPrefix` (should use `$global.componentIdPrefix` instead). [#1439](https://github.com/marko-js/marko/pull/1439)
707
+ - Improve support for rollup by removing usage of `require.resolve`. [#1440](https://github.com/marko-js/marko/pull/1440)
708
+ - Update minimum version of htmljs-parser to bring in patch release for parsing css calc values.
709
+
710
+ ### 4.18.18
711
+
712
+ - Adds a missing method used by part of the legacy compatibility layer.
713
+
714
+ ### 4.18.17
715
+
716
+ - Fix issue with async out of order components initializing in the wrong order [#1436](https://github.com/marko-js/marko/pull/1436)
717
+ - Improvements to the legacy compatibility layer [#1437](https://github.com/marko-js/marko/pull/1437)
718
+
719
+ ### 4.18.16
720
+
721
+ - Fix top-level components throwing error on hydrate [#1428](https://github.com/marko-js/marko/pull/1428)
722
+ - Ensure scripts only have one text node as a child [#1429](https://github.com/marko-js/marko/pull/1429)
723
+
724
+ ### 4.18.15
725
+
726
+ - Improve support for conditional comments spanning multiple comments. [#1427](https://github.com/marko-js/marko/pull/1427)
727
+ - Add a check for loading precompiled templates. [#1426](https://github.com/marko-js/marko/pull/1426)
728
+
729
+ ### 4.18.14
730
+
731
+ - Improve support for running multiple versions of Marko on the page. [#1418](https://github.com/marko-js/marko/pull/1418)
732
+ - Add migration for `component.elId` when used in a place where `:scoped` is recommended. [#1413](https://github.com/marko-js/marko/pull/1413)
733
+ - Fix issue where static regexps in the template would output differently than dynamic ones. [#1412](https://github.com/marko-js/marko/pull/1412)
734
+ - Improve `marko.json` definitions for core/html tags [#1411](https://github.com/marko-js/marko/pull/1411)
735
+
736
+ ### 4.18.13
737
+
738
+ - Improve support for consuming v3 components via webpack. [#1410](https://github.com/marko-js/marko/pull/1410)
739
+
740
+ ### 4.18.12
741
+
742
+ - Improve autocompletion for core tags. [#1405](https://github.com/marko-js/marko/pull/1405)
743
+ - Fix issue when using `getComponentForEl` with split components. [#1400](https://github.com/marko-js/marko/pull/1400)
744
+
745
+ ### 4.18.11
746
+
747
+ - Fix server-rendered conditional widgets in the compatibility layer. [#1395](https://github.com/marko-js/marko/pull/1395)
748
+ - Deprecate the partial dynamic tag. [#1397](https://github.com/marko-js/marko/pull/1397)
749
+
750
+ ### 4.18.10
751
+
752
+ - Improve migration for `getInitialState` with legacy widgets. [#1385](https://github.com/marko-js/marko/pull/1385)
753
+
754
+ ### 4.18.9
755
+
756
+ - Legacy compat fixes [#1383](https://github.com/marko-js/marko/pull/1383)
757
+ - Temporary fix to ensure `getComponents` doesn't return `null` entries - these should really be removed from the `lookup` instead
758
+ - Use a `for...in` loop to extend the `BaseComponent` (doesn't support getters properly) to maintain the same behavior as `marko-widgets`
759
+ - Ensure that the original `input` for a widget is what gets serialized, not the result of `getTemplateData` (which is called again when hydrating)
760
+
761
+ ### 4.18.8
762
+
763
+ - Fixes an issue where `require("marko/components").getComponentForEl` could return undefined when a component exists, or the wrong component, when nested fragments are present. [#1382](https://github.com/marko-js/marko/pull/1382)
764
+
765
+ ### 4.18.7
766
+
767
+ - Fixes a regression from 4.18.6 that could cause some body content to be omitted from the output [#1380](https://github.com/marko-js/marko/pull/1380)
768
+ - Adds deprecated string dynamic attributes to the vdom runtime for improved legacy compatibility [#1378](https://github.com/marko-js/marko/pull/1378)
769
+
770
+ ### 4.18.6
771
+
772
+ - Migration does not add `id:scoped` when migrating a repeated `w-id` [#1377](https://github.com/marko-js/marko/pull/1377)
773
+ - Fixes an issue diffing the selected option within an optgroup [#1376](https://github.com/marko-js/marko/pull/1376)
774
+ - Fixes component tracking for client-reorder [#1375](https://github.com/marko-js/marko/pull/1375)
775
+ - Improve the migration for legacy `<for>` syntax [#1374](https://github.com/marko-js/marko/pull/1374)
776
+ - Add migration for named classes in the template [#1372](https://github.com/marko-js/marko/pull/1372)
777
+
778
+ ### 4.18.5
779
+
780
+ - Fix issue with invoke tag migration when a inline control flow is used [#1366](https://github.com/marko-js/marko/pull/1366)
781
+
782
+ ### 4.18.4
783
+
784
+ - Lazily evaluate attributes for dynamic tags [#1365](https://github.com/marko-js/marko/pull/1365)
785
+
786
+ ### 4.18.3
787
+
788
+ - Fix `registerTaglib`: use correct function call [#1363](https://github.com/marko-js/marko/pull/1363)
789
+ - Fix tryonline: correct paths and no `taglibImports` [#1360](https://github.com/marko-js/marko/pull/1360)
790
+ - Migration fix: [#1364](https://github.com/marko-js/marko/pull/1364)
791
+ - Migration improvement: deprecation warnings that are automatically migratable now have a `MIGRATION` heading [#1364](https://github.com/marko-js/marko/pull/1364) (also included test improvements)
792
+ - Migration improvement: remove empty `<layout-put>` tags [#1355](https://github.com/marko-js/marko/pull/1355)
793
+
794
+ ### 4.18.2
795
+
796
+ - Fixes an issue where fragments could remove nodes from their siblings [#1359](https://github.com/marko-js/marko/pull/1359)
797
+
798
+ ### 4.18.1
799
+
800
+ - Fixes a regression with `body-only-if` and a legacy control flow attribute [#1356](https://github.com/marko-js/marko/pull/1356)
801
+
802
+ ### 4.18.0
803
+
804
+ - Added dynamic tags to act like body-only-if. If dynamic tags are null then the outer tag will not be rendered. However, the body will be rendered. Deprecated body-only-if [#1332](https://github.com/marko-js/marko/pull/1332)
805
+
806
+ ## 4.17.x
807
+
808
+ ### 4.17.5
809
+
810
+ - Fix issue where setting the `value` attribute of a textarea to `false` caused the string `"false"` to be used in the vdom. [#1348](https://github.com/marko-js/marko/issues/1348)
811
+
812
+ ### 4.17.4
813
+
814
+ - Updates htmljs-parser to fix an issue with comments inside inline scriptlets.
815
+ - Fix some issues with for loop auto keying. [#1346](https://github.com/marko-js/marko/issues/1346)
816
+ - Fix error when using a non string as a key (now logs a deprecation). [#1344](https://github.com/marko-js/marko/issues/1344)
817
+
818
+ ### 4.17.3
819
+
820
+ - Fix issue were `getEls` would not work with repeated keys for split components. [#1343](https://github.com/marko-js/marko/issues/1343)
821
+
822
+ ### 4.17.2
823
+
824
+ - Fix regression with namespaces in nested fragments. [#1340](https://github.com/marko-js/marko/issues/1340)
825
+
826
+ ### 4.17.1
827
+
828
+ - Allow emitting events while the parent is mounting. [#1336](https://github.com/marko-js/marko/issues/1336)
829
+ - Fix issue where `component.el` and `component.getEl` could return a marker node. [#1339](https://github.com/marko-js/marko/issues/1339)
830
+
831
+ ### 4.17.0
832
+
833
+ - Element namespaces are now calculated at runtime, fixes some edge cases with the dynamic tag. [#1333](https://github.com/marko-js/marko/issues/1333)
834
+
835
+ ## 4.16.x
836
+
837
+ ### 4.16.15
838
+
839
+ - Fix an issue where nodes may be preserved if another node with the same key was rendered as preserved. [#1334](https://github.com/marko-js/marko/issues/1334)
840
+ - Improve the `ignoreUnrecognizedTags` compiler option to ignored nested `@tags` on unrecognized tags (removes the need for the `escapeAtTags` option). [#1335](https://github.com/marko-js/marko/issues/1335)
841
+
842
+ ### 4.16.14
843
+
844
+ - Prevent treating macro usage with parameters as a component. [#1326](https://github.com/marko-js/marko/issues/1326)
845
+
846
+ ### 4.16.13
847
+
848
+ - Fixes a regression with printing nested unary expressions (eg typeof). [#1323](https://github.com/marko-js/marko/issues/1323)
849
+
850
+ ### 4.16.12
851
+
852
+ - fix destorying a component that has already removed some top-level nodes [#1321](https://github.com/marko-js/marko/issues/1321)
853
+ - fix components runtime path after refactor released in 4.16.11 [#1322](https://github.com/marko-js/marko/issues/1322)
854
+
855
+ ### 4.16.11
856
+
857
+ - Fixes a regression (syntax) in IE 11 introduced in 4.16.10
858
+
859
+ ### 4.16.10
860
+
861
+ - Hydrating components now consistently render from the top down. [#1317](https://github.com/marko-js/marko/issues/1317)
862
+
863
+ ### 4.16.9
864
+
865
+ - Fixes an issue where legacy widgets could loose a reference to their parent components. [#1311](https://github.com/marko-js/marko/issues/1311)
866
+
867
+ ### 4.16.8
868
+
869
+ - Fixes an issue with hot-reload. [#1282](https://github.com/marko-js/marko/issues/1282)
870
+ - If the require hook is enabled, all templates loaded by marko will now use the require hook, including hot-reloaded templates and tags loaded from compiled templates. [#1310](https://github.com/marko-js/marko/pull/1310)
871
+
872
+ ### 4.16.7
873
+
874
+ - Improve parsing of tag arguments (allows for `<${input.renderBody}(...spread)/>`). [#1308](https://github.com/marko-js/marko/pull/1308)
875
+
876
+ ### 4.16.6
877
+
878
+ - Fix issue with hydrating legacy Marko 3 widgets from the server. [#1306](https://github.com/marko-js/marko/pull/1306)
879
+
880
+ ### 4.16.5
881
+
882
+ - Fix regression with legacy dynamic attributes when a string without whitespace is used. [#1304](https://github.com/marko-js/marko/pull/1304)
883
+ - The `disabled` property on buttons is now properly synced with the template. [#1303](https://github.com/marko-js/marko/pull/1303)
884
+
885
+ ### 4.16.4
886
+
887
+ - Fix regression with migrating legacy `<macro>` syntax with a magic `renderBody` variable. [#1300](https://github.com/marko-js/marko/pull/1300)
888
+
889
+ ### 4.16.3
890
+
891
+ - Fix issue with migrating `<var>` and `<assign>` with `widget` properties. [#1298](https://github.com/marko-js/marko/pull/1298)
892
+
893
+ ### 4.16.2
894
+
895
+ - Fix issue with nested fragments (often as dynamic tags) that were adjacent in the DOM not hydrating properly. [#1294](https://github.com/marko-js/marko/pull/1294)
896
+ - Remove redundant portion of keys for `<macro>` tags within `<for>` loops. [#1295](https://github.com/marko-js/marko/pull/1295)
897
+
898
+ ### 4.16.1
899
+
900
+ - Fix regression for `:no-update` on dynamic tag html attributes. [#1292](https://github.com/marko-js/marko/pull/1292)
901
+
902
+ ### 4.16.0
903
+
904
+ - Add `<marko deprecated-no-create-or-input-for-top-level-hydrate />` option to revert to pre `4.9.0` hydrate behavior. [#1289](https://github.com/marko-js/marko/pull/1289)
905
+
906
+ ## 4.15.x
907
+
908
+ ### 4.15.6
909
+
910
+ - Fix regression in older browsers caused by using `string.startsWith` in the runtime code.
911
+
912
+ ### 4.15.5
913
+
914
+ - Allow syntax that Marko does not understand (but esprima does) to pass through in the arguments syntax. [#1286](https://github.com/marko-js/marko/pull/1286)
915
+ - Fix issue with `<title>` inside of an `<svg>` using the wrong namespace. [#1284](https://github.com/marko-js/marko/pull/1284)
916
+
917
+ ### 4.15.4
918
+
919
+ - Forward errors from `<await client-reorder>` to the parent out to prevent potential unhandled rejections. [#1275](https://github.com/marko-js/marko/pull/1275)
920
+
921
+ ### 4.15.3
922
+
923
+ - Fix false positive deprecation message for legacy nested tag syntax. [#1271](https://github.com/marko-js/marko/pull/1271)
924
+
925
+ ### 4.15.2
926
+
927
+ - Improve the webpack server-bundling experience by guarding a legacy (lasso-specific) api that uses a dynamic require and causes a warning to be emitted. [#1267](https://github.com/marko-js/marko/pull/1267)
928
+
929
+ ### 4.15.1
930
+
931
+ - Improve support for using raw functions as event handlers by not outputing `data-marko` content for components that will rerender in the browser. [#1262](https://github.com/marko-js/marko/pull/1262)
932
+
933
+ ### 4.15.0
934
+
935
+ 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](https://markojs.com/docs/syntax#attribute-tag) and [tag parameters](https://markojs.com/docs/syntax#parameters).
936
+
937
+ 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](https://markojs.com) website.
938
+
939
+ 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](https://github.com/marko-js/cli/blob/master/packages/migrate/README.md) cli tool.
940
+
941
+ - Updated documentation with guides and changes to syntax/core tags. [#1260](https://github.com/marko-js/marko/pull/1260)
942
+ - Modernize the [`<for>` tag](https://markojs.com/docs/core-tags#for). [#1238](https://github.com/marko-js/marko/pull/1238)
943
+ - Modernize the [`<await>` tag](https://markojs.com/docs/core-tags#await). [#1244](https://github.com/marko-js/marko/pull/1244)
944
+ - Modernize the [`<macro>` tag](https://markojs.com/docs/core-tags#macro). [#1227](https://github.com/marko-js/marko/pull/1227)
945
+ - Deprecated legacy top level imports (jquery/ready) and compiler option tags (recommended to use marko.json instead). [#1258](https://github.com/marko-js/marko/pull/1258)
946
+ - Modern arguments support for the dynamic tag. [#1259](https://github.com/marko-js/marko/pull/1259)
947
+ - Improves parsing inside of the `<html-comment>` tag to support the same style of content as actual html comments. [#1261](https://github.com/marko-js/marko/pull/1261)
948
+ - Ignore only whitespace content inside of concise mode tags (including `class` and `style`) which would previously error. [#1256](https://github.com/marko-js/marko/pull/1256)
949
+ - Fixes a regression with passing a string literal as a `${dynamic}` attribute and add a deprecation warning. [#1257](https://github.com/marko-js/marko/pull/1257)
950
+
951
+ ## 4.14.x
952
+
953
+ ### 4.14.25
954
+
955
+ - Fix regression with non standard template literals (`"stuff ${placeholder}"`) that have escaped content such as newlines [#1254](https://github.com/marko-js/marko/pull/1254)
956
+
957
+ ### 4.14.24
958
+
959
+ - Fix regression in `<await>` that caused flushing to not occur in all cases [#1252](https://github.com/marko-js/marko/pull/1252)
960
+
961
+ ### 4.14.23
962
+
963
+ - Fix warning that `"marko"` was using deprecated features. [#1250](https://github.com/marko-js/marko/pull/1250)
964
+ - Improve code optimization for conditional `@nested` tags. [#1249](https://github.com/marko-js/marko/pull/1249)
965
+
966
+ ### 4.14.22
967
+
968
+ - Fix issue with `no-update` not moving preserved items [#1247](https://github.com/marko-js/marko/pull/1247).
969
+ - Fix regression with include tag migration where `<include(data())>` has side effects. [#1246](https://github.com/marko-js/marko/pull/1246)
970
+ - Treat importing tags the same as using them in the template (uses `load` api instead of `require` when configured). [#1245](https://github.com/marko-js/marko/pull/1245)
971
+ - Gracefully handle async client-reorder when nodes are missing during hydrate. [#1243](https://github.com/marko-js/marko/pull/1243)
972
+
973
+ ### 4.14.21
974
+
975
+ - Update `htmljs-parser` to improve parsing regexes [htmljs-parser #61](https://github.com/marko-js/htmljs-parser/pull/61)
976
+
977
+ ### 4.14.20
978
+
979
+ - Add new `<tag|params|>` support and migrator for old syntax/flag [#1236](https://github.com/marko-js/marko/pull/1236)
980
+ - Remove unneeded deprecation warning when using `component` within a template [#1235](https://github.com/marko-js/marko/pull/1235)
981
+
982
+ ### 4.14.19
983
+
984
+ - Fixes walking into some AST nodes which was causing some migrations to not be as effective [#1233](https://github.com/marko-js/marko/pull/1233)
985
+
986
+ ### 4.14.18
987
+
988
+ - Fixes [#1230](https://github.com/marko-js/marko/issues/1230) - regression with include tag migration outputing invalid identifiers [#1231](https://github.com/marko-js/marko/pull/1231)
989
+ - Add migration for legacy nested tag syntax [#1129](https://github.com/marko-js/marko/pull/1129)
990
+
991
+ ### 4.14.17
992
+
993
+ - Fixes [#1219](https://github.com/marko-js/marko/issues/1219) - transitive widget getEl and events [#1225](https://github.com/marko-js/marko/pull/1225)
994
+ - Importing a marko template adds it to tags meta (fixes regression with `<include>` tag) [#1226](https://github.com/marko-js/marko/pull/1226)
995
+
996
+ ### 4.14.16
997
+
998
+ - Add migration for non-standard template literals. [#1224](https://github.com/marko-js/marko/pull/1224)
999
+ - Fix regression with dynamic attribute migration. [#1223](https://github.com/marko-js/marko/pull/1223)
1000
+
1001
+ ### 4.14.15
1002
+
1003
+ - Improve migrating `widget` references to `component` in attributes. [#1220](https://github.com/marko-js/marko/pull/1220)
1004
+
1005
+ ### 4.14.14
1006
+
1007
+ - Fix regression with `eval`ing class names in debug mode. [#1218](https://github.com/marko-js/marko/pull/1218)
1008
+
1009
+ ### 4.14.13
1010
+
1011
+ - Support file name migrations with Marko migrate. [#1216](https://github.com/marko-js/marko/pull/1216)
1012
+ - Skip `id:scoped` when migrating w-id for custom tags. [#1217](https://github.com/marko-js/marko/pull/1217)
1013
+
1014
+ ### 4.14.12
1015
+
1016
+ - Add migrator for `w-config` attribute. [#1214](https://github.com/marko-js/marko/pull/1214)
1017
+ - Add migrator for and deprecate `unless` tag/directive. [#1210](https://github.com/marko-js/marko/pull/1210)
1018
+
1019
+ ### 4.14.11
1020
+
1021
+ - Fix regression with `w-body` tag. [#1213](https://github.com/marko-js/marko/pull/1213)
1022
+
1023
+ ### 4.14.10
1024
+
1025
+ - Add migrator for `ref` attribute. [#1207](https://github.com/marko-js/marko/pull/1207)
1026
+ - Fix regression with `var` tag and `w-body/include` tags. [#1212](https://github.com/marko-js/marko/pull/1212)
1027
+
1028
+ ### 4.14.9
1029
+
1030
+ - Add migrator for layout tags and include tag/directive. [#1206](https://github.com/marko-js/marko/pull/1206) & [#1204](https://github.com/marko-js/marko/pull/1204)
1031
+ - Add migrator for `<script template-helpers>` and `<script marko-init>`. [#1209](https://github.com/marko-js/marko/pull/1209)
1032
+
1033
+ ### 4.14.8
1034
+
1035
+ - Add migrator from w-body to dynamic tag. [#1199](https://github.com/marko-js/marko/pull/1199)
1036
+ - Add migrator from dynamic attributes to spread attributes. [#1202](https://github.com/marko-js/marko/pull/1202)
1037
+
1038
+ ### 4.14.7
1039
+
1040
+ - Fix regression for `widget.elId` migration. [#1198](https://github.com/marko-js/marko/pull/1198)
1041
+
1042
+ ### 4.14.6
1043
+
1044
+ - Add a whitelist of files to publish to NPM. [#1197](https://github.com/marko-js/marko/pull/1197)
1045
+
1046
+ ### 4.14.5
1047
+
1048
+ - Add `getTemplateData` migrator. [#1195](https://github.com/marko-js/marko/pull/1195)
1049
+ - Add migrators for most of the `w-*` attributes. [#1190](https://github.com/marko-js/marko/pull/1190)
1050
+ - Add basic legacy widget migration. [#1192](https://github.com/marko-js/marko/pull/1192)
1051
+
1052
+ ### 4.14.4
1053
+
1054
+ - Fix regression with `setProps` on legacy compatibility layer. [#1193](https://github.com/marko-js/marko/pull/1193)
1055
+
1056
+ ### 4.14.3
1057
+
1058
+ - Move `w-on` compatibility to the migrate stage. [#1186](https://github.com/marko-js/marko/pull/1186)
1059
+ - Legacy compatibility (v3) improvements. [#1189](https://github.com/marko-js/marko/pull/1189)
1060
+ - Specially handle template literals in templates. [#1188](https://github.com/marko-js/marko/pull/1188)
1061
+
1062
+ ### 4.14.2
1063
+
1064
+ - Convert the `<async-fragment>` transformer into a migrator. [#1185](https://github.com/marko-js/marko/pull/1185)
1065
+
1066
+ ### 4.14.1
1067
+
1068
+ - Fix regression causing some parsed javascript nodes to be omitted from output. [#1184](https://github.com/marko-js/marko/pull/1184)
1069
+
1070
+ ### 4.14.0
1071
+
1072
+ - Add migration stage, deprecate rendering with `out`, deprecate control-flow directive as attributes. [#1180](https://github.com/marko-js/marko/pull/1180)
1073
+ - parse = parseRaw + normalize [#1179](https://github.com/marko-js/marko/pull/1179)
1074
+ - parse nonstandard string with placeholder to TemplateLiteral node, transpile template literals. [#1179](https://github.com/marko-js/marko/pull/1179)
1075
+ - add new parse api
1076
+
1077
+ ## 4.13.x
1078
+
1079
+ ### 4.13.13
1080
+
1081
+ - Fix regression: parsing of `if` statements without braces (in scriptlets & otherwise). [#1175](https://github.com/marko-js/marko/pull/1175)
1082
+ - Fix regression: `<var>` and `<assign>` tags with non-standard placeholders in normal string attributes. [#1176](https://github.com/marko-js/marko/pull/1176)
1083
+
1084
+ ### 4.13.12
1085
+
1086
+ - `<invoke>` tag translates to modern Marko scriptlet (or dynamic tag). [#1165](https://github.com/marko-js/marko/pull/1165)
1087
+ - `<assign>` tag translates to modern Marko scriptlet. [#1158](https://github.com/marko-js/marko/pull/1158)
1088
+ - Imperative rendering in scriptlets translates to modern Marko dynamic tag. [#1174](https://github.com/marko-js/marko/pull/1174)
1089
+
1090
+ ### 4.13.11
1091
+
1092
+ - Add spread attribute optimization, fix issue with spreading non objects. [#1171](https://github.com/marko-js/marko/pull/1171)
1093
+ - Move `#` to the start of `:scoped` attributes (allows for `href:scoped="#name"`). [#1172](https://github.com/marko-js/marko/pull/1172)
1094
+
1095
+ ### 4.13.10
1096
+
1097
+ - Adds a hidden api used to make [@marko-tags/context](https://github.com/marko-js/tags/tree/master/tags/context) possible. [#1168](https://github.com/marko-js/marko/pull/1168)
1098
+
1099
+ ### 4.13.9
1100
+
1101
+ - Improve support for [arc]() by normalizing file system names with square brackets. [#1166](https://github.com/marko-js/marko/pull/1166)
1102
+
1103
+ ### 4.13.8
1104
+
1105
+ - Quick patch for `4.13.7` that removes a `let` assignment. [#1153](https://github.com/marko-js/marko/pull/1153)
1106
+
1107
+ ### 4.13.7
1108
+
1109
+ - Prevent treating components with tag params being treated as implicit components. [#1149](https://github.com/marko-js/marko/pull/1149)
1110
+
1111
+ ### 4.13.6
1112
+
1113
+ - Prevent mutating component input when using a single spread attribute with repeated @tags. [#1142](https://github.com/marko-js/marko/pull/1142)
1114
+ - Fix for include tag hydration when transcluded. [#1143](https://github.com/marko-js/marko/pull/1143)
1115
+
1116
+ ### 4.13.5
1117
+
1118
+ - Add additional reference to fragment nodes which resolves an issue with IE. [#1130](https://github.com/marko-js/marko/pull/1130)
1119
+
1120
+ ### 4.13.4
1121
+
1122
+ - Remove Object.assign calls in the browser. [#1120](https://github.com/marko-js/marko/pull/1120)
1123
+
1124
+ ### 4.13.3
1125
+
1126
+ - Propagate errors to express automatically with the `res.marko` api. [#1119](https://github.com/marko-js/marko/pull/1119)
1127
+ - Support multi line import statments. [#1118](https://github.com/marko-js/marko/pull/1118)
1128
+
1129
+ ### 4.13.2
1130
+
1131
+ - Allow discovering tags where the template name matches the directory name [#1117](https://github.com/marko-js/marko/pull/1117):
1132
+
1133
+ ```
1134
+ components/
1135
+ tag-name/
1136
+ tag-name.marko
1137
+ tag-name.style.css
1138
+ ```
1139
+
1140
+ ### 4.13.1
1141
+
1142
+ - Remove es2015 features from runtime. [#1115](https://github.com/marko-js/marko/pull/1115)
1143
+
1144
+ ### 4.13.0
1145
+
1146
+ #### PR #1094
1147
+
1148
+ **Introducing HTMLFragment**
1149
+
1150
+ - Updates the diffing algorithm to use an HTMLFragment node as an abstraction rather than keeping track of startNode and endNode all throughout the diffing algorithm.
1151
+ - Uses the HTMLFragment for the `<${dynamic}>` tag and `<include>` tags to preserve server-rendered content for which the `renderBody` is not available in the browser.
1152
+
1153
+ **Changes to keys**
1154
+
1155
+ - Component ids are based on the resulting parent tree (not the owner tree). This means we cannot rely on the ids in the global lookup, so component key/refs are now also stored on the component instance.
1156
+ - Autokeyed elements are now stored on the parent rather than the owner. User assigned key/refs are still stored on the owner component. Because of this, user assigned keys are now prefixed to differentiate them from autokeys. This also has the benefit that assigning numeric keys can no longer conflict with the autokeys.
1157
+ - Static node trees are now only auto assigned a key for the top-level node (instead of all nodes). This is because:
1158
+ - When updating, only the top-level node is considered.
1159
+ - When static nodes are hoisted out of the render method, they are not associated with the owner component
1160
+
1161
+ **Changes to Hydration**
1162
+
1163
+ - Server comment starting markers now have the component's key serialized so the component can be attached to its owner
1164
+ - Server comment markers no longer have the id on the closing marker, it is stack based.
1165
+ - Normalize differences between hydration and client-rendering, so post mount the DOM looks the same regardless of whether a component was server or client rendered.
1166
+
1167
+ ## 4.12.x
1168
+
1169
+ ### 4.12.4
1170
+
1171
+ - Don't render invalid attribute names on the server [#1103](https://github.com/marko-js/marko/pull/1103)
1172
+
1173
+ ### 4.12.3
1174
+
1175
+ - Removes extra parentheses in output javascript for expressions that Marko does not understand.
1176
+
1177
+ ### 4.12.2
1178
+
1179
+ - Fixes automatic keying of elements/components in `for()` attribute loops
1180
+
1181
+ ### 4.12.1
1182
+
1183
+ - Fix #1022 - transcluded keys don't match, stateful component not preserved [#1086](https://github.com/marko-js/marko/pull/1086)
1184
+
1185
+ ### 4.12.0
1186
+
1187
+ - Tag params [#1076](https://github.com/marko-js/marko/pull/1076)
1188
+ - Style arrays [#1082](https://github.com/marko-js/marko/pull/1082)
1189
+ - Fix #1075 - cannot compile dynamic tag at root with user key [#1081](https://github.com/marko-js/marko/pull/1081)
1190
+ - Fix #1078 - mutating spread attributes [#1080](https://github.com/marko-js/marko/pull/1080)
1191
+
1192
+ ## 4.11.x
1193
+
1194
+ ### 4.11.5
1195
+
1196
+ - Add fallback location for compile-time deprecation warnings
1197
+
1198
+ ### 4.11.4
1199
+
1200
+ - Fixes an issue with scoped attributes automatically setting keys in a problematic way [#1069](https://github.com/marko-js/marko/pull/1069)
1201
+ - Fixes #1059 and #1052 - `Cannot read property 'nextSibling' of null`
1202
+
1203
+ ### 4.11.3
1204
+
1205
+ - Fixes #952
1206
+ - Fixes automatic keying of elements/components in `<for>` loops
1207
+
1208
+ ### 4.11.2
1209
+
1210
+ - Fixes another regression in the `<${dynamic}>` tag where `dashed-case` attributes were being converted to `camelCase` when rendering html elements.
1211
+
1212
+ ### 4.11.1
1213
+
1214
+ - Fixes a regression in `<${dynamic}>` tags for object/array class/style attributes:
1215
+ ```marko
1216
+ $ const style = { color:'blue' };
1217
+ <${tagName} style=style/>
1218
+ ```
1219
+ - Allows dynamic attributes defined using `...spread` to include object/array class/style [#933](https://github.com/marko-js/marko/pull/933):
1220
+ ```marko
1221
+ $ const attrs = { style:{ color:'blue' } };
1222
+ <tag ...attrs/>
1223
+ ```
1224
+ - Fixes issue where object/array class/style attributes could not be used with `...spread` [#1007](https://github.com/marko-js/marko/pull/1007):
1225
+ ```marko
1226
+ $ const attrs = {};
1227
+ <tag class=["oops"] ...attrs/>
1228
+ ```
1229
+
1230
+ ### 4.11.0
1231
+
1232
+ - Implement #880: `<${dynamic}>` tag
1233
+ - `<include>` should be considered deprecated. Formal deprecation warning to come.
1234
+
1235
+ ## 4.10.x
1236
+
1237
+ ### 4.10.1
1238
+
1239
+ - Fix issue with calling `require('marko/components').init(components)` multiple times.
1240
+
1241
+ ### 4.10.0
1242
+
1243
+ - Fix #1049 Fix documentation urls on the website.
1244
+
1245
+ ## 4.9.x
1246
+
1247
+ ### 4.9.7
1248
+
1249
+ - Fix #1038 Legacy compatibility dirty check returning false positives.
1250
+
1251
+ ### 4.9.6
1252
+
1253
+ - Fix #1008 Spread attribute now supports functions (`..attrs()`) [#1029](https://github.com/marko-js/marko/pull/1029)
1254
+
1255
+ ### 4.9.5
1256
+
1257
+ - Fix `onBeforeUpdate` timing for legacy component layer [#1027](https://github.com/marko-js/marko/pull/1027)
1258
+
1259
+ ### 4.9.4
1260
+
1261
+ - Fix breaking older browsers with es6 object shorthand notation [bc0e91d5](https://github.com/marko-js/marko/commit/bc0e91d517d7b8de484c745a5734f15347ed0d26)
1262
+
1263
+ ### 4.9.3
1264
+
1265
+ - Fix import-var compilation when there are no explicit attributes [#1002](https://github.com/marko-js/marko/pull/1002)
1266
+
1267
+ ### 4.9.2
1268
+
1269
+ - Fixes collisions with multiple Marko runtimes on the same page. [#1019](https://github.com/marko-js/marko/pull/1019)
1270
+ - Switch to using prettier and eslint. [#1016](https://github.com/marko-js/marko/pull/1016)
1271
+
1272
+ ### 4.9.1
1273
+
1274
+ - Fixes an issue with keyed elements not getting properly removed. [#1013](https://github.com/marko-js/marko/pull/1013)
1275
+
1276
+ ### 4.9.0
1277
+
1278
+ - Fixes related to hydration, split components, and the legacy compatibility layer [#1010](https://github.com/marko-js/marko/pull/1010)
1279
+
1280
+ - Fix paths for vdom dependencies [#1011](https://github.com/marko-js/marko/pull/1011)
1281
+
1282
+ ## 4.8.x
1283
+
1284
+ ### 4.8.0
1285
+
1286
+ - Add `once-[event]` directive [#990](https://github.com/marko-js/marko/pull/990)
1287
+
1288
+ - Improve testing setup [#989](https://github.com/marko-js/marko/pull/989)
1289
+
1290
+ ## 4.7.x
1291
+
1292
+ ### 4.7.5
1293
+
1294
+ - Update docs for advanced attribute definition [#968](https://github.com/marko-js/marko/pull/968)
1295
+
1296
+ - Improve error message for async rendering [#958](https://github.com/marko-js/marko/pull/958)
1297
+
1298
+ ### 4.7.4
1299
+
1300
+ - Make jQuery optional for legacy components [#951](https://github.com/marko-js/marko/pull/951)
1301
+
1302
+ ### 4.7.3
1303
+
1304
+ - Prevent onRender running on the server for legacy widgets
1305
+
1306
+ ### 4.7.2
1307
+
1308
+ - Fixes [#946](https://github.com/marko-js/marko/issues/946) - don't put legacy init code in a separate lasso bundle
1309
+
1310
+ - Fixes allowing conditionally binding to different roots in a legacy widget [#944](https://github.com/marko-js/marko/pull/944)
1311
+
1312
+ ### 4.7.1
1313
+
1314
+ - Fix issue with multiple top level elements being removed twice. [#940](https://github.com/marko-js/marko/pull/940)
1315
+
1316
+ ### 4.7.0
1317
+
1318
+ - Add jQuery legacy compatibility layer support [#937](https://github.com/marko-js/marko/pull/937)
1319
+
1320
+ - Reorganize Marko tests [#934](https://github.com/marko-js/marko/pull/934)
1321
+
1322
+ - Switch to using jsdom in test suite [#935](https://github.com/marko-js/marko/pull/935)
1323
+
1324
+ - Decouple component hydration from Lasso [#929](https://github.com/marko-js/marko/pull/929)
1325
+
1326
+ ## 4.6.x
1327
+
1328
+ ### 4.6.0
1329
+
1330
+ - Fixes [#914](https://github.com/marko-js/marko/issues/914) and [#920](https://github.com/marko-js/marko/issues/920) -
1331
+ Resolves top-level component bugs
1332
+
1333
+ - Setup `marko.load()` to prefer precompiled templates from [marko-cli](https://github.com/marko-js/marko-cli)
1334
+
1335
+ - Various compiler changes to improve [marko-migrate](https://github.com/marko-js/marko-migrate)
1336
+
1337
+ - Fixes [#916](https://github.com/marko-js/marko/pull/916) - Add Marko debug mode.
1338
+ Adds babel plugin to remove and statically evaluate 'MARKO_DEBUG' literals for
1339
+ adding deprecation warnings and hints for the runtime without a performance
1340
+ penalty for production builds.
1341
+
1342
+ ## 4.5.x
1343
+
1344
+ ### 4.5.6
1345
+
1346
+ - Fixes [#909](https://github.com/marko-js/marko/issues/909) - Fix condition preventing bubbling DOM events from properly being attached to a component.
1347
+
1348
+ ### 4.5.5
1349
+
1350
+ - Add 10 Awesome Marko Features article to documentation
1351
+
1352
+ ### 4.5.4
1353
+
1354
+ - Fixes [#904](https://github.com/marko-js/marko/issues/904) - The loop status variable is not compiling when the equal sign is padded in spacing
1355
+
1356
+ ### 4.5.3
1357
+
1358
+ - Fixes [#903](https://github.com/marko-js/marko/issues/903) - Special unicode chars (\u2028 and \u2029) need to be escaped if within script tag
1359
+
1360
+ ### 4.5.2
1361
+
1362
+ - Fixes [#899](https://github.com/marko-js/marko/issues/899) - Keyed element could be incorrectly removed after DOM diffing/patching in case of HTML element mismatch for elements with the same key. [PR #900](https://github.com/marko-js/marko/pull/900)
1363
+
1364
+ ### 4.5.1
1365
+
1366
+ - Fixes [#893](https://github.com/marko-js/marko/issues/893) - Keyed element could be incorrectly removed after DOM diffing/patching in case of HTML element mismatch for elements with the same key. [PR #894](https://github.com/marko-js/marko/pull/894) by [@westtrade](https://github.com/westtrade)
1367
+
1368
+ ### 4.5.0
1369
+
1370
+ Summary of changes across all beta releases for the `4.5.0` release:
1371
+
1372
+ - Fixes [#886](https://github.com/marko-js/marko/issues/886) - Write component initialization code when async out and all of its nested async outs finish
1373
+ - Fixes [#854](https://github.com/marko-js/marko/issues/854) - Make every .marko file a UI component ([PR #855](https://github.com/marko-js/marko/pull/855))
1374
+ - Added support for the `:scoped` modifier on attributes and deprecated `:key`:
1375
+
1376
+ ```marko
1377
+ <label for:scoped="name">Name</label>
1378
+ <input id:scoped="name" value="Frank"/>
1379
+ ```
1380
+
1381
+ - Fixes [#817](https://github.com/marko-js/marko/issues/817) - Support dynamic root elements
1382
+ - Marko no longer attaches `id` attributes to elements for purposes of keyed matching
1383
+ - Keyed elements are maintained in an internal, per-component lookup
1384
+ - Keys are now assigned to all custom tags and HTML elements at compile-time to improve reliability and performance of DOM diffing
1385
+ - Optimized internal bookkeeping required during rendering a UI component tree (no more UI component stack)
1386
+ - DOM diffing/patching changes:
1387
+ - Significant performance improvements
1388
+ - morphdom is now UI component-aware
1389
+
1390
+ ### 4.5.0-beta.3
1391
+
1392
+ - Fixes [#854](https://github.com/marko-js/marko/issues/854) - Make every .marko file a UI component ([PR #855](https://github.com/marko-js/marko/pull/855))
1393
+
1394
+ ### 4.5.0-beta.2
1395
+
1396
+ - Add ids for any key when component.elId/getElId is used as an attribute value
1397
+ - Use indexOf instead of includes to support Node 4
1398
+ - [docs] Fixes [#841](https://github.com/marko-js/marko/issues/841) - `docs/components.md` refers to deprecated "data" variable [#842](https://github.com/marko-js/marko/pull/842)
1399
+
1400
+ ### 4.5.0-beta.1
1401
+
1402
+ - Add back (legacy) support for component.elId + key in template
1403
+ - Fixes [#837](https://github.com/marko-js/marko/issues/837) - Update esprima to the latest to support async/await and ES2017 inside of components. ([PR #839](https://github.com/marko-js/marko/pull/839))
1404
+ - Fixes key/scope for attributes that have dashes in the name
1405
+
1406
+ ### 4.5.0-beta.0
1407
+
1408
+ - Fixes [#817](https://github.com/marko-js/marko/issues/817) - Support dynamic root elements
1409
+ - Marko no longer attaches `id` attributes to elements for purposes of keyed matching
1410
+ - Keyed elements are maintained in an internal, per-component lookup
1411
+ - Keys are now assigned to all custom tags and HTML elements at compile-time to improve reliability and performance of DOM diffing
1412
+ - Optimized internal bookkeeping required during rendering a UI component tree (no more UI component stack)
1413
+ - DOM diffing/patching changes:
1414
+ - Significant performance improvements
1415
+ - morphdom is now UI component-aware
1416
+
1417
+ ## 4.4.x
1418
+
1419
+ ### 4.4.28
1420
+
1421
+ - fix undefined reference error in Component.js
1422
+ - Increase mocha timeout to avoid CI build's failing [#821](https://github.com/marko-js/marko/pull/821)
1423
+
1424
+ ### 4.4.27
1425
+
1426
+ - Add ability to update globals by setting new input.
1427
+ - [docs] Remove unneeded command from installation docs
1428
+ - [docs] Update installing.md
1429
+
1430
+ ### 4.4.26
1431
+
1432
+ - Add better interop for importing modules with default exports [#803](https://github.com/marko-js/marko/pull/803)
1433
+
1434
+ ### 4.4.25
1435
+
1436
+ - Fixes #778 - Fix Marko compiler generating incorrect path for requires on Windows.
1437
+
1438
+ ### 4.4.24
1439
+
1440
+ - [docs] Update installing.md
1441
+
1442
+ ### 4.4.23
1443
+
1444
+ - Fixes #796 - Fix events for event targets that are SVGElementInstance types in IE11.
1445
+ - Used shortcut for escapeAtTags;
1446
+ - Added `escapeAtTags` options in order to render `<@tags>` as they are;
1447
+ - simplify a condition judgement in components-jquery
1448
+ - Fixes #790 - Class tag should not allow nested body content.
1449
+ - Update `compile/index.js` test description
1450
+ - Update handleRootNodes.js [#747](https://github.com/marko-js/marko/pull/747)
1451
+ - [docs] Fix reference to lifecycle section in docs.
1452
+
1453
+ ### 4.4.22
1454
+
1455
+ - Fixes #784 - Fix compiled preserve-attrs path.
1456
+ - [testing] Fix express tests [#779](https://github.com/marko-js/marko/pull/779)
1457
+ - [docs] Update webpack.md
1458
+
1459
+ ### 4.4.21
1460
+
1461
+ - Updated description in `package.json`
1462
+
1463
+ ### 4.4.20
1464
+
1465
+ - update bindComponentVar to use dynamic location
1466
+ - updating location of bindComponent helper
1467
+
1468
+ ### 4.4.19
1469
+
1470
+ - [testing] Fix key suffix test assertions.
1471
+ - Address key suffix feedback. Additional tests.
1472
+ - [morphdom] Removed bad and unhelpful optimization to avoid infinite loops
1473
+ - [morphdom] Ensure `onBeforeNodeDiscarded` is only called once by looking to see if the node is still attached.
1474
+ - [morphdom] Infinite loop fix in morphdom
1475
+ - Fixes #761 - component.elId() does not work on the server
1476
+ - Fixes #755 - Allow diffing of HTML, head, and body. [#756](https://github.com/marko-js/marko/pull/756)
1477
+ - [docs] Updated component docs
1478
+ - [docs] Use relative link for image
1479
+ - [testing] User default npm version for each Node.js version
1480
+
1481
+ ### 4.4.18
1482
+
1483
+ - Fixes #749 #690 - Do not rely on root node having an ID on rerender and properly handle style root nodes.
1484
+
1485
+ ### 4.4.17
1486
+
1487
+ - Put package (`browser.json`) deps before others and parent deps before child deps [#750](https://github.com/marko-js/marko/pull/750)
1488
+ - [docs] Fix typo in redux.md
1489
+ - [docs] Add redux document to structure.json
1490
+ - [docs] Add doc describing how to use Redux with Marko.
1491
+
1492
+ ### 4.4.16
1493
+
1494
+ - Fix duplicate body variable
1495
+
1496
+ ### 4.4.15
1497
+
1498
+ - Fixes #739 - Should not attempt to check instanceof of type Map if it does not exist in the browser.
1499
+ - Added build scripts
1500
+
1501
+ ### 4.4.14
1502
+
1503
+ - Fixes issue with renderToString not rendering text nodes
1504
+
1505
+ ### 4.4.13
1506
+
1507
+ - Fixes #721 - Add a Code of Conduct
1508
+ - Fixes #655 - Implement renderToString in the browser.
1509
+
1510
+ ### 4.4.12
1511
+
1512
+ - Fixes #695 - Always ignore unrecognized tags for XML files when using the compiler.
1513
+ - Fixes #705 - Throw error when the root HTML element is a component and has a dynamic id attribute.
1514
+ - [testing] Additional test for root node with dynamic id of a component with a component.js file.
1515
+
1516
+ ### 4.4.11
1517
+
1518
+ - Fixes #728 - Do not use module keyword because webpack compiles it to a custom object.
1519
+ - Fixes #719 - Support Express 4 and Express 5.
1520
+ - fixes #658 by removing empty style blocks [#715](https://github.com/marko-js/marko/pull/715)
1521
+ - fixes #688 - add reference to browser.json in meta dependencies
1522
+ - [docs] Fix broken link
1523
+ - [docs] Fix Marko syntax in docs causing compilation errors on the website.
1524
+ - [docs] Change pixels to percent in doc images.
1525
+ - [testing] Purge express cache so that express tests both use correct module versions.
1526
+
1527
+ ### 4.4.9
1528
+
1529
+ - Revert "Fixes #705 - Throw error when the root HTML element has a dynamic id …"
1530
+ - [testing] Only run Node 4, 6, & 8 in travis
1531
+
1532
+ ### 4.4.8
1533
+
1534
+ - [docs] Clean up why-is-marko-fast.md
1535
+ - [docs] Clean up marko-vs-react.md
1536
+
1537
+ ### 4.4.7
1538
+
1539
+ - Add silent option to browser-refresh and hot-reload
1540
+ - Check id attribute for Literal. Update error message to include error page.
1541
+ - Fixes #705 - Throw error when the root HTML element has a dynamic id attribute.
1542
+ - [docs] Clean up components.md
1543
+ - [docs] Fix typo in webpack.md
1544
+ - [testing] give extra time for test timing out in travis
1545
+ - [testing] run tests on node 8
1546
+ - [testing] ignore test-dist from coverage
1547
+
1548
+ ### 4.4.6
1549
+
1550
+ - Fixes #693 - [SSR] Improved handling of top-level UI components with renderBody func
1551
+ - Switching to using `prepublish` with npm@5
1552
+
1553
+ ### 4.4.3
1554
+
1555
+ - Use parent module to require express patch [#701](https://github.com/marko-js/marko/pull/701)
1556
+ - [docs] Reference app should point to "marko-lasso" because "ui-components-playground" does not contain lasso
1557
+ - [docs] Add articles section to docs.
1558
+
1559
+ ### 4.4.2
1560
+
1561
+ - Build fixes related to compiler
1562
+
1563
+ ### 4.4.0
1564
+
1565
+ - Improve no-update-if condition check
1566
+ - Compatibility improvements for Try Online
1567
+ - Code size reduction
1568
+ - Introduced src/ and dist/ folders for optimized production builds
1569
+ - Fixes #695 - Default to ignoring unrecognized tags for XML files.
1570
+
1571
+ ## 4.3.x
1572
+
1573
+ ### 4.3.1
1574
+
1575
+ - Add basic test for ensuring that res.marko returns a promise.
1576
+ - enable res.marko can catch a error safe
1577
+
1578
+ ### 4.3.0
1579
+
1580
+ - [compiler] Added more control over how attributes are targeted to props
1581
+ - Don't add root markers to tags that don't produce output
1582
+ - [docs] Added docs for Marko + Huncwot integration
1583
+ - [AST] Added `node.removeChildren()`
1584
+ - Extend marko globals with defaults
1585
+
1586
+ ### 4.3.0-beta.4
1587
+
1588
+ - Fixes #673 - Circular dependency is causing problems with Webpack
1589
+
1590
+ ### 4.3.0-beta.3
1591
+
1592
+ - Changes related to #670 - Globals must be serialized earlier to allow early mount of UI components in
1593
+ - [docs] Improved docs for SSR
1594
+
1595
+ ### 4.3.0-beta.2
1596
+
1597
+ - Fixes for #670 - Add support for serialized globals and retain globals on re-render
1598
+
1599
+ ## 4.2.x
1600
+
1601
+ ### 4.2.8
1602
+
1603
+ - Bug: Fixes [#661](https://github.com/marko-js/marko/issues/661) - Component initialization code may end up in the wrong place
1604
+ - Bug: Fixes [#668](https://github.com/marko-js/marko/issues/668) - Declarative event listeners are now allowed on the `<include>` tag
1605
+
1606
+ ### 4.2.7
1607
+
1608
+ - Bug: Fixes [#650](https://github.com/marko-js/marko/issues/650) - The tag "await" does not support attribute "unless"
1609
+ - Improvements to legacy state
1610
+
1611
+ ### 4.2.6
1612
+
1613
+ - Bug: Fixes [#654](https://github.com/marko-js/marko/issues/654) - Bug: components implementing a `key` attribute break in Marko v4
1614
+ - Improvements to legacy compatibility layer
1615
+
1616
+ ### 4.2.5
1617
+
1618
+ - Improved support for UI components implemented using native JavaScript class in a separate file
1619
+ - Improved how legacy layout tags are handled by Marko v4
1620
+
1621
+ ### 4.2.4
1622
+
1623
+ - Bug: Fixes [#653](https://github.com/marko-js/marko/issues/653) - Event handlers are no longer bound in edge case
1624
+
1625
+ ### 4.2.3
1626
+
1627
+ - Bug: Fixes [#649](https://github.com/marko-js/marko/issues/649) - New line always added to `textarea` and other elements for single line/delimited HTML blocks
1628
+
1629
+ ### 4.2.2
1630
+
1631
+ - Bug: Fixes [#648](https://github.com/marko-js/marko/issues/648) - Style attribute object and lengths not handled properly
1632
+
1633
+ ### 4.2.1
1634
+
1635
+ - Bug: Fixed [#644](https://github.com/marko-js/marko/issues/644) - Attribute not rendered by Marko is not preserved if component first rendered on the server
1636
+ - [Performance] Escaping is not needed for the `data-marko` attribute
1637
+
1638
+ ### 4.2.0
1639
+
1640
+ - Bug: Fixed [#629](https://github.com/marko-js/marko/issues/629) - VDOM: Rendering unescaped HTML produces non-functioning HTML input controls
1641
+ - Bug: Fixed [#634](https://github.com/marko-js/marko/issues/634) - writeInitComponentsCode is not a function
1642
+ - Enhancement: Added support to allow improved precompiling of templates
1643
+ - Enhancement: Fixed [#636](https://github.com/marko-js/marko/issues/636) - Add error when macro with duplicate name is found
1644
+ - Performance: Optimized diffing/patching to avoid indexing entire tree to find keyed elements
1645
+ - Performance: Optimized how event handlers are attached to VDOM nodes (separated from attributes)
1646
+
1647
+ ## 4.1.x
1648
+
1649
+ ### 4.1.3
1650
+
1651
+ - Bug: Fixed losing cursor position in Edge (see [morphdom PR #100](https://github.com/patrick-steele-idem/morphdom/pull/100) by [@zastavnitskiy](https://github.com/zastavnitskiy))
1652
+ - Bug: Ignore `xmlns` attributes when virtualizing real DOM nodes (needed when inserting an HTML string when rendering to a VDOM)
1653
+
1654
+ ### 4.1.2
1655
+
1656
+ - Bug: Fixed [#623](https://github.com/marko-js/marko/issues/623) - Uncaught TypeError: `toEl.$__hasAttribute` is not a function
1657
+ - Bug: Fixed [#619](https://github.com/marko-js/marko/issues/619) - Deprecated `constructor()` for UI component classes
1658
+
1659
+ ### 4.1.1
1660
+
1661
+ - Added `"use strict";` to restore Node.js compatibility for Node.js v4 and v5
1662
+
1663
+ ### 4.1.0
1664
+
1665
+ - Bug: Fixes [#611](https://github.com/marko-js/marko/issues/611) - Component IDs are not being assigned correctly when intermediate non-component is rendered
1666
+ - Performance: SVG namespaced elements are now resolved determined at compile-time
1667
+ - Performance: Merged in `morphdom` and optimized for Marko
1668
+ - Performance: Optimized diffing/patching of elements with only simple attributes in the following set: `class`, `id` and `style`
1669
+
1670
+ ## 4.0.x
1671
+
1672
+ ### 4.0.1
1673
+
1674
+ - Bug: Fixes [#612](https://github.com/marko-js/marko/issues/612) - Compile error when class method has empty `return`
1675
+ - Bug: Fixes [#604](https://github.com/marko-js/marko/issues/604) - `no-update` attributes error when first rendered on the server
1676
+ - Bug: Fixes [#608](https://github.com/marko-js/marko/issues/608) - Component losing `renderBody` input on a particular redraw
1677
+ - Enhancement: Fixes [#606](https://github.com/marko-js/marko/issues/606) - named single-file component doesn't work
1678
+
1679
+ ### 4.0.0
1680
+
1681
+ - Marko v4! [Release Announcement](https://medium.com/@mlrawlings/marko-4-0-is-here-837884c5f60d)
1682
+
1683
+ # 3.x
1684
+
1685
+ ## 3.13.x
1686
+
1687
+ ### 3.13.2
1688
+
1689
+ - Fixed [#478](TagLookup fails when merging taglibs) - TagLookup fails when merging taglibs
1690
+
1691
+ ### 3.13.1
1692
+
1693
+ - Fixes [#465](https://github.com/marko-js/marko/issues/465)
1694
+
1695
+ ### 3.13.0
1696
+
1697
+ ## 3.12.x
1698
+
1699
+ ### 3.12.0
1700
+
1701
+ - Added warnings for using render methods when you want string output ([Pull Request #450](https://github.com/marko-js/marko/pull/450) by [@mlrawlings](https://github.com/mlrawlings))
1702
+
1703
+ ## 3.11.x
1704
+
1705
+ ### 3.11.8
1706
+
1707
+ - Fixes [#382](https://github.com/marko-js/marko/issues/382) - Local variable for tag should have prefix or suffix to avoid conflict
1708
+
1709
+ ### 3.11.7
1710
+
1711
+ - Fixes [#381](https://github.com/marko-js/marko/issues/381) - `$global` broken when using `template.stream()`
1712
+
1713
+ ### 3.11.6
1714
+
1715
+ - Internal change: `AsyncWriter` → `AsyncStream`
1716
+
1717
+ ### 3.11.5
1718
+
1719
+ - (no changes)
1720
+
1721
+ ### 3.11.4
1722
+
1723
+ - Update to `async-writer@2`
1724
+
1725
+ ### 3.11.3
1726
+
1727
+ - Silently ignore errors when parsing tag definition code inlined in JavaScript
1728
+
1729
+ ### 3.11.2
1730
+
1731
+ - Fixed [#318](https://github.com/marko-js/marko/issues/318) - Use compiler options passed to require hook to configure marko globally
1732
+
1733
+ ```javascript
1734
+ require("marko/node-require").install({
1735
+ compilerOptions: {
1736
+ writeToDisk: false
1737
+ }
1738
+ });
1739
+ ```
1740
+
1741
+ ### 3.11.1
1742
+
1743
+ - Fixed [#370](https://github.com/marko-js/marko/issues/370) - HTML characters in loop separator string should not be escaped
1744
+
1745
+ ### 3.11.0
1746
+
1747
+ - Introduced the `<include-html(path)>` tag for including static HTML:
1748
+
1749
+ ```xml
1750
+ <include-html('./foo.html')>
1751
+ ```
1752
+
1753
+ ## 3.10.x
1754
+
1755
+ ### 3.10.1
1756
+
1757
+ - Fixed [#44](https://github.com/marko-js/marko/issues/44) - Webpack compatibility fixes. Also see [marko-loader](https://github.com/marko-js/marko-loader) (A marko loader for webpack)
1758
+
1759
+ ### 3.10.0
1760
+
1761
+ - Fixed [#357](https://github.com/marko-js/marko/issues/357) - Deprecate `empty`/`notEmpty` in Marko v3
1762
+
1763
+ ## 3.9.x
1764
+
1765
+ ### 3.9.4
1766
+
1767
+ - Fixed [#355](https://github.com/marko-js/marko/issues/355) - `status-var`/`separator` options not handled when looping over properties
1768
+ - Fixed [#354](https://github.com/marko-js/marko/issues/354) - regular expressions used in attribute values are not being handled correctly
1769
+ - Fixed [#353](https://github.com/marko-js/marko/issues/353) - `body-only-if` attribute does not work with custom tags (only HTML tags)
1770
+
1771
+ ### 3.9.3
1772
+
1773
+ - Upgraded to `raptor-util@^2`
1774
+
1775
+ ### 3.9.2
1776
+
1777
+ - Fixed [#327](https://github.com/marko-js/marko/issues/327) - alt attribute with empty string should be allowed ([Pull Request #350](https://github.com/marko-js/marko/pull/350) by [@mlrawlings](https://github.com/mlrawlings))
1778
+
1779
+ ### 3.9.1
1780
+
1781
+ - Fixed [#348](https://github.com/marko-js/marko/issues/348) - exclude all `*.orig` and other files from published npm package
1782
+
1783
+ ### 3.9.0
1784
+
1785
+ - Fixed [#231](https://github.com/marko-js/marko/issues/231) - Allow <assign count++>
1786
+ - Fixed [#345](https://github.com/marko-js/marko/issues/345) - Whitespace preservation now applies to all deeply nested text nodes
1787
+ - Fixed [#344](https://github.com/marko-js/marko/issues/344) - Introduced [defineRenderer](./docs/javascript-api.md#requiremarkodefinerenderer) for Marko
1788
+ - Docs: Added docs for excluding directories from taglib discovery ([@mlrawlings](https://github.com/mlrawlings))
1789
+ - Docs: Added docs for component autodiscovery ([@mlrawlings](https://github.com/mlrawlings))
1790
+ - Docs: Added docs for passing a data object to a custom tag
1791
+
1792
+ ## 3.8.x
1793
+
1794
+ ### 3.8.1
1795
+
1796
+ - Fixed [#342](https://github.com/marko-js/marko/issues/342) - `await:finish` event not emitted for async fragments with client reorder and that complete synchronously
1797
+
1798
+ ### 3.8.0
1799
+
1800
+ - Fixed [#329](https://github.com/marko-js/marko/issues/329) - Add autodiscover of components/ directory ([Pull Request #338](https://github.com/marko-js/marko/pull/338) by [@mlrawlings](https://github.com/mlrawlings))
1801
+
1802
+ ## 3.7.x
1803
+
1804
+ ### 3.7.4
1805
+
1806
+ - Fixed [#339](https://github.com/marko-js/marko/issues/339) - Tag transformers are not being applied to tags with a dynamic tag name (fixes [#146](https://github.com/marko-js/marko-components/issues/146) for Marko Components)
1807
+
1808
+ ### 3.7.3
1809
+
1810
+ - Fixed [#332](https://github.com/marko-js/marko/issues/332) and [#333](https://github.com/marko-js/marko/issues/333) - Correct values for `literalUndefined` and `literalFalse` in the Builder API [@bkuri](https://github.com/bkuri)
1811
+ - Fixed [#336](https://github.com/marko-js/marko/issues/336) - Upgraded to latest version of `minimatch`
1812
+
1813
+ ### 3.7.2
1814
+
1815
+ - Fixed [#328](https://github.com/marko-js/marko/issues/328) - Improve error reporting when taglib/tag definition fails to load
1816
+ - Additional change to disable escaping for dynamic `Text` nodes added to body of `<script>` tag to fix [issue #326](https://github.com/marko-js/marko/issues/326)
1817
+
1818
+ ### 3.7.1
1819
+
1820
+ - Improved escaping within the `<script>` tag to fix [issue #322](https://github.com/marko-js/marko/issues/322). Special HTML characters will no longer be escaped within the context of the `<script>` tag since browsers do not decode HTML entities within the `<script>` tag. Instead, only the ending `</script>` tag sequence is escaped using JavaScript string escaping sequences.
1821
+
1822
+ ### 3.7.0
1823
+
1824
+ - Made change to make configuration a true singleton shared across all instances of `marko` loaded at runtime ([commit](https://github.com/marko-js/marko/commit/cd797322adf80f2890015de7b8f62301c2921a0a))
1825
+
1826
+ ## 3.6.x
1827
+
1828
+ ### 3.6.2
1829
+
1830
+ - Improved support for hot reloading by automatically disabling `assumeUpToDate` if hot reload is enabled. ([Pull Request #320](https://github.com/marko-js/marko/pull/320) by [@ianvonholt](https://github.com/ianvonholt))
1831
+
1832
+ ### 3.6.1
1833
+
1834
+ - Fixed a bug that was causing transforms to be run on detached nodes. This was manifesting itself in the `<async-fragment>` to `<await>` transform if an `if()` attribute was present (or other core attributes that end up wrapping the tag it is defined on).
1835
+
1836
+ ### 3.6.0
1837
+
1838
+ - Introduced a new and simpler `<await>` tag that should be used instead of the now deprecated `<async-fragment>` tag (see deprecation details below) ([Pull Request #312](https://github.com/marko-js/marko/pull/312) by [@mlrawlings](https://github.com/mlrawlings))
1839
+
1840
+ #### Deprecations
1841
+
1842
+ - Deprecated the `<async-fragment var="<var>" data-provider=<data-provider>>` tag in favor of the `<await(<var> from <data-provider>)>` tag:
1843
+
1844
+ OLD:
1845
+
1846
+ ```xml
1847
+ <async-fragment var="userInfo" data-provider=data.userInfoPromise>
1848
+ Hello ${userInfo.name}!
1849
+ </async-fragment>
1850
+ ```
1851
+
1852
+ NEW:
1853
+
1854
+ ```xml
1855
+ <await(userInfo from data.userInfoPromise)>
1856
+ Hello ${userInfo.name}!
1857
+ </await>
1858
+ ```
1859
+
1860
+ The `<await>` tag supports all of the attributes of the previous `<async-fragment>` tag except for `var` and `data-provider`:
1861
+
1862
+ ```xml
1863
+ <await(userInfo from data.userInfoPromise) name="userInfo" timeout=10000 client-reorder>
1864
+ Hello ${userInfo.name}!
1865
+ </await>
1866
+ ```
1867
+
1868
+ Finally, the nested tags for providing content for the placeholder, error and timeout messages have been renamed accordingly:
1869
+
1870
+ ```xml
1871
+ <await(userInfo from data.userInfoPromise) client-reorder>
1872
+ <await-placeholder>
1873
+ This is alternate content while the async fragment is loading.
1874
+ </await-placeholder>
1875
+ <await-timeout>
1876
+ A timeout has occurred!
1877
+ </await-timeout>
1878
+ <await-error>
1879
+ A error has occurred!
1880
+ </await-error>
1881
+
1882
+ Hello ${userInfo.name}!
1883
+ </await>
1884
+ ```
1885
+
1886
+ ## 3.5.x
1887
+
1888
+ ### 3.5.1
1889
+
1890
+ - Fixes #316 - Autocomplete for tags is not updated when tag files updated despite clearing cache. This improves the [autocomplete-marko](https://github.com/marko-js/atom-autocomplete-marko) plugin for Atom.
1891
+ - Fixes #314 - Remove hyphens from include props
1892
+ - Deprecated:
1893
+ - Properties passed in using the `<include>` tag should not be access using hyphens.
1894
+
1895
+ For example, given the following template:
1896
+
1897
+ ```xml
1898
+ <include("./include-target.marko") first-name='Jane'/>
1899
+ ```
1900
+
1901
+ The `first-name` data should be accessed using the `firstName` property:
1902
+
1903
+ ```javascript
1904
+ var firstName = input.firstName;
1905
+ // NOT: var firstName = input['first-name'];
1906
+ ```
1907
+
1908
+ ### 3.5.0
1909
+
1910
+ - Added functionality to exclude specific directory or package from taglib finder ([Pull Request #309](https://github.com/marko-js/marko/pull/309) by [@oxala](https://github.com/oxala))
1911
+
1912
+ ## 3.4.x
1913
+
1914
+ ### 3.4.9
1915
+
1916
+ - Fixed [https://github.com/marko-js/marko/issues/307] - Marko concise syntax, with multiple class names ([Pull Request #308](https://github.com/marko-js/marko/pull/308) by [@mlrawlings](https://github.com/mlrawlings))
1917
+
1918
+ ### 3.4.8
1919
+
1920
+ - Added support for an "enum" attribute value
1921
+
1922
+ ### 3.4.7
1923
+
1924
+ - Async fragment improvements ([Pull Request #305](https://github.com/marko-js/marko/pull/305) by [@mlrawlings](https://github.com/mlrawlings))
1925
+ - Adds additional event info (finished/timedout) to the data emitted from <async-fragment> tags.
1926
+ - Ensures that renderBody() is not called again if the fragment has already finished (timed out).
1927
+ - Fixes `npm run test-async`
1928
+ - Removes a redundant `async-fragment` timeout related test
1929
+
1930
+ ### 3.4.6
1931
+
1932
+ - Updated autocomplete information
1933
+
1934
+ ### 3.4.5
1935
+
1936
+ - Fixes #304 - async-fragment-tag-transformer.js being loaded by PhantomJS
1937
+ - Updated taglibs with additional information to support tooling
1938
+ - Added [Michael Rawlings](https://github.com/mlrawlings) as a maintainer
1939
+
1940
+ ### 3.4.4
1941
+
1942
+ - Fixes #303 - `addStaticVar` is not generating unique variable names correctly
1943
+
1944
+ ### 3.4.3
1945
+
1946
+ - Improved validation for macros ([@mlrawlings](https://github.com/mlrawlings), [PR #300](https://github.com/marko-js/marko/pull/300))
1947
+ - Added code coverage reporting ([@mlrawlings](https://github.com/mlrawlings), [PR #301](https://github.com/marko-js/marko/pull/301))
1948
+
1949
+ ### 3.4.2
1950
+
1951
+ - Improved error reporting in cases when code generation fails ([@mlrawlings](https://github.com/mlrawlings))
1952
+
1953
+ ### 3.4.1
1954
+
1955
+ - Additional tweaks for #298 - Always emit correct events for async fragments
1956
+
1957
+ ### 3.4.0
1958
+
1959
+ - Fixes #298 - Always emit correct events for async fragments
1960
+ - Updated docs
1961
+
1962
+ ## 3.3.x
1963
+
1964
+ ### 3.3.0
1965
+
1966
+ - Include async fragment name in the `asyncFragmentFinish` events ([@kprakasam](https://github.com/kprakasam))
1967
+
1968
+ ## 3.2.x
1969
+
1970
+ ### 3.2.0
1971
+
1972
+ - Fixes #286 - Add res.marko(templateData) for use with Express ([@mlrawlings](https://github.com/mlrawlings))
1973
+
1974
+ ## 3.1.x
1975
+
1976
+ ### 3.1.9
1977
+
1978
+ - Fixes #288 - Provide API for discovering custom tags and attributes for autocomplete/tooling purposes
1979
+ - Documentation improvements
1980
+
1981
+ ### 3.1.8
1982
+
1983
+ - Fixes #280 - Switch from jsonminify to strip-json-comments
1984
+ - Updated docs for Koa and Hapi
1985
+ - Additional tests for Node.js v6
1986
+
1987
+ ### 3.1.7
1988
+
1989
+ - Fixes #274 - marko-compiler-options tag is not properly ended when using raw parsing (for prettyprint)
1990
+
1991
+ ### 3.1.6
1992
+
1993
+ - Fixes #268 - this.write is not a function for empty ArrayExpression
1994
+
1995
+ ### 3.1.5
1996
+
1997
+ - Fixes #262 - node-require module removes `.marko` extension from filenames in compiled code
1998
+
1999
+ ### 3.1.4
2000
+
2001
+ - Fixes #267 - Shorthand CSS class name cannot be combined with object/array class names
2002
+
2003
+ ### 3.1.3
2004
+
2005
+ - Fixed #266 - Hot reloading fails if original template is deleted
2006
+
2007
+ ### 3.1.2
2008
+
2009
+ - Fixed error reporting when using `compiler.parseRaw()`
2010
+ - Added test for #262
2011
+
2012
+ ### 3.1.1
2013
+
2014
+ - Improved whitespace removal for text nodes directly below the root
2015
+
2016
+ ### 3.1.0
2017
+
2018
+ - Fixes #254 - Allow preserve whitespace to be enabled at the global level
2019
+
2020
+ ## 3.0.x
2021
+
2022
+ ### 3.0.7
2023
+
2024
+ - Fixes #240 - Always trim start and end of template (even if preserveWhitespace is true)
2025
+ - Fixes #260 - Circular custom tags causes infinite recursion when writeToDisk is set to false
2026
+ - Minor internal cleanup
2027
+
2028
+ ### 3.0.6
2029
+
2030
+ - Don't wrap exception in `parseJavaScript` if error object was not created by Esprima
2031
+
2032
+ ### 3.0.5
2033
+
2034
+ - Fixes #257 - Placeholders don't render for out-of-order async fragments
2035
+
2036
+ ### 3.0.4
2037
+
2038
+ - Fixes #256 - Convert attributes to title case if no attributes are declared for a custom tag
2039
+ - Use `<noscript>` for out-of-order async fragment placeholders
2040
+
2041
+ ### 3.0.3
2042
+
2043
+ - Make renderSync behave if no context was supplied ([PR #250](https://github.com/marko-js/marko/pull/250) by [@jsumners](https://github.com/jsumners))
2044
+
2045
+ ### 3.0.2
2046
+
2047
+ - Store `tagDef` with `HtmlElement` node (needed for pretty printing)
2048
+
2049
+ ### 3.0.1
2050
+
2051
+ - Docs: Fixed minor issues in docs
2052
+ - Reintroduced support for the `MARKO_CLEAN` environment variable: `MARK_CLEAN=true node server.js`
2053
+
2054
+ ### 3.0.0
2055
+
2056
+ - See: [What's New in Marko v3](http://markojs.com/docs/marko/what-is-new-marko-v3/)
2057
+
2058
+ # 2.x
2059
+
2060
+ ## 2.8.x
2061
+
2062
+ ### 2.8.4
2063
+
2064
+ - Fixes circular dependency issue between runtime/index.js and hot-reload/index.js
2065
+
2066
+ ### 2.8.3
2067
+
2068
+ - Fixes circular dependency issue between runtime/index.js and hot-reload/index.js
2069
+
2070
+ ### 2.8.2
2071
+
2072
+ - Fixes #203 - Incorrect behavior when attrs is used on a standard HTML tag with a tag def
2073
+
2074
+ ### 2.8.1
2075
+
2076
+ - Fixes #202 - Pass along options to compiler when loading a template
2077
+
2078
+ ### 2.8.0
2079
+
2080
+ - Added support for automatically discovering taglibs from installed packages that are scoped. ([PR #183](https://github.com/marko-js/marko/pull/183) by [@tropperstyle](https://github.com/tropperstyle))
2081
+
2082
+ ### 2.8.3
2083
+
2084
+ - Fixes circular dependency issue between `hot-reload/index.js` and `runtime/index.js`
2085
+
2086
+ ## 2.7.x
2087
+
2088
+ ### 2.7.31
2089
+
2090
+ - Fixes #167 - Nested tags only work one level deep
2091
+
2092
+ ### 2.7.30
2093
+
2094
+ - docs: don't exclude docs in .npmignore
2095
+
2096
+ ### 2.7.29
2097
+
2098
+ - Fixes #161 - Nested tags with no body content are not handled correctly
2099
+
2100
+ ### 2.7.28
2101
+
2102
+ - Fixes #140 - Also de-dupe cached taglibs in finder
2103
+
2104
+ ### 2.7.27
2105
+
2106
+ - Make loading template from String template source easier:
2107
+
2108
+ ```javascript
2109
+ var template = marko.load(templatePath, "Hello $!{data.name}!");
2110
+ ```
2111
+
2112
+ _NOTE: Loading directly from source only works on the server_
2113
+
2114
+ See [Pull Request #153](https://github.com/marko-js/marko/pull/153)
2115
+
2116
+ ### 2.7.26
2117
+
2118
+ - Use shorter relative paths in error messages
2119
+
2120
+ ### 2.7.25
2121
+
2122
+ - Fixes #150 - Provide option to prevent writing compiled templates to disk. Example usage:
2123
+
2124
+ ```javascript
2125
+ require("marko/compiler").defaultOptions.writeToDisk = false;
2126
+ ```
2127
+
2128
+ NOTE: If you disable writing compiled templates to disk then it will be a little harder to debug errors in templates on the server since the stack trace will refer to a file that has not been written to disk.
2129
+
2130
+ For a more complete list of compiler options please see: http://markojs.com/docs/marko/javascript-api/#defaultoptions
2131
+
2132
+ ### 2.7.24
2133
+
2134
+ - Fixes #140 - De-dupe taglibs by module name
2135
+ - Documentation: Miscellaneous changes
2136
+
2137
+ ### 2.7.23
2138
+
2139
+ - Fixed a typo for `rendererFunc` `in helpers.js` (commit: 0205a47f04911f34ca4d458970d710f81a143987)
2140
+
2141
+ ### 2.7.22
2142
+
2143
+ - New language feature: [`unless` support added](http://markojs.com/docs/marko/language-guide/#unlesselse-ifelse)
2144
+
2145
+ ### 2.7.21
2146
+
2147
+ - Automatically enable hot-reload and browser-refresh if launched using [browser-refresh](https://github.com/patrick-steele-idem/browser-refresh)
2148
+
2149
+ ### 2.7.20
2150
+
2151
+ - Documentation: Miscellaneous changes
2152
+
2153
+ ### 2.7.19
2154
+
2155
+ - Fixes #137 - adds support for dynamic HTML tag names
2156
+
2157
+ ### 2.7.18
2158
+
2159
+ - Improvement: Better resolving of tag renderer
2160
+ - Compiler: Fix to make compiler work in the browser
2161
+
2162
+ ### 2.7.17
2163
+
2164
+ - Fixes #135 Allow "attrs" attribute on custom tags
2165
+
2166
+ ### 2.7.16
2167
+
2168
+ - Improved handling of imports
2169
+ - Better handling of loading taglibs with circular dependencies
2170
+
2171
+ ### 2.7.15
2172
+
2173
+ - Handle circular taglib imports
2174
+
2175
+ ### 2.7.14
2176
+
2177
+ - Fixes #131 - Recursively handle taglib imports
2178
+
2179
+ ### 2.7.13
2180
+
2181
+ - Added a `.npmignore` file
2182
+ - Fixed licensing header in source
2183
+ - Documentation: improved docs for input.renderBody()
2184
+ - Documentation: Miscellaneous changes
2185
+
2186
+ ### 2.7.12
2187
+
2188
+ - Fixes #122 Don't allow invalid attributes when using shorthand
2189
+ - Fixes #122 Typo in hasAttributes
2190
+ - Fixes #127 - Make sure all possible input files are accounted for when checking if a compiled template is up-to-date
2191
+ - Use `browser.json` files instead of `optimizer.json` files
2192
+ - Documentation: Improved docs for async taglib
2193
+ - Documentation: Added empty() and notEmpty() helpers to the readme
2194
+ - Added Martin Aberer as a maintainer
2195
+ - Documentation: Miscellaneous changes
2196
+
2197
+ ### 2.7.11
2198
+
2199
+ - New logo!
2200
+
2201
+ ### 2.7.10
2202
+
2203
+ - Fixes #118 Better error when parsing JSON file for tag
2204
+ - Testing: More test cases related to empty attributes
2205
+ - Documentation: Clarification for the Node.js require extension
2206
+ - Documentation: doc reference for `getLength()` of loop `status-var`
2207
+ - Documentation: Added reference to [sublime-marko](https://github.com/merwan7/sublime-marko) under the tools section.
2208
+
2209
+ ### 2.7.9
2210
+
2211
+ - Fixes #109 - Allow `compiler.createNode('div')`
2212
+ - Fixes #108 - Improve how the `MARKO_CLEAN` env variable is handled
2213
+
2214
+ ### 2.7.8
2215
+
2216
+ - Minor documentation changes
2217
+
2218
+ ### 2.7.7
2219
+
2220
+ - Allow `.html` extension for layouts (Fix for https://github.com/raptorjs/marko-layout/issues/2)
2221
+
2222
+ ### 2.7.6
2223
+
2224
+ - Make require('marko/node-require').install() a noop in the browser
2225
+
2226
+ ### 2.7.5
2227
+
2228
+ - Improvement: Allow `template-data` to be combined with other attributes on the `<include>` tag
2229
+ - Documentation: Fixes #98 - docs for `<include template-data="...">`
2230
+
2231
+ ### 2.7.4
2232
+
2233
+ - Fixes #96 - Allow relative, dynamic include paths
2234
+
2235
+ ### 2.7.3
2236
+
2237
+ - Internal change: Additional test cases added for using promises with async fragments
2238
+
2239
+ ### 2.7.2
2240
+
2241
+ - Fixes #73 - Prevent same taglib from being loaded multiple times
2242
+
2243
+ ### 2.7.1
2244
+
2245
+ - Fixes #88 - Assign global data to the correct out
2246
+
2247
+ ### 2.7.0
2248
+
2249
+ - Fixes [#27](https://github.com/raptorjs/marko/issues/27) - IE conditional comments (e.g., `<!--[if lt IE 9]><div><![endif]-->`) are automatically preserved. Previously, all HTML comments were stripped out when loading a template. For example:
2250
+ - Added support for `<compiler-options comments="preserve"/>` to enable comments to preserved in a template. For example:
2251
+
2252
+ ```xml
2253
+ <compiler-options comments="preserve"/>
2254
+ Hello
2255
+ <!--This comment should be preserved-->
2256
+ World
2257
+ ```
2258
+
2259
+ Output:
2260
+
2261
+ ```xml
2262
+ Hello
2263
+ <!--This comment should be preserved-->
2264
+ World
2265
+ ```
2266
+
2267
+ ## 2.6.x
2268
+
2269
+ ### 2.6.0
2270
+
2271
+ - Performance improvements
2272
+ - `'use strict';`
2273
+ - Optimized render code paths
2274
+ - Code cleanup
2275
+ - Compatibility fixes for Node.js 0.12
2276
+ - Bad: `fs.readFile(path, 'utf8')`
2277
+ - Good: `fs.readFile(path, {encoding: 'utf8'})`
2278
+
2279
+ ## 2.5.x
2280
+
2281
+ ### 2.5.0
2282
+
2283
+ - Fixes #78 - Custom Node.js require extension for Marko template files. Example usage:
2284
+
2285
+ ```javascript
2286
+ // Install the Node.js require extension in your application's main script (server-side only)
2287
+ require("marko/node-require").install();
2288
+
2289
+ // Now you can require `*.marko` files just like any other JavaScript module
2290
+ var template = require("./hello.marko");
2291
+ var html = template.renderSync({ name: "Frank" });
2292
+ ```
2293
+
2294
+ - Compiled templates now export a loaded Template instance. In the previous version of marko, compiled templates exported a function that could be used to create a loaded Template instance.
2295
+
2296
+ ## 2.4.x
2297
+
2298
+ ### 2.4.3
2299
+
2300
+ - Fixes edge case: More precise regular expression for decoding HTML entities
2301
+
2302
+ ### 2.4.2
2303
+
2304
+ - Internal: Fixes #75 Always assign the tag property to custom tag nodes
2305
+
2306
+ ### 2.4.1
2307
+
2308
+ - Improvement to allow taglibs to be imported from other taglibs ([commit](https://github.com/raptorjs/marko/commit/73e9a3420a1bac3e2c201d4dcadf21c0701b5222))
2309
+
2310
+ ### 2.4.0
2311
+
2312
+ - Added support for short-hand tags and attributes
2313
+
2314
+ Old `marko-taglib.json`:
2315
+
2316
+ ```json
2317
+ {
2318
+ "tags": {
2319
+ "my-hello": {
2320
+ "renderer": "./hello-renderer",
2321
+ "attributes": {
2322
+ "name": "string"
2323
+ }
2324
+ }
2325
+ }
2326
+ }
2327
+ ```
2328
+
2329
+ Short-hand `marko-taglib.json`:
2330
+
2331
+ ```json
2332
+ {
2333
+ "<my-hello>": {
2334
+ "renderer": "./hello-renderer",
2335
+ "@name": "string"
2336
+ }
2337
+ }
2338
+ ```
2339
+
2340
+ - Fixes #61 Simplify parent/child relationships
2341
+
2342
+ Marko now supports custom tags in the following format: `<parent_tag.nested_tag>`
2343
+
2344
+ Example usage:
2345
+
2346
+ ```html
2347
+ <ui-tabs orientation="horizontal">
2348
+ <ui-tabs.tab title="Home"> Content for Home </ui-tabs.tab>
2349
+ <ui-tabs.tab title="Profile"> Content for Profile </ui-tabs.tab>
2350
+ <ui-tabs.tab title="Messages"> Content for Messages </ui-tabs.tab>
2351
+ </ui-tabs>
2352
+ ```
2353
+
2354
+ **_ui-tabs/marko-tag.json_**
2355
+
2356
+ ```json
2357
+ {
2358
+ "@orientation": "string",
2359
+ "@tabs <tab>[]": {
2360
+ "@title": "string"
2361
+ }
2362
+ }
2363
+ ```
2364
+
2365
+ **_ui-tabs/renderer.js_**
2366
+
2367
+ ```javascript
2368
+ var template = require("marko").load(require.resolve("./template.marko"));
2369
+
2370
+ exports.renderer = function(input, out) {
2371
+ var tabs = input.tabs;
2372
+
2373
+ // Tabs will be in the following form:
2374
+ // [
2375
+ // {
2376
+ // title: 'Home',
2377
+ // renderBody: function(out) { ... }
2378
+ // },
2379
+ // {
2380
+ // title: 'Profile',
2381
+ // renderBody: function(out) { ... }
2382
+ // },
2383
+ // {
2384
+ // title: 'Messages',
2385
+ // renderBody: function(out) { ... }
2386
+ // }
2387
+ // ]
2388
+ console.log(tabs.length); // Output: 3
2389
+
2390
+ template.render(
2391
+ {
2392
+ tabs: tabs
2393
+ },
2394
+ out
2395
+ );
2396
+ };
2397
+ ```
2398
+
2399
+ **_ui-tabs/template.marko_**
2400
+
2401
+ ```html
2402
+ <div class="tabs">
2403
+ <ul class="nav nav-tabs">
2404
+ <li class="tab" for="tab in data.tabs">
2405
+ <a href="#${tab.title}"> ${tab.title} </a>
2406
+ </li>
2407
+ </ul>
2408
+ <div class="tab-content">
2409
+ <div class="tab-pane" for="tab in data.tabs">
2410
+ <invoke function="tab.renderBody(out)" />
2411
+ </div>
2412
+ </div>
2413
+ </div>
2414
+ ```
2415
+
2416
+ ## 2.3.x
2417
+
2418
+ ### 2.3.2
2419
+
2420
+ Fixes #66 - Allow circular dependencies when loading templates
2421
+
2422
+ ### 2.3.1
2423
+
2424
+ - Testing framework changes
2425
+ - Fixes #65 - Generated variable name is an empty string in some cases
2426
+
2427
+ ### 2.3.0
2428
+
2429
+ - Fixes #53 Merge c-input with attr props
2430
+
2431
+ ## 2.2.x
2432
+
2433
+ ### 2.2.2
2434
+
2435
+ Fixes #60 Don't replace special operators for body functions
2436
+
2437
+ ### 2.2.1
2438
+
2439
+ - Fixes #58 Added support for MARKO_CLEAN env variable (force recompile of all loaded templates). Example usage:
2440
+
2441
+ ```bash
2442
+ MARKO_CLEAN=true node run.js
2443
+ ```
2444
+
2445
+ - Code formatting: add spaces in var code
2446
+
2447
+ ### 2.2.0
2448
+
2449
+ - Fixes #51 Allow body content to be mapped to a String input property
2450
+ - Fixes #52 Remove JavaScript comments from JSON taglib files before parsing
2451
+
2452
+ ## 2.1.x
2453
+
2454
+ ### 2.1.6
2455
+
2456
+ - Fixes #50 Initialize the loader after the runtime is fully initialized
2457
+
2458
+ ### 2.1.5
2459
+
2460
+ - Fixes #50 Ensure that all instances of marko have hot-reload and browser-refresh enabled
2461
+
2462
+ ### 2.1.4
2463
+
2464
+ - Allowing complex var names (i.e. LHS) for the `<assign>` tag.
2465
+
2466
+ ### 2.1.3
2467
+
2468
+ - Minor change: Slight improvement to code to resolve tag handler
2469
+
2470
+ ### 2.1.2
2471
+
2472
+ - Minor change: Improve how renderer is resolved
2473
+
2474
+ ### 2.1.1
2475
+
2476
+ - Fixes #48 name in marko-tag.json should override default name given during discovery
2477
+
2478
+ ### 2.1.0
2479
+
2480
+ - Fixes #47 - Added support for "taglib-imports"
2481
+
2482
+ ## 2.0.x
2483
+
2484
+ ### 2.0.12
2485
+
2486
+ - Fixes #31 - Add support for providing prefix when scanning for tags
2487
+ - Allow "code" to be a function that lazily evaluates to a code string during code generation
2488
+
2489
+ ### 2.0.11
2490
+
2491
+ - Added method for custom node compilers to get access to the `escapeXml` function at runtime
2492
+
2493
+ ### 2.0.10
2494
+
2495
+ - Fixes #39 - Added missing return when using hot-reload
2496
+
2497
+ ### 2.0.9
2498
+
2499
+ - Fixed bad publish
2500
+
2501
+ ### 2.0.8
2502
+
2503
+ - Better merging of tags when loading and merging taglibs
2504
+
2505
+ ### 2.0.7
2506
+
2507
+ - Changes to avoid problems associated with the same taglib being found multiple times in the search path
2508
+
2509
+ ### 2.0.6
2510
+
2511
+ - `renderBody` function is only added if tag has children
2512
+
2513
+ ### 2.0.5
2514
+
2515
+ - Fixed #36 - Don't use `invokeBody()` in the cache taglib
2516
+
2517
+ ### 2.0.4
2518
+
2519
+ - :exclamation: Fixed #36 - Deprecated - When using `<include>` with body content, nested body content is now passed in as `String` property named `body`. Old behavior: nested content would be passed in as a `Function` property named `invokeBody` that would return the `String` value of the nested content. `invokeBody()` has been deprecated.
2520
+
2521
+ ### 2.0.3
2522
+
2523
+ - Fixed #36 - Don't use `invokeBody()` in test code and the HTML comments tag
2524
+
2525
+ ### 2.0.2
2526
+
2527
+ - :exclamation: Fixed #36 - Deprecated `input.invokeBody()` in favor of `input.renderBody(out)`
2528
+ - Fixed #37 - Duplicate input property for custom tag renderers
2529
+
2530
+ ### 2.0.1
2531
+
2532
+ - Fixed #35 - Added support for `<compiler-options>`. Example:
2533
+
2534
+ ```html
2535
+ <compiler-options whitespace="preserve" /> A B C
2536
+ ```
2537
+
2538
+ ### 2.0.0
2539
+
2540
+ - Dynamic attributes for scanned tags without a tag will have dashes removed by default.
2541
+ - :exclamation: When using `tags-dir` to discover tags that do not have a `marko-tag.json`, the previous behavior was to allow all attributes and to use the actual attribute name as the input property name. For example, when using `<hello first-name="John">`, first name would need to be read in as `input['first-name']`. This was changed such that the first name property should now be read in as `input.firstName` (dashes removed and converted to camel case)
2542
+ - Changes to allow UI component to be put into a single JS file:
2543
+ - Updated taglib directory scanner to use `index.js` if found. New search order:
2544
+ 1. `renderer.js` (use `renderer.js` if it exists)
2545
+ 2. `index.js` (use `index.js` if it exists and assume it exports a `renderer` or `render` property)
2546
+ 3. `template.marko` (use the template as the renderer if no `renderer.js` or `index.js`)
2547
+ - :exclamation: Changes to the taglib directory scanner could break existing code. Specifically, if a UI component directory had an `index.js` file and a `template.marko` file then in in `marko@<2` the `template.marko` file would have been selected as the renderer. In `marko@2.x`, the `index.js` will be selected as the tag renderer.
2548
+ - :exclamation: Removed support for mapping a tag renderer to a module with a `process` method
2549
+ - Removed sub-module `marko/renderer` that exports [raptor-renderer](https://github.com/raptorjs/raptor-renderer)
2550
+
2551
+ # 1.x
2552
+
2553
+ ## 1.6.x
2554
+
2555
+ ### 1.6.1
2556
+
2557
+ - Added back code to allow the new marko runtime to load templates compiled by an earlier compiler that used `module.exports`
2558
+
2559
+ ### 1.6.0
2560
+
2561
+ - Fixed #32. Switched from `module.exports = function create(__helpers) { ... }` to `exports.create = function(__helpers) { ... }` to avoid circular dependency problems
2562
+
2563
+ ## 1.5.x
2564
+
2565
+ ### 1.5.8
2566
+
2567
+ - Added support for adding "static" code to the top of a compiled template (helpful for initializing variables or running code once).
2568
+
2569
+ ### 1.5.7
2570
+
2571
+ - Added sub-module `marko/renderer` that exports [raptor-renderer](https://github.com/raptorjs/raptor-renderer)
2572
+
2573
+ ### 1.5.6
2574
+
2575
+ - Changes to avoid unoptimized code in V8
2576
+
2577
+ ### 1.5.5
2578
+
2579
+ - Handle case where template was loaded before hot-reload was enabled
2580
+
2581
+ ## 1.5.4
2582
+
2583
+ - Added support for `$global` in `renderSync`