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
Jhen
e464b9ab87
Add block if parent is no block statement for remove-console/debugger
2016-07-19 12:56:29 +08:00
Logan Smyth
faf024ad44
v6.10.4
2016-06-21 09:43:33 -07:00
Sebastian McKenzie
b2390cca02
deopt on recursion in path.evaluate - fixes T7397
2016-06-19 22:08:39 +01:00
Henry Zhu
cf6304a34b
v6.9.0
2016-05-17 14:49:17 -04:00
dlwalsh
cdb465a834
remove repeating dependency from babel-traverse ( #3501 )
2016-05-16 09:54:37 -04:00
Amjad Masad
109d99bb5e
don't double count binding references ( #3465 )
...
When, for example, a function is moved between from one place to another we recrawl and end up double counting any references it holds to the upper scope. This protects against that. (The same thing is done for constant violations in the `reassign` method)
2016-05-13 17:20:32 -04:00
Jordan Klassen
dc1f40540d
Upgrade to lodash 4 ( #3315 )
...
* Upgrade to lodash 4
* Fix incorrect require in babel-runtime/scripts
* Replace cloneDeep with cloneDeepWith where applicable
2016-05-13 17:15:14 -04:00
Logan Smyth
9843c87573
Fix block statement code style. ( #3493 )
2016-05-02 21:15:37 -04:00
Henry Zhu
05bf216339
v6.8.0
2016-05-02 19:43:49 -04:00
Henry Zhu
4c23b01798
change plugins to use babel-runtime 6
2016-04-24 20:06:23 -04:00
Logan Smyth
0130c6c186
v6.7.6
2016-04-08 09:27:12 -07:00
Logan Smyth
c3ccddaaaf
Revert "Merge pull request #3433 from loganfsmyth/bail-out-rename"
...
This reverts commit 2d0a007d14e519fe60a849dd17068a0f3df79a28, reversing
changes made to e4d6d420415a0c290a321fb6c18ba5f19675b5c1.
2016-04-08 09:09:48 -07:00
Logan Smyth
89ecbda25c
v6.7.5
2016-04-07 20:24:49 -07:00
Logan Smyth
2d0a007d14
Merge pull request #3433 from loganfsmyth/bail-out-rename
...
Only attempt to rename export declarations, not expressions - fixes T7215
2016-04-06 19:04:21 -07:00
nkzawa
85ecb6c97b
stop traversing when target type is found
2016-03-28 03:01:06 +09:00
Logan Smyth
bad2c768f2
Remove this check which will never pass with the new cache.
2016-03-23 20:57:18 -07:00
Logan Smyth
6470426f7a
v6.7.4
2016-03-22 20:37:46 -07:00
Logan Smyth
078f6c0ed3
Only attempt to rename export declarations, not expressions - fixes T7215
2016-03-16 23:26:52 -07:00
Simeon Willbanks
93d438cf01
Fix misspelling
2016-03-16 22:17:09 -07:00
Henry Zhu
459b1ffa1c
Merge pull request #3420 from loganfsmyth/scope-cache-invalidation
...
Invalidate the scope cache if a node is moved to a different path - fixes T7194
2016-03-16 23:18:48 -04:00
Logan Smyth
80aa424b75
Invalidate the scope cache if a node is moved to a different path - fixes T7194
2016-03-12 14:21:21 -08:00
Logan Smyth
b1c50b01f2
Ensure that we push and pop evenly so things don't fail to queue - fixes T7199
2016-03-12 12:30:33 -08:00
Amjad Masad
5373733b8d
v6.7.3
2016-03-10 17:35:55 -08:00
Amjad Masad
4abc03eef1
Rework logic that controls flowBinding warning
...
The flag to control whether we should warn didn't take into account
nested calls or scope chains. An easier approach is to have a
counter. That way we know for sure if we're somewhere deep inside a
crawl call or not.
2016-03-10 16:39:12 -08:00
Amjad Masad
de92d632f3
v6.7.2
2016-03-10 14:41:27 -08:00
Amjad Masad
5a081a8572
Update comment, reformat message
2016-03-10 13:00:45 -08:00
Amjad Masad
9f0dbf0234
Better warnings
2016-03-10 12:54:02 -08:00