buble merge requestshttps://staging.gitlab.com/Rich-Harris/buble/-/merge_requests2016-12-16T09:57:35Zhttps://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/113Honor named-function-expr in Object literals2016-12-16T09:57:35Zusername-removed-751768Honor named-function-expr in Object literalshttps://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/111fix Object.assign regression in JSXOpeningElement2016-12-14T17:29:03Zusername-removed-568470fix Object.assign regression in JSXOpeningElementFixes #163
Before fix:
```
$ echo '<MyThing two={"This Fails"} {...props}></MyThing>;' | bin/buble --objectAssign
React.createElement( MyThing, undefined({}, { two: "This Fails" }, props));
```
After fix:
```
$ echo '<MyThi...Fixes #163
Before fix:
```
$ echo '<MyThing two={"This Fails"} {...props}></MyThing>;' | bin/buble --objectAssign
React.createElement( MyThing, undefined({}, { two: "This Fails" }, props));
```
After fix:
```
$ echo '<MyThing two={"This no longer Fails"} {...props}></MyThing>;' | bin/buble --objectAssign
React.createElement( MyThing, Object.assign({}, { two: "This no longer Fails" }, props));
```https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/102Fix path.join error in Node 7.1.2016-12-12T19:24:30Zusername-removed-861968Fix path.join error in Node 7.1.I recently tried to use Bublé's register script in Note 7.1.0 and I was getting a path.join error because nodeVersion is a number.I recently tried to use Bublé's register script in Note 7.1.0 and I was getting a path.join error because nodeVersion is a number.https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/95fix class methods and shorthand functions with numeric or string literal names2016-11-02T02:40:25Zusername-removed-568470fix class methods and shorthand functions with numeric or string literal namesFixes #139Fixes #139https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/94fix computed shorthand function with object spread in body2016-12-02T22:25:14Zusername-removed-568470fix computed shorthand function with object spread in bodyFixes #135Fixes #135https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/93add CLI option: --objectAssign Object.assign2016-11-02T02:41:57Zusername-removed-568470add CLI option: --objectAssign Object.assignFixes #113Fixes #113https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/92fix trailing comma in array with spread operator2016-11-30T19:13:15Zusername-removed-568470fix trailing comma in array with spread operatorFixes #133Fixes #133https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/91fix empty code blocks within jsx2016-11-02T02:42:59Zusername-removed-568470fix empty code blocks within jsxFixes #131Fixes #131https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/90Option to not emit named function expressions2016-12-13T19:11:38Zusername-removed-565223Option to not emit named function expressionsSee issue #130.
I added a flag to the command line tool too, but I couldn't find the sources to https://buble.surge.sh/guide/ , which should also be updated.See issue #130.
I added a flag to the command line tool too, but I couldn't find the sources to https://buble.surge.sh/guide/ , which should also be updated.https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/87allow input file with .jsx file extension2016-11-02T02:44:54Zusername-removed-568470allow input file with .jsx file extensionFix: #127Fix: #127https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/85fix initialization of block-scoped variables in for-of and for-in loops2016-11-02T02:35:39Zusername-removed-568470fix initialization of block-scoped variables in for-of and for-in loopsFix #125Fix #125https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/83Make sure block-scoped variables in loops have an initializer2016-09-18T04:28:52Zusername-removed-565223Make sure block-scoped variables in loops have an initializerCloses issue #124Closes issue #124https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/82Destructuring assignment2016-09-18T04:21:28Zusername-removed-565223Destructuring assignmentThis implements support for destructuring assignment. The way I use magic-string can probably use a review and some suggestions — I was having a hard time getting things to appear in the right order, so I ended up doing something that's ...This implements support for destructuring assignment. The way I use magic-string can probably use a review and some suggestions — I was having a hard time getting things to appear in the right order, so I ended up doing something that's maybe not quite in the spirit of the library.
The implementation takes care to leave destructuring assignments as expressions, turning them into a series of assignments separated by commas. It allocates scratch variables when needed (though it isn't entirely optimal in avoiding them -- if that's considered problematic enough to warrant more code complexity, let me know). The way it places those is somewhat problematic (before the parent statement), but the same problem exists in other scratch-variable-allocating transpile methods.
Looking forward to your feedback.https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/81Support string literals in object destructuring2016-09-18T04:08:37Zusername-removed-685874Support string literals in object destructuringAllow destructuring of objects like `var { 'b-1': c } = x;`Allow destructuring of objects like `var { 'b-1': c } = x;`https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/80fix numerous ES6 transforms in any block-less if, else or loop2016-11-30T16:58:57Zusername-removed-568470fix numerous ES6 transforms in any block-less if, else or loopAlso fix computed property without leading space.
Fix: #117 #110 Also fix computed property without leading space.
Fix: #117 #110 https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/79Fix standalone arrow function expression statements2016-09-18T04:01:29Zusername-removed-568470Fix standalone arrow function expression statementsFixes this issue:
```
$ bin/buble -v
Bublé version 0.13.1
```
```
$ echo '() => console.log("not printed");' | node
$ echo $?
0
```
```
$ echo '() => console.log("not printed");' | bin/buble | node
[stdin]:1
function () { re...Fixes this issue:
```
$ bin/buble -v
Bublé version 0.13.1
```
```
$ echo '() => console.log("not printed");' | node
$ echo $?
0
```
```
$ echo '() => console.log("not printed");' | bin/buble | node
[stdin]:1
function () { return console.log("not printed"); };
^
SyntaxError: Unexpected token (
```https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/78support destructuring in for[-of] loop heads2016-10-20T14:34:22Zusername-removed-383729support destructuring in for[-of] loop headsFixes #95. ~~WIP because I just realised this probably doesn't work with for-in loops~~ ignore that – destructuring makes no sense in a for-in headFixes #95. ~~WIP because I just realised this probably doesn't work with for-in loops~~ ignore that – destructuring makes no sense in a for-in headhttps://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/77Fix spread args when used with arrow functions, `new`, `this`2016-09-17T20:28:14Zusername-removed-568470Fix spread args when used with arrow functions, `new`, `this`Fixes #104, #115 Fixes #104, #115 https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/76create loop regex once2016-08-13T01:23:37Zusername-removed-383729create loop regex oncefixes #105 (was incorrect in some files)fixes #105 (was incorrect in some files)https://staging.gitlab.com/Rich-Harris/buble/-/merge_requests/75allow early return from function-loops2016-09-20T20:33:46Zusername-removed-383729allow early return from function-loopsfixes #103 fixes #103