marko 4.23.17 → 4.24.3

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