Brian Ng
c5e81516dd
Add optional catch binding to stage 3 preset ( #6032 )
2017-07-31 16:00:43 -04:00
Brian Ng
6d965c0926
Make babel-node a standalone package ( #6023 )
...
* Make babel-node a standalone package
* New package `babel-node` previously `babel-cli/bin/babel-node`
* updates
2017-07-29 22:26:28 -04:00
Jimmy Jia
2dba910b9e
Merge branch '6.x'
2017-07-29 12:20:18 -04:00
Andy
e32042f353
babel-generator: Comment TypeScript-specific code ( #6026 )
2017-07-28 18:03:38 -04:00
Andy
c1d07fd6db
babel-generator: Add TypeScript support ( #5896 )
...
* babel-generator: Add TypeScript support
* Remove type declarations; not published from babylon
* Remove TODOs
* Consistently use `this.word` for tokens that are words
2017-07-28 16:07:05 -04:00
Henry Zhu
f83c83d49c
add proposals repo [skip ci] ( #6024 )
2017-07-28 15:31:47 -04:00
chocolateboy
605adc922d
allow PluginPass.file.addImport to create empty import statements ( #6022 )
...
* allow PluginPass.file.addImport to create empty import statements; fixes #6021
omitting addImport's second argument creates an import statement with an
empty `specifiers` array i.e. an empty import statement:
plugin:
Program (path, { file }) {
file.addImport('foo-bar/register')
}
output:
import "foo-bar/register";
2017-07-28 12:37:00 -04:00
Justin Ridgewell
6821cfb064
Merge pull request #648 from Qantas94Heavy/private-field-no-shorthand
...
Remove private field shorthand
2017-07-27 14:56:19 -04:00
Henry Zhu
593cbc1d53
Function sent ( #6020 )
...
* change back to function-sent
* update stage 2
2017-07-26 18:01:40 -04:00
Noah Lemen
5c45753cd6
add TEST_GREP example clarification [skip ci] ( #6013 )
2017-07-26 17:53:46 -04:00
Andy
1563221171
babel-types: Have NewExpression inherit from CallExpression ( #6019 )
2017-07-26 17:53:23 -04:00
Henry Zhu
c8d2361897
2.0.0-alpha.17
2017-07-26 16:24:59 -04:00
Henry Zhu
c92846d623
alpha.17
2017-07-26 16:24:36 -04:00
Andy
b242e0d946
babel-generator: Make plugins list explicit for test cases ( #6018 )
2017-07-26 15:46:47 -04:00
Henry Zhu
9322fd0458
v7.0.0-alpha.17
v7.0.0-alpha.17
2017-07-26 08:38:44 -04:00
Henry Zhu
f01438e9b1
update devdeps to latest, update babylon ( #6012 )
...
* temporary flow strip measure
2017-07-26 07:57:49 -04:00
Henry Zhu
0bc9d78927
7.0.0-beta.18
2017-07-25 18:23:45 -04:00
Henry Zhu
a3128619ff
update ( #649 )
2017-07-25 18:22:07 -04:00
Henry Zhu
9f8de8f542
2.0.0-alpha.16
2017-07-25 18:04:18 -04:00
Henry Zhu
18afff2f85
update ( #383 )
2017-07-25 18:03:45 -04:00
Henry Zhu
ce5d1d0f59
why
2017-07-25 17:47:59 -04:00
Henry Zhu
7f1cd44d60
v7.0.0-alpha.16
v7.0.0-alpha.16
2017-07-25 17:35:35 -04:00
Henry Zhu
2841945095
temporarily rename function-sent pkg to 2 ( #6011 ) [skip ci]
...
* update readme [skip ci]
* rename to sent2 until we get the package [skip ci]
2017-07-25 17:30:31 -04:00
Henry Zhu
76060bb2c7
commit yarn.lock
2017-07-25 17:10:10 -04:00
Henry Zhu
84dfa659e7
update to alpha.15 ( #6009 )
2017-07-25 17:08:15 -04:00
Samuel Reed
e0b4543601
feature: Support whitelisting mutable props for react-constant-elements ( #5307 )
2017-07-25 13:34:21 -05:00
Andy
248743e6c5
babel-types: Add TypeScript definitions ( #5856 )
...
* babel-types: Add TypeScript definitions
* Add missing builders
* Allow arrow function to have "generator"
* Replace link to resolved issue with comment
* Re-add 'generator' to functionCommon
2017-07-25 11:42:25 -04:00
Brian Ng
9a1b8ea443
Add support for flow predicates in babel-generator ( #5984 )
2017-07-25 11:38:17 -04:00
Brian Ng
55aea26f13
Add support for export type star in babel-generator ( #5985 )
...
* Add support for export type star in babel-generator
* Bump babylon
2017-07-25 11:37:27 -04:00
Nicolò Ribaudo
fb9a752262
Function sent ( #5920 )
...
* Create "babel-helper-wrap-function"
It contains the logic to wrap a function inside a call expression.
It was part of the "babel-helper-remap-async-to-generator" package, but
it is needed to transpile "function.sent"
* Create "babel-transform-function-sent"
It transforms the "function.sent" meta property by replacing it with
"yield" and making the generator ignore the first ".next()" call.
* "function.sent" is the last value passed to .next(), not the first one
* Disable exec tests on old node
* Fix flow error
* Add "transform-function-sent" to "stage-2" preset
* Do every trasformation in one traversal
* Test for "yield function.sent"
* [skip ci]
* Fix some typos [skip ci]
2017-07-25 11:07:01 -04:00
Peeyush Kushwaha
4a35243118
Non string computed keys in object-rest-spread ( #5757 )
2017-07-25 09:46:52 -05:00
MarckK
9fc910d8c0
Add optionality to catch bindings ( #5956 )
2017-07-25 09:38:48 -05:00
Noah Lemen
51a293601b
add JSXAttribute visitor function, wraps JSXElement attributes in a JSXExpressionContainer; also adds test fixtures ( #6006 )
2017-07-25 09:30:32 -04:00
Karl Cheng
42d5dbe544
Remove private field shorthand
...
There seems to be tentative agreement to remove the private field
shorthand given the added confusion and edge cases involved with the
shorthand.
Refs: https://github.com/tc39/proposal-class-fields/issues/21
2017-07-25 11:53:38 +10:00
Shuaibird Hwang
4d51052037
FIX access to the prototype of an instance ( #6005 )
...
The right way access to the prototype of an instance is using the `__proto__` rather than the `prototype`.
2017-07-24 21:46:38 -04:00
Artem Yavorsky
5fa460ff2a
Merge pull request #380 from leggiero/patch-1
...
Fixed "node: current" example
2017-07-25 03:38:03 +03:00
Daniel Tschinder
19c4dd2d8c
Update chai to 4.x ( #6002 )
2017-07-24 15:19:32 -04:00
Peeyush Kushwaha
2225892348
Use first binding for multiple var declarations ( #5745 )
...
* Use first binding for multiple var declarations
Since var declarations after initial binding have no effect, use the
first declaration. Fixes #2378
* Include hoisted function bindings
* Missing newline in expected.js
* Simplify constantViolations in new Binding on existing
* clarify comment language
2017-07-24 14:43:17 -04:00
Daniel Tschinder
677160385c
Update chalk to 2.x ( #6003 )
2017-07-24 11:06:57 -04:00
Daniel Tschinder
9b04cbbc4f
Update find-cache-dir to 1.0 ( #5999 )
2017-07-23 20:23:55 -04:00
Daniel Tschinder
4aca487b6d
Update default-require-extensions to 2.0 ( #6000 )
2017-07-23 20:23:29 -04:00
Daniel Tschinder
5afe40b095
Update to-fast-properties to 2.0 ( #5997 )
2017-07-23 09:22:05 -04:00
Daniel Tschinder
b081f68e87
Update output-file-sync to 2.0 ( #5996 )
...
* Update output-file-sync to 2.0
* Ignore test tmp directory
2017-07-23 09:21:51 -04:00
Daniel Tschinder
c9ed159a18
Update jsesc to the latest version ( #5995 )
2017-07-23 09:21:22 -04:00
Daniel Tschinder
b9ed9919c1
Update globals to v10 ( #5993 )
2017-07-23 09:21:08 -04:00
Daniel Tschinder
04b4e414ad
Fix clean to remove package-lock files ( #5991 )
...
Otherweise the same versions get installed over an over again in
dev environments
2017-07-23 09:20:36 -04:00
Eduardo Leggiero
d156afff2e
Fixed "node: current" example
...
`parseFloat` is not applied anymore to "node: current" logic:
The parseFloat was wrong, as `parseFloat('6.3.2')` will parse as 6.3, but `parseFloat('6.10.2')` will output 6.1 that is not correct.
Ref: https://github.com/babel/babel-preset-env/blob/master/src/targets-parser.js#L73
2017-07-22 18:19:54 +01:00
Daniel Tschinder
59ffa6268e
Fix flow test runner ( #647 )
...
* Fix flow test runner
* Retry parsing in scriptmode
2017-07-22 11:11:52 +02:00
greenkeeper[bot]
23d325ba75
Update flow-bin to the latest version 🚀 ( #646 )
...
* chore(package): update flow-bin to version 0.51.0
* chore(package): update lockfile
https://npm.im/greenkeeper-lockfile
2017-07-22 09:38:18 +02:00
Henry Zhu
92d64f202d
7.0.0-beta.17
2017-07-21 15:56:42 -04:00