Sebastian McKenzie
e2ca03f92d
fix linting errors
2015-06-05 08:10:22 +01:00
Sebastian McKenzie
c75a3c68e5
add 5.5.0 changelog
2015-06-05 08:08:20 +01:00
Sebastian McKenzie
5d617ea99b
upgrade regenerator - fixes #1685
2015-06-05 07:56:33 +01:00
Sebastian McKenzie
58059a2c48
add deoptValue method to Binding that ignores all subsequent setValue calls
2015-06-05 07:52:57 +01:00
Sebastian McKenzie
4c2936773a
update type inferrence to support unary operators
2015-06-05 07:47:22 +01:00
Sebastian McKenzie
c7c16ad9c1
add control flow support and deopt bindings on assignments that we can't understand
2015-06-05 07:46:32 +01:00
Sebastian McKenzie
7b676d608b
allow NodePaths to be returned in node removal/replacement methods and coerce them to nodes
2015-06-05 07:46:10 +01:00
Sebastian McKenzie
48ecec1e2e
move more transformers to builtin-pre group
2015-06-05 07:45:32 +01:00
Sebastian McKenzie
9dc72e71d4
add skipKey method to skip traversal of subsequent keys
2015-06-05 07:45:19 +01:00
Sebastian McKenzie
4a7a02b9af
rename builtin-setup transformer group to builtin-pre
2015-06-05 07:44:45 +01:00
Sebastian McKenzie
7cb460d2f3
add eval optional transformer
2015-06-05 07:44:29 +01:00
Sebastian McKenzie
0a7dac8744
move flow to builtin-trailing group
2015-06-05 07:44:15 +01:00
Sebastian McKenzie
667d595a73
use type inferrence to work out whether to wrap template literals with the String constructor
2015-06-05 07:43:58 +01:00
Sebastian McKenzie
2d2d957be5
add back ComprehensionBlock binding identifier keys and remove body form ComprehensionBlock visitor keys
2015-06-04 22:50:17 +01:00
Sebastian McKenzie
5aef7afade
fix remaining AssignmentExpression LHS ReferencedIdentifier bugs
2015-06-04 22:43:50 +01:00
Sebastian McKenzie
d5e7b5616c
Merge branch 'master' of github.com:babel/babel
2015-06-04 22:23:42 +01:00
Sebastian McKenzie
9aa17a6cc2
don't consider JSXIdentifier HTML tags to be references - fixes #1683
2015-06-04 22:23:24 +01:00
Sebastian McKenzie
0f13097f59
add basic naive constant folding of assignment expressions
2015-06-04 22:08:38 +01:00
Sebastian McKenzie
355ffbdaf8
don't consider the LHS of an AssignmentExpression to be a reference
2015-06-04 22:07:44 +01:00
Sebastian McKenzie
45b0d63d72
copy parent class binding to class in the collection visitor
2015-06-04 22:07:19 +01:00
Sebastian McKenzie
c515271fbd
Merge pull request #1677 from jmm/node_modules-robust3
...
Complete "Fix flawed require hook node_modules check" properly
2015-06-03 19:23:41 +01:00
Jesse McCarthy
6f3501876a
Add test for require-hook node_modules check.
2015-06-03 09:04:59 -04:00
Jesse McCarthy
f8afc5fa17
Revert "Add test for require-hook node_modules check."
...
This reverts commit 1488d88c81c4b8a31f96c0fb1045f3328302b2e2.
Wrong branch was accidentally merged. There is a better test.
2015-06-03 09:04:59 -04:00
Sebastian McKenzie
4ecda93147
move deprecated minification.inlineExpressions to aliases
2015-06-03 10:05:56 +01:00
Sebastian McKenzie
41847162b1
check if es7.exportExtensions ie enabled in parser
2015-06-03 10:05:39 +01:00
Sebastian McKenzie
0f7e010e3e
remove isSpecifierDefault check for ExportDefaultSpecifier - fixes #1673
2015-06-03 10:05:19 +01:00
Sebastian McKenzie
8201ea0aa2
Merge branch 'master' of github.com:babel/babel
...
# Conflicts:
# src/babel/api/register/node.js
2015-06-03 07:26:46 +01:00
Sebastian McKenzie
a7848c1822
Merge branch 'jmm-node_modules-robust'
2015-06-03 07:26:19 +01:00
Sebastian McKenzie
d4abaeeecf
Merge branch 'node_modules-robust' of https://github.com/jmm/babel into jmm-node_modules-robust
2015-06-03 07:26:12 +01:00
Sebastian McKenzie
871a82df0a
Merge pull request #1665 from Jabher/master
...
Making babel able to run in node_modules directory
2015-06-03 07:25:22 +01:00
Sebastian McKenzie
ffbf5b0b47
convert property key to computed before checking if it's a displayName property in the react transformer builder - closes #1671
2015-06-02 23:08:46 +01:00
Sebastian McKenzie
9dcceaeb40
move minification.deadCodeElimination back to the builtin-setup transformer group
2015-06-02 17:08:49 +01:00
Sebastian McKenzie
556e58a4ab
register function declarations anyway as we may not have hit them
2015-06-02 17:08:31 +01:00
Sebastian McKenzie
b6c35743e6
add import types
2015-06-02 16:24:32 +01:00
Sebastian McKenzie
0abd34f7e6
Merge branch 'master' of github.com:babel/babel
2015-06-02 16:18:13 +01:00
Sebastian McKenzie
cafd7f8e39
add Infinity/NaN, string/number member expressions/calls and Math calls static evaluation
2015-06-02 16:18:08 +01:00
Sebastian McKenzie
43c0a0e65f
remove all non-function statements after completion statements in blocks
2015-06-02 16:16:36 +01:00
Sebastian McKenzie
7b359f46fd
rename minification.inlineExpressions to minification.constantFolding
2015-06-02 16:16:10 +01:00
Sebastian McKenzie
880827f6ce
Merge pull request #1669 from wincent/mixed-type
...
Add "mixed" Flow type
2015-06-02 16:15:23 +01:00
Greg Hurrell
0c300058a3
Add "mixed" Flow type
...
"mixed" is one of the base types listed here:
http://flowtype.org/docs/base-types.html
So this commit adds support for it.
2015-06-02 07:15:06 -07:00
Sebastian McKenzie
d35be22f7d
add support for resolving array expression elements
2015-06-02 00:32:18 +01:00
Sebastian McKenzie
ff8d90061f
add "istanbul ignore next" auxiliary comment when using istanbul compat mode for babel/register
2015-06-02 00:32:07 +01:00
Vsevolod Rodionov
e66109f9d0
Making babel able to run in node_modules directory (while still ignoring node_modules packages)
...
In case if app is installed by npm install <git tarball url> which is very comfortable thing (postinstall hooks, automatic package installation and so on) babel is unable to run over packages, e.g.
```
~/node_modules/some_app$ node-babel app.js
```
is crashing as babel do not want in node_modules directory.
relative path gives ability to check whether lib is in node_modules _relative_ to current app, so that if app is ran in node_modules by itself it will not be captured.
2015-06-01 14:55:51 -07:00
Sebastian McKenzie
1934c16f0f
don't use initializer property for decorators on concise methods in object literals
2015-06-01 22:32:04 +01:00
Sebastian McKenzie
012ac7d9ec
remove accidental console.log introduced in 80a7f1346090d1fc236b7eb6120a8236d0a0e6b9
2015-06-01 22:01:27 +01:00
Jesse McCarthy
efb3b04225
Make node_modules path check robust.
2015-06-01 16:54:56 -04:00
Jesse McCarthy
1488d88c81
Add test for require-hook node_modules check.
...
(Failing.)
2015-06-01 16:54:52 -04:00
Sebastian McKenzie
80a7f13460
register named method id as a reference to avoid collisions - fixes #1664
2015-06-01 21:53:34 +01:00
Sebastian McKenzie
8919fc22b1
only infer single identifier new expression callees
2015-06-01 21:52:54 +01:00
Sebastian McKenzie
b1273cb774
Merge pull request #1663 from pangratz/fix_for_referencesImport
...
Minor fix for `referencesImport`
2015-06-01 18:13:49 +01:00