marko 4.24.4 → 4.24.6

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