Commits on Jun 10, 2022
Commits on Jun 4, 2022
Commits on Jun 3, 2022
-
Speedup e2e test on github (#14627)
* speedup * speedup * fix * review * test
Commits on Jun 1, 2022
-
chore: automate compat-data update (#14248)
Co-authored-by: Armano <armano2@users.noreply.github.com> Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Commits on May 25, 2022
-
Add third party lib typings (#14580)
* add @babel/compat-data path mappings * add typings for third-party Babel plugins * fix typing errors * add regenerator-transform and dynamic-import-node
Commits on May 20, 2022
Commits on May 19, 2022
-
Inline
regeneratorRuntimeas a normal helper (#14538)Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
Commits on May 17, 2022
-
[ts] Add support for instantiation expressions (#14457)
Co-authored-by: Brad Zacher <brad.zacher@gmail.com>
-
Add typings for archived syntax plugins (#14544)
* add typings for archived syntax plugins * generate archived-libs typings * add node 14 build support * remove unused plugin
Commits on Apr 6, 2022
-
Merge
babel-check-duplicated-nodesinto monorepo (#14420)* Working helper * Added pkg.json description * 1.0.0 * cleanup build scripts * refactor: convert to TS * add checkDuplicateNodes to parser tests * remove babel core injection * ignore check-duplicate-nodes and readme generator * add test cases * refactor: simplify duplicate nodes tracking Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
Commits on Mar 21, 2022
Commits on Mar 18, 2022
Commits on Mar 16, 2022
Commits on Mar 8, 2022
-
Type-safe ParseErrors (#14320)
* Flow ParseError version. Reviewed by @tolmasky. * Begin updating everything. Reviewed by @tolmasky. * Convert more. Reviewed by @tolmasky. * Add more. Reviewed by @tolmasky. * Fix. Reviewed by @tolmasky. * Just switch everything to exact types. Reviewed by @tolmasky. * Style fixes. Reviewed by @tolmasky. * Fix remaining style issues and remove unecessary dry-error-messages. Reviewed by @tolmasky. * Don't use enums and address more issues. Reviewed by @tolmasky. * More fixes. Reviewed by @tolmasky. * Workaround for import situation. Reviewed by @tolmasky. * Fix a bunch of errors messages. Reviewed by @tolmasky. * Fix some flow stuff. Reviewed by @tolmasky. * Add a way to specify code. Reviewed by @tolmasky. * Fix lint errors. Reviewed by @tolmasky. * Fix Flow errors. Reviewed by @tolmasky. Another Flow things. Reviewed by @tolmasky. Fix Flow error. Reviewed by @tolmasky. Fix flow errors. Reviewed by @tolmasky. Fix flow error. Reviewed by @tolmasky. * See if this gets the name right. Reviewed by @tolmasky. * Add comments to raise and raiseOverwrite. Reviewed by @tolmasky. * Remove forward declaration. Reviewed by @tolmasky. * Change option to be kind. Reviewed by @tolmasky. * Fix for ambient context not being respected in variable declarations. Reviewed by @tolmasky. * Make IllegalBreakContinue based on type. Reviewed by @tolmasky. * Begin moving checkLVal to type-based system instead of contextDescription-based system, and fix let error in the process as well. Reviewed by @tolmasky. * Switch to isValidLVal. Reviewed by @tolmasky. * Don't use checkLVal for class names. Reviewed by @tolmasky. * Fix some Flow errors. Reviewed by @tolmasky. * Temporary fix for Flow error. Reviewed by @tolmasky. * Remove unused stuff. Reviewed by @tolmasky. * Try this. Reviewed by @tolmasky. * Don't use Object.fromEntries. Reviewed by @tolmasky. * Fix linter error. Reviewed by @tolmasky. * Fix for SyntaxError. Reviewed by @tolmasky. * Add TS1039 Initializers are not allowed in ambient contexts. to error-codes.js. Reviewed by @tolmasky. * Add TS1155 'const' declarations must be initialized. Reviewed by @tolmasky. * Allow consts with literals. Reviewed by @tolmasky. * Add enum support. Reviewed by @tolmasky. * Add filename to test runner to correctly identify .d.ts files. Reviewed by @tolmasky. * Only ignore reserved words in ambient contexts. Parse interface in parseStatementContent. Fix enums. Reviewed by @tolmasky. * Fix simple parameter error. Reviewed by @tolmasky. * Type references should allow reserved words (I believe we were just getting away with the fact that we turned reserved words off before). Reviewed by @tolmasky. * Allow import and export in TypeScript regardless of module or script. Reviewed by @tolmasky. * Fix declare enum and interface and reorganize the code a bit. Reviewed by @tolmasky. * Fix for keywords in export as. Reviewed by @tolmasky. * Fix reserved words in import types. Reviewed by @tolmasky. * Rename files. Reviewed by @tolmasky. * Add 1 * Remove files form allowlist that no longer need to be there. Reviewed by @tolmasky. * Parse as separate files and switch to only using error codes. Reviewed by @tolmasky. * Fix reading files with different encodings. Reviewed by @tolmasky. * Fix outside tests. Reviewed by @tolmasky. * Change test to pass since typescript should allow import. Reviewed by @tolmasky. * Update tests that should fail. Reviewed by @tolmasky. * Add tests for complex let assignments. Reviewed by @tolmasky. * Choose a better name for these. Reviewed by @tolmasky. * Add tests for a number of left-hand side expressions. Reviewed by @tolmasky. * Change name to kind. Reviewed by @tolmasky. * Choose better parameter names for these errors. Reviewed by @tolmasky. * Use error credentials and error details. Reviewed by @tolmasky. * Fix some names and add comments. Reviewed by @tolmasky. * Get rid of unused option. Reviewed by @tolmasky. * Better names. Reviewed by @tolmasky. * Split out pipeline errors and choose better names. Reviewed by @tolmasky. * Clean up LVal stuff. reviewed by @tolmasky. * Use "unambiguous" to determine whether to parse typescript tests as module or script, and stop always allowing imports in Typescript. Reviewed by @tolmasky. * Revert test to previous state. Reviewed by @tolmasky. * Better name for this. Reviewed by @tolmasky. * Add these back in. Reviewed by @tolmasky. * Add these. Reviewed by @tolmasky. * Fix flow errors and use toNodeDescription in more places. Reviewed by @tolmasky. * Rename LHSParent to LValAncestor. Reviewed by @tolmasky. * Add ParseError.clone and change symbol name to DefaultMessage from NoMessage. Reviewed by @tolmasky. * Change name to identifierName in a bunch of places. Reviewed by @tolmasky. * Fix for using type. Reviewed by @tolmasky. * Better names. Reviewed by @tolmasky. * Clean up API and add comments. Reviewed by @tolmasky. * Change name. Reviewed by @tolmasky. * Better names. Reviewed by @tolmasky. * Minor comment fix. Reviewed by @tolmasky. * Remove no longer used method. Reviewed by @tolmasky. * Update packages/babel-parser/src/parser/lval.js Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> * Update packages/babel-parser/src/parser/lval.js Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> * Minor grammar changes to comments. Reviewed by @tolmasky. * Use trim instead of slice(0, -1). Reviewed by @tolmasky. * Add a comment to explain the tagged template stuff. Reviewed by @tolmasky. * Use maxArgumentCount. Reviewed by @tolmasky. * Don't allow UpdateExpression without prefix. Reviewed by @tolmasky. * Add tds test for no-initializer. Reviewed by @tolmasky. * Make this test test ASI and not const initializers. Reviewed by @tolmasky. * Update packages/babel-parser/src/parser/expression.js Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> * Change template string to normal string and remove default. Reviewed by @tolmasky. * Get rid of ParseError class and use SyntaxErrors instead. Reviewed by @tolmasky. * Update packages/babel-parser/src/parse-error.js Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com> * Remove this comment since we don't need this argument anymore. Reviewed by @tolmasky. * Use this in toMessage and restore clone method. Reviewed by @tolmasky. * Make sure pos and missingPlugin are enumerable. Reviewed by @tolmasky. * Make typescript tests faster by checking the bom manually. Reviewed by @tolmasky. * Update packages/babel-parser/src/parser/lval.js Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> * Update packages/babel-parser/src/plugins/estree.js Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> * Update packages/babel-parser/src/plugins/typescript/index.js Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> * Update packages/babel-parser/src/plugins/typescript/index.js Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> * Clarify const enum initialization comment. Reviewed by @tolmasky. * Fix Flow being angry because __proto__: null makes it think that the return type can be null. Reviewed by @tolmasky. * Don't automatically set DTS on the typescript plugin based on filename. Reviewed by @tolmasky. * Fix duplicated export error. Reviewed by @tolmasky. Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Commits on Feb 21, 2022
Commits on Feb 12, 2022
-
fix: ignore Intl features and prototype methods in test262-parser tes…
…ts (#14261) * fix: ignore Intl features and prototype methods * review comments
Commits on Feb 11, 2022
Commits on Jan 24, 2022
-
Reinterpret << when parsing TS type arguments (#14145)
* refactor: split bitShift to bitShiftL and bitShiftR * fix: reinterpret bitShiftL to lt when parsing type arguments * test: update typescript allowlist * add Babel 8 test cases * test: simplify testcase * add more testcases
Commits on Jan 13, 2022
-
test: add prettier e2e test (#14058)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Commits on Jan 10, 2022
Commits on Dec 14, 2021
Commits on Dec 11, 2021
Commits on Dec 3, 2021
Commits on Dec 2, 2021
-
Extend
hasPluginto accept plugin-configuration array pairs (#13982)Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Commits on Nov 29, 2021
-
Regenerate monorepo READMEs (#14006)
* Fix script to generate readmes * Regenerate READMEs
Commits on Nov 25, 2021
-
Migrate Babel from Flow to TypeScript (except Babel parser) (#11578)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Commits on Nov 1, 2021
Commits on Oct 28, 2021
-
Enable class static blocks by default (#13713)
* Remove classStaticBlock plugin * Update tests * Remove class static blocks from proposalPlugins * Update tests * Remove classStaticBlock from mapping for test262 * chore: update babel-types Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Commits on Oct 25, 2021
-
Fix
create-react-appandvue-clitests on Node.js 17 (#13879)* Fix `create-react-app` and `vue-cli` tests on Node.js 17 * Only on Node 17 * Fix
Commits on Oct 7, 2021
-
chore(deps): update third-party parser tests to 64a1628 (#13816)
Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com> Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Commits on Oct 3, 2021
Commits on Oct 1, 2021
Commits on Sep 16, 2021
Commits on Sep 4, 2021
-
Disallow
#a in #b in cand similar expressions (#13727)* Disallow `#a in #b in c` and similar expressions * Update packages/babel-parser/src/parser/expression.js Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com> * Add test for `await #x in` * Flow * Update flow allowlist * Flow Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>

