Bo Borgerson
8f790ceeed
Satisfy the "space-infix-ops" eslint rule ( #3696 )
...
Future proofing against https://github.com/babel/eslint-config-babel/pull/1 .
Only one violation, even without enforcement!
2016-09-02 18:50:03 -04:00
Henry Zhu
d81e154aca
remove kcheck, unused devDeps ( #3693 )
...
remove unused packages (devDeps)
2016-09-02 08:44:39 -04:00
Greenkeeper
2664c1658d
chore(package): update shelljs to version 0.7.4 ( #3681 )
...
https://greenkeeper.io/
2016-09-01 23:56:35 +02:00
Henry Zhu
6d7417ba1b
Update babel-types docs, contributing, babel-cli [skip ci]
...
Closes gh-3684
2016-09-01 16:15:32 -04:00
Eric Baer
78c21a282a
Implement very basic (but working) functionality ( #3 )
...
* Implement very basic (but working) functionality
* Correct PR based on feedback
2016-09-01 11:55:50 -04:00
Henry Zhu
b3dca4fb5a
v6.15.0
2016-09-01 11:03:06 -04:00
Henry Zhu
13d76e98d6
v6.15.0 changelog [skip ci] ( #3691 )
...
* v6.15.0 changelog [skip ci]
* add [skip ci]
* add [skip ci]
2016-09-01 10:54:41 -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
Ryan Biwer
23ea626241
Fix block scope remapping (fixes T7525) ( #3662 )
2016-09-01 10:48:32 -04:00
Boopathi Rajaa
953dd1df48
Fix toExpression converting arrow functions to function expressions without block body ( #3687 )
2016-08-31 17:01:59 -04:00
Henry Zhu
174e44f656
fix broken test from old PR
2016-08-31 14:55:38 -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
Stanislav Sysoev
33da726638
Not null check in babel-helper-builder-binary-assignment-operator-visitor ( #3647 )
...
Fix: T7537 — https://phabricator.babeljs.io/T7537
When transforming super call in class constructor, part of ast is replaced using method "replaceWithMultiple" here:
https://github.com/babel/babel/blob/master/packages/babel-plugin-transform-es2015-classes/src/vanilla.js#L379
It leads to removing the node (replacing it with null) here:
https://github.com/babel/babel/blob/master/packages/babel-traverse/src/path/replacement.js#L51
But parent ExpressionsStatement is still untouched and when it reaches visitor generated in here
https://github.com/babel/babel/blob/master/packages/babel-helper-builder-binary-assignment-operator-visitor/src/index.js#L18
It blows up because expression is null from previous visitors.
2016-08-31 14:41:49 -04:00
Eric Baer
d32e7413ab
Warm people in the README that this is a wip project ( #2 )
2016-08-31 14:13:00 -04:00
Dan Abramov
4ac0df00f1
Add an option for custom runtime ( #3612 )
2016-08-31 13:59:43 -04:00
Logan Smyth
288e956699
Merge pull request #3676 from loganfsmyth/non-circular-types
...
Remove the cycle from babel-types/babel-traverse.
2016-08-31 10:20:41 -07:00
Henry Zhu
dbe48b5157
init data ( #1 )
2016-08-30 17:56:04 -04:00
Daniel Tschinder
dc56c0b54d
Change to export codecoverage as json ( #102 )
2016-08-30 23:50:56 +02:00
Logan Smyth
a0ca5ed61e
Remove the cycle from babel-types/babel-traverse.
2016-08-29 19:13:19 -07:00
Daniel Tschinder
e0b2c86950
Remove deprecated plugin from README.md ( #101 )
...
As we probably remove it anyway in the next major we can already at least not expose it in the readme.
2016-08-29 11:06:23 -04:00
Henry Zhu
b871a49e3a
fix link [skip ci]
2016-08-25 14:38:28 -06:00
Diogo Franco
cd6130116d
Mention how arrow functions' spec uses .bind ( #3679 )
2016-08-24 20:32:51 -06:00
Henry Zhu
5ce325c399
v6.14.0
2016-08-24 17:40:46 -06:00
Henry Zhu
f834a24b50
Add v6.14.0 changelog [skip ci] ( #3677 )
...
* Add v6.14.0 changelog [skip ci]
* fixes [skip ci]
2016-08-24 18:05:47 -05:00
Daniel Tschinder
abec2a70e9
changelog 6.9.1
2016-08-24 11:25:39 +02:00
Henry Zhu
ee1eb59077
Latest tests ( #3674 )
...
* add preset-latest tests
* test for es2015-preset spec option
2016-08-23 18:29:40 -04:00
Henry Zhu
32d5c7195e
6.9.1
2016-08-23 17:48:08 -04:00
Henry Zhu
c8b32485a0
Update readme - es2017 [skip ci]
2016-08-23 17:47:20 -04:00
Daniel Tschinder
27ad69d43f
Fix declare class with qualified type identifier ( #97 )
...
This makes declare class extends behave the same way as in flow
The ast-token after the extends keyword, might be either Identifier or
QualifiedTypeIdentifier
To do that this commits splits the parseGenericType into two functions,
one for parsing genericType and on for qualifiedTypeIdentifier
2016-08-23 17:29:23 -04:00
Dan Harper
efab40154e
Fix arrow functions with destructuring, types & default value ( #94 )
...
Flow's "toAssignable" override wasn't calling the inner function,
resulting in the destructuring in an AssignmentPattern not having the
node type changed from ObjectExpression to ObjectPattern, resulting in
"Binding rvalue" thrown from "checkLVal()"
2016-08-23 17:27:39 -04:00
Daniel Tschinder
db0705bc51
Fix issues with flow-types and async function ( #95 )
...
the typeAnnotation was not correctly resolved in async
functions
2016-08-23 17:22:01 -04:00
Daniel Tschinder
2cfae60b15
Fix issues with default object params in async functions ( #96 )
...
This change allows async functions to have a spread argument which
defines a default value.
2016-08-23 17:19:49 -04:00
Daniel Tschinder
4506822180
Remove exponentiationOperator, asyncFunctions, trailingFunctionCommas ( #98 )
...
* This removes the exponentiationOperator as it is now in es2016
* Remove from tests
* Remove asyncFunctions and restructure test dirs
* Remove trailingFunctionCommas
2016-08-23 17:11:01 -04:00
Daniel Tschinder
10cd6519d8
Fix class inheritance in IE <=10 (T3041) ( #3527 )
...
* Fix class inheritance in IE9 & IE10 (T3041)
Internet Explorer 9&10 do not support __proto__ at all, don't have
Object.setPrototypeOf(), but have Object.getPrototypeOf().
Because of this setting the prototype is not possible, which makes the
babelHelpers.inherits() function to set __proto__ although not supported.
Afterwards Object.getPrototypeOf() is used, but this one is not
respecting the "custom" property __proto__ that we set.
The solution is to check for __proto__ first and afterwards fallback to
Object.getPrototypeOf().
* Do the same logic in babel-helper-replace-supers
* Fix tests
* Extract creation of prototype nodes to small helper
2016-08-23 15:08:44 -04:00
Thomas Aylott
2a4186faf3
Fixes #6726 ignore config option ( #3644 )
...
https://phabricator.babeljs.io/T6726
2016-08-23 14:55:37 -04:00
Diogo Franco
53ed4e5eb8
Support 'spec' option on babel-preset-es2015 ( #3671 )
...
Allows enabling the spec options in the couple of presets that have it.
Generally enables a slower, but more correct codepath.
2016-08-23 14:28:19 -04:00
Henry Zhu
3bf479789d
add options to babel-preset-latest ( #3673 )
2016-08-23 14:27:43 -04:00
Diogo Franco
1e6257bdcb
Fixes modules test to actually test modules ( #3672 )
...
* Fixes modules test to actually test modules
It is a mystery how these tests ever passed before.
* Correct test -> suite
2016-08-23 14:06:02 -04:00
Sota Yamashtia
3d0ef3a001
Create preset babel-preset-latest ( #3625 )
2016-08-23 11:07:23 -04:00
Henry Zhu
20551cf729
Docs: add babel-preset-es2017, change version [skip ci]
2016-08-23 09:32:30 -04:00
Sota Yamashtia
68d7032e0f
Add es2017-preset ( #3624 )
2016-08-23 09:29:38 -04:00
Daniel Tschinder
b06eed30c3
Ensure correct version of babel installed for preset options ( #3668 )
2016-08-22 08:49:56 -04:00
Greenkeeper
0a8fc15169
chore(package): update istanbul to version 0.4.5 ( #3666 )
...
https://greenkeeper.io/
2016-08-22 11:27:17 +02:00
Guy Bedford
de2791a696
ensure consistent expression value for post-assignment unary expressions ( #3650 )
2016-08-20 12:21:17 -04:00
Paul O’Shannessy
55f37a1b1e
Use arrow syntax for ObjectTypeProperty FunctionTypeAnnotations ( #3663 )
...
This fixes an issue where optional properties would get transformed to
an invalid syntax. The easiest solution was to make all FunctionTypes
get transformed to the arrow syntax (previously everything went the
other way).
2016-08-20 10:37:56 -04:00
Sebastian McKenzie
07b3dc18a0
Add wrapPluginVisitorMethod option to allow introspection and metrics tracking of plugins ( #3659 )
2016-08-20 10:36:52 -04:00
Daniel Tschinder
ea69362249
set sourceRoot in babel-register transform ( #3608 )
2016-08-18 22:42:57 +02:00
Adam Leventhal
0d1e1ee10c
incorrect handling of returns nested in switch cases ( #3618 )
2016-08-18 10:14:07 -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
Daniel Tschinder
b6496718a7
Correct codecoverage paths ( #93 )
2016-08-17 18:21:25 +02:00