Justin Johansson
e16a1657ab
Align all babel-preset-xxx packages dir structures with status quo
2016-09-25 11:41:43 -07:00
Daniel Tschinder
c2d2702cf9
Fix destructuring evaluation with call expressions ( #4552 )
...
* Fix destructuring evaluation with call expressions
Do not optimize destructions with callExpressions, as the call
might change the value of a variable that we are assigning to.
Fixes #4054
* Also deopt on member expressions
members expressions might be getters who have side effects
2016-09-24 19:08:53 -04:00
Daniel Tschinder
a83262026f
Remove unused dependency babel-register ( #4560 )
2016-09-24 11:46:08 -04:00
Henry Zhu
ca7c48ff28
fix travis docs check ( #4556 )
2016-09-24 10:11:52 -04:00
Daniel Tschinder
d6f4d85284
Do not include babel-register in every test ( #3669 )
...
This is not necessary
2016-09-24 14:51:01 +02:00
Henry Zhu
44d44a20f9
changelog update
2016-09-23 00:51:29 -04:00
Henry Zhu
a1c0ef220a
Don't build on *.md change [skip ci]
2016-09-23 00:50:36 -04:00
Henry Zhu
6ce192d883
6.11.2 changelog [skip ci]
2016-09-23 00:49:06 -04:00
Henry Zhu
fbd3f6a183
6.11.2
2016-09-23 00:44:36 -04:00
Henry Zhu
1d04d12794
Don't do the duplicate check if not an identifier ( #140 )
2016-09-23 00:44:13 -04:00
Henry Zhu
d7533e899f
Internal: cancel build with only .md changes ( #4547 )
2016-09-22 17:59:47 -04:00
Daniel Tschinder
101e9e5636
Fix styling
2016-09-22 22:31:30 +02:00
Daniel Tschinder
4b11aad516
6.11.1 ( #138 )
...
* Update CHANGELOG.md
* Update CHANGELOG.md
2016-09-22 22:30:41 +02:00
Henry Zhu
8a544542db
6.11.1
2016-09-22 16:01:02 -04:00
Daniel Tschinder
952d50faf9
Make exportIdentifiers and array so that base object properties are not accounted ( #137 )
2016-09-22 16:00:39 -04:00
Henry Zhu
3210bbbce0
6.11.0
2016-09-22 14:08:21 -04:00
Henry Zhu
b1584cac6a
link to example pr [skip ci]
2016-09-22 14:05:20 -04:00
Henry Zhu
0ca8f167c7
6.11.0 changelog [skip ci] ( #136 )
...
* 6.11.0 changelog [skip ci]
* add examples [skip ci]
2016-09-22 14:03:44 -04:00
Moti Zilberman
774e6b446b
Rephrase "assigning/binding to rvalue" errors to include context ( #119 ) ( #123 )
...
* Rephrase "assigning/binding to rvalue" error messages with context (#119 )
* Fix code style in parser/lval.js
* istanbul ignore some unused branches in parser/lval.js
* Fix code style again in parser/lval.js
2016-09-22 12:02:20 -04:00
Kai Cataldo
1db8c02d05
Remove duplicate default error ( #4543 )
...
* Revert "Throw error for multiple exports default (#3518 )"
This reverts commit aa51dd4a3dbb956d8b619d884acf40194d5ffac8.
* Fix export default tests
2016-09-22 12:00:18 -04:00
Kai Cataldo
650e33376a
Disallow duplicate named exports ( #107 )
...
fixes #69
2016-09-22 10:20:47 -04:00
Moti Zilberman
4e1fbd48d5
Add support for computed class property names ( #120 ) ( #121 )
2016-09-21 21:24:59 -04:00
Henry Zhu
c07919bc9b
Add support for preset organization shortcuts ( #4542 )
...
* add support for @org shortcats, fixes #4362
* add shortcut test
* fixes
2016-09-21 16:44:13 -04:00
Kai Cataldo
f3a6e4b0ae
Fix tests with duplicate named exports ( #4538 )
...
* Fix babel-plugin-transform-flow-strip-types tests
* Fix babel-plugin-transform-es2015-modules-umd tests
* Fix babel-generator tests
* Fix babel-plugin-transform-es2015-modules-systemjs tests
* Fix babel-plugin-transform-es2015-modules-commonjs tests
* Fix babel-plugin-transform-es2015-modules-amd tests
2016-09-21 10:52:59 +02:00
Dan Harper
b68918e377
fix static falling through in declare class Flow AST ( #135 )
2016-09-21 00:17:55 -04:00
Henry Zhu
a793107bf3
fix lint
2016-09-20 14:04:15 -04:00
Logan Smyth
46eb99b18b
Use the real sourcemap API and handle input sourcemaps - fixes T7259 ( #3456 )
2016-09-20 13:39:01 -04:00
Alberto Piai
8f6d4ae5cf
Fix typeof Symbol.prototype ( #3686 )
...
* formatting
* fix `typeof Symbol.prototype`
Babel uses a helper function to return the correct value for `typeof
obj` when obj is a Symbol and support for Symbol has been polyfilled.
This function assumes that `obj.constructor === Symbol` implies `typeof
obj === 'symbol'`.
This isn't true when obj is `Symbol.prototype`. In that case (REPL from
node 6, the same holds in Firefox):
```
> Symbol.prototype.constructor === Symbol
true
> typeof Symbol.prototype
'object'
>
```
AFAICS, that's the only case where the assumption doesn't hold.
The test added by this patch fails only on node 0.10, as 0.12 already
has a native implementation of Symbol and the polyfill code doesn't run.
This caused a problem in core-js when it's compiled with babel (the
issue was isolated by @skozin here:
https://github.com/zloirock/core-js/issues/189#issuecomment-209864582 ).
2016-09-20 12:19:09 -04:00
Daniel Tschinder
9cb73d8e96
fix call to this.parseMaybeAssign with correct arguments ( #133 )
2016-09-20 09:42:14 -04:00
Basil Hosmer
cb4b2b0744
flow plugin: generate exact object type annotations ( #3702 )
2016-09-20 11:10:55 +02:00
Dan Harper
fa7321f978
add tests for other module formats, from #4524 ( #4532 )
2016-09-20 11:04:07 +02: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
8d2fdb1515
let travis handle depth
2016-09-19 20:39:06 +02:00
Henry Zhu
374908611c
add semver note to changelog [skip ci] ( #131 )
...
* add semver note to changelog [skip ci]
* fix [skip ci]
2016-09-19 11:40:37 -04:00
Henry Zhu
df60dcbb98
6.10.0
2016-09-19 11:32:59 -04:00
Henry Zhu
399bc6e931
explanation + fix [skip ci]
2016-09-17 23:11:41 -04:00
Moti Zilberman
e64d86c1eb
If loading a preset fails, show its name/path ( #4506 ) ( #4517 )
2016-09-17 23:01:08 -04:00
Daniel Tschinder
cbbc1c7333
fix default exported classes without a name ( #4518 )
...
* fix default exported classes without a name
This correctly requeues class without name so the es3 transform can
transform the default keyword.
* Replace phabricator issue number with github
2016-09-17 22:50:54 -04:00
Daniel Tschinder
590ad4d24f
Replace phabricator tickets with github ones in code comments ( #4519 )
2016-09-17 22:50:02 -04:00
Brian Donovan
ec34e5acc7
Remove unused thisReference argument to getSuperProperty. ( #4520 )
2016-09-17 22:47:52 -04:00
Daniel Tschinder
1fce4cb42a
Fix striping of typeParameters from arrow functions ( #4521 )
...
the typeParameters field was missing in the visitors and therefore
never visited by babel-traverse
Fixes #4483
2016-09-17 22:46:45 -04:00
Steve Mao
c04a8594ae
fix typo: interspatial ( #129 )
2016-09-16 10:28:11 +02:00
Henry Zhu
8fc6c28900
add note about spec-compliancy and semver ( #128 )
...
* add note about spec-compliancy and semver
* review [skip ci]
2016-09-15 19:24:19 -04:00
Henry Zhu
d000ead2b3
6.10.0 changelog [skip ci]
2016-09-15 19:23:54 -04:00
Daniel Tschinder
f91da191a1
Include typeParameter location in the arrow function expression ( #126 )
2016-09-15 19:08:33 -04:00
Timothy Gu
643d3f37a4
Implement ES2016 check for simple parameter list in strict mode ( #106 )
...
* Slightly simplify logic
* Implement ES2016 check for simple parameter list in strict mode
See e.g. ECMA-262 7.0 14.1.2:
> It is a Syntax Error if ContainsUseStrict of FunctionBody is true and
> IsSimpleParameterList of FormalParameters is false.
Similar clauses cover arrow functions, generator functions, methods, and
generator methods, as well as async functions and async arrow functions.
2016-09-15 19:58:01 +02:00
Dan Harper
64145b07e3
error on invalid flow type annotation with default assignment ( #122 )
2016-09-15 19:35:03 +02:00
Dan Harper
dc3036627b
Fix Flow return types on arrow functions ( #124 )
...
* fix: arrow return type on next line is valid
https://github.com/babel/babel-eslint/issues/348
* fix: arrow on line after return type annotation is invalid
* lint
2016-09-15 19:27:11 +02:00
Daniel Tschinder
abf6ca8e5e
Add tests for export extensions ( #127 )
...
The case which includes a namespaced and default import was not tested yet
2016-09-15 19:24:11 +02:00