Henry Zhu
2b9c3735fd
update to babylon beta 4
2017-03-01 12:38:19 -05:00
Henry Zhu
3ff77a61e4
Update babylon beta 3 ( #5394 )
...
* Update babylon to v7-beta.3
* convert RestProperty/SpreadProperty to RestElement/SpreadElement
* add virtual types to make it easier to upgrade
2017-02-28 16:58:19 -05:00
Henry Zhu
d33d023594
Merge remote-tracking branch 'origin/master' into merge-master
2017-02-23 18:54:15 -05:00
Marcelo Dapper
724c949244
Replace lodash/assign with Object.assign ( #5356 )
...
Remove imports to lodash/assign and replace assign with Object.assign.
The lodash/assign is unnecessary for babel 7 as node >4 has the same
functionality built-in with Object.assign as used here.
This resolve the [issue 5353](https://github.com/babel/babel/issues/5353 )
2017-02-21 22:08:20 -05:00
Logan Smyth
4ee385e96c
Avoid usage of exports/module.exports/require().
2017-02-21 16:52:42 -08:00
Jason Laster
ff2c24eed2
Add test for reference paths ( #5296 )
2017-02-15 15:05:31 -05:00
Henry Zhu
b3e208fcd0
Update to babylon@7.0.0-beta.0
2017-02-15 14:45:21 -05:00
Daniel Tschinder
6c03cb0783
Merge branch 'master' into merge-master
...
# Conflicts:
# lerna.json
# packages/babel-cli/package.json
# packages/babel-core/package.json
# packages/babel-generator/package.json
# packages/babel-helper-builder-react-jsx/package.json
# packages/babel-helper-function-name/package.json
# packages/babel-helper-optimise-call-expression/package.json
# packages/babel-helper-replace-supers/package.json
# packages/babel-helper-transform-fixture-test-runner/package.json
# packages/babel-helpers/package.json
# packages/babel-plugin-transform-class-properties/package.json
# packages/babel-plugin-transform-es2015-block-scoping/package.json
# packages/babel-plugin-transform-es2015-classes/package.json
# packages/babel-plugin-transform-es2015-modules-commonjs/package.json
# packages/babel-plugin-transform-es2015-modules-systemjs/package.json
# packages/babel-plugin-transform-es2015-modules-umd/package.json
# packages/babel-plugin-transform-es2015-parameters/package.json
# packages/babel-plugin-transform-react-jsx/package.json
# packages/babel-register/package.json
# packages/babel-template/package.json
# packages/babel-traverse/package.json
# packages/babel/package.json
2017-02-14 12:46:23 +01:00
Logan Smyth
9cae61911d
v6.23.1
2017-02-13 18:18:17 -08:00
Logan Smyth
454933ef76
Revert "Rewrite Hub as interface #5047 " ( #5306 )
2017-02-13 18:15:50 -08:00
Logan Smyth
48573f1fb4
v6.23.0
2017-02-13 17:14:12 -08:00
Yongxu Ren
2985597d40
Rewrite Hub as interface #5047 ( #5050 )
...
* Rewrite Hub as interface #5047
* Update index.js
2017-02-13 12:49:10 -08:00
Logan Smyth
4edcd02965
Fix linting error
2017-02-12 18:48:07 -08:00
Samuel Reed
f4e3dfee74
Fix PathHoister hoisting before bindings. ( #5153 )
...
Fixes #5149 and enables a few additional safe hoists.
2017-02-12 18:35:08 -08:00
Samuel Reed
eb91bd831c
Fix PathHoister hoisting JSX member expressions on "this". ( #5143 )
...
The PathHoister ignored member references on "this", causing it
to potentially hoist an expression above its function scope.
This patch tells the hoister to watch for "this", and if seen,
mark the nearest non-arrow function scope as the upper limit
for hoistng.
This fixes #4397 and is an alternative to #4787 .
2017-02-12 18:34:07 -08:00
Henry Zhu
9083bd6283
Merge branch 'master' into 7.0
2017-02-09 18:36:02 -05:00
Brian Ng
6da9bb83df
Prevent multiple return statements in a loop when replacing expressions ( #5030 )
2017-02-09 13:06:41 -08:00
Boopathi Rajaa
f8ffe03e79
Deopt evaluation of undefined with a local binding. Fix #5204 ( #5206 )
2017-02-08 10:37:14 -05:00
Vicente Jr Yuchitcho
1ba4a3fe5d
Add path sibling traversal methods ( #5230 )
...
* getPrevSibling
* getNextSibling
* getAllNextSiblings
* getAllPrevSiblings
2017-02-07 11:17:50 -05:00
Łukasz Lityński
badce969da
Fix confusing comment ( #5272 ) ( #5273 )
2017-02-06 16:17:26 -08:00
Logan Smyth
b845f2b69d
Re-enable the max-len ESLint rule. ( #5265 )
2017-02-04 11:07:15 -05:00
Kai Cataldo
e09ea222c9
Remove babel-runtime from packages' dependencies ( #5218 )
2017-01-27 09:04:35 -05:00
Jordan Jones
1742035a98
[7.0] Fixes #5108 , browser.js and browser.js test removed ( #5124 )
...
* Fixes #5108 , browser.js and browser.js test removed
* Moved api/node.js to index.js and adjusted associated file references
2017-01-19 22:43:11 -05:00
Henry Zhu
368485828f
v6.22.1
2017-01-19 22:12:53 -05:00
Jason Aslakson
ef25bebfa8
fix issue #5012 - Cannot read property 'declarations' of null ( #5019 )
...
- temporary fix
2017-01-19 21:36:18 -05:00
Henry Zhu
e9fc38bcd3
v6.22.0
2017-01-19 19:33:22 -05:00
Brian Ng
8c35b320d3
Bump eslint-config-babel and fix lint ( #5129 )
2017-01-17 10:51:16 +01:00
Andres Suarez
85b3aec747
Use native or lodash util module where full "lodash" is required
2017-01-15 13:35:00 -08:00
Henry Zhu
672adba9a1
enable prefer const ( #5113 )
2017-01-14 09:48:52 -05:00
Jeff Morrison
b820d8ebc9
Strip Flow's new shorthand import-type specifiers
2017-01-13 13:24:33 -05:00
Daniel Tschinder
dc617129f6
Optimize removal-hooks for ArrowFunctions ( #5076 )
2017-01-09 09:05:23 -05:00
Henry Zhu
77d9e3e5c4
v6.21.0
2016-12-16 16:55:53 -05:00
Henry Zhu
670ee996c8
Merge pull request #4940 from appden/fix-react-constant-elements
...
Fix React constant element bugs
2016-12-16 15:29:05 -05:00
Brian Ng
196cdd4dce
Bail on sharing comments with siblings if key is a string ( #5007 )
2016-12-16 10:52:48 -05:00
Henry Zhu
608e77e389
v6.20.0
2016-12-08 18:25:39 -05:00
Boopathi Rajaa
73ff13f326
Add getBindingIdentifierPaths/getOuterBindingIdentifierPaths ( #4876 )
2016-12-08 12:43:14 -05:00
Justin Ridgewell
32aa1f75d6
Hoist generateDeclaredUidIdentifier helper function ( #4934 )
2016-12-08 12:42:22 -05:00
Scott Kyle
c438209718
Fix constant elements hoisted before declarator ( #4804 )
...
When multiple declarators are present in a declaration, we want to insert the constant element inside the declaration rather than placing it before because it may rely on a declarator inside that same declaration.
2016-12-03 20:19:32 -08:00
Daniel Tschinder
1d9e509df2
Fix eslint ( #4897 )
...
* Fix eslint call
* Fix linting errors
2016-11-26 11:24:38 -05:00
Boopathi Rajaa
7e020272c1
Fix path.evaluate for references before declarations ( #4875 )
2016-11-20 22:44:56 -05:00
Henry Zhu
754a6ed8c0
v6.19.0
2016-11-16 11:15:30 -05:00
Henry Zhu
4462d59acd
refactor: switch ancestory/descendant logic [skip ci]
...
- Ref https://github.com/babel/babel/pull/4836#discussion_r88118790 @jridgewell
2016-11-15 16:41:08 -05:00
Boopathi Rajaa
55a47a8819
Add path utilities isAncestor and isDescendant ( #4836 )
...
* Add path utilities isAncestor and isDescendant
* Create ancestry.js
2016-11-15 16:36:45 -05:00
Boopathi Rajaa
dbc1371ba9
Add clearCache and clearPath as separate APIs under traverse ( #4835 )
2016-11-15 10:48:59 -05:00
Henry Zhu
12f9cd0826
v6.18.0
2016-10-24 17:18:36 -04:00
Andrew Levine
555ee0cb51
Don't treat JSXIdentifier in JSXMemberExpression as HTML tag. Closes #4027 ( #4765 )
2016-10-24 10:42:50 -04:00
Moti Zilberman
fd4667e649
Increase test coverage ( #4742 )
...
* Add tests for path type inferers
* Add test for babel-types.valueToNode
* Add tests for babel-types.toKeyAlias
* Add tests for babel-types.toStatement
* Add tests for babel-types.toExpression
* Lint fixes in babel-traverse/test/inference
2016-10-23 10:51:09 +02:00
Juriy Zaytsev
beda884f41
Make getBinding ignore labels; add Scope#getLabel, Scope#registerLabel ( #4758 )
...
* Make getBinding ignore labels; add Scope#getLabel, Scope#registerLabel
* generateUid: account for labels again
2016-10-21 17:19:59 -04:00
Moti Zilberman
6bc10b5573
Support ObjectExpression in static path evaluation ( #4746 )
2016-10-17 18:55:02 -04:00
Andrew Levine
9f8ab29213
Change usage of "suite"/"test" in unit-tests to "describe"/"it" ( #4734 )
...
Fixes #4733
2016-10-15 18:45:35 -04:00