Commit Graph

14027 Commits

Author SHA1 Message Date
Kiko Estrada
5dd7f438c9 Enable import.meta by default in @babel/parser (#11406) 2020-05-24 22:57:34 +02:00
Bruno Macabeus
75a6530abe Fix optional-chaining with TS non-null operator (#10961) 2020-05-24 22:56:31 +02:00
Devon Govett
6ba1f0dd22 Implement @babel/plugin-transform-react-pure-annotations (#11428)
The new plugin is also enabled in `@babel/preset-react`
2020-05-24 22:55:29 +02:00
Huáng Jùnliàng
93a50056ca Add class proposals to shipped proposals (#11451) 2020-05-24 22:32:53 +02:00
dfabulich
8fce3717a3 Support data-type="module" to generate <script type="module"> (#11466) 2020-05-24 22:31:30 +02:00
fisker Cheung
a33f0d83be Fix typo (#11603) 2020-05-24 13:28:55 -04:00
lazytype
62e686af91 Fix comments for smartPipeline topic-forbidding contexts (#11597)
[skip ci]
2020-05-23 22:59:46 +02:00
Huáng Jùnliàng
87d747976d chore: use latest node in GitHub actions (#11598)
* chore: use latest node and update actions

* chore: clean up unused information
2020-05-22 22:12:31 -04:00
Huáng Jùnliàng
dcd23c7949 chore: update test262 (#11590) 2020-05-21 08:20:10 -05:00
Henry Zhu
73ab27c11a Update templates, add link to github discussions (#11585) [skip ci] 2020-05-18 15:28:16 -04:00
Huáng Jùnliàng
2f31ecf85d fix: allow bigInt in method name and TSLiteralType (#11547)
* refactor: add isLiteralPropertyName to parser utils

* address review comments [skip-ci]

* refactor: keyword is valid identifierName

* fix: allow bigint in TSLiteralType

* update typescript test whitelist
2020-05-14 18:40:52 -04:00
Jason Quense
de8264c8a7 fix: don't elide jsx pragma import namespaces (#11523)
* fix: don't elide jsx pragma import namespaces

* use the correct pragma oops
2020-05-14 16:01:54 +02:00
Nikita Kirsanov
9a52019019 Use computed memberExpression for literal keys with object rest (#11550) 2020-05-12 22:56:03 +02:00
Nicolò Ribaudo
07347544fd Downgrade rollup to 1.27.9 (#11538)
* Downgrade rollup to 1.27.9

* Add test
2020-05-11 23:53:04 -04:00
Nicolò Ribaudo
31b361b736 Use ?. where it represents the intended semantics (#11512) 2020-05-09 23:31:50 +02:00
Nicolò Ribaudo
aeb51f463c Do not remove "estree": null in ESLint tests 2020-05-09 22:12:28 +02:00
Justin Ridgewell
c3a5bf1ff5 Update preset-env tests, and add yarn.lock deps (#11537) 2020-05-08 23:53:09 +02:00
Justin Ridgewell
a080a1d345 Use single object spread call in loose mode (#11520) 2020-05-08 13:07:59 +02:00
Huáng Jùnliàng
b8a6145e50 fix: skip transform delete something.includes (#11530) 2020-05-07 06:50:59 -04:00
Henry Zhu
8aa5e574a0 Update issue template (#11524)
* Update Bug_report.md

* Update ci.json

[skip ci]
2020-05-05 21:13:05 +02:00
Arun Kumar Mohan
a8061ae7d8 logical-assignment: Do not assign names to anonymous functions (#11370) 2020-05-05 16:00:41 +02:00
Huáng Jùnliàng
812f3750c8 chore: pin windows node.js version (#11522) 2020-05-05 07:46:45 -05:00
Christoph Nakazawa
2bb2933dea [helpers] Add a private function name within createSuper (#11514) 2020-05-04 23:30:53 +02:00
Nicolò Ribaudo
4d40bf646e Update browserslist (#11517) 2020-05-04 15:48:02 -04:00
Huáng Jùnliàng
bdd5621ecd chore: update babel deps (#11504) 2020-04-30 08:52:18 -05:00
Nicolò Ribaudo
90a9103e55 Update Flow to 0.123.0 (#11500) 2020-04-30 15:26:03 +02:00
Bogdan Savluk
96ccf56436 add support for getters and setters in generator for declare class statement (#11502) 2020-04-30 09:47:42 +02:00
Babel Bot
bb180eba9f Add v7.9.6 to CHANGELOG.md [skip ci] 2020-04-29 18:39:38 +00:00
Nicolò Ribaudo
9c2846bcac v7.9.6 2020-04-29 20:33:47 +02:00
Nicolò Ribaudo
7c80ed9598 Update compat table script (#11496)
* Update compat-data build script

* Update generated data

* Update fixtures

* Use older --shallow-since (the last commit has 04-17 as the date)
2020-04-28 16:14:43 -04:00
Huáng Jùnliàng
fa98a0a5b3 docs: update AST spec (#11492)
Co-Authored-By: Brian Ng <bng412@gmail.com>
2020-04-28 12:30:01 -04:00
Kai Cataldo
2d8edf7c6f Add note about experimental nature of @babel/eslint-* packages (#11493)
[skip ci]
2020-04-28 07:28:04 +02:00
Chintan Acharya
93429f8b09 Fix helpers.unsupportedIterableToArray for Map and Set (#11495)
Fixes #11494
2020-04-28 07:27:03 +02:00
Nicolò Ribaudo
1b777f5266 Update preset-env fixtures (#11486) 2020-04-26 21:34:29 +02:00
Justin Ridgewell
c1d65d8842 Fix evaluation order with object spread, 2 (#11471) 2020-04-26 20:30:48 +02:00
Zen
83d365acb6 handle objectMethod in scope.isPure (#11482) 2020-04-25 18:34:52 +02:00
Justin Ridgewell
0bbf2da568 Super property eval order (#11480) 2020-04-25 18:34:07 +02:00
Huáng Jùnliàng
2e4f18ac92 Add some parser missing plugins errors (#11478)
* fix: do not throw invalid hash in tokenizer

* refactor: bigint has been enabled by default

* polish: add numeric separator missing plugin error

* fix: forward expectPlugin declaration
2020-04-25 10:26:39 +02:00
Jacob Dreesen
d05334bde2 Fix typo and remove outdated doc comment (#11472)
* Fix typo

* Fix outdated doc comment [skip ci]
2020-04-25 10:24:22 +02:00
Henry Zhu
e010db84aa Canary build of packages using CodeSandbox CI + mini repl link per PR (#11479)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-04-24 18:19:57 -04:00
Zen
af669297ef Fix evaluation order with object spread (#11412)
* Fix object spread runtime semantics

* limit this deoptimization

* optimize empty objects

* declare variables
2020-04-23 17:59:35 -04:00
Huáng Jùnliàng
5f299bab18 chore: test against node.js 14 (#11467) 2020-04-23 07:06:39 -04:00
Kevin Lau
9b716518ed Throw error on TypeScript declare const enum (#11410)
Throw error on `const enum` even if it has `declare`.

Resolves: #10785
2020-04-23 11:27:19 +02:00
beraliv
a34424a894 Adding createFlowUnionType in place of createUnionTypeAnnotati… (#11448)
* 🔄 createUnionTypeAnnotation => createFlowUnionType

*  add createFlowUnionType if it exists (in new versions only ⚠️)

* 🔄 use createFlowUnionType for createUnionTypeAnnotation
2020-04-22 19:11:01 +02:00
Huáng Jùnliàng
928b9f8c95 chore: add node.js 14 support data (#11462) 2020-04-22 09:42:15 -05:00
Brian Ng
1a2f67191c Update flow test whitelist (#11459) 2020-04-21 16:39:40 -05:00
Nicolò Ribaudo
d4c8db5177 Update babel-plugin-dynamic-import-node to 2.3.3 (#11458) 2020-04-21 21:26:33 +02:00
Brian Ng
40c517ed84 Set exprAllowed to false for star token (#11449) 2020-04-21 14:22:40 -05:00
Huáng Jùnliàng
fba64d439d fix: disallow expression after binding identifier of (#11355) 2020-04-21 15:12:23 -04:00
Huáng Jùnliàng
d18d465cf3 remove < x.y.z engines specification (#11456)
* chore: remove lt engines specification

* remove unecessary yarn update
2020-04-21 21:02:27 +02:00