Henry Zhu
6620612b66
update to beta.10
2017-05-22 17:13:54 -04:00
Buu Nguyen
c474fd48e1
Fix issue semi-colon gets inserted unnecessarily ( #5749 )
...
* Fix issue semi-colon gets inserted unnecessarily
* Simplify if condition a bit
2017-05-19 16:54:51 -04:00
Mauro Bringolf
8facda4505
Added more types to API signatures ( #5733 ) [skip ci]
2017-05-19 14:53:43 -04:00
Mauro Bringolf
943b7371a1
Completed return types for all NodePath family methods ( #5739 ) [skip ci]
2017-05-19 14:52:13 -04:00
Logan Smyth
14584c218c
Kill the "shadow-functions.js" internal plugin in favor of an explicit helper ( #5677 )
...
* Handle arrow function processing via shared API rather than default plugin.
* Fix a few small PR comments.
* Preserve existing spec arrow 'this' rewrites, and support spec in subclass constructors.
2017-05-05 13:27:18 -07:00
Samuel Reed
c307bbb3a9
Fix PathHoister hoisting before a same-scope variable declaration.
...
Seems we didn't have tests running for this very simple case.
Also fixes #5520
2017-05-01 14:32:11 -07:00
Samuel Reed
c3e8cc8ad6
Fix PathHoister error attaching after export declarations.
...
Fixes #5369 .
See also 4ee385e96c/packages/babel-plugin-transform-class-properties/src/index.js (L167)
2017-05-01 12:41:29 -07:00
Henry Zhu
62375cdf12
v7.0.0-alpha.9
2017-04-18 10:41:30 -04:00
Henry Zhu
25ae8c8554
v7.0.0-alpha.8
2017-04-17 15:12:31 -04:00
Henry Zhu
c732f5e1d0
v7.0.0-alpha.7
2017-04-05 17:13:26 -04:00
Daniel Tschinder
b2ced1d6bd
Update babylon to latest beta ( #5585 )
2017-04-04 22:32:31 +02:00
Henry Zhu
f3ef03abfd
use caret for devDeps
2017-03-27 16:32:13 -04:00
Henry Zhu
7a1ccf076c
Misc ( #5545 )
...
* normalize npmignores
* fixup eslint ignore, etc
* lint
* remove unused
* rm from gitignore
* use strict
2017-03-25 21:46:16 -04:00
Henry Zhu
ab68800e06
v7.0.0-alpha.3
2017-03-23 15:49:01 -04:00
Boopathi Rajaa
c9a851a218
Cleanup traverse cache APIs ( #5494 )
2017-03-23 12:00:28 -04:00
Damien Maillard
299e51298c
Fix path.remove() leading & trailing comments sharing ( #5504 )
2017-03-23 11:55:14 -04:00
Samuel Reed
f20da57317
Fix PathHoister attaching to default parameters. ( #5415 )
...
* Fix PathHoister attaching to default parameters.
Ref: #5315
* Update hoister.js
2017-03-22 16:37:53 -04:00
Henry Zhu
b638c8b3eb
Transform the template literals revision proposal ( #5523 )
...
* Account for template literals revision
* extra tests
* update to babylon beta 7
* pr feedback (keep arr length the same)
2017-03-22 16:07:36 -04:00
Henry Zhu
ceb68f5bb7
babylon@7.0.0-beta.6
2017-03-22 00:24:00 -04:00
MrSpider
5287e13817
Fix replacing function declaration in export default ( fixes #4468 ) ( #5444 )
2017-03-10 11:41:03 -08:00
Brian Ng
8a82cc060a
Run new lint rules ( #5413 )
2017-03-04 10:46:01 -05:00
Henry Zhu
11e54a6bd3
v7.0.0-alpha.1
2017-03-02 16:04:47 -05:00
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