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
Andrew Levine
c0038221d7
Run ESLint on test files, and fix lint errors in test files ( #4732 )
2016-10-15 18:27:48 -04:00
Sam Goldman
15183078e6
Add EmptyTypeAnnotation ( #4724 )
...
Added to Flow in facebook/flow#c603505583993aa953904005f91c350f4b65d6bd
Parser support added in babel/babylon#171 .
2016-10-14 15:16:02 -04:00
Flavio Corpa
9b02a6d298
Add missing description to all package.json files ( #4703 ) [skip ci]
2016-10-12 10:15:50 -04:00
Daniel Tschinder
3a69b8a252
Update globals to version 9.0.0 ( #4651 )
2016-10-03 21:01:06 -04:00
Henry Zhu
6d22f258db
v6.16.0
2016-09-28 15:38:45 -04:00
Moti Zilberman
03d772c2ec
Computed class properties ( #4500 )
...
* Support computed class property names (#4499 )
** Depends on babel/babylon#121 **
* `babel-types`: Add `computed` field to `ClassProperty`
* `babel-plugin-transform-class-properties`: handle computed property names correctly
* `babel-generator`: add tests for class properties (computed/literal, static/instance)
* doc: Update babel-types with ClassProperty.computed
* chore(package): update babylon to v6.11.0
* babel-types: move ClassProperty.computed to be last builder arg
2016-09-26 17:46:00 +02:00
Logan Smyth
08b45ca853
Merge pull request #4534 from BoomTownROI/master
...
Fix issue with minified libraries and code coverage
2016-09-25 13:59:43 -07:00
Dan Harper
f859830e54
Fix: export default arrows with function naming ( #4524 )
2016-09-19 21:58:37 -04:00
Rob Landers
c5504c4807
Update context.js
...
Fix queue size
2016-09-19 15:12:33 -04:00
Daniel Tschinder
590ad4d24f
Replace phabricator tickets with github ones in code comments ( #4519 )
2016-09-17 22:50:02 -04:00
Henry Zhu
b3dca4fb5a
v6.15.0
2016-09-01 11:03:06 -04:00
Ben Briggs
c94abcc170
Add support for preserving comments in babel-template. ( #3689 )
...
* Add support for preserving comments in babel-template.
* Add an API section to babel-template.
2016-09-01 10:50:25 -04:00
Boopathi Rajaa
477a72a975
Fix bug undefined reference for export declaration ( #3629 )
...
+ (Fix https://phabricator.babeljs.io/T7534 )
+ Export declaration class/function/var ids now add the export
declaration path as the referenced one.
2016-08-31 14:42:33 -04:00
Logan Smyth
a0ca5ed61e
Remove the cycle from babel-types/babel-traverse.
2016-08-29 19:13:19 -07:00
Henry Zhu
5ce325c399
v6.14.0
2016-08-24 17:40:46 -06:00
Sebastian McKenzie
07b3dc18a0
Add wrapPluginVisitorMethod option to allow introspection and metrics tracking of plugins ( #3659 )
2016-08-20 10:36:52 -04:00
Boopathi Rajaa
183d9570f9
Fix bug where redeclaration of var doesn't deopt ( #3559 )
...
* Fix bug where redeclaration of var doesn't deopt. (Close T7470)
* [evaluate] Add tests for cases - let/const/different scopes
2016-08-17 19:23:09 -04:00
Sebastian McKenzie
4a19661346
Generate names field for identifiers to get correct names mappings ( #3658 )
2016-08-16 13:43:55 -04:00
Henry Zhu
6ab3e35075
v6.13.0
2016-08-04 19:34:51 -04:00
Erik Desjardins
aeb42c2228
Fix bug where path.evaluate treats repeated identifiers as undefined ( #3557 )
...
* babel-traverse: add test to demonstrate repeated identifiers being evaluated to `false`
* fix typo: `value` -> `val`
* path.evaluate: only mark item as resolved if we're confident
2016-08-04 16:58:41 -04:00
Henry Zhu
698ef139bc
v6.12.0
2016-07-27 15:23:17 -04:00
Sebastian McKenzie
3b4b3656a8
Fix React constant elements transform from hoisting elements to positions where their referenced bindings haven't been evaluated yet ( #3596 )
2016-07-27 10:54:21 -04:00
Henry Zhu
6e58954bce
v6.11.4
2016-07-19 21:59:53 -04:00