liuxingbaoyu and GitHub
f6f7f4409c
[Babel 8] Remove plugin-transform-react-{compat,source,self} ( #17620 )
...
remove
2025-12-16 13:13:45 +01:00
Huáng Jùnliàng and GitHub
c93fe49aa2
chore: add preset-typescript as optional peer dep ( #17665 )
2025-12-15 23:39:42 -05:00
Nicolò Ribaudo and GitHub
d15bcefde5
Fix prettier e2e test ( #17664 )
2025-12-15 15:40:28 +01:00
Huáng Jùnliàng and GitHub
8aa1a9d67b
[Babel 8] Remove decorator parser plugin options ( #17643 )
2025-12-12 18:25:30 +01:00
Nicolò Ribaudo and GitHub
8cb118bff4
Cleanup USE_ESM, IS_BABEL_8(), and itGte usage ( #17631 )
2025-12-09 09:37:19 +01:00
Nicolò Ribaudo
3a912d1a39
Remove Babel 7 from the codebase ( #17618 )
2025-12-05 12:33:52 +01:00
Nicolò Ribaudo and GitHub
8f319beaaa
[babel 8] Rename TSImportType.argument to .source ( #17610 )
2025-11-28 12:41:53 +01:00
Nicolò Ribaudo and GitHub
a7c24f998b
Add script to remove Babel 7 tests ( #17616 )
2025-11-28 12:33:00 +01:00
Babel Bot and GitHub
b076fcbccd
Update test262 ( #17614 )
2025-11-28 11:39:55 +01:00
Nicolò Ribaudo and GitHub
4066835dfc
[babel 8] Fully remove import assertions ( #17603 )
2025-11-26 11:42:24 +01:00
e4178c50bd
chore: Use Gulpfile.mts ( #17579 )
...
* Gulpfile.ts
* fix
* chore: remove ts-node and patch interpret
The patched version now recognizes the gulp config `Gulpfile.mts` and the built in node type stripping will then kick in.
* fix
---------
Co-authored-by: Huáng Jùnliàng <[email protected] >
2025-11-25 22:58:07 +01:00
liuxingbaoyu and GitHub
fcea732709
[Babel 8] fix: Improve traverse types ( #17574 )
2025-11-25 16:58:08 +01:00
Nicolò Ribaudo and GitHub
603de86d78
Add logic to materialize Babel 8 in source ( #17605 )
...
* Add logic to materialize Bbael 8 in source
* Avoid empty blocks
* Remove Babel 7 vs Babel 8 ts comments
* Flatten object spread
2025-11-25 07:13:14 +01:00
Huáng Jùnliàng and GitHub
83d4267d7c
test: install browser-playwright ( #17599 )
2025-11-20 23:22:13 -05:00
2518d1bf7d
Use eslint.config.mts ( #17573 )
...
Co-authored-by: Nicolò Ribaudo <[email protected] >
2025-10-29 22:26:24 +01:00
Nicolò Ribaudo and GitHub
7ac8f87b8f
Fully remove Records and Tuples support ( #17528 )
2025-10-23 17:53:20 +02:00
Nicolò Ribaudo and GitHub
a688b3829d
Fix Prettier e2e test for Babel 8 ( #17539 )
2025-10-03 17:03:58 +02:00
liuxingbaoyu and GitHub
f23d4e7876
fix: require.resolve unexpectedly resolves to .mjs ( #17533 )
2025-10-03 12:20:48 +02:00
Huáng Jùnliàng and GitHub
b6dbecbf9e
Type check runtime scripts ( #17522 )
2025-09-26 18:54:20 -04:00
Babel Bot and GitHub
9f82628358
Update test262 ( #17527 )
...
chore: update test262 to 8a8a7af1b9a01eb3665cedaa62131d5c1d2304de
2025-09-26 09:06:26 -04:00
fisker Cheung and GitHub
3dda379c8a
Run Prettier E2E test only on Babel 8 ( #17523 )
...
* Run Prettier E2E test on v8
* Bye bye v7
2025-09-25 17:10:16 -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
Huáng Jùnliàng and GitHub
0e36b4495f
Bump regexpu-core to 6.3.1 ( #17507 )
...
* bump regexpu-core to 6.3.1
* migrate to official type definitions
* add more test cases to unicode-property-regex
* update test fixtures per Unicode 17
* improve script unknown test
2025-09-10 13:38:22 -04:00
Huáng Jùnliàng and GitHub
65e63de3d5
Type checking babel-types scripts ( #17494 )
...
* chore: enbale ts-check on babel-types scripts
* polish: make Validator distributive
* fix: chainOf should not rely on the ["any"] return
* suppress Babel 8 typing errors
* chore: add scripts to babel-types ts project
* migrate babel-types scripts to TS
* refactor: replace toFunctionName by formatBuilderName
* Update packages/babel-types/scripts/generators/ast-types.ts
* misc cleanup
* remove JSDoc param type definitions
2025-09-05 12:12:30 -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
Nicolò Ribaudo and GitHub
4c1802eff4
Type-check .d.ts file with strict: true ( #17461 )
...
TypeCheck `.d.ts` file with `strict: true`
2025-08-01 09:58:47 +02: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
Huáng Jùnliàng and GitHub
4d1eb35cf1
Create babel-helper-globals ( #17297 )
2025-06-30 16:31:18 +02:00
Huáng Jùnliàng and GitHub
2d557f5b3e
Materialize explicitResourceManagement parser plugin ( #17346 )
...
* feat: materialize explicitResourceManagement plugin
* remove explicitResourceManagement from parser option schema
* remove no plugin tests
* move parser tests to es2026
* remove explicitResourceManagement parser option usage
* add missing options.json
* remove explicitResourceManagement from prettier Babel parser config
* fix rebase error
* add failed typescript test
2025-06-29 22:34:30 +02:00
29d22a17b7
Parse discard binding ( #17163 )
...
* add VoidPattern definition
* update types artifacts
* parse void binding
* print void binding
* fix typing errors
* update parser typings
* fix: remove VoidPattern from ForXStatement.left
* fix typing errors
* add Babel 8 tests
* require syntaxType option
* add test for object-rest-spread change
* feat(types): disallow void pattern in var/let/const declaration
* fix: allow nested void pattern in catch param
* improve UnexpectedVoidPattern error message
* remove R&T integration parser tests
* polish: throw different error when CoverDiscardElement is parsed
* Update expression.ts
Co-authored-by: liuxingbaoyu <[email protected] >
* update discardBinding plugin option types
---------
Co-authored-by: liuxingbaoyu <[email protected] >
2025-06-28 08:17:58 +02:00
Huáng Jùnliàng and GitHub
d4081adaea
Interepret parser allow* options as top level only ( #17203 )
...
* fix: set top level await when AllowAwaitOutsideFunction is true
* fix: set top level return when AllowReturnOutsideFunction is true
* fix: set top level super when AllowSuperOutsideMethod is true
* refactor: simplify new.targe scope check
* rename test suites
* fix: do not construct invalid js in template
* Revert "fix: set top level super when AllowSuperOutsideMethod is true"
This reverts commit 9a256c798c240ae957ccbc046fd5bb8db0ba2127.
# Conflicts:
# packages/babel-parser/src/parser/util.ts
# packages/babel-parser/test/fixtures/core/opts/allowSuperOutsideMethod-true-invalid-in-function-body/input.js
# packages/babel-parser/test/fixtures/core/opts/allowSuperOutsideMethod-true-invalid-in-function-body/options.json
# packages/babel-parser/test/fixtures/core/opts/allowSuperOutsideMethod-true-invalid-in-function-body/output.json
* polish: overwrite await using in async error
when await using is in ambient context
* add async-do allowReturnOutsideFunction test
* temporarily disable prettier async-do-expressions test
2025-06-23 09:42:09 -04:00
liuxingbaoyu and GitHub
610f0387eb
chore: Avoid CITGM errors ( #17382 )
2025-06-11 16:08:45 +02:00
Huáng Jùnliàng and GitHub
60f55dbc1c
Update babel 8 preset env fixtures ( #17356 )
...
* test: revert preset-env debug syntax strip
The debug test cases have been duplicated anyway
* support stdout in generate-babel-7-tests
* update test fixtures
* add support for stderr
2025-06-03 08:36:18 -04: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
Nicolò Ribaudo
ad58c5e80f
Split regeneratorRuntime into multiple helpers ( #17238 )
2025-05-29 17:54:24 +02:00
fisker Cheung and GitHub
f6904da97e
Enable dot-notation rule ( #17301 )
2025-05-23 11:53:00 +02:00
Babel Bot and GitHub
055da8662e
Update test262 ( #17299 )
...
chore: update test262 to 545df3a4329c8726440c199f2d717977c5cde647
2025-05-09 11:08:46 +02:00
fisker Cheung and GitHub
c89ee2c329
Update Prettier test ( #17298 )
2025-05-08 22:15:47 +02:00
bef9bfec71
Fix Node.js 24 CI error ( #17294 )
...
* chore: test ESM version against Node.js 24
* update Node.js 24 runtime integration test snapshot
* fix node 12 LTS snapshots
* Update node.cjs
Co-authored-by: Nicolò Ribaudo <[email protected] >
* bump verdaccio to 6.1.2
* pin node to 22
* Revert "pin node to 22"
This reverts commit 7f203513fd56dc941e9f6e2d296a5e21b06d8ba2.
* remove unused openssl workaround
* print npm logs on error
* pin create-react-app node to 22
---------
Co-authored-by: Nicolò Ribaudo <[email protected] >
2025-05-07 10:55:03 -04:00
Nicolò Ribaudo and GitHub
49fb96c2e0
[Babel 8] Directly export the JSON files from @babel/compat-data ( #17267 )
2025-05-04 22:20:30 +02:00
Nicolò Ribaudo and GitHub
70702baa3b
[babel 8] Remove unnecessary CJS ESM wrapper ( #17261 )
...
* [babel 8] Remove unnecessary CJS ESM wrapper
* Use latest Node.js for e2e test
* Add snapshot to test
2025-04-25 22:56:58 +02:00
0099bcd0a5
Reduce interopRequireWildcard size ( #16538 )
...
Co-authored-by: Nicolò Ribaudo <[email protected] >
2025-04-15 02:19:20 +08:00
liuxingbaoyu and GitHub
3047a79bc8
Migrate @babel/register to cts ( #16844 )
...
cts
2025-04-03 11:41:47 +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
5ed86fe5f4
Use esm for makefile js ( #17214 )
2025-03-31 09:32:56 -04:00
Nicolò Ribaudo
1e77f99097
Prepare LICENSE files for incorporating regenerator ( #17205 )
2025-03-28 10:53:50 +01:00
Huáng Jùnliàng and GitHub
347e79fd82
Fix failing Node.js 20 tests ( #17191 )
...
* add itSatisfies, itNegate and describeSatisfies
* replace ">=22.12.0" by "^20.19.0 || >= 22.12.0"
* update helper-define-polyfill-provider
* update test fixtures
* small cleanup to retry CI
* Revert "small cleanup to retry CI"
This reverts commit 7ebc90541217e62b2e01cc13a1cc0fa6b1e48285.
* try builtin npm version
* use versionHasRequireESM
2025-03-20 09:31:42 -04:00