11387 Commits

Author SHA1 Message Date
Henry Zhu
a9dd7d970f 2.0.0-beta.2 2017-09-26 12:08:50 -04:00
Henry Zhu
e7aaf1f361 update to beta.2 (#427) 2017-09-26 12:05:13 -04:00
Henry Zhu
70547efcc1 v7.0.0-beta.2 v7.0.0-beta.2 2017-09-26 11:14:41 -04:00
Henry Zhu
195745f25f update types readme [skip ci] 2017-09-26 11:06:03 -04:00
Brian Ng
c821d3a591 Updates for handling codemods folder (#6279)
* add codemod folder to gitignore, update build/test scripts to handle codemods, lerna config
2017-09-26 10:38:18 -04:00
Logan Smyth
5a2a5fb411 Move template object creation from core into the template transform. (#6307)
* Move template object creation into the template transform.

* use shorthand [skip ci]
2017-09-26 10:33:18 -04:00
Logan Smyth
0379060f8a addMapping method call missing name parameter (#6310)
in mergeSourceMap, addMapping method call missing name parameter
2017-09-26 10:24:19 -04:00
Nicolò Ribaudo
8aabbbc822 Use helper-builder-react-jsx inside plugin-transform-react-inline-elements (#6294)
* Use helper-builder-react-jsx inside plugin-transform-react-inline-elements.

This avoids duplicating the logic for converting jsx elements to plain JavaScript.

* Add a comment which explains the _jsx signature, [skip ci]
so it is a little bit easier to understand what all those .splice() calls do
2017-09-26 10:15:27 -04:00
Henry Zhu
314bd31b85 update generator/babel-types printing, babylon (#6306)
* update generator printing, babylon [skip ci]

* Update babel-types for TS node types
2017-09-26 10:01:55 -04:00
Nicolò Ribaudo
4de29fe5e6 Distinguish between ternary's : and arrow fn's return type (#596) 2017-09-26 00:32:52 +02:00
Henry Zhu
4c517a8912 update readme [skip ci] (#6305) 2017-09-25 16:08:39 -04:00
Henry Zhu
20ec5c77b7 7.0.0-beta.25 2017-09-25 15:48:29 -04:00
James Kyle
d9766932db Ensure no-overlap between Flow and TS node types (#710) 2017-09-25 15:42:33 -04:00
Brian Ng
4bd9d751f4 Add minor edits to babel-helper-annotate-as-pure README [skip ci] 2017-09-25 11:00:38 -05:00
Mateusz Burzyński
413ffe6639 Extracted babel-helper-annotate-as-pure (#6267) 2017-09-25 17:40:51 +02:00
Brian Ng
6012c5bedb Fix targets.browsers anchor links [skip ci] 2017-09-25 10:22:59 -05:00
Zoe Carver
a4acf2da6d Clean up uncatagorised decorators (1/2) (#731)
* Re-name uncatagorised 1 and 2

* Move to es2015

* Add expected.json to parenthesized lhs object

* Orginize into parenthesized-lhs-array and parenthesized-lhs-object

* Remove uncategorised/33 because it was repeditive decorators/class-decorator

* Move uncatagorised/34 to decorators/class-decorator-assignment

* Move uncategorised/35 to decorators/method-decorator

* Move uncategorised/36 to decorators/class-decorator-setter

* Move uncategorised/37 to decorators/class-decorator-getter

* Move uncategorised/38 to decorators/class-decorators-multiple

* Clean up syntax

* Move uncategorised/39 to decorators/object-decorator

* Remove syntax in order to pass tests

* Re-add uncategorisd/33 as decorators/class-decorator-new-line

* Move class-decorator-new-line to class-decorator-same-line
2017-09-24 16:33:01 -04:00
Pranav Prakash
2374062bbd Remove babel-node from babel-cli (#6251)
* Remove babel-node from babel-cli

* Use new Array instead of Array for V8 optimization

* Remove extraneous use strict clauses

* Require babel-node in babel-cli

* Remove babel-node from babel-cli

* Require babel-node in babel-cli

* Remove babel-node executable from babel-cli

* Clean up babel-node from package.json
2017-09-23 11:25:27 -07:00
Logan Smyth
b115ea5da7 Merge pull request #6280 from loganfsmyth/only-transform-modules
Only transform 'this'->'undefined' and inject 'use strict' if module statements are present
2017-09-23 11:24:52 -07:00
Mateusz Burzyński
d8b7bc39af Fixed loose option of transform-es2015-parameters handling only Assig… (#6274) 2017-09-22 19:39:39 -04:00
Mateusz Burzyński
0f8c4dc5a1 Fixed transform-fixture-test-runner API docs [skip ci] (#6293) 2017-09-22 18:44:44 -04:00
Sean Zellmer
69f237b743 Fix table of contents in README (#423)
Caveat was renamed to Issues. 'Other Cool Projects' was removed.
Both happened in e4b89a1.
2017-09-22 12:50:29 -05:00
Logan Smyth
72da5e1d02 Quick fix for default import that also uses names. (#6282) 2017-09-21 22:26:42 -07:00
Mateusz Burzyński
9159323b1e Skip adding explicit undefined for let declarations when it is not ne… (#6288) 2017-09-21 22:26:08 -07:00
Mateusz Burzyński
88b7983e4f Fixed asyncToGenerator helper using arrow function (#6289) 2017-09-21 17:09:43 -07:00
Zoe Carver
bfd9c7ba50 Clean up uncategorised tests (#730) 2017-09-21 16:12:36 -05:00
Brian Ng
5983ae38fc Merge pull request #729 from babel/greenkeeper/flow-bin-0.55.0
Update flow-bin to the latest version 🚀
2017-09-21 10:34:50 -05:00
greenkeeper[bot]
f6d7209f0e chore(package): update lockfile
https://npm.im/greenkeeper-lockfile
2017-09-20 19:59:29 +00:00
greenkeeper[bot]
040e46d4f8 chore(package): update flow-bin to version 0.55.0 2017-09-20 19:51:48 +00:00
Logan Smyth
2b88e079ef Only transform this/use strict if a module. 2017-09-20 10:19:35 -07:00
Logan Smyth
8e6b5de042 Allow tests to be .mjs files. 2017-09-19 14:50:43 -07:00
Logan Smyth
aebebd3dde Remove unused expected.json parsing. 2017-09-19 14:50:42 -07:00
Logan Smyth
f23dd3a04c Move 'this' tests to the correct place. 2017-09-19 14:50:42 -07:00
Logan Smyth
fec79e358c Ensure that Program nodes have a sourceType. 2017-09-19 14:50:42 -07:00
Henry Zhu
7c971f3d4d 2.0.0-beta.1 2017-09-19 16:34:39 -04:00
Brian Ng
03d7089b43 Rename stage3 (#421) 2017-09-19 15:33:58 -05:00
Henry Zhu
b83fa26937 release as 0.0.1 [skip ci] 2017-09-19 16:27:26 -04:00
Henry Zhu
23121d2bd3 v7.0.0-beta.1 v7.0.0-beta.1 2017-09-19 16:24:07 -04:00
Henry Zhu
5b9112c794 babel-helper-modules -> babel-helper-module-transforms since package taken [skip ci] 2017-09-19 16:20:03 -04:00
Henry Zhu
8597219ce5 move to codemods folder [skip ci] 2017-09-19 16:04:11 -04:00
Henry Zhu
5c824273bc update to beta.0 [skip ci] 2017-09-19 16:00:18 -04:00
MarckK
8dffbf19d0 Codemod: remove unused catch binding (#6048)
* outline of plugin to remove unused catch binding, test not passing

* plugin to remove unused catch binding

* Edit README.md and package.json

* tests for try catch finally

* Add test to handle case when binding is referenced and given new TypeError (not passing)

* Fix visitor to not remove catch clause param when binding being assigned a new value

* Improve naming of tests and explanations

* add test case for catch param not present and fix test for duplicate variable declaration

* Remove binding.constantViolations filter in visitor as superfluous

* Remove duplicate check that catch clause param present

* Alter visitor so returns out when catch binding is not an Identifier

* Created failing tests for ObjectPattern params and rewrote visitor so now passing
Took out the pass in visitor when param not an Identifier, wrote case to handle when param isObjectPattern, and wrote failing tests for when param isArrayPattern

* Handle case when param isArrayPattern, tests passing

* Update package.json to  v7.0.0-alpha.20

* Revert visitor to only consider transform if param is Identifier
2017-09-19 15:38:17 -04:00
Brian Ng
27b155aa71 Add stage-3 plugin option (#384) 2017-09-19 15:24:15 -04:00
Henry Zhu
57584268cd move out syntax plugins to babel/babel-archive, they don't need to be updated (#6229) 2017-09-19 15:19:13 -04:00
Henry Zhu
174eaa058a just inline the type (#6271) [skip ci] 2017-09-19 15:14:12 -04:00
Mateusz Burzyński
4519f95a29 Fixed buildExternalHelpers tool for var and module output types (#6260) 2017-09-19 14:44:40 -04:00
Henry Zhu
38504c68e3 7.0.0-beta.24 2017-09-19 14:19:01 -04:00
greenkeeper[bot]
7eaf556094 Update babel-eslint to the latest version 🚀 (#719) [skip ci]
* chore(package): update babel-eslint to version 8.0.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2017-09-19 14:12:25 -04:00
Logan Smyth
fc1e1c5668 Preserve _blockHoist values for injected binding references. (#6269) 2017-09-19 09:53:18 -07:00
Logan Smyth
bd734f03fb Make babel-register 7.x backward-compatible with 6.x. (#6268) 2017-09-19 09:52:57 -07:00