Yifei Fu
e03e5ba01d
Add TypeScript definitions for parser plugin options. ( #9457 )
2019-02-06 10:03:54 +01:00
Nicolò Ribaudo
d896ce2b53
v7.3.2
v7.3.2
2019-02-04 23:20:05 +01:00
Nicolò Ribaudo
44d8a59361
Use a GitHub Action to generate the changelog ( #9434 ) [skip ci]
...
* Use a GitHub Action to generate the changelog
* Update main.workflow [skip ci]
2019-02-04 22:15:44 +01:00
Daniel Tschinder
344d35bbe9
Simplify await and yield tracking in params ( #9405 )
2019-02-04 22:01:17 +01:00
Thiago Arrais
fe71154626
Support for await and yield in pipelines ( #9401 )
2019-02-04 21:58:46 +01:00
gverni
65cbbc1ef8
Fix duplicate definition error in private class methods ( #9453 )
2019-02-04 09:19:04 -06:00
Nicolò Ribaudo
d37c958637
Transform private async and generator functions ( #9423 )
2019-02-04 15:10:46 +01:00
Daniel Tschinder
9eb010da50
Unify reserved word checking and update error messages ( #9402 )
...
* Unify reserved word checking and update error messages
* Fix test
2019-01-31 19:02:32 -08:00
Galymzhan Abdugalimov
7e9029e337
Switched gutil.log to fancyLog due to deprecation ( #9432 )
2019-01-30 08:23:02 -06:00
Galymzhan Abdugalimov
00c3e3c8e0
Fixed link to @babel/parser's issues in README ( #9427 )
2019-01-30 08:18:43 -06:00
Nicolò Ribaudo
7192546eb8
Run prettier again
2019-01-30 11:35:42 +01:00
Nicolò Ribaudo
4c4c22a316
Run prettier
2019-01-30 11:30:31 +01:00
Rizky
56044c7851
install polyfill & runtime to dependency instead of devDependency [skip ci] ( #9409 )
2019-01-29 08:09:08 -06:00
Daniel Tschinder
828169e611
Fix line continuation with Unicode line terminators ( #9403 )
2019-01-28 13:35:35 -08:00
Moti Zilberman
1452e977a0
Destructuring: Create assignments from ForX non-declaration patterns ( #9414 )
2019-01-28 09:50:24 +01:00
Brian Ng
ede69eef7f
Bump deps ( #9417 )
2019-01-26 22:49:48 -05:00
Dylan Staley
03230eaa9c
Retain JSX pragma if defined as a comment ( #9095 )
2019-01-26 15:36:10 -06:00
Brian Ng
7dc157f9be
Fix location/range on TypeScript ExportNamedDeclarations ( #9406 )
2019-01-24 19:44:22 -06:00
Yuri Karadzhov
854313a759
Correctly visit param decorators to prevent their imports being removed in typescript transform ( #8738 )
...
* Remove types on program exit in typescript transform
* Revert changes to typescript transform
* Correctly add visitors for param decorators
* Fix plugin for node 6
2019-01-24 15:07:56 -08:00
Daniel Tschinder
46ba5940c2
Make yield a contextual keyword ( #9400 )
2019-01-23 14:33:23 -08:00
Daniel Tschinder
42c5d3fc4b
Correctly fail for invalid yield in for ( #9398 )
2019-01-23 13:39:30 -08:00
Brian Ng
d4e045ac24
Fix support for Flow's QualifiedTypeIdentifier ( #9396 )
2019-01-23 15:19:17 -06:00
Daniel Tschinder
8bc9f9a05f
fix: Allow toplevel await when option true and correctly mark await keyword as unexpected ( #9371 )
2019-01-22 14:56:30 -08:00
Daniel Tschinder
93e1b5e612
Merge pull request #9375 from danez/contextual-let
...
Make let a contextual keyword
2019-01-22 14:55:49 -08:00
Daniel Tschinder
4f69699b71
Fix parsing in non-declaration places
2019-01-22 13:12:03 -08:00
Daniel Tschinder
f4f5ca2aaa
Parse class name in strict mode
...
The specification defines that the whole class declaration is parsed in strict mode
2019-01-22 13:12:03 -08:00
Daniel Tschinder
8071dca9ad
Disallow const let or let let
2019-01-22 13:12:02 -08:00
Daniel Tschinder
178f2d7949
Make let a contextual keyword
2019-01-22 13:12:02 -08:00
Nicolò Ribaudo
65febdd13a
Refactor import and export parsing ( #9326 )
...
* [parser] Refactor import parsing
* [parser] Refactor export parsing
* Fix types
2019-01-22 19:52:56 +01:00
Brian Ng
f77c450cda
Bump prettier ( #9373 )
2019-01-22 09:16:32 -06:00
Nicolò Ribaudo
f2af6c1170
v7.3.1
v7.3.1
2019-01-22 08:07:23 +01:00
Daniel Tschinder
43b83f8ed7
Revert "Differentiate object spread and non-spread properties ( #9341 )" ( #9379 )
...
This reverts commit 3ae5e79ec8ab1e6d1c6927f35d4a1eeac04faf9a.
2019-01-21 23:03:54 -08:00
Daniel Tschinder
af88e63dff
fix new keyword broken by recent refactoring ( #9377 )
2019-01-21 22:25:37 -08:00
Nicolò Ribaudo
f6ee26c3da
v7.3.0
v7.3.0
2019-01-21 22:22:39 +01:00
Tim McClure
e8de6fa5d4
Private Class Methods Stage 3: Private Accessors ( #9101 )
...
* Add accessor loose support
* Add private accessors spec support
* Fix private dupe name check
* Changes from code review
* Add duplicated names tests
* Add get/set-only tests
* Move accessors tests
* Split out updates tests
* Add helper change tests
* Update test output
* Update test options
2019-01-21 22:05:37 +01:00
Kagami Sascha Rosylight
3ae5e79ec8
Differentiate object spread and non-spread properties ( #9341 )
...
* add isSpread field
* use argument
* t.booleanLiteral
* fix typo
* push empty-argument object
* .object
* .value
* object field should be an expression
* lint
* update outputs
* isSpread for the second argument is redundant
* add test
* alternating spread
2019-01-21 22:04:47 +01:00
Thiago Arrais
e9331aa0c0
Transform for the smart pipeline operator proposal ( #9179 )
2019-01-21 22:04:14 +01:00
Henry Zhu
ba4141934f
add v7 downloads [skip ci] ( #9370 )
2019-01-21 12:48:15 -05:00
Daniel Tschinder
96a7343142
Merge pull request #9348 from danez/perf
...
Parser Performance Collection
2019-01-21 02:27:42 -08:00
Armano
a2e6d8e968
Disallow usage of invalid keyword after export abstract statement in Typescript ( #9336 )
2019-01-19 15:48:05 -06:00
Nicolò Ribaudo
4ce37b7aca
Update test262 sha ( #9365 )
2019-01-19 18:10:28 +01:00
Brian Ng
b92ad318f1
Add support for transform-named-capturing-groups-regex in preset-env ( #9345 )
2019-01-17 19:51:38 -06:00
Daniel Tschinder
2d6231fd3d
Update flow whitelist
2019-01-17 16:16:32 -08:00
Daniel Tschinder
4e5e319d5b
perf: remove double check for keywords in readWord
...
Instead of calling isKeyword we simple check directly if the keyword token is available
2019-01-17 16:16:31 -08:00
Daniel Tschinder
b66d921053
perf: Use === or Set.has instead of array.indexOf for keyword checks
2019-01-17 16:16:30 -08:00
Daniel Tschinder
f12905b531
perf: Use for loops while cloning classes
2019-01-17 16:16:29 -08:00
Daniel Tschinder
f216975378
perf: call isLineTerminator as last check
2019-01-17 16:16:28 -08:00
Daniel Tschinder
3a3d5cbe9c
perf: Check for plugin only once before looping
2019-01-17 16:16:28 -08:00
Daniel Tschinder
10555c719e
Build the parser also for node 6.9 and up
2019-01-17 16:16:27 -08:00
Daniel Tschinder
58768072ef
perf: Ensure canInsertSemicolon is always called last
...
It does a lot of checks and a regex test
2019-01-17 16:16:26 -08:00