Henry Zhu
cee4cde53e
v6.26.0
2017-08-16 11:54:08 -04:00
Henry Zhu
5749276d7e
update deps
2017-08-16 10:21:19 -04:00
jbrown215
c28465e03e
Flow opaque type 6.x backport ( #6081 )
...
* Flow opaque type backport
* Add tests for strip types, comments, and babel-generator
* Fix failing tests, run scripts
* Bump babylon to 6.18.0
2017-08-15 16:44:15 -04:00
Jimmy Jia
2dba910b9e
Merge branch '6.x'
2017-07-29 12:20:18 -04:00
Henry Zhu
82f37841f5
v6.25.0
2017-06-08 17:29:04 -04:00
Henry Zhu
bc013e6d34
just make sure babylon is up to date [skip ci]
2017-06-08 17:10:51 -04:00
Sebastian McKenzie
60adcd68a0
Port flow object spread from #418 to 6.x ( #5653 )
...
* Add support for object type spread
* Type spread: remove variance and add stripping test
* Fix tests
2017-04-26 17:16:38 -04:00
Sven SAULEAU
e2c2d7d742
Update babel-generator's README #5517
2017-04-08 10:14:56 +02:00
Henry Zhu
f8da5e3457
v6.24.1
2017-04-07 11:19:02 -04:00
Felix Yan
9b4c33d44e
Fix a typo: occurences -> occurrences ( #5575 )
2017-04-03 22:38:12 -07:00
Sven SAULEAU
e30197b96b
docs: [skip ci] update documentation
2017-03-16 08:53:38 +01:00
Henry Zhu
71e4336f65
v6.24.0
2017-03-12 22:18:08 -04:00
Henry Zhu
b78fc9b4d0
Keep parentheses for logical expression when in await expression ( fix #5428 ) ( #5433 ) ( #5453 )
2017-03-12 21:40:38 -04:00
Artem Gurzhii
0d3a7e9cc6
Code refactoring for the babel-generator ( #5344 )
...
* refactoring code for babel-generator package
* removing spaces and refactoring if statement
* fixing warnings
2017-03-02 10:14:03 -08:00
Alex Kuzmenko
01918c68c1
Improve babel-generator's code coverage ( #5338 )
2017-02-25 13:26:29 -05:00
Zachary Miller
6614a63b3b
Wrap some generated do expressions in parens ( #5339 )
2017-02-22 07:50:58 -05:00
Daniel Tschinder
28853bf190
Fix for-await printing ( #5322 )
...
Only the first for-await was correctly printed all subsequent for-await statements
where printed as for-of as the variable op was changed inside the buildForXStatement
2017-02-15 17:43:06 -05:00
Logan Smyth
48573f1fb4
v6.23.0
2017-02-13 17:14:12 -08:00
jwbay
1a325ce5d5
codegen performance: use trim-right instead of lodash/trimEnd ( #5255 )
2017-02-09 13:04:42 -08:00
Erik Desjardins
e9d7757433
Emit parens for await (but not yield) of ternary expressions ( #5270 )
2017-02-06 09:06:48 -08:00
Logan Smyth
b845f2b69d
Re-enable the max-len ESLint rule. ( #5265 )
2017-02-04 11:07:15 -05:00
Brian Ng
b69dc51be0
Fix missing parens when function expressions is tag ( #5193 )
2017-01-23 08:45:57 -08:00
Henry Zhu
e9fc38bcd3
v6.22.0
2017-01-19 19:33:22 -05:00
Brian Ng
8c35b320d3
Bump eslint-config-babel and fix lint ( #5129 )
2017-01-17 10:51:16 +01:00
Sergey Rubanov
292c3ca206
Refactor test packages to use ES modules instead of CJS ( #5138 )
2017-01-16 11:25:04 -05:00
Andres Suarez
658f13e030
Replace uses of "lodash/each" with native equivalents
2017-01-15 13:54:54 -08:00
Andres Suarez
2bee765e6b
Replace lodash is* with equivalent typeof check
2017-01-15 13:53:58 -08:00
Andres Suarez
85b3aec747
Use native or lodash util module where full "lodash" is required
2017-01-15 13:35:00 -08:00
Logan Smyth
3c2e9c0021
Merge pull request #5110 from loganfsmyth/flowtype-codegen
...
Validate importKind and ensure code generation exists.
2017-01-14 10:41:25 -08:00
Henry Zhu
672adba9a1
enable prefer const ( #5113 )
2017-01-14 09:48:52 -05:00
Logan Smyth
80a757819f
Validate importKind and ensure code generation exists.
2017-01-13 22:17:39 -08:00
chico
2d7703afd9
Like was discussed in Slack chat with @ljharb and @hzoo spaces was added with no particular reason.
...
https://babeljs.slack.com/archives/discussion/p1481744017001806
I'm still not sure if everything here is correct (for example source maps)
2016-12-21 19:14:39 +03:00
Henry Zhu
77d9e3e5c4
v6.21.0
2016-12-16 16:55:53 -05:00
Dan Harper
d90aaf2c76
Print Flow optional & type annotations in function params with defaults ( #4872 )
...
Fixes #4863
2016-12-16 15:31:05 -05:00
Brian Ng
01bc43464e
Ensure directives get printed in block statements ( #4873 )
2016-12-16 15:30:14 -05:00
Justin Ridgewell
2bbc36d25e
JSXSpreadChildren, throw in transform-react-jsx ( #4988 )
2016-12-16 15:30:00 -05:00
Christoph Pojer
003d03789f
Merge pull request #4979 from davidaurelio/generator-raw-mappings
...
babel-generator: Expose raw mappings
2016-12-16 20:00:48 +00:00
David Aurelio
2907d663dc
add comments
2016-12-16 01:12:50 +00:00
David Aurelio
4cb7e5009a
Add missing property descriptor values
2016-12-14 10:18:18 +00:00
David Aurelio
7ea283eb82
babel-generator: Expose raw mappings
...
Exposes raw mappings when source map generation is enabled. To avoid the cost of source map generation for consumers of the raw mappings only, `.map` is changed to a getter that generates the source map lazily on first access.
2016-12-09 09:55:42 +00:00
Henry Zhu
608e77e389
v6.20.0
2016-12-08 18:25:39 -05:00
Brian Ng
db04f99124
Raise limit on code size before compacting ( #4965 )
2016-12-08 18:08:56 -05:00
Sean Larkin
39c92160f7
Add generator support for Import ( #4945 )
2016-12-07 18:22:12 -05:00
Henry Zhu
e86f62b304
README: add --save-dev [skip ci]
...
Closes gh-4910
2016-11-29 08:40:27 -05:00
Sven SAULEAU
2311b5b53a
README: remove dollar in sh snippets [skip ci]
2016-11-29 08:39:23 -05:00
Brian Ng
3a27f49c57
Fix identation with empty leading ObjectTypeProperty ( #4862 )
2016-11-19 10:47:41 -05:00
Henry Zhu
19bb830c50
use *, add test for assign-expression in parameter ( #4865 )
2016-11-19 10:45:00 -05:00
Henry Zhu
cd041541b8
Fix bug + Generate test fixtures if no expected.js ( #4858 )
2016-11-17 17:53:46 -05:00
Henry Zhu
754a6ed8c0
v6.19.0
2016-11-16 11:15:30 -05:00
Henry Zhu
54dc01440b
add jsonCompatibleStrings option [skip ci]
2016-11-15 16:53:33 -05:00