Sebastian McKenzie
f88cc9d509
clean up babel-generator - closes #2210
2015-10-05 16:37:37 +01:00
Sebastian McKenzie
63cfb82ca7
clean up mergeSourceMap method - closes #2479
2015-10-05 16:34:40 +01:00
Sebastian McKenzie
92553a91f0
Merge pull request #2469 from jridgewell/replace-implicit-arrow-with-block
...
Replace arrow expression body with block statement
2015-10-05 16:29:23 +01:00
Sebastian McKenzie
6740561f91
remove comments from old node after inheriting from new one when replacing nodes - closes #2490 , closes #2489
2015-10-05 16:27:17 +01:00
Justin Ridgewell
24d766fc57
Replace arrow expression body with block statement
...
Without this, the only way to replace the arrow function is to either
manually override its `node.body`, or duplicate the arrow:
```js
// Old
ArrowFunctionExpression: function (node) {
node.body = t.blockStatement(...);
// Or
return t.ArrowFunctionExpression(
node.params,
t.blockStatement(...),
node.async
);
}
// New
ArrowFunctionExpression: function() {
this.get("body").replaceWith(t.blockStatement(...));
}
```
2015-09-30 15:01:35 -04:00
Sebastian McKenzie
369b9fdc4b
Merge pull request #2465 from jfsiii/patch-2
...
Move to exponentiation operator to stage 3
2015-09-30 15:58:19 +01:00
Sebastian McKenzie
95fb1e2251
Merge pull request #2464 from jfsiii/patch-1
...
Move to async functions to stage 3
2015-09-30 15:58:11 +01:00
John Schulz
afc687dc5d
Bump to exponentiation operator to stage 3
...
https://github.com/tc39/ecma262#current-proposals
2015-09-30 07:53:16 -07:00
John Schulz
959f607a5a
Bump to async functions to stage 3
...
https://github.com/tc39/ecma262#current-proposals
2015-09-30 07:51:26 -07:00
Sebastian McKenzie
fa88b1c00d
abstract out scope binding rename and handle function/class cases where we can retain the name with some ~magic~ - fixes #2435
2015-09-28 02:45:00 +01:00
Sebastian McKenzie
8ab4a5df43
Merge pull request #2403 from alawatthe/double-decimal-point
...
BinaryIntegerLiterals, OctalIntegerLiterals, HexIntegerLiterals shoul…
2015-09-27 21:24:05 +01:00
Sebastian McKenzie
32d2794bf8
Merge branch 'mathiasbynens-patch-5'
2015-09-27 21:23:33 +01:00
Sebastian McKenzie
0230368d23
Merge branch 'patch-5' of https://github.com/mathiasbynens/6to5 into mathiasbynens-patch-5
...
Conflicts:
packages/babel/package.json
2015-09-27 21:23:27 +01:00
Jhen
67efa9ee4a
[es6.tailCall] Add default-parameters-black-es6-block-scoping test case
...
refer: https://github.com/babel/babel/issues/2401
2015-09-26 13:24:44 +08:00
Sebastian McKenzie
d1588990d5
add flow-comments plugin to babelrc and format json
2015-09-24 18:43:10 +01:00
Sebastian McKenzie
464d2b7ef3
enable no-var rule in eslint config
2015-09-24 18:42:50 +01:00
Sebastian McKenzie
112c24a3d3
Merge pull request #2427 from michaelficarra/patch-2
...
advance es7.trailingFunctionCommas to stage 2
2015-09-24 18:27:14 +01:00
Sebastian McKenzie
55989d1c34
Merge pull request #2425 from zertosh/browserify-shrink
...
Use source-map@^0.5.0 and optimize bundle builds
2015-09-24 15:34:30 +01:00
Sebastian McKenzie
0421224ad0
Merge pull request #2424 from benjamn/patch-5
...
Upgrade Regenerator to 0.8.40
2015-09-24 15:34:09 +01:00
Mathias Bynens
88f0f8995f
Update regexpu to v1.3.0
2015-09-24 13:03:29 +02:00
Andres Suarez
2f13cfa85b
optimize bundle builds
2015-09-23 21:58:23 -07:00
Andres Suarez
a5fc32e598
bump source-map to ^0.5.0
2015-09-23 21:05:57 -07:00
Michael Ficarra
7e9a9296ef
advance es7.trailingFunctionCommas to stage 2
2015-09-23 16:41:40 -07:00
Sebastian McKenzie
b522fccbd1
Merge pull request #2423 from michaelficarra/patch-1
...
move class properties proposal to stage 1
2015-09-23 23:22:10 +01:00
Ben Newman
e50476b8a4
Upgrade Regenerator to 0.8.40
...
Most notably, this pegs regenerator to a version of recast (0.10.33) which pegs ast-types to a version (0.8.12) that contains https://github.com/benjamn/ast-types/pull/128 , so the Babel client bundle size will be a bit smaller.
2015-09-23 15:01:42 -04:00
Michael Ficarra
46e2a86183
move class properties proposal to stage 1
2015-09-23 11:13:38 -07:00
Sebastian McKenzie
227ed5638a
add flow type annotations
2015-09-23 16:10:44 +01:00
Sebastian McKenzie
119520ed87
add lib folder
2015-09-23 16:00:41 +01:00
Sebastian McKenzie
20f643b419
type annotate babylon
2015-09-23 15:59:41 +01:00
Sebastian McKenzie
31a01cc4d2
Merge pull request #2414 from benjamn/patch-4
...
Upgrade Regenerator to v0.8.39
2015-09-22 16:23:51 +01:00
Ben Newman
5553fddd84
Upgrade Regenerator to v0.8.39
...
Most notably, this release fixes a bug that made it difficult for Promise implementations to track unhandled rejections when using async functions: 3d8ee21f3a
2015-09-22 11:16:22 -04:00
Jhen
441f5a14f6
[es6.tailCall] Update tests
2015-09-20 04:01:24 +08:00
Jhen
3e0b9b6b4e
[es6.tailCall] Move '<arg> = undefined' to the place in front of Continue statement
2015-09-20 04:01:10 +08:00
Alexander Zeilmann
4f57a7b092
BinaryIntegerLiterals, OctalIntegerLiterals, HexIntegerLiterals should not have a decimal point afer them - fixes #2402
2015-09-19 16:20:32 +02:00
Sebastian McKenzie
75cd1a5531
v5.8.26
2015-09-19 02:17:50 +01:00
Sebastian McKenzie
7eb45351bd
add FORCE_VERSION check when validating whether or not any packages have changed
2015-09-19 02:17:05 +01:00
Sebastian McKenzie
0f8eb6691b
add 5.8.26 changelog
2015-09-19 02:12:55 +01:00
Sebastian McKenzie
1d17f85a87
add 5.8.25 changelog
2015-09-19 02:12:17 +01:00
Sebastian McKenzie
273b7c5e07
v5.8.25
2015-09-19 01:52:08 +01:00
Sebastian McKenzie
bfd8f41e5e
Merge pull request #2372 from hzoo/evaluation-tests
...
evaluation: tests for UnaryExpression and BinaryExpression
2015-09-19 01:40:43 +01:00
Sebastian McKenzie
c99a179401
var -> let
2015-09-18 18:45:55 +01:00
Sebastian McKenzie
0708edb927
it's now safe to use path.remove()
2015-09-18 18:41:44 +01:00
Sebastian McKenzie
c695248d89
remove dead deprecated/aliases for transformers
2015-09-18 18:41:19 +01:00
Sebastian McKenzie
901c578e01
remove unused templates
2015-09-18 18:40:59 +01:00
Sebastian McKenzie
b1648fb339
switch babel-node binary to use v8 flags
2015-09-18 18:40:46 +01:00
Sebastian McKenzie
e4bd19ea7d
Merge pull request #2394 from steveluscher/rename-type-definer
...
Rename the define method to defineType to disambiguate from AMD's “define”
2015-09-18 00:15:30 +01:00
Steven Luscher
c28007c044
Rename the define method to defineType to disambiguate from AMD's “define”
2015-09-16 17:17:11 -07:00
Sebastian McKenzie
5dadb67a1a
remove transformers and module formatters from $ babel --help
2015-09-15 06:33:50 +01:00
Sebastian McKenzie
8a32666052
remove dead options
2015-09-15 06:32:49 +01:00
Sebastian McKenzie
c10af9236e
remove transformerList option parser and remove redundant comments
2015-09-15 06:32:37 +01:00