UNPKG

13.1 kBMarkdownView Raw
1# buble changelog
2
3## 0.14.2
4
5* Allow `.jsx` file extension ([#127](https://gitlab.com/Rich-Harris/buble/issues/127))
6* Handle trailing comma in spread operator ([#133](https://gitlab.com/Rich-Harris/buble/issues/133))
7* Allow empty code blocks in JSX ([#131](https://gitlab.com/Rich-Harris/buble/issues/131))
8* Allow computed shorthand function name with spread in body ([#135](https://gitlab.com/Rich-Harris/buble/issues/135))
9* Add `--objectAssign` CLI option ([#113](https://gitlab.com/Rich-Harris/buble/issues/113))
10* Allow numeric literals as shorthand method keys ([#139](https://gitlab.com/Rich-Harris/buble/issues/139))
11
12## 0.14.1
13
14* fix initialization of block-scoped variables in for-of and for-in loops ([#124](https://gitlab.com/Rich-Harris/buble/issues/124))
15
16## 0.14.0
17
18* Always wrap block-less bodies in curlies ([#110](https://gitlab.com/Rich-Harris/buble/issues/110), [#117](https://gitlab.com/Rich-Harris/buble/issues/117), [!80](https://gitlab.com/Rich-Harris/buble/merge_requests/80))
19* Make sure block-scoped variables in loops have an initializer ([#124](https://gitlab.com/Rich-Harris/buble/issues/124))
20* Destructuring assignments ([!82](https://gitlab.com/Rich-Harris/buble/merge_requests/82))
21* Support string literals in object destructuring ([!81](https://gitlab.com/Rich-Harris/buble/merge_requests/81))
22* Standalone arrow function expression statements ([!79](https://gitlab.com/Rich-Harris/buble/merge_requests/79))
23
24## 0.13.2
25
26* Fix spread operator when used with `new` and `this` ([#104](https://gitlab.com/Rich-Harris/buble/issues/104), [#115](https://gitlab.com/Rich-Harris/buble/issues/115))
27
28## 0.13.1
29
30* Handle destructuring in for/for-of loop heads ([#95](https://gitlab.com/Rich-Harris/buble/issues/95))
31* Allow early return (without value) from loops ([#103](https://gitlab.com/Rich-Harris/buble/issues/103), [#105](https://gitlab.com/Rich-Harris/buble/issues/105))
32
33## 0.13.0
34
35* Require an `objectAssign` option to be specified if using object spread operator ([#93](https://gitlab.com/Rich-Harris/buble/issues/93))
36* Fix spread operator with expression method calls and template strings ([!74](https://gitlab.com/Rich-Harris/buble/merge_requests/74))
37
38## 0.12.5
39
40* Prevent reserved words being used as identifiers ([#86](https://gitlab.com/Rich-Harris/buble/issues/86))
41* Use correct `this` when transpiling `super` inside arrow function ([#89](https://gitlab.com/Rich-Harris/buble/issues/89))
42* Handle body-less `for-of` loops ([#80](https://gitlab.com/Rich-Harris/buble/issues/80))
43
44## 0.12.4
45
46* Allow references to precede declaration (inside function) in block scoping ([#87](https://gitlab.com/Rich-Harris/buble/issues/87))
47
48## 0.12.3
49
50* Argh, npm
51
52## 0.12.2
53
54* Files missing in 0.12.1 (???)
55
56## 0.12.1
57
58* Don't require space before parens of shorthand computed method ([#82](https://gitlab.com/Rich-Harris/buble/issues/82))
59* Allow string keys for shorthand methods ([#82](https://gitlab.com/Rich-Harris/buble/issues/82))
60
61## 0.12.0
62
63* Support `u` flag in regular expression literals ([!62](https://gitlab.com/Rich-Harris/buble/merge_requests/62))
64* Save `buble/register` transformations to `$HOME/.buble-cache` ([!63](https://gitlab.com/Rich-Harris/buble/merge_requests/63))
65
66## 0.11.6
67
68* Allow shorthand methods with computed names ([#78](https://gitlab.com/Rich-Harris/buble/issues/78))
69* Include code snippet in `error.toString()` ([#79](https://gitlab.com/Rich-Harris/buble/issues/79))
70
71## 0.11.5
72
73* Preserve whitespace between JSX tags on single line ([#65](https://gitlab.com/Rich-Harris/buble/issues/65))
74
75## 0.11.4
76
77* Allow computed class methods, except accessors ([!56](https://gitlab.com/Rich-Harris/buble/merge_requests/56))
78* Compound destructuring ([!58](https://gitlab.com/Rich-Harris/buble/merge_requests/58))
79
80## 0.11.3
81
82* Ensure inserted statements follow use strict pragma ([#72](https://gitlab.com/Rich-Harris/buble/issues/72))
83
84## 0.11.2
85
86* Ensure closing parenthesis is in correct place when transpiling inline computed property object expressions ([#73](https://gitlab.com/Rich-Harris/buble/issues/73))
87
88## 0.11.1
89
90* Fix computed property followed by non-computed property in inline expression
91
92## 0.11.0
93
94* Computed properties ([#67](https://gitlab.com/Rich-Harris/buble/issues/67))
95* Allow `super(...)` to use rest arguments ([#69](https://gitlab.com/Rich-Harris/buble/issues/69))
96
97## 0.10.7
98
99* Allow customisation of `Object.assign` (used in object spread) ([!51](https://gitlab.com/Rich-Harris/buble/merge_requests/51))
100
101## 0.10.6
102
103* Handle sparse arrays ([#62](https://gitlab.com/Rich-Harris/buble/issues/62))
104* Handle spread expressions in JSX ([#64](https://gitlab.com/Rich-Harris/buble/issues/64))
105
106## 0.10.5
107
108* Create intermediate directories when transforming via CLI ([#63](https://gitlab.com/Rich-Harris/buble/issues/63))
109* Update README ([#57](https://gitlab.com/Rich-Harris/buble/issues/57))
110
111## 0.10.4
112
113* Support spread operator in object literals ([!45](https://gitlab.com/Rich-Harris/buble/merge_requests/45)) and JSX elements ([!46](https://gitlab.com/Rich-Harris/buble/merge_requests/46))
114
115## 0.10.3
116
117* Disable intelligent destructuring, temporarily ([#53](https://gitlab.com/Rich-Harris/buble/issues/53))
118* Fix whitespace in JSX literals ([!39](https://gitlab.com/Rich-Harris/buble/merge_requests/39))
119* Add `: true` to value-less JSX attributes ([!40](https://gitlab.com/Rich-Harris/buble/merge_requests/40))
120* Quote invalid attribute names ([!41](https://gitlab.com/Rich-Harris/buble/merge_requests/41))
121
122## 0.10.2
123
124* Don't add closing quote to JSX component without attributes ([#58](https://gitlab.com/Rich-Harris/buble/issues/58))
125
126## 0.10.1
127
128* Fix handling of literals inside JSX
129
130## 0.10.0
131
132* Basic JSX support
133
134## 0.9.3
135
136* Better spread operator support, including with `arguments` ([#40](https://gitlab.com/Rich-Harris/buble/issues/40))
137* Fix indentation of inserted statements in class constructors ([#39](https://gitlab.com/Rich-Harris/buble/issues/39))
138
139## 0.9.2
140
141* Allow class to have accessors and no constructor ([#48](https://gitlab.com/Rich-Harris/buble/issues/48))
142* Fix help message in CLI
143
144## 0.9.1
145
146* Prevent confusion over `Literal` node keys
147
148## 0.9.0
149
150* More complete and robust destructuring support ([#37](https://gitlab.com/Rich-Harris/buble/issues/37), [#43](https://gitlab.com/Rich-Harris/buble/issues/43))
151* Correct `this`/`arguments` references inside for-of loop
152
153## 0.8.5
154
155* Allow destructured parameter to have default ([#43](https://gitlab.com/Rich-Harris/buble/issues/43))
156* Allow `continue`/`break` statements inside a for-of loop
157
158## 0.8.4
159
160* Allow class body to follow ID/superclass without whitespace ([#46](https://gitlab.com/Rich-Harris/buble/issues/46))
161
162## 0.8.3
163
164* Performance enhancements ([!23](https://gitlab.com/Rich-Harris/buble/merge_requests/23))
165
166## 0.8.2
167
168* More robust version of ([!22](https://gitlab.com/Rich-Harris/buble/merge_requests/22))
169
170## 0.8.1
171
172* Fix `export default class A extends B` (broken in 0.8.0) ([!22](https://gitlab.com/Rich-Harris/buble/merge_requests/22))
173
174## 0.8.0
175
176* Subclasses inherit static methods ([#33](https://gitlab.com/Rich-Harris/buble/issues/33))
177* Performance enhancements ([!21](https://gitlab.com/Rich-Harris/buble/merge_requests/21))
178
179## 0.7.1
180
181* Prevent omission of closing paren in template string ([#42](https://gitlab.com/Rich-Harris/buble/issues/42))
182* Separate variable declarations for each name in destructured declaration ([#18](https://gitlab.com/Rich-Harris/buble/merge_requests/18))
183
184## 0.7.0
185
186* Allow arrow functions to be used as default parameter values ([#36](https://gitlab.com/Rich-Harris/buble/issues/36))
187
188## 0.6.7
189
190* Support `static get` and `set` in classes ([#34](https://gitlab.com/Rich-Harris/buble/issues/34))
191* Support spread operator in expression method call ([!14](https://gitlab.com/Rich-Harris/buble/merge_requests/14))
192* Fix `for-of` loops with no space after opening paren ([#35](https://gitlab.com/Rich-Harris/buble/issues/35))
193
194## 0.6.6
195
196* Fix another subclass `super()` bug ([#32](https://gitlab.com/Rich-Harris/buble/issues/32))
197
198## 0.6.5
199
200* Fix `super()` call in subclass expression ([#32](https://gitlab.com/Rich-Harris/buble/issues/32))
201* Less defensive template string parenthesising ([!9](https://gitlab.com/Rich-Harris/buble/merge_requests/9))
202
203## 0.6.4
204
205* Add Node 6 to support matrix
206
207## 0.6.3
208
209* Handle empty template strings ([#28](https://gitlab.com/Rich-Harris/buble/issues/28))
210
211## 0.6.2
212
213* Handle body-less do-while blocks ([#27](https://gitlab.com/Rich-Harris/buble/issues/27))
214
215## 0.6.1
216
217* Always remember to close parens in template strings
218
219## 0.6.0
220
221* Strip unnecessary empty strings from template literals
222* Intelligent destructuring for object patterns in parameters ([#17](https://gitlab.com/Rich-Harris/buble/issues/17))
223
224## 0.5.8
225
226* Fix exponentiation assignment operator edge case
227
228## 0.5.7
229
230* Exponentiation operator support ([#24](https://gitlab.com/Rich-Harris/buble/issues/24))
231* More informative error messages for for-of and tagged template strings
232
233## 0.5.6
234
235* Add `dangerousTaggedTemplateString` ([!2](https://gitlab.com/Rich-Harris/buble/merge_requests/2)) and `dangerousForOf` ([!3](https://gitlab.com/Rich-Harris/buble/merge_requests/3)) transforms
236* Prevent deindentation causing errors with removed whitespace in class methods
237* Use correct identifier with default destructured function parameters ([#23](https://gitlab.com/Rich-Harris/buble/issues/23))
238
239
240## 0.5.5
241
242* Ensure `return` is in correct place when creating bodies for arrow functions ([#21](https://gitlab.com/Rich-Harris/buble/issues/21))
243* Prevent deindentation of class methods causing breakage with destructuring statements ([#22](https://gitlab.com/Rich-Harris/buble/issues/22))
244
245## 0.5.4
246
247* Install missing `chalk` dependency
248* Informative error messages when `buble/register` fails
249
250## 0.5.3
251
252* Add `register.js` to package. Yes I'm an idiot
253
254## 0.5.2
255
256* Add `buble/register` for use with e.g. Mocha
257
258## 0.5.1
259
260* Remove unused dependency
261
262## 0.5.0
263
264* Support `--target`, `--yes` and `--no` in CLI
265* Compile entire directory of files via CLI
266* Sourcemap support in CLI
267* All transforms can be disabled (or errors suppressed) with the `transforms` option (or `--yes` and `--no`, in the CLI)
268* `import` and `export` will throw an error unless `--no modules` transform is specified
269* Fix bug with destructuring
270* Fix bug with block scoping and loops
271
272
273## 0.4.24
274
275* Throw if `let`/`const` is redeclared, or `var` is redeclared with a `let`/`const` (0.4.22 regression)
276
277## 0.4.23
278
279* Add `buble.VERSION`
280* Tidy up build process (don't bundle Acorn incorrectly)
281
282## 0.4.22
283
284* Allow double `var` declarations (only throw if `let` or `const` is redeclared)
285
286## 0.4.21
287
288* Add `find` and `findIndex` helpers for 0.12 support
289
290## 0.4.20
291
292* Bump to resolve unknown npm issue
293
294## 0.4.19
295
296* Fix block scoping bug with for loops that don't need to be rewritten as functions
297
298## 0.4.18
299
300* Fix break-inside-switch bug
301
302## 0.4.17
303
304* Support `for...in` loops and block scoping
305
306## 0.4.16
307
308* Add `ie` and `edge` to support matrix
309
310## 0.4.15
311
312* Rewrite reserved properties if specified ([#9](https://gitlab.com/Rich-Harris/buble/issues/9))
313
314## 0.4.14
315
316* Allow classes to extend expressions ([#15](https://gitlab.com/Rich-Harris/buble/issues/15))
317* Experimental (partially implemented) API for disabling transforms based on target environment or custom requirements
318
319## 0.4.13
320
321* Fix return statement bug
322
323## 0.4.12
324
325* More complete and robust transpilation of loops that need to be rewritten as functions to simulate block scoping ([#11](https://gitlab.com/Rich-Harris/buble/issues/11), [#12](https://gitlab.com/Rich-Harris/buble/issues/12), [#13](https://gitlab.com/Rich-Harris/buble/issues/13))
326
327## 0.4.11
328
329* Remove source-map-support from CLI (only useful during development)
330
331## 0.4.10
332
333* Basic support for spread operator
334
335## 0.4.9
336
337* Support getters and setters on subclasses
338* Disallow unsupported features e.g. generators
339
340## 0.4.8
341
342* Support getters and setters on classes
343* Allow identifiers to be renamed in block-scoped destructuring ([#8](https://gitlab.com/Rich-Harris/buble/issues/8))
344* Transpile body-less arrow functions correctly ([#9](https://gitlab.com/Rich-Harris/buble/issues/4))
345
346## 0.4.7
347
348* Add browser version
349
350## 0.4.6
351
352* Report locations of parse/compile errors ([#4](https://gitlab.com/Rich-Harris/buble/issues/4))
353
354## 0.4.5
355
356* Sourcemap support
357
358## 0.4.4
359
360* Support for class expressions
361* More robust deconflicting
362* Various bugfixes
363
364## 0.4.3
365
366* Handle arbitrary whitespace inside template literals
367
368## 0.4.2
369
370* Fix bug-inducing typo
371
372## 0.4.1
373
374* Rest parameters
375
376## 0.4.0
377
378* Self-hosting!
379
380## 0.3.4
381
382* Class inheritance
383
384## 0.3.3
385
386* Handle quote marks in template literals
387
388## 0.3.2
389
390* Handle empty `class` declarations
391
392## 0.3.1
393
394* Add `bin` to package
395
396## 0.3.0
397
398* (Very) basic CLI
399* Handle `export default class ...`
400
401## 0.2.2
402
403* Initialise children of Property nodes
404* Prevent false positives with reference detection
405
406## 0.2.1
407
408* Add missing files
409
410## 0.2.0
411
412* Support for a bunch more ES2015 features
413
414## 0.1.0
415
416* First (experimental) release