Huáng Jùnliàng and GitHub
a9d0b8fac8
fix(parser): disallow declare module M {} ( #18120 )
...
* fix(parser): disallow `declare module M {}`
* update dts
* test: remove invalid test case
2026-07-08 08:13:48 -04:00
Huáng Jùnliàng and GitHub
f8270721e3
fix(parser): forbid let x! and let x! = ( #18100 )
...
* fix(parser): forbid `let x!` and `let x! =`
* test: expand test cases to other variable kinds
* refactor: address review comment
* fix(parser): forbid `x!` and `x! =` as class properties
* update test cases
* remove failing prettier tests
* add new test case
2026-07-06 10:57:51 -04:00
Babel Bot and GitHub
a02b466be9
Update test262 ( #18055 )
...
chore: update test262 to de8e621cdba4f40cff3cf244e6cfb8cb48746b4a
2026-06-12 09:57:15 +02:00
Babel Bot and GitHub
59cacf6ac4
Update test262 ( #18010 )
2026-05-22 11:22:20 +02:00
Huáng Jùnliàng and GitHub
7661ea9937
test: update flow parser test ( #17996 )
...
* test: correctly handle types option
* refactor: map flow parser test options
* chore: update flow parset test commit
* fix: incorrect return type
2026-05-15 15:28:05 -04:00
Huáng Jùnliàng and GitHub
a48fcce83f
fix(parser): ts parser small fixes ( #17954 )
...
* fix(parser): skip scope for global namespace
* fix(parser): register binding for TSNamespaceExportDeclaration
* test: check TS2451 error
* add TS2480 to error codes
* fix(parser): disallow reserved word in namespace
* fix(parser): forbid import/export in ts namespace
* test(parser): enable TS2567 error
* test(parser): enable TS17019 error
2026-04-28 10:41:19 -04:00
Huáng Jùnliàng and GitHub
9f063047d9
Support flow extends bound ( #17923 )
2026-04-24 12:04:19 +02:00
Huáng Jùnliàng and GitHub
7e46cd6aa4
test(third-party): parse js defined by // @filename ( #17922 )
2026-04-17 12:16:53 +02:00
Huáng Jùnliàng and GitHub
e8449996f8
TS parser small fixes ( #17888 )
...
* fix: disallow TSParameterProperty within TSDeclareMethod
* fix(parser): disallow parameter initializer in declare method
* fix(parser): disallow class method implementation in ambient context
* fix(parser): disallow type/interface within single statement context
* test: support (target=es6).errors.txt format in ts references
* test: add more supported parser error codes
* fix: throw implementation error from the start of block statement
* fix: throw DeclareFunctionHasImplementation unconditionally
* Apply suggestion from @JLHwung
* remove conflict prettier test
* address review comments
* rename UnexpectedDeclaration
2026-03-25 11:42:05 -04:00
Huáng Jùnliàng and GitHub
89712b8f40
Fix(parser): flow parser small fixes ( #17865 )
2026-03-25 10:30:47 +01:00
Babel Bot and GitHub
a86815c8af
Update test262 ( #17889 )
...
chore: update test262 to a6f387de323eb9ae56448bdb71c5d315df631ce4
2026-03-20 16:09:18 +08:00
Huáng Jùnliàng and GitHub
ec3c42c70d
Disallow super call after new ( #17871 )
...
* fix(parser): disallow super() after new
* fix(generator): update new callee parenthese rules
* fix: disallow super/import after bind operator
* update typescript parser test allowlist
* fix(types): disallow import/super/v8Intrinsic as callee of new expression
* chore: fix lint error
* add new test cases
* update test cases
2026-03-18 11:10:55 -04:00
Babel Bot and GitHub
9cc5d64169
Update test262 ( #17814 )
...
chore: update test262 to e0cf381364825aa67485dca11c0a7ac34c7c1753
2026-02-20 09:48:11 +01:00
Babel Bot and GitHub
879fcce752
Update test262 ( #17783 )
...
chore: update test262 to f2d59ea6e4b2f6f87de9f0d18a41d73782b6a9bc
2026-02-10 09:40:15 -05:00
Huáng Jùnliàng and GitHub
d8532defde
chore: cleanup test262 test setup ( #17731 )
2026-01-28 09:53:37 -05:00
d1c07c2e9f
Drop support for TS module <identifier> ( #17659 )
...
Co-authored-by: Huáng Jùnliàng <[email protected] >
2026-01-09 18:23:43 +01:00
fisker Cheung and GitHub
448593ce69
Replace picocolors with node:util.styleText() in dev dependencies ( #17680 )
2026-01-09 18:10:44 +01:00
Nicolò Ribaudo
3a912d1a39
Remove Babel 7 from the codebase ( #17618 )
2025-12-05 12:33:52 +01:00
Babel Bot and GitHub
b076fcbccd
Update test262 ( #17614 )
2025-11-28 11:39:55 +01:00
Babel Bot and GitHub
9f82628358
Update test262 ( #17527 )
...
chore: update test262 to 8a8a7af1b9a01eb3665cedaa62131d5c1d2304de
2025-09-26 09:06:26 -04:00
b22cd0e0f4
Allow Runtime Errors for Function Call Assignment Targets ( #17446 )
...
Co-authored-by: Nicolò Ribaudo <[email protected] >
2025-09-18 11:00:52 -04:00
Babel Bot and GitHub
a1f72adcb8
Update test262 ( #17496 )
...
chore: update test262 to 3fd4ec27f1798ebecafc73b354a45dcdda9bde29
2025-08-29 20:24:09 +08:00
Huáng Jùnliàng and GitHub
fc260ec74b
Improve @babel/core typings ( #17471 )
2025-08-21 20:08:50 -04:00
Huáng Jùnliàng and GitHub
fa73edea15
Enable type checking for scripts and babel-worker.cjs ( #17454 )
2025-07-29 18:26:27 -04:00
Babel Bot and GitHub
30d2976750
Update test262 ( #17442 )
...
chore: update test262 to c67a548997b6448078ec92ace750a465fda7e192
2025-07-20 01:06:29 +08:00
1e6ea76012
Update test262 ( #17344 )
...
Co-authored-by: Nicolò Ribaudo <[email protected] >
2025-05-30 14:33:25 +02:00
Huáng Jùnliàng and GitHub
3332347e2c
Disallow using in bare case statement ( #17323 )
...
* fix: disallow using declaration in the bare case statement
* add test cases
* update test fixtures
* fix: remove switch case handling in using transform
* update test262 allowlist
* polish: test allowDeclaration before async context
2025-05-29 19:23:54 +02:00
Babel Bot and GitHub
055da8662e
Update test262 ( #17299 )
...
chore: update test262 to 545df3a4329c8726440c199f2d717977c5cde647
2025-05-09 11:08:46 +02:00
Huáng Jùnliàng and GitHub
254525d565
Enforce node protocol import ( #17207 )
...
* enable prefer-node-protocol rule
* prefer node protocol import
* fix broken scripts
* fix e2e-old-babel error
* strip node: protocol for old node versions
* update Makefile.mjs
2025-03-31 10:49:22 -04:00
Huáng Jùnliàng and GitHub
9f01a9b203
fix(typescript): disallow TSInstantiationExpression in LHS ( #17154 )
...
* add some supported error codes
* update typescript commit
* fix(typescript): disallow TSInstantiationExpression in LHS
This commit essentially reverts https://github.com/babel/babel/pull/16476
* update error codes handling and allowlist
* remove invalid test
2025-02-27 13:25:02 -05:00
Babel Bot and GitHub
6b2e633e64
Update test262 ( #17143 )
...
chore: update test262 to b3f67f4aafc9372ab7bfaea4290413b3e241f6a5
2025-02-20 17:47:15 -08:00
Babel Bot and GitHub
d32577412a
Update test262 ( #17067 )
...
chore: update test262 to 5f98e1d39d1d9ef7891104aad2f51cbd7a1ab4ca
2025-01-17 13:56:24 +08:00
Babel Bot and GitHub
36c042ac9b
Update test262 ( #17056 )
...
chore: update test262 to 122912d54b7c5589b5847c54186a77dc6a9945db
2025-01-10 12:46:05 +08:00
liuxingbaoyu and GitHub
e20a12d698
chore: Update TS 5.7 ( #17053 )
2025-01-09 17:36:20 +01:00
Huáng Jùnliàng and GitHub
b3163c963b
Support flow jsx opening element type arguments ( #17028 )
...
* refactor: rename tsInNoContext to tsInTopLevelContext
* fix: support type arguments in JSXOpeningElement
* add test cases
* update per Babel 8 AST
* define typeArguments and remove it in flow transform
* update generated AST types
* fix typing errors
* e2e: ignore the broken prettier test
The test is broken because we now support typeArguments in JSXOpeningElement
* update test allowlist
2025-01-08 11:28:12 -05:00
Babel Bot and GitHub
7eb1b6209e
Update test262 ( #17033 )
...
chore: update test262 to c4317b0cb578d3fe7940f65b27162638efb9b34d
2024-12-20 12:06:34 +01:00
Babel Bot and GitHub
e14c2539da
Update test262 ( #17021 )
2024-12-13 12:07:06 +01:00
d678dbefb8
Allow the dynamic import.defer() form of import defer ( #17011 )
...
* chore: update test262 to eefc5cf367b999768445432e167606fd1acf1734
* update
* fix babel8
---------
Co-authored-by: Babel Bot <[email protected] >
2024-12-06 15:28:54 +01:00
Nicolò Ribaudo and GitHub
2818e21eda
Enable import attributes parsing by default ( #16850 )
...
* Enable import attributes parsing by default
* Remove plugin from tests
* Update fixtures
* Fix failures
* `make build`
* Fix TS errors
* Fix
* Update .d.ts
* Move in core
* [babel 8] Remove syntax plugins from preset-env
* Update fixtures
* Fix ESM build of Babel 7 and standalone
* Update flow allowlist
* Update parser fixtures for Babel 8
* Update generator tests
* Update parser test
* Update standalone
* Do not run import attribtues plugin test in Babel 8
* Make tests pass in babel 8
* Fix Babel 8 build
* [babel 8] Stop printing legacy "with" attributes
* fix prettier integration test
* Fix Babel 8 compat in syntax-import-attributes
* Try fix
* Do not error for the removed `importAttributes` plugin
* Skip a test in babel7/8 compat e2e
* Throw an error when using removed option from the parser
* Fixes after rebase
* Raise `ImportCallArity` also when `createImportExpressions`
* Fix linting
2024-10-24 20:33:39 +02:00
Nicolò Ribaudo and GitHub
a1609604de
Always enable parsing of Flow enums ( #16841 )
2024-10-23 16:02:36 +02:00
Babel Bot and GitHub
ccbb90072c
Update test262 ( #16910 )
...
chore: update test262 to 0645461999632a17426e45d044ee519a0f07d022
2024-10-18 13:58:30 -04:00
Babel Bot and GitHub
1f093e0717
Update test262 ( #16881 )
...
chore: update test262 to 06ea308d144b323dc20f976e80c32f085bebbe40
2024-10-06 16:23:30 +08:00
Babel Bot and GitHub
55b42827e9
Update test262 ( #16867 )
2024-09-27 10:21:31 +02:00
Babel Bot and GitHub
46bb578012
Update test262 ( #16832 )
...
chore: update test262 to 4bdf9782207d12dfd0551bb6f30a2021a6f987cd
2024-09-13 08:58:04 +02:00
fisker Cheung and GitHub
434b21e9e9
Enable unicorn/prefer-set-has rule ( #16822 )
...
* Enable `unicorn/prefer-set-has` rule
* Run `--fix`
* `yarn dedupe`
* Fix
* fix
2024-09-10 13:19:44 -04:00
Babel Bot and GitHub
42eb0fc049
Update test262 ( #16765 )
2024-08-23 14:55:49 +02:00
7a06e68424
Clean all always enabled parser plugins ( #16572 )
...
Co-authored-by: Nicolò Ribaudo <[email protected] >
2024-08-12 15:45:03 +02:00
Nicolò Ribaudo and GitHub
f894edde64
Add eslint-plugin-regexp ( #16680 )
2024-07-29 17:42:43 +02:00
Babel Bot and GitHub
b839b435c2
Update test262 ( #16632 )
...
chore: update test262 to ab0c31a4581dff94230bf5af9f45f682701760eb
2024-07-12 08:09:03 +08:00
Babel Bot and GitHub
c3f8006195
Update test262 ( #16611 )
...
chore: update test262 to 673856839c8dcd4b4c63e09f636f2544e19a9ac9
2024-07-04 20:25:51 -04:00