swc-project/swc-node (@swc-node/register)
### [`v1.10.9`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.10.9)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.8...@swc-node/register@1.10.9)
#### What's Changed
- fix(register): skip load files in node_modules by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/828](https://redirect.github.com/swc-project/swc-node/pull/828)
**Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).10.8...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).10.9
### [`v1.10.8`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.10.8)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.7...@swc-node/register@1.10.8)
#### What's Changed
- fix(register): default register/esm TSCONFIG_PATH on windows. by [@simonbuchan](https://redirect.github.com/simonbuchan) in [https://github.com/swc-project/swc-node/pull/818](https://redirect.github.com/swc-project/swc-node/pull/818)
- chore(deps): update dependency oxlint to ^0.6.0 by [@renovate](https://redirect.github.com/renovate) in [https://github.com/swc-project/swc-node/pull/822](https://redirect.github.com/swc-project/swc-node/pull/822)
- fix(register): bump oxc-resolver by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/824](https://redirect.github.com/swc-project/swc-node/pull/824)
- chore(deps): update dependency lerna to v8.1.6 by [@renovate](https://redirect.github.com/renovate) in [https://github.com/swc-project/swc-node/pull/821](https://redirect.github.com/swc-project/swc-node/pull/821)
- fix(register): remove file extension tests in compile by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/825](https://redirect.github.com/swc-project/swc-node/pull/825)
#### New Contributors
- [@simonbuchan](https://redirect.github.com/simonbuchan) made their first contribution in [https://github.com/swc-project/swc-node/pull/818](https://redirect.github.com/swc-project/swc-node/pull/818)
- [@renovate](https://redirect.github.com/renovate) made their first contribution in [https://github.com/swc-project/swc-node/pull/822](https://redirect.github.com/swc-project/swc-node/pull/822)
**Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).10.7...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).10.8
### [`v1.10.7`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.6...@swc-node/register@1.10.7)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.6...@swc-node/register@1.10.7)
### [`v1.10.6`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.5...@swc-node/register@1.10.6)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.5...@swc-node/register@1.10.6)
### [`v1.10.5`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.4...@swc-node/register@1.10.5)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.4...@swc-node/register@1.10.5)
### [`v1.10.4`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.3...@swc-node/register@1.10.4)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.3...@swc-node/register@1.10.4)
### [`v1.10.3`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.10.3)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.2...@swc-node/register@1.10.3)
#### What's Changed
- fix(register): support moduleResolution Bundler by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/806](https://redirect.github.com/swc-project/swc-node/pull/806)
**Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).10.2...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).10.3
### [`v1.10.2`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.1...41a6d1cb78c6cff93d21e438d81786eef377f0ad)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.1...@swc-node/register@1.10.2)
### [`v1.10.1`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.0...@swc-node/register@1.10.1)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.0...@swc-node/register@1.10.1)
### [`v1.10.0`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.9.2...9644be5577f77aa53f974636fac4bc38f77148ce)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.9.2...@swc-node/register@1.10.0)
### [`v1.9.2`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.9.1...@swc-node/register@1.9.2)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.9.1...@swc-node/register@1.9.2)
### [`v1.9.1`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.9.1)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.9.0...@swc-node/register@1.9.1)
#### What's Changed
- fix: esm module resolve issues by [@yeliex](https://redirect.github.com/yeliex) in [https://github.com/swc-project/swc-node/pull/754](https://redirect.github.com/swc-project/swc-node/pull/754)
- fix: add default tsconfig.baseUrl to align with tsc behavior by [@yeliex](https://redirect.github.com/yeliex) in [https://github.com/swc-project/swc-node/pull/759](https://redirect.github.com/swc-project/swc-node/pull/759)
- fix(register): fix esm entry resolver for third-party executer, close [#762](https://redirect.github.com/swc-project/swc-node/issues/762) by [@yeliex](https://redirect.github.com/yeliex) in [https://github.com/swc-project/swc-node/pull/766](https://redirect.github.com/swc-project/swc-node/pull/766)
- fix: support compile js files. close [#761](https://redirect.github.com/swc-project/swc-node/issues/761) by [@yeliex](https://redirect.github.com/yeliex) in [https://github.com/swc-project/swc-node/pull/767](https://redirect.github.com/swc-project/swc-node/pull/767)
- chore: upgrade dependencies by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/771](https://redirect.github.com/swc-project/swc-node/pull/771)
**Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).8.0...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).9.1
### [`v1.9.0`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.8.0...@swc-node/register@1.9.0)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.8.0...@swc-node/register@1.9.0)
### [`v1.8.0`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.8.0)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.8...@swc-node/register@1.8.0)
#### What's Changed
- fix(core): remove `jsc.module.noInterop` when it's not supported by [@kdy1](https://redirect.github.com/kdy1) in [https://github.com/swc-project/swc-node/pull/733](https://redirect.github.com/swc-project/swc-node/pull/733)
- chore: fix README for install, build, and test by [@devjiwonchoi](https://redirect.github.com/devjiwonchoi) in [https://github.com/swc-project/swc-node/pull/728](https://redirect.github.com/swc-project/swc-node/pull/728)
- feat(register): @swc-node/register/esm use TypeScript resolver by [@cm-ayf](https://redirect.github.com/cm-ayf) in [https://github.com/swc-project/swc-node/pull/727](https://redirect.github.com/swc-project/swc-node/pull/727)
- chore(deps-dev): bump [@babel/traverse](https://redirect.github.com/babel/traverse) from 7.22.10 to 7.23.2 by [@dependabot](https://redirect.github.com/dependabot) in [https://github.com/swc-project/swc-node/pull/735](https://redirect.github.com/swc-project/swc-node/pull/735)
- Fix [#716](https://redirect.github.com/swc-project/swc-node/issues/716) by [@eliellis](https://redirect.github.com/eliellis) in [https://github.com/swc-project/swc-node/pull/725](https://redirect.github.com/swc-project/swc-node/pull/725)
- chore(deps-dev): bump axios from 1.3.5 to 1.6.1 by [@dependabot](https://redirect.github.com/dependabot) in [https://github.com/swc-project/swc-node/pull/738](https://redirect.github.com/swc-project/swc-node/pull/738)
- fix(core): respect useDefineForClassFields tsconfig value by [@dsyddall](https://redirect.github.com/dsyddall) in [https://github.com/swc-project/swc-node/pull/740](https://redirect.github.com/swc-project/swc-node/pull/740)
- fix(core): respect sourceMaps swcrc value by [@dsyddall](https://redirect.github.com/dsyddall) in [https://github.com/swc-project/swc-node/pull/742](https://redirect.github.com/swc-project/swc-node/pull/742)
- feat: add esm-register for node>20.6 by [@yeliex](https://redirect.github.com/yeliex) in [https://github.com/swc-project/swc-node/pull/748](https://redirect.github.com/swc-project/swc-node/pull/748)
- chore(deps-dev): bump follow-redirects from 1.15.2 to 1.15.4 by [@dependabot](https://redirect.github.com/dependabot) in [https://github.com/swc-project/swc-node/pull/747](https://redirect.github.com/swc-project/swc-node/pull/747)
- feat(core): support swc's `ignoreDynamic` option by [@SukkaW](https://redirect.github.com/SukkaW) in [https://github.com/swc-project/swc-node/pull/745](https://redirect.github.com/swc-project/swc-node/pull/745)
- fix: fix import ts from node_modules by [@yeliex](https://redirect.github.com/yeliex) in [https://github.com/swc-project/swc-node/pull/744](https://redirect.github.com/swc-project/swc-node/pull/744)
- Mention --enable-source-maps in README.md for esm projects. by [@Xinkai](https://redirect.github.com/Xinkai) in [https://github.com/swc-project/swc-node/pull/737](https://redirect.github.com/swc-project/swc-node/pull/737)
- feat: upgrade dependencies by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/751](https://redirect.github.com/swc-project/swc-node/pull/751)
#### New Contributors
- [@devjiwonchoi](https://redirect.github.com/devjiwonchoi) made their first contribution in [https://github.com/swc-project/swc-node/pull/728](https://redirect.github.com/swc-project/swc-node/pull/728)
- [@cm-ayf](https://redirect.github.com/cm-ayf) made their first contribution in [https://github.com/swc-project/swc-node/pull/727](https://redirect.github.com/swc-project/swc-node/pull/727)
- [@eliellis](https://redirect.github.com/eliellis) made their first contribution in [https://github.com/swc-project/swc-node/pull/725](https://redirect.github.com/swc-project/swc-node/pull/725)
- [@dsyddall](https://redirect.github.com/dsyddall) made their first contribution in [https://github.com/swc-project/swc-node/pull/740](https://redirect.github.com/swc-project/swc-node/pull/740)
- [@SukkaW](https://redirect.github.com/SukkaW) made their first contribution in [https://github.com/swc-project/swc-node/pull/745](https://redirect.github.com/swc-project/swc-node/pull/745)
- [@Xinkai](https://redirect.github.com/Xinkai) made their first contribution in [https://github.com/swc-project/swc-node/pull/737](https://redirect.github.com/swc-project/swc-node/pull/737)
**Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/core](https://redirect.github.com/swc-node/core)[@1](https://redirect.github.com/1).10.5...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).8.0
### [`v1.6.8`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.8)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.7...@swc-node/register@1.6.8)
#### What's Changed
- fix(core): remove `jsc.module.noInterop` when it's not supported by [@kdy1](https://redirect.github.com/kdy1) in [https://github.com/swc-project/swc-node/pull/733](https://redirect.github.com/swc-project/swc-node/pull/733)
- chore: fix README for install, build, and test by [@devjiwonchoi](https://redirect.github.com/devjiwonchoi) in [https://github.com/swc-project/swc-node/pull/728](https://redirect.github.com/swc-project/swc-node/pull/728)
- feat(register): @swc-node/register/esm use TypeScript resolver by [@cm-ayf](https://redirect.github.com/cm-ayf) in [https://github.com/swc-project/swc-node/pull/727](https://redirect.github.com/swc-project/swc-node/pull/727)
#### New Contributors
- [@devjiwonchoi](https://redirect.github.com/devjiwonchoi) made their first contribution in [https://github.com/swc-project/swc-node/pull/728](https://redirect.github.com/swc-project/swc-node/pull/728)
- [@cm-ayf](https://redirect.github.com/cm-ayf) made their first contribution in [https://github.com/swc-project/swc-node/pull/727](https://redirect.github.com/swc-project/swc-node/pull/727)
**Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/core](https://redirect.github.com/swc-node/core)[@1](https://redirect.github.com/1).10.5...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).6.8
### [`v1.6.7`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.6...@swc-node/register@1.6.7)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.6...@swc-node/register@1.6.7)
### [`v1.6.6`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.5...@swc-node/register@1.6.6)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.5...@swc-node/register@1.6.6)
### [`v1.6.5`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.5)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.4...@swc-node/register@1.6.5)
#### What's Changed
- Ts Compiler to Swc Config: respects decorators config and SWCRC=true by [@otaviosoares](https://redirect.github.com/otaviosoares) in [https://github.com/swc-project/swc-node/pull/702](https://redirect.github.com/swc-project/swc-node/pull/702)
- docs: register node api usage by [@JiangWeixian](https://redirect.github.com/JiangWeixian) in [https://github.com/swc-project/swc-node/pull/706](https://redirect.github.com/swc-project/swc-node/pull/706)
- Make sourcemaps work with both error stack & debugger by [@ranjan-purbey](https://redirect.github.com/ranjan-purbey) in [https://github.com/swc-project/swc-node/pull/707](https://redirect.github.com/swc-project/swc-node/pull/707)
- url now returns the href of a url object by [@JipSterk](https://redirect.github.com/JipSterk) in [https://github.com/swc-project/swc-node/pull/698](https://redirect.github.com/swc-project/swc-node/pull/698)
- chore: upgrade dependencies by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/709](https://redirect.github.com/swc-project/swc-node/pull/709)
- fix(register): inline sourcemap by [@robbiespeed](https://redirect.github.com/robbiespeed) in [https://github.com/swc-project/swc-node/pull/708](https://redirect.github.com/swc-project/swc-node/pull/708)
- fix(register): Fix to resolve adjacent file path by [@chloe463](https://redirect.github.com/chloe463) in [https://github.com/swc-project/swc-node/pull/711](https://redirect.github.com/swc-project/swc-node/pull/711)
#### New Contributors
- [@otaviosoares](https://redirect.github.com/otaviosoares) made their first contribution in [https://github.com/swc-project/swc-node/pull/702](https://redirect.github.com/swc-project/swc-node/pull/702)
- [@JiangWeixian](https://redirect.github.com/JiangWeixian) made their first contribution in [https://github.com/swc-project/swc-node/pull/706](https://redirect.github.com/swc-project/swc-node/pull/706)
- [@ranjan-purbey](https://redirect.github.com/ranjan-purbey) made their first contribution in [https://github.com/swc-project/swc-node/pull/707](https://redirect.github.com/swc-project/swc-node/pull/707)
- [@JipSterk](https://redirect.github.com/JipSterk) made their first contribution in [https://github.com/swc-project/swc-node/pull/698](https://redirect.github.com/swc-project/swc-node/pull/698)
- [@robbiespeed](https://redirect.github.com/robbiespeed) made their first contribution in [https://github.com/swc-project/swc-node/pull/708](https://redirect.github.com/swc-project/swc-node/pull/708)
- [@chloe463](https://redirect.github.com/chloe463) made their first contribution in [https://github.com/swc-project/swc-node/pull/711](https://redirect.github.com/swc-project/swc-node/pull/711)
**Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/core](https://redirect.github.com/swc-node/core)[@1](https://redirect.github.com/1).10.1...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).6.5
### [`v1.6.4`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.4)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.3...@swc-node/register@1.6.4)
#### What's Changed
- Ts Compiler to Swc Config: respects decorators config and SWCRC=true by [@otaviosoares](https://redirect.github.com/otaviosoares) in [https://github.com/swc-project/swc-node/pull/702](https://redirect.github.com/swc-project/swc-node/pull/702)
- docs: register node api usage by [@JiangWeixian](https://redirect.github.com/JiangWeixian) in [https://github.com/swc-project/swc-node/pull/706](https://redirect.github.com/swc-project/swc-node/pull/706)
- Make sourcemaps work with both error stack & debugger by [@ranjan-purbey](https://redirect.github.com/ranjan-purbey) in [https://github.com/swc-project/swc-node/pull/707](https://redirect.github.com/swc-project/swc-node/pull/707)
- url now returns the href of a url object by [@JipSterk](https://redirect.github.com/JipSterk) in [https://github.com/swc-project/swc-node/pull/698](https://redirect.github.com/swc-project/swc-node/pull/698)
- chore: upgrade dependencies by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/709](https://redirect.github.com/swc-project/swc-node/pull/709)
#### New Contributors
- [@otaviosoares](https://redirect.github.com/otaviosoares) made their first contribution in [https://github.com/swc-project/swc-node/pull/702](https://redirect.github.com/swc-project/swc-node/pull/702)
- [@JiangWeixian](https://redirect.github.com/JiangWeixian) made their first contribution in [https://github.com/swc-project/swc-node/pull/706](https://redirect.github.com/swc-project/swc-node/pull/706)
- [@ranjan-purbey](https://redirect.github.com/ranjan-purbey) made their first contribution in [https://github.com/swc-project/swc-node/pull/707](https://redirect.github.com/swc-project/swc-node/pull/707)
- [@JipSterk](https://redirect.github.com/JipSterk) made their first contribution in [https://github.com/swc-project/swc-node/pull/698](https://redirect.github.com/swc-project/swc-node/pull/698)
**Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/core](https://redirect.github.com/swc-node/core)[@1](https://redirect.github.com/1).10.1...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).6.4
### [`v1.6.3`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.3)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.2...@swc-node/register@1.6.3)
#### What's Changed
- Ts Compiler to Swc Config: respects decorators config and SWCRC=true by [@otaviosoares](https://redirect.github.com/otaviosoares) in [https://github.com/swc-project/swc-node/pull/702](https://redirect.github.com/swc-project/swc-node/pull/702)
- docs: register node api usage by [@JiangWeixian](https://redirect.github.com/JiangWeixian) in [https://github.com/swc-project/swc-node/pull/706](https://redirect.github.com/swc-project/swc-node/pull/706)
#### New Contributors
- [@otaviosoares](https://redirect.github.com/otaviosoares) made their first contribution in [https://github.com/swc-project/swc-node/pull/702](https://redirect.github.com/swc-project/swc-node/pull/702)
- [@JiangWeixian](https://redirect.github.com/JiangWeixian) made their first contribution in [https://github.com/swc-project/swc-node/pull/706](https://redirect.github.com/swc-project/swc-node/pull/706)
**Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/core](https://redirect.github.com/swc-node/core)[@1](https://redirect.github.com/1).10.1...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).6.3
### [`v1.6.2`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.2)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.1...@swc-node/register@1.6.2)
##### Bug Fixes
- **register:** enforece module option in register/esm ([#694](https://redirect.github.com/swc-project/swc-node/issues/694)) ([860d1f6](https://redirect.github.com/swc-project/swc-node/commit/860d1f6f5f7ece197e92a822470a093ae7a7a68a))
### [`v1.6.1`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.1)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.0...@swc-node/register@1.6.1)
##### Bug Fixes
- **register:** include esm files ([8d6b0b7](https://redirect.github.com/swc-project/swc-node/commit/8d6b0b77d5ec725ff75989455f8163d88c306878))
### [`v1.6.0`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.0)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.8...@swc-node/register@1.6.0)
#### Experimental `esm` support
`node --loader=@swc-node/register/esm ./src/index.ts` in this project
`src/index.ts`
```ts
import assert from 'node:assert'
import test from 'node:test'
import { supportedExtensions } from 'file-type' // pure esm project
await test('file-type should work', () => {
assert.ok(supportedExtensions.has('jpg'))
})
```
`tsconfig.json`
```json
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
}
}
```
`package.json`
```json
{
"type": "module"
}
```
**output**
```text
> node --loader=@swc-node/register/esm ./src/index.ts
(node:77682) ExperimentalWarning: Custom ESM Loaders is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:77682) ExperimentalWarning: The test runner is an experimental feature. This feature could change at any time
TAP version 13
### Subtest: file-type should work
ok 1 - file-type should work
---
duration_ms: 0.642416
...
1..1
### tests 1
### pass 1
### fail 0
### cancelled 0
### skipped 0
### todo 0
### duration_ms 5.702292
```
#### What's Changed
- Experimental esm loader by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/643](https://redirect.github.com/swc-project/swc-node/pull/643)
**Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/jest](https://redirect.github.com/swc-node/jest)[@1](https://redirect.github.com/1).5.9...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).6.0
### [`v1.5.8`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.8)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.6...@swc-node/register@1.5.8)
##### Bug Fixes
- **register:** paths option ([c51be25](https://redirect.github.com/swc-project/swc-node/commit/c51be25d28da06d29620caee2505bff609cba445))
### [`v1.5.6`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.6)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.5...@swc-node/register@1.5.6)
##### Bug Fixes
- **register:** always inline swc helpers ([1d557ec](https://redirect.github.com/swc-project/swc-node/commit/1d557ece0d9ccbba027ff9f2d262c03d4b918bcb))
- **register:** react configuration ([af643b8](https://redirect.github.com/swc-project/swc-node/commit/af643b849c32abb58bd1c0fdf98eeeac08548e25))
### [`v1.5.5`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.5)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.4...@swc-node/register@1.5.5)
**Note:** Version bump only for package [@swc-node/register](https://redirect.github.com/swc-node/register)
### [`v1.5.4`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.4)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.3...@swc-node/register@1.5.4)
##### Bug Fixes
- **register:** [@swc/core](https://redirect.github.com/swc/core) should be in peerDependencies ([cb05cae](https://redirect.github.com/swc-project/swc-node/commit/cb05cae69dd92d13593c210f8c0044b6aff8ff1c))
### [`v1.5.3`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.2...@swc-node/register@1.5.3)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.2...@swc-node/register@1.5.3)
### [`v1.5.2`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.2)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.1...@swc-node/register@1.5.2)
##### Bug Fixes
- **register:** support paths alias with baseUrl ([2a6848a](https://redirect.github.com/swc-project/swc-node/commit/2a6848a00b8931f41b62f6b5a519bdbc548bfec3)) [https://github.com/swc-project/swc-node/pull/666](https://redirect.github.com/swc-project/swc-node/pull/666) [@terceser](https://redirect.github.com/terceser)
#### New Contributors
- [@terceser](https://redirect.github.com/terceser) made their first contribution in [https://github.com/swc-project/swc-node/pull/666](https://redirect.github.com/swc-project/swc-node/pull/666)
### [`v1.5.1`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.1)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.0...@swc-node/register@1.5.1)
##### Bug Fixes
- **register:** move typescript to devDependencies ([c0011ca](https://redirect.github.com/swc-project/swc-node/commit/c0011ca0eb535f7eacf184ec116c775121c64905))
### [`v1.5.0`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.0)
[Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.4.2...@swc-node/register@1.5.0)
##### Features
- **jest:** read tsconfig for default jest transform options ([8c180e6](https://redirect.github.com/swc-project/swc-node/commit/8c180e68abbc66aa68f83b401d985a6c8617baa9))
- **register:** always resolve full file path for tsconfig and add paths if available ([#646](https://redirect.github.com/swc-project/swc-node/issues/646)) ([3062413](https://redirect.github.com/swc-project/swc-node/commit/3062413e464a5b5706c5ac4912f43ef7451fe73b))
- **register:** return addHook result to it can be reverted ([222e205](https://redirect.github.com/swc-project/swc-node/commit/222e2056351e3a2ba2a4764537c9410b0112051e)), closes [/github.com/facebook/jest/blob/199f9811ae68b15879cbe18b7ef7ebd61eefcf23/packages/jest-config/src/readConfigFileAndSetRootDir.ts#L83-101](https://redirect.github.com//github.com/facebook/jest/blob/199f9811ae68b15879cbe18b7ef7ebd61eefcf23/packages/jest-config/src/readConfigFileAndSetRootDir.ts/issues/L83-101)
- **register:** support hook options ([4c6dad7](https://redirect.github.com/swc-project/swc-node/commit/4c6dad7bfbf4563c44bd25476a6ab5d78cff55dc))
swc-project/swc (@swc/core)
### [`v1.7.40`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1740---2024-10-26)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.39...v1.7.40)
##### Bug Fixes
- **(bindings)** Update napi to handle string with `\0` ([#9665](https://redirect.github.com/swc-project/swc/issues/9665)) ([8f45eaf](https://redirect.github.com/swc-project/swc/commit/8f45eaf837d023847c478e562265e141213ce231))
- **(bindings/node)** Add `VisitTsPropertySignature` ([#9670](https://redirect.github.com/swc-project/swc/issues/9670)) ([715c42c](https://redirect.github.com/swc-project/swc/commit/715c42c0bfe699d822a7e9ea18751d35aac3235d))
- **(es/codegen)** Improve EndsWithAlphaNum ([#9675](https://redirect.github.com/swc-project/swc/issues/9675)) ([ba2a942](https://redirect.github.com/swc-project/swc/commit/ba2a942f56776e6927b48cfd185d8720052b7409))
- **(es/renamer)** Check `preserved` in normal renaming mode ([#9666](https://redirect.github.com/swc-project/swc/issues/9666)) ([87b4e10](https://redirect.github.com/swc-project/swc/commit/87b4e10e5dbeb236ee5232d85d3176472fa4a9d0))
- **(typescript)** Check whether the method is abstract when checking `is_overload` ([#9678](https://redirect.github.com/swc-project/swc/issues/9678)) ([78500af](https://redirect.github.com/swc-project/swc/commit/78500af546ea3c92f016c729e173c66fccbe46ed))
##### Documentation
- **(contributing)** Document changeset ([#9667](https://redirect.github.com/swc-project/swc/issues/9667)) ([602c667](https://redirect.github.com/swc-project/swc/commit/602c667b9d435fa9155345952379287cb11e59db))
##### Miscellaneous Tasks
- **(deps)** Update dependency swc-plugin-coverage-instrument to ^0.0.25 ([#9676](https://redirect.github.com/swc-project/swc/issues/9676)) ([b8d255b](https://redirect.github.com/swc-project/swc/commit/b8d255bf5aa65a5589331b0924269a23b3052137))
### [`v1.7.39`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1739---2024-10-22)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.36...v1.7.39)
##### Bug Fixes
- **(es/compat)** Add missing visit children for `destructuring` ([#9658](https://redirect.github.com/swc-project/swc/issues/9658)) ([32116a0](https://redirect.github.com/swc-project/swc/commit/32116a0940a5806d8ad291b5fd6d056709a396bc))
- **(es/parser)** Correct `>` and `<` when exit type context ([#9653](https://redirect.github.com/swc-project/swc/issues/9653)) ([abffc07](https://redirect.github.com/swc-project/swc/commit/abffc073561b3ba3906aa0923ef3880e5e30d538))
- **(es/proposal)** Use `tsc` version of explicit resource management ([#9585](https://redirect.github.com/swc-project/swc/issues/9585)) ([f735108](https://redirect.github.com/swc-project/swc/commit/f7351080174c61bad5950be9b30c75c4f17ebe3e))
- **(wasm-typescript)** Fix option types of functions ([#9662](https://redirect.github.com/swc-project/swc/issues/9662)) ([4cbe33c](https://redirect.github.com/swc-project/swc/commit/4cbe33c32f244e9c568d388f19c0f297bf3d74f1))
##### Features
- **(es/minifier)** Implement optional catch binding ([#9657](https://redirect.github.com/swc-project/swc/issues/9657)) ([f70b842](https://redirect.github.com/swc-project/swc/commit/f70b842c5579c945fcd6357edb712507228f5eb5))
##### Miscellaneous Tasks
- **(es/typescript)** Improve enum comments and sourcemap ([#9652](https://redirect.github.com/swc-project/swc/issues/9652)) ([31fe3b6](https://redirect.github.com/swc-project/swc/commit/31fe3b6be151cbf63fe1ff06f922f814da105d08))
### [`v1.7.36`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1736---2024-10-15)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.35...v1.7.36)
##### Bug Fixes
- **(es)** Run esnext transforms on esnext target ([#9644](https://redirect.github.com/swc-project/swc/issues/9644)) ([8a19201](https://redirect.github.com/swc-project/swc/commit/8a192018247ad7ac253c2964038de5f626acb8c4))
- **(es/codegen)** Emit space after div if rhs has leading comment ([#9631](https://redirect.github.com/swc-project/swc/issues/9631)) ([f2be26e](https://redirect.github.com/swc-project/swc/commit/f2be26efe090f5c1575f5bb9e4067f7ae531f11c))
- **(es/lints)** Correct the false positive error of TS2309 ([#9635](https://redirect.github.com/swc-project/swc/issues/9635)) ([f74c1f3](https://redirect.github.com/swc-project/swc/commit/f74c1f3e5a117c22aa87a2754715066cb8dfe0fe))
- **(es/minifier)** Only merge last if return ([#9633](https://redirect.github.com/swc-project/swc/issues/9633)) ([6f52949](https://redirect.github.com/swc-project/swc/commit/6f52949210ee2a71ed119cbcdf2db1842a2e63cb))
- **(es/minifier)** Check type of assignment target before merging assignments ([#9617](https://redirect.github.com/swc-project/swc/issues/9617)) ([4436621](https://redirect.github.com/swc-project/swc/commit/44366215644f3fff2f897e509a56b36cb5e1f8a2))
##### Features
- **(es)** Introduce `runPluginFirst` for Wasm plugins ([#9645](https://redirect.github.com/swc-project/swc/issues/9645)) ([3d3e434](https://redirect.github.com/swc-project/swc/commit/3d3e4340b33e124f551ee88b68bfaddb537a3c6a))
- **(es/minifier)** Support unary negate in `cast_to_number` ([#9642](https://redirect.github.com/swc-project/swc/issues/9642)) ([88a2186](https://redirect.github.com/swc-project/swc/commit/88a2186ba419c98c73b997ca9ea90d7a8fd128e4))
##### Miscellaneous Tasks
- **(deps)** Update dependency magic-string to v0.30.12 ([#9634](https://redirect.github.com/swc-project/swc/issues/9634)) ([085bc19](https://redirect.github.com/swc-project/swc/commit/085bc191e46d4d46efc3d4a7cd5fc1240c8474dd))
### [`v1.7.35`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1735---2024-10-10)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.28...v1.7.35)
##### Bug Fixes
- **(ci)** Fix target triples ([#9622](https://redirect.github.com/swc-project/swc/issues/9622)) ([f625035](https://redirect.github.com/swc-project/swc/commit/f625035f8a21eb6d2bc487669a534257f3ef7c7c))
- **(es/codegen)** Fix source map so it works with Sentry ([#9627](https://redirect.github.com/swc-project/swc/issues/9627)) ([9c90a73](https://redirect.github.com/swc-project/swc/commit/9c90a733691e9a15bc1c4182edabcefa8054e9d3))
- **(es/minifier)** Compress consecutive return statements properly ([#9620](https://redirect.github.com/swc-project/swc/issues/9620)) ([8263da1](https://redirect.github.com/swc-project/swc/commit/8263da17664cc7cb5d49e1a8e9fbca8037fe991f))
- **(es/module)** Allow TypeScript nodes for `Rewriter` ([#9606](https://redirect.github.com/swc-project/swc/issues/9606)) ([4ee45ac](https://redirect.github.com/swc-project/swc/commit/4ee45ac1fd10da1ea982a152a458deb9f5359998))
- **(es/testing)** Revert [#9264](https://redirect.github.com/swc-project/swc/issues/9264) ([#9621](https://redirect.github.com/swc-project/swc/issues/9621)) ([85f5e5b](https://redirect.github.com/swc-project/swc/commit/85f5e5b955f65ad6b21b9f4aee5b8dacd8a71e93))
- **(html/minifier)** Fix HTML minifier TS types ([#9615](https://redirect.github.com/swc-project/swc/issues/9615)) ([7b98bb5](https://redirect.github.com/swc-project/swc/commit/7b98bb5e93b132fa14af27b1eadbcf38f0bbcb62))
##### Features
- **(bindings/html)** Accept `Buffer|string` instead of `Buffer` ([#9625](https://redirect.github.com/swc-project/swc/issues/9625)) ([62edb36](https://redirect.github.com/swc-project/swc/commit/62edb3628b26036cdc767b31d59e109c3970497c))
- **(es/preset-env)** Update preset-env data ([#9573](https://redirect.github.com/swc-project/swc/issues/9573)) ([9a11d34](https://redirect.github.com/swc-project/swc/commit/9a11d34ee569f64e8db02fc90beacbba0f2de0cf))
- **(es/testing)** Parse test code as a `Program` instead of a `Module` ([#9264](https://redirect.github.com/swc-project/swc/issues/9264)) ([166b858](https://redirect.github.com/swc-project/swc/commit/166b8581c226b127f5d503cd21c22c0a3a8c675c))
- **(es/testing)** Parse test code as a `Program` instead of a `Module` ([#9623](https://redirect.github.com/swc-project/swc/issues/9623)) ([bfea322](https://redirect.github.com/swc-project/swc/commit/bfea3223515e378c3ebe669f4a9012919f4f9547))
##### Miscellaneous Tasks
- **(atoms)** Update `hstr` ([#9612](https://redirect.github.com/swc-project/swc/issues/9612)) ([e2e9a9c](https://redirect.github.com/swc-project/swc/commit/e2e9a9ccfce75e69546c54fc88a708b4e1dda13b))
##### Performance
- **(es)** Avoid needless string comparisons ([#9613](https://redirect.github.com/swc-project/swc/issues/9613)) ([ec0a62c](https://redirect.github.com/swc-project/swc/commit/ec0a62cbc5c9a20f02d1c558ff2708e7367922a9))
- **(es/codegen)** Reduce usage of `tracing::instrument` ([#9604](https://redirect.github.com/swc-project/swc/issues/9604)) ([2f06fc5](https://redirect.github.com/swc-project/swc/commit/2f06fc559c8e200ea89133b8b30045f970ffc20b))
- **(es/transforms)** Copy benchmarks from `oxc` ([#9602](https://redirect.github.com/swc-project/swc/issues/9602)) ([24c3a0c](https://redirect.github.com/swc-project/swc/commit/24c3a0ce138bacbf12b4660862ccfe9e3d19bdd9))
- **(es/typescript)** Reduce unnecessary visits ([#9605](https://redirect.github.com/swc-project/swc/issues/9605)) ([866af6c](https://redirect.github.com/swc-project/swc/commit/866af6c9478b92cd6be780c515ddd51d2db90ac3))
##### Refactor
- **(es/typescript)** Simplifying enum and namespace transforms ([#9558](https://redirect.github.com/swc-project/swc/issues/9558)) ([2480bb0](https://redirect.github.com/swc-project/swc/commit/2480bb00fc71d588af506eb18f33afa56622361f))
##### Build
- Update `rustc` to `nightly-2024-10-07` ([#9624](https://redirect.github.com/swc-project/swc/issues/9624)) ([6a3b0fc](https://redirect.github.com/swc-project/swc/commit/6a3b0fc1660cba4310880881f21e3bf81aceac0d))
### [`v1.7.28`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1728---2024-09-24)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.26...v1.7.28)
##### Bug Fixes
- **(ast)** Add `archive(check_bytes)` to all relevant AST types ([#9574](https://redirect.github.com/swc-project/swc/issues/9574)) ([185d6f5](https://redirect.github.com/swc-project/swc/commit/185d6f55b35f4f8323035c1199cddb9dd547f254))
- **(cli)** Exclude non-files from get_files_list ([#9560](https://redirect.github.com/swc-project/swc/issues/9560)) ([85cc2bd](https://redirect.github.com/swc-project/swc/commit/85cc2bd79c3193cb0a8b54e4fce0efc1aa15b271))
- **(es/codegen)** Fix wrong sourcemap when there are new lines in tpl ([#9578](https://redirect.github.com/swc-project/swc/issues/9578)) ([cf74382](https://redirect.github.com/swc-project/swc/commit/cf74382ba0429c0d4f04428889cf53a5231fad7f))
- **(es/compat)** Skip `getter` and `setter` as FlowHelper `function` do ([#9580](https://redirect.github.com/swc-project/swc/issues/9580)) ([14cfd70](https://redirect.github.com/swc-project/swc/commit/14cfd70ee00938497ce6b59f68332f9daa17378b))
- **(es/isolated-dts)** Preserve comments ([#9572](https://redirect.github.com/swc-project/swc/issues/9572)) ([6d15d9c](https://redirect.github.com/swc-project/swc/commit/6d15d9c2eb4397b15908cda38f2e44e02d81ebc1))
- **(es/minifier)** Avoid decl name when mangle with eval ([#9546](https://redirect.github.com/swc-project/swc/issues/9546)) ([e2242c4](https://redirect.github.com/swc-project/swc/commit/e2242c41c4d648a32119eb8141dd9990b2c8c468))
- **(es/minifier)** Check variable type while optimizing `+=` ([#9575](https://redirect.github.com/swc-project/swc/issues/9575)) ([04016e9](https://redirect.github.com/swc-project/swc/commit/04016e9687c5f02e764ffc9d7be2432d16da5dc0))
- **(es/module)** Rewrite import specifier in type declaration ([#9577](https://redirect.github.com/swc-project/swc/issues/9577)) ([fc0ba2a](https://redirect.github.com/swc-project/swc/commit/fc0ba2a08408b90f7d799cd5707dfa6827334085))
- **(plugin)** Don't panic when ast byte not match ([#9562](https://redirect.github.com/swc-project/swc/issues/9562)) ([c36871a](https://redirect.github.com/swc-project/swc/commit/c36871a84826cc125c3c10a78ee2d7a435373154))
##### Miscellaneous Tasks
- **(es)** Update `wasmer` to `v4.3.7` ([#9557](https://redirect.github.com/swc-project/swc/issues/9557)) ([190d6f0](https://redirect.github.com/swc-project/swc/commit/190d6f06d9545e4206bdb53c0f1ba2d443a5a7ab))
##### Testing
- **(es)** Add tests for arm64 windows ([#9547](https://redirect.github.com/swc-project/swc/issues/9547)) ([9dd8f6f](https://redirect.github.com/swc-project/swc/commit/9dd8f6facf29817902ddf55ec0388061585cbf7d))
### [`v1.7.26`](https://redirect.github.com/swc-project/swc/compare/v1.7.25...v1.7.26)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.25...v1.7.26)
### [`v1.7.25`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1725---2024-09-11)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.24...v1.7.25)
##### Bug Fixes
- **(es/codegen)** Handle minify number ([#9541](https://redirect.github.com/swc-project/swc/issues/9541)) ([8b1e442](https://redirect.github.com/swc-project/swc/commit/8b1e4428a3324dea76ba480a6d4cddf3865e41e8))
- **(es/codegen)** Ensure decorators are emitted first in TS paramters ([#9545](https://redirect.github.com/swc-project/swc/issues/9545)) ([47ef38d](https://redirect.github.com/swc-project/swc/commit/47ef38dc1d53918604481fd078c76554b012a82b))
##### Features
- **(es/common)** Introduce pure `Span` and `BytePos` to handle `#__PURE__` ([#9539](https://redirect.github.com/swc-project/swc/issues/9539)) ([f63a481](https://redirect.github.com/swc-project/swc/commit/f63a481833ebe9b5eae0708ee69b6a50b946ee28))
##### Miscellaneous Tasks
- **(bindings/node)** Fix type definition ([64ec111](https://redirect.github.com/swc-project/swc/commit/64ec1117697029895284e248d79698f802cf1aa8))
### [`v1.7.24`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1724---2024-09-08)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.23...v1.7.24)
##### Bug Fixes
- **(es/compat)** Handle label block in constructor ([#9528](https://redirect.github.com/swc-project/swc/issues/9528)) ([c43dbad](https://redirect.github.com/swc-project/swc/commit/c43dbad028072396390029af44e31bc3292a342a))
- **(es/decorator)** Add support for private access expressions in legacy decorators ([#9535](https://redirect.github.com/swc-project/swc/issues/9535)) ([62ed065](https://redirect.github.com/swc-project/swc/commit/62ed0655e6d9be2f4a5c641a969b41b8c0e7f75a))
- **(es/minifier)** `typeof` class should be `function` ([#9522](https://redirect.github.com/swc-project/swc/issues/9522)) ([c7fdd6b](https://redirect.github.com/swc-project/swc/commit/c7fdd6b69b129a11465125d4e11a898326b7e884))
- **(es/minifier)** Prevent removing side effects from accessing getter ([#9530](https://redirect.github.com/swc-project/swc/issues/9530)) ([8513816](https://redirect.github.com/swc-project/swc/commit/8513816139c6ceef12a906b03c1bcf9471ce0b07))
- **(es/typescript)** Handle enum in single statement ([#9532](https://redirect.github.com/swc-project/swc/issues/9532)) ([84b0043](https://redirect.github.com/swc-project/swc/commit/84b004387ba8f4135659e1d1f54e59bf1941a57a))
### [`v1.7.23`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1723---2024-09-02)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.22...v1.7.23)
##### Bug Fixes
- **(es/minifier)** Fix name mangler ([#9524](https://redirect.github.com/swc-project/swc/issues/9524)) ([5fd68f9](https://redirect.github.com/swc-project/swc/commit/5fd68f9a3a9eeef0e61627a821c52ace69a89696))
##### Performance
- **(es/compat)** Reimplement constructor transform ([#9519](https://redirect.github.com/swc-project/swc/issues/9519)) ([4b85a92](https://redirect.github.com/swc-project/swc/commit/4b85a92170576f194c2b1ad3b3ec624c4839e215))
- **(es/utils)** Rewrite inject_after_super ([#9496](https://redirect.github.com/swc-project/swc/issues/9496)) ([c562cfa](https://redirect.github.com/swc-project/swc/commit/c562cfa8af1163a4946ef79cb025d461c7e2e5e0))
### [`v1.7.22`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1722---2024-08-30)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.21...v1.7.22)
##### Bug Fixes
- **(es/minifier)** Iterate object properties in reverse direction while inlining property access ([#9507](https://redirect.github.com/swc-project/swc/issues/9507)) ([f584ef7](https://redirect.github.com/swc-project/swc/commit/f584ef76d75e86da15d0725ac94be35a88a1c946))
### [`v1.7.21`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1721---2024-08-28)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.19...v1.7.21)
##### Bug Fixes
- **(es/typescript)** Preserve more comments ([#9509](https://redirect.github.com/swc-project/swc/issues/9509)) ([3e253ec](https://redirect.github.com/swc-project/swc/commit/3e253ecc21f2028437572093b42df97ef5fe505e))
### [`v1.7.19`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1719---2024-08-28)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.18...v1.7.19)
##### Bug Fixes
- **(es/minifier)** Track if a var is used with `in` ([#9508](https://redirect.github.com/swc-project/swc/issues/9508)) ([7d6269e](https://redirect.github.com/swc-project/swc/commit/7d6269e3b826524e340edf274a5e42b2a0ea058a))
##### Features
- **(es/minifier)** Support mangle cache ([#9489](https://redirect.github.com/swc-project/swc/issues/9489)) ([af922d8](https://redirect.github.com/swc-project/swc/commit/af922d83e58596021476006564edb6270069d437))
- **(plugin/runner)** Improve error message ([#9502](https://redirect.github.com/swc-project/swc/issues/9502)) ([da52930](https://redirect.github.com/swc-project/swc/commit/da529304fe23bcb1a15c25811f928ebf91207ef0))
##### Miscellaneous Tasks
- **(es/codegen)** Bump minimum required swc_allocator version to 0.1.8 ([#9492](https://redirect.github.com/swc-project/swc/issues/9492)) ([5258763](https://redirect.github.com/swc-project/swc/commit/5258763cf673e1684808bc2766ba6ee9c84642f1))
##### Refactor
- **(es/utils)** Unify `prepend_stmts` ([#9493](https://redirect.github.com/swc-project/swc/issues/9493)) ([faec8c1](https://redirect.github.com/swc-project/swc/commit/faec8c134d950d10a9f2dce0e5680d9230f87ceb))
### [`v1.7.18`](https://redirect.github.com/swc-project/swc/compare/v1.7.14...v1.7.18)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.14...v1.7.18)
### [`v1.7.14`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1714---2024-08-19)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.12...v1.7.14)
##### Bug Fixes
- **(common)** Use `SourceMap::adjust_mappings` in correct order ([#9447](https://redirect.github.com/swc-project/swc/issues/9447)) ([05961eb](https://redirect.github.com/swc-project/swc/commit/05961eb018e2e76ed5ef95de9bad923b2fe1df88))
- **(es)** Preserve more comments ([#9449](https://redirect.github.com/swc-project/swc/issues/9449)) ([673655c](https://redirect.github.com/swc-project/swc/commit/673655c1697ff1d507f7acbfa937cbf1f58eb1d9))
##### Features
- **(es/decorators)** Groundwork for stage 3 decorator ([#9450](https://redirect.github.com/swc-project/swc/issues/9450)) ([238ba8b](https://redirect.github.com/swc-project/swc/commit/238ba8b1d2220202129595185bd4411b9415cc99))
##### Refactor
- **(visit)** Remove `VisitAll` ([#9448](https://redirect.github.com/swc-project/swc/issues/9448)) ([8845b76](https://redirect.github.com/swc-project/swc/commit/8845b76ac40b36791c79618c5ee89f05d2d08c96))
### [`v1.7.12`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1712---2024-08-19)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.11...v1.7.12)
##### Bug Fixes
- **(common)** Do not use `adjust_mappings` from `sourcemap` crate ([#9437](https://redirect.github.com/swc-project/swc/issues/9437)) ([563c162](https://redirect.github.com/swc-project/swc/commit/563c162f1ca8904e7b9a61a0c79fad952a56d624))
- **(es)** Mark TypeScript nodes as reachable from `Evaluator` ([#9440](https://redirect.github.com/swc-project/swc/issues/9440)) ([308e5ec](https://redirect.github.com/swc-project/swc/commit/308e5ec81b4e6d49c5940f2d8914d8627f838141))
- **(es/compat)** Init this in sub class constructor for async ([#9446](https://redirect.github.com/swc-project/swc/issues/9446)) ([bfaf31b](https://redirect.github.com/swc-project/swc/commit/bfaf31bc4b90ff803457bfdafdbcef0318b76189))
- **(es/decorators)** Fix metadata for accessors ([#9444](https://redirect.github.com/swc-project/swc/issues/9444)) ([99738ef](https://redirect.github.com/swc-project/swc/commit/99738ef41233211d6e26de520c3817d395492d37))
##### Miscellaneous Tasks
- **(deps)** Update rust crate arrayvec to v0.7.6 ([#9436](https://redirect.github.com/swc-project/swc/issues/9436)) ([08dd948](https://redirect.github.com/swc-project/swc/commit/08dd948289006583c6f0f76850c08808651f9135))
### [`v1.7.11`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1711---2024-08-14)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.10...v1.7.11)
##### Bug Fixes
- **(es)** Improve sourcemap url error messages. ([#9422](https://redirect.github.com/swc-project/swc/issues/9422)) ([230d1d9](https://redirect.github.com/swc-project/swc/commit/230d1d98b91bde2fa0de54e5fe06e899302e481c))
- **(visit)** Fix regression of AST paths ([#9420](https://redirect.github.com/swc-project/swc/issues/9420)) ([9751518](https://redirect.github.com/swc-project/swc/commit/9751518a0aa1cbe07e2ad4db7a32b0c6cc342641))
##### Features
- **(es/typescript)** Add ` native_class_properties ` to skip reordering of class properties inits ([#9421](https://redirect.github.com/swc-project/swc/issues/9421)) ([d2929d1](https://redirect.github.com/swc-project/swc/commit/d2929d1ce61a00360cc0596441041571a958da23))
- **(estree/compat)** Remove dependency on `rayon` ([#9393](https://redirect.github.com/swc-project/swc/issues/9393)) ([34d1b27](https://redirect.github.com/swc-project/swc/commit/34d1b27251dab3f87dc3a39d245a3498b4c2b151))
- **(html/minifier)** Support using custom css minifier ([#9425](https://redirect.github.com/swc-project/swc/issues/9425)) ([970cc81](https://redirect.github.com/swc-project/swc/commit/970cc81033b4a616643be6625bdf8da99614ba98))
##### Miscellaneous Tasks
- **(bindings/node)** Deprecate `parse` ([#9419](https://redirect.github.com/swc-project/swc/issues/9419)) ([1bf467d](https://redirect.github.com/swc-project/swc/commit/1bf467d99fb72ebff42136e08d7f03d50872f64e))
- **(deps)** Update cargo (patch) ([#9405](https://redirect.github.com/swc-project/swc/issues/9405)) ([baf4928](https://redirect.github.com/swc-project/swc/commit/baf4928ce2964e659af5ca77cd899427a8c29f60))
- **(es/preset-env)** Update core js compat data ([#9407](https://redirect.github.com/swc-project/swc/issues/9407)) ([ce761cf](https://redirect.github.com/swc-project/swc/commit/ce761cf51571f70c9378b6b67759bac3af4f4f92))
- **(es/typescript)** Remove the workaround for wasm-bindgen ([#9428](https://redirect.github.com/swc-project/swc/issues/9428)) ([55f7268](https://redirect.github.com/swc-project/swc/commit/55f72687f69eae131c6ce08d6a449afaa7357667))
### [`v1.7.10`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1710---2024-08-09)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.9...v1.7.10)
##### Bug Fixes
- **(es/typescript)** Strip optional mark and definite mark ([#9411](https://redirect.github.com/swc-project/swc/issues/9411)) ([8c161a0](https://redirect.github.com/swc-project/swc/commit/8c161a003e741320434f31617bc2de98dd2c9a8f))
- **(es/typescript)** Strip exported default overload function declaration ([#9412](https://redirect.github.com/swc-project/swc/issues/9412)) ([b395f48](https://redirect.github.com/swc-project/swc/commit/b395f483d1e0cb43b1f96126c5c17f9a8c9d0d32))
- **(es/typescript)** Strip `this` param in getter/setter ([#9414](https://redirect.github.com/swc-project/swc/issues/9414)) ([442fb7b](https://redirect.github.com/swc-project/swc/commit/442fb7b48715597d62f8d09327f93acc66f2d1b8))
- **(es/typescript)** Update ts-strip type definition ([#9415](https://redirect.github.com/swc-project/swc/issues/9415)) ([165c8fa](https://redirect.github.com/swc-project/swc/commit/165c8facd42d756077fde99defe91ffe656aede8))
### [`v1.7.9`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#179---2024-08-09)
[Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.6...v1.7.9)
##### Bug Fixes
-
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
~1.4.2
->~1.10.0
~0.1.62
->~0.5.0
~1.3.51
->~1.7.0
0.5.1
->0.5.13
Release Notes
swc-project/swc-node (@swc-node/register)
### [`v1.10.9`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.10.9) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.8...@swc-node/register@1.10.9) #### What's Changed - fix(register): skip load files in node_modules by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/828](https://redirect.github.com/swc-project/swc-node/pull/828) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).10.8...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).10.9 ### [`v1.10.8`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.10.8) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.7...@swc-node/register@1.10.8) #### What's Changed - fix(register): default register/esm TSCONFIG_PATH on windows. by [@simonbuchan](https://redirect.github.com/simonbuchan) in [https://github.com/swc-project/swc-node/pull/818](https://redirect.github.com/swc-project/swc-node/pull/818) - chore(deps): update dependency oxlint to ^0.6.0 by [@renovate](https://redirect.github.com/renovate) in [https://github.com/swc-project/swc-node/pull/822](https://redirect.github.com/swc-project/swc-node/pull/822) - fix(register): bump oxc-resolver by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/824](https://redirect.github.com/swc-project/swc-node/pull/824) - chore(deps): update dependency lerna to v8.1.6 by [@renovate](https://redirect.github.com/renovate) in [https://github.com/swc-project/swc-node/pull/821](https://redirect.github.com/swc-project/swc-node/pull/821) - fix(register): remove file extension tests in compile by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/825](https://redirect.github.com/swc-project/swc-node/pull/825) #### New Contributors - [@simonbuchan](https://redirect.github.com/simonbuchan) made their first contribution in [https://github.com/swc-project/swc-node/pull/818](https://redirect.github.com/swc-project/swc-node/pull/818) - [@renovate](https://redirect.github.com/renovate) made their first contribution in [https://github.com/swc-project/swc-node/pull/822](https://redirect.github.com/swc-project/swc-node/pull/822) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).10.7...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).10.8 ### [`v1.10.7`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.6...@swc-node/register@1.10.7) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.6...@swc-node/register@1.10.7) ### [`v1.10.6`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.5...@swc-node/register@1.10.6) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.5...@swc-node/register@1.10.6) ### [`v1.10.5`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.4...@swc-node/register@1.10.5) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.4...@swc-node/register@1.10.5) ### [`v1.10.4`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.3...@swc-node/register@1.10.4) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.3...@swc-node/register@1.10.4) ### [`v1.10.3`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.10.3) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.2...@swc-node/register@1.10.3) #### What's Changed - fix(register): support moduleResolution Bundler by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/806](https://redirect.github.com/swc-project/swc-node/pull/806) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).10.2...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).10.3 ### [`v1.10.2`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.1...41a6d1cb78c6cff93d21e438d81786eef377f0ad) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.1...@swc-node/register@1.10.2) ### [`v1.10.1`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.0...@swc-node/register@1.10.1) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.10.0...@swc-node/register@1.10.1) ### [`v1.10.0`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.9.2...9644be5577f77aa53f974636fac4bc38f77148ce) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.9.2...@swc-node/register@1.10.0) ### [`v1.9.2`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.9.1...@swc-node/register@1.9.2) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.9.1...@swc-node/register@1.9.2) ### [`v1.9.1`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.9.1) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.9.0...@swc-node/register@1.9.1) #### What's Changed - fix: esm module resolve issues by [@yeliex](https://redirect.github.com/yeliex) in [https://github.com/swc-project/swc-node/pull/754](https://redirect.github.com/swc-project/swc-node/pull/754) - fix: add default tsconfig.baseUrl to align with tsc behavior by [@yeliex](https://redirect.github.com/yeliex) in [https://github.com/swc-project/swc-node/pull/759](https://redirect.github.com/swc-project/swc-node/pull/759) - fix(register): fix esm entry resolver for third-party executer, close [#762](https://redirect.github.com/swc-project/swc-node/issues/762) by [@yeliex](https://redirect.github.com/yeliex) in [https://github.com/swc-project/swc-node/pull/766](https://redirect.github.com/swc-project/swc-node/pull/766) - fix: support compile js files. close [#761](https://redirect.github.com/swc-project/swc-node/issues/761) by [@yeliex](https://redirect.github.com/yeliex) in [https://github.com/swc-project/swc-node/pull/767](https://redirect.github.com/swc-project/swc-node/pull/767) - chore: upgrade dependencies by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/771](https://redirect.github.com/swc-project/swc-node/pull/771) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).8.0...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).9.1 ### [`v1.9.0`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.8.0...@swc-node/register@1.9.0) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.8.0...@swc-node/register@1.9.0) ### [`v1.8.0`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.8.0) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.8...@swc-node/register@1.8.0) #### What's Changed - fix(core): remove `jsc.module.noInterop` when it's not supported by [@kdy1](https://redirect.github.com/kdy1) in [https://github.com/swc-project/swc-node/pull/733](https://redirect.github.com/swc-project/swc-node/pull/733) - chore: fix README for install, build, and test by [@devjiwonchoi](https://redirect.github.com/devjiwonchoi) in [https://github.com/swc-project/swc-node/pull/728](https://redirect.github.com/swc-project/swc-node/pull/728) - feat(register): @swc-node/register/esm use TypeScript resolver by [@cm-ayf](https://redirect.github.com/cm-ayf) in [https://github.com/swc-project/swc-node/pull/727](https://redirect.github.com/swc-project/swc-node/pull/727) - chore(deps-dev): bump [@babel/traverse](https://redirect.github.com/babel/traverse) from 7.22.10 to 7.23.2 by [@dependabot](https://redirect.github.com/dependabot) in [https://github.com/swc-project/swc-node/pull/735](https://redirect.github.com/swc-project/swc-node/pull/735) - Fix [#716](https://redirect.github.com/swc-project/swc-node/issues/716) by [@eliellis](https://redirect.github.com/eliellis) in [https://github.com/swc-project/swc-node/pull/725](https://redirect.github.com/swc-project/swc-node/pull/725) - chore(deps-dev): bump axios from 1.3.5 to 1.6.1 by [@dependabot](https://redirect.github.com/dependabot) in [https://github.com/swc-project/swc-node/pull/738](https://redirect.github.com/swc-project/swc-node/pull/738) - fix(core): respect useDefineForClassFields tsconfig value by [@dsyddall](https://redirect.github.com/dsyddall) in [https://github.com/swc-project/swc-node/pull/740](https://redirect.github.com/swc-project/swc-node/pull/740) - fix(core): respect sourceMaps swcrc value by [@dsyddall](https://redirect.github.com/dsyddall) in [https://github.com/swc-project/swc-node/pull/742](https://redirect.github.com/swc-project/swc-node/pull/742) - feat: add esm-register for node>20.6 by [@yeliex](https://redirect.github.com/yeliex) in [https://github.com/swc-project/swc-node/pull/748](https://redirect.github.com/swc-project/swc-node/pull/748) - chore(deps-dev): bump follow-redirects from 1.15.2 to 1.15.4 by [@dependabot](https://redirect.github.com/dependabot) in [https://github.com/swc-project/swc-node/pull/747](https://redirect.github.com/swc-project/swc-node/pull/747) - feat(core): support swc's `ignoreDynamic` option by [@SukkaW](https://redirect.github.com/SukkaW) in [https://github.com/swc-project/swc-node/pull/745](https://redirect.github.com/swc-project/swc-node/pull/745) - fix: fix import ts from node_modules by [@yeliex](https://redirect.github.com/yeliex) in [https://github.com/swc-project/swc-node/pull/744](https://redirect.github.com/swc-project/swc-node/pull/744) - Mention --enable-source-maps in README.md for esm projects. by [@Xinkai](https://redirect.github.com/Xinkai) in [https://github.com/swc-project/swc-node/pull/737](https://redirect.github.com/swc-project/swc-node/pull/737) - feat: upgrade dependencies by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/751](https://redirect.github.com/swc-project/swc-node/pull/751) #### New Contributors - [@devjiwonchoi](https://redirect.github.com/devjiwonchoi) made their first contribution in [https://github.com/swc-project/swc-node/pull/728](https://redirect.github.com/swc-project/swc-node/pull/728) - [@cm-ayf](https://redirect.github.com/cm-ayf) made their first contribution in [https://github.com/swc-project/swc-node/pull/727](https://redirect.github.com/swc-project/swc-node/pull/727) - [@eliellis](https://redirect.github.com/eliellis) made their first contribution in [https://github.com/swc-project/swc-node/pull/725](https://redirect.github.com/swc-project/swc-node/pull/725) - [@dsyddall](https://redirect.github.com/dsyddall) made their first contribution in [https://github.com/swc-project/swc-node/pull/740](https://redirect.github.com/swc-project/swc-node/pull/740) - [@SukkaW](https://redirect.github.com/SukkaW) made their first contribution in [https://github.com/swc-project/swc-node/pull/745](https://redirect.github.com/swc-project/swc-node/pull/745) - [@Xinkai](https://redirect.github.com/Xinkai) made their first contribution in [https://github.com/swc-project/swc-node/pull/737](https://redirect.github.com/swc-project/swc-node/pull/737) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/core](https://redirect.github.com/swc-node/core)[@1](https://redirect.github.com/1).10.5...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).8.0 ### [`v1.6.8`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.8) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.7...@swc-node/register@1.6.8) #### What's Changed - fix(core): remove `jsc.module.noInterop` when it's not supported by [@kdy1](https://redirect.github.com/kdy1) in [https://github.com/swc-project/swc-node/pull/733](https://redirect.github.com/swc-project/swc-node/pull/733) - chore: fix README for install, build, and test by [@devjiwonchoi](https://redirect.github.com/devjiwonchoi) in [https://github.com/swc-project/swc-node/pull/728](https://redirect.github.com/swc-project/swc-node/pull/728) - feat(register): @swc-node/register/esm use TypeScript resolver by [@cm-ayf](https://redirect.github.com/cm-ayf) in [https://github.com/swc-project/swc-node/pull/727](https://redirect.github.com/swc-project/swc-node/pull/727) #### New Contributors - [@devjiwonchoi](https://redirect.github.com/devjiwonchoi) made their first contribution in [https://github.com/swc-project/swc-node/pull/728](https://redirect.github.com/swc-project/swc-node/pull/728) - [@cm-ayf](https://redirect.github.com/cm-ayf) made their first contribution in [https://github.com/swc-project/swc-node/pull/727](https://redirect.github.com/swc-project/swc-node/pull/727) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/core](https://redirect.github.com/swc-node/core)[@1](https://redirect.github.com/1).10.5...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).6.8 ### [`v1.6.7`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.6...@swc-node/register@1.6.7) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.6...@swc-node/register@1.6.7) ### [`v1.6.6`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.5...@swc-node/register@1.6.6) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.5...@swc-node/register@1.6.6) ### [`v1.6.5`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.5) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.4...@swc-node/register@1.6.5) #### What's Changed - Ts Compiler to Swc Config: respects decorators config and SWCRC=true by [@otaviosoares](https://redirect.github.com/otaviosoares) in [https://github.com/swc-project/swc-node/pull/702](https://redirect.github.com/swc-project/swc-node/pull/702) - docs: register node api usage by [@JiangWeixian](https://redirect.github.com/JiangWeixian) in [https://github.com/swc-project/swc-node/pull/706](https://redirect.github.com/swc-project/swc-node/pull/706) - Make sourcemaps work with both error stack & debugger by [@ranjan-purbey](https://redirect.github.com/ranjan-purbey) in [https://github.com/swc-project/swc-node/pull/707](https://redirect.github.com/swc-project/swc-node/pull/707) - url now returns the href of a url object by [@JipSterk](https://redirect.github.com/JipSterk) in [https://github.com/swc-project/swc-node/pull/698](https://redirect.github.com/swc-project/swc-node/pull/698) - chore: upgrade dependencies by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/709](https://redirect.github.com/swc-project/swc-node/pull/709) - fix(register): inline sourcemap by [@robbiespeed](https://redirect.github.com/robbiespeed) in [https://github.com/swc-project/swc-node/pull/708](https://redirect.github.com/swc-project/swc-node/pull/708) - fix(register): Fix to resolve adjacent file path by [@chloe463](https://redirect.github.com/chloe463) in [https://github.com/swc-project/swc-node/pull/711](https://redirect.github.com/swc-project/swc-node/pull/711) #### New Contributors - [@otaviosoares](https://redirect.github.com/otaviosoares) made their first contribution in [https://github.com/swc-project/swc-node/pull/702](https://redirect.github.com/swc-project/swc-node/pull/702) - [@JiangWeixian](https://redirect.github.com/JiangWeixian) made their first contribution in [https://github.com/swc-project/swc-node/pull/706](https://redirect.github.com/swc-project/swc-node/pull/706) - [@ranjan-purbey](https://redirect.github.com/ranjan-purbey) made their first contribution in [https://github.com/swc-project/swc-node/pull/707](https://redirect.github.com/swc-project/swc-node/pull/707) - [@JipSterk](https://redirect.github.com/JipSterk) made their first contribution in [https://github.com/swc-project/swc-node/pull/698](https://redirect.github.com/swc-project/swc-node/pull/698) - [@robbiespeed](https://redirect.github.com/robbiespeed) made their first contribution in [https://github.com/swc-project/swc-node/pull/708](https://redirect.github.com/swc-project/swc-node/pull/708) - [@chloe463](https://redirect.github.com/chloe463) made their first contribution in [https://github.com/swc-project/swc-node/pull/711](https://redirect.github.com/swc-project/swc-node/pull/711) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/core](https://redirect.github.com/swc-node/core)[@1](https://redirect.github.com/1).10.1...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).6.5 ### [`v1.6.4`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.4) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.3...@swc-node/register@1.6.4) #### What's Changed - Ts Compiler to Swc Config: respects decorators config and SWCRC=true by [@otaviosoares](https://redirect.github.com/otaviosoares) in [https://github.com/swc-project/swc-node/pull/702](https://redirect.github.com/swc-project/swc-node/pull/702) - docs: register node api usage by [@JiangWeixian](https://redirect.github.com/JiangWeixian) in [https://github.com/swc-project/swc-node/pull/706](https://redirect.github.com/swc-project/swc-node/pull/706) - Make sourcemaps work with both error stack & debugger by [@ranjan-purbey](https://redirect.github.com/ranjan-purbey) in [https://github.com/swc-project/swc-node/pull/707](https://redirect.github.com/swc-project/swc-node/pull/707) - url now returns the href of a url object by [@JipSterk](https://redirect.github.com/JipSterk) in [https://github.com/swc-project/swc-node/pull/698](https://redirect.github.com/swc-project/swc-node/pull/698) - chore: upgrade dependencies by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/709](https://redirect.github.com/swc-project/swc-node/pull/709) #### New Contributors - [@otaviosoares](https://redirect.github.com/otaviosoares) made their first contribution in [https://github.com/swc-project/swc-node/pull/702](https://redirect.github.com/swc-project/swc-node/pull/702) - [@JiangWeixian](https://redirect.github.com/JiangWeixian) made their first contribution in [https://github.com/swc-project/swc-node/pull/706](https://redirect.github.com/swc-project/swc-node/pull/706) - [@ranjan-purbey](https://redirect.github.com/ranjan-purbey) made their first contribution in [https://github.com/swc-project/swc-node/pull/707](https://redirect.github.com/swc-project/swc-node/pull/707) - [@JipSterk](https://redirect.github.com/JipSterk) made their first contribution in [https://github.com/swc-project/swc-node/pull/698](https://redirect.github.com/swc-project/swc-node/pull/698) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/core](https://redirect.github.com/swc-node/core)[@1](https://redirect.github.com/1).10.1...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).6.4 ### [`v1.6.3`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.3) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.2...@swc-node/register@1.6.3) #### What's Changed - Ts Compiler to Swc Config: respects decorators config and SWCRC=true by [@otaviosoares](https://redirect.github.com/otaviosoares) in [https://github.com/swc-project/swc-node/pull/702](https://redirect.github.com/swc-project/swc-node/pull/702) - docs: register node api usage by [@JiangWeixian](https://redirect.github.com/JiangWeixian) in [https://github.com/swc-project/swc-node/pull/706](https://redirect.github.com/swc-project/swc-node/pull/706) #### New Contributors - [@otaviosoares](https://redirect.github.com/otaviosoares) made their first contribution in [https://github.com/swc-project/swc-node/pull/702](https://redirect.github.com/swc-project/swc-node/pull/702) - [@JiangWeixian](https://redirect.github.com/JiangWeixian) made their first contribution in [https://github.com/swc-project/swc-node/pull/706](https://redirect.github.com/swc-project/swc-node/pull/706) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/core](https://redirect.github.com/swc-node/core)[@1](https://redirect.github.com/1).10.1...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).6.3 ### [`v1.6.2`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.2) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.1...@swc-node/register@1.6.2) ##### Bug Fixes - **register:** enforece module option in register/esm ([#694](https://redirect.github.com/swc-project/swc-node/issues/694)) ([860d1f6](https://redirect.github.com/swc-project/swc-node/commit/860d1f6f5f7ece197e92a822470a093ae7a7a68a)) ### [`v1.6.1`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.1) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.6.0...@swc-node/register@1.6.1) ##### Bug Fixes - **register:** include esm files ([8d6b0b7](https://redirect.github.com/swc-project/swc-node/commit/8d6b0b77d5ec725ff75989455f8163d88c306878)) ### [`v1.6.0`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.0) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.8...@swc-node/register@1.6.0) #### Experimental `esm` support `node --loader=@swc-node/register/esm ./src/index.ts` in this project `src/index.ts` ```ts import assert from 'node:assert' import test from 'node:test' import { supportedExtensions } from 'file-type' // pure esm project await test('file-type should work', () => { assert.ok(supportedExtensions.has('jpg')) }) ``` `tsconfig.json` ```json { "compilerOptions": { "target": "ESNext", "module": "ESNext", } } ``` `package.json` ```json { "type": "module" } ``` **output** ```text > node --loader=@swc-node/register/esm ./src/index.ts (node:77682) ExperimentalWarning: Custom ESM Loaders is an experimental feature. This feature could change at any time (Use `node --trace-warnings ...` to show where the warning was created) (node:77682) ExperimentalWarning: The test runner is an experimental feature. This feature could change at any time TAP version 13 ### Subtest: file-type should work ok 1 - file-type should work --- duration_ms: 0.642416 ... 1..1 ### tests 1 ### pass 1 ### fail 0 ### cancelled 0 ### skipped 0 ### todo 0 ### duration_ms 5.702292 ``` #### What's Changed - Experimental esm loader by [@Brooooooklyn](https://redirect.github.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/643](https://redirect.github.com/swc-project/swc-node/pull/643) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/jest](https://redirect.github.com/swc-node/jest)[@1](https://redirect.github.com/1).5.9...[@swc-node/register](https://redirect.github.com/swc-node/register)[@1](https://redirect.github.com/1).6.0 ### [`v1.5.8`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.8) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.6...@swc-node/register@1.5.8) ##### Bug Fixes - **register:** paths option ([c51be25](https://redirect.github.com/swc-project/swc-node/commit/c51be25d28da06d29620caee2505bff609cba445)) ### [`v1.5.6`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.6) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.5...@swc-node/register@1.5.6) ##### Bug Fixes - **register:** always inline swc helpers ([1d557ec](https://redirect.github.com/swc-project/swc-node/commit/1d557ece0d9ccbba027ff9f2d262c03d4b918bcb)) - **register:** react configuration ([af643b8](https://redirect.github.com/swc-project/swc-node/commit/af643b849c32abb58bd1c0fdf98eeeac08548e25)) ### [`v1.5.5`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.5) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.4...@swc-node/register@1.5.5) **Note:** Version bump only for package [@swc-node/register](https://redirect.github.com/swc-node/register) ### [`v1.5.4`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.4) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.3...@swc-node/register@1.5.4) ##### Bug Fixes - **register:** [@swc/core](https://redirect.github.com/swc/core) should be in peerDependencies ([cb05cae](https://redirect.github.com/swc-project/swc-node/commit/cb05cae69dd92d13593c210f8c0044b6aff8ff1c)) ### [`v1.5.3`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.2...@swc-node/register@1.5.3) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.2...@swc-node/register@1.5.3) ### [`v1.5.2`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.2) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.1...@swc-node/register@1.5.2) ##### Bug Fixes - **register:** support paths alias with baseUrl ([2a6848a](https://redirect.github.com/swc-project/swc-node/commit/2a6848a00b8931f41b62f6b5a519bdbc548bfec3)) [https://github.com/swc-project/swc-node/pull/666](https://redirect.github.com/swc-project/swc-node/pull/666) [@terceser](https://redirect.github.com/terceser) #### New Contributors - [@terceser](https://redirect.github.com/terceser) made their first contribution in [https://github.com/swc-project/swc-node/pull/666](https://redirect.github.com/swc-project/swc-node/pull/666) ### [`v1.5.1`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.1) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.5.0...@swc-node/register@1.5.1) ##### Bug Fixes - **register:** move typescript to devDependencies ([c0011ca](https://redirect.github.com/swc-project/swc-node/commit/c0011ca0eb535f7eacf184ec116c775121c64905)) ### [`v1.5.0`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.0) [Compare Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/register@1.4.2...@swc-node/register@1.5.0) ##### Features - **jest:** read tsconfig for default jest transform options ([8c180e6](https://redirect.github.com/swc-project/swc-node/commit/8c180e68abbc66aa68f83b401d985a6c8617baa9)) - **register:** always resolve full file path for tsconfig and add paths if available ([#646](https://redirect.github.com/swc-project/swc-node/issues/646)) ([3062413](https://redirect.github.com/swc-project/swc-node/commit/3062413e464a5b5706c5ac4912f43ef7451fe73b)) - **register:** return addHook result to it can be reverted ([222e205](https://redirect.github.com/swc-project/swc-node/commit/222e2056351e3a2ba2a4764537c9410b0112051e)), closes [/github.com/facebook/jest/blob/199f9811ae68b15879cbe18b7ef7ebd61eefcf23/packages/jest-config/src/readConfigFileAndSetRootDir.ts#L83-101](https://redirect.github.com//github.com/facebook/jest/blob/199f9811ae68b15879cbe18b7ef7ebd61eefcf23/packages/jest-config/src/readConfigFileAndSetRootDir.ts/issues/L83-101) - **register:** support hook options ([4c6dad7](https://redirect.github.com/swc-project/swc-node/commit/4c6dad7bfbf4563c44bd25476a6ab5d78cff55dc))swc-project/swc (@swc/core)
### [`v1.7.40`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1740---2024-10-26) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.39...v1.7.40) ##### Bug Fixes - **(bindings)** Update napi to handle string with `\0` ([#9665](https://redirect.github.com/swc-project/swc/issues/9665)) ([8f45eaf](https://redirect.github.com/swc-project/swc/commit/8f45eaf837d023847c478e562265e141213ce231)) - **(bindings/node)** Add `VisitTsPropertySignature` ([#9670](https://redirect.github.com/swc-project/swc/issues/9670)) ([715c42c](https://redirect.github.com/swc-project/swc/commit/715c42c0bfe699d822a7e9ea18751d35aac3235d)) - **(es/codegen)** Improve EndsWithAlphaNum ([#9675](https://redirect.github.com/swc-project/swc/issues/9675)) ([ba2a942](https://redirect.github.com/swc-project/swc/commit/ba2a942f56776e6927b48cfd185d8720052b7409)) - **(es/renamer)** Check `preserved` in normal renaming mode ([#9666](https://redirect.github.com/swc-project/swc/issues/9666)) ([87b4e10](https://redirect.github.com/swc-project/swc/commit/87b4e10e5dbeb236ee5232d85d3176472fa4a9d0)) - **(typescript)** Check whether the method is abstract when checking `is_overload` ([#9678](https://redirect.github.com/swc-project/swc/issues/9678)) ([78500af](https://redirect.github.com/swc-project/swc/commit/78500af546ea3c92f016c729e173c66fccbe46ed)) ##### Documentation - **(contributing)** Document changeset ([#9667](https://redirect.github.com/swc-project/swc/issues/9667)) ([602c667](https://redirect.github.com/swc-project/swc/commit/602c667b9d435fa9155345952379287cb11e59db)) ##### Miscellaneous Tasks - **(deps)** Update dependency swc-plugin-coverage-instrument to ^0.0.25 ([#9676](https://redirect.github.com/swc-project/swc/issues/9676)) ([b8d255b](https://redirect.github.com/swc-project/swc/commit/b8d255bf5aa65a5589331b0924269a23b3052137)) ### [`v1.7.39`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1739---2024-10-22) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.36...v1.7.39) ##### Bug Fixes - **(es/compat)** Add missing visit children for `destructuring` ([#9658](https://redirect.github.com/swc-project/swc/issues/9658)) ([32116a0](https://redirect.github.com/swc-project/swc/commit/32116a0940a5806d8ad291b5fd6d056709a396bc)) - **(es/parser)** Correct `>` and `<` when exit type context ([#9653](https://redirect.github.com/swc-project/swc/issues/9653)) ([abffc07](https://redirect.github.com/swc-project/swc/commit/abffc073561b3ba3906aa0923ef3880e5e30d538)) - **(es/proposal)** Use `tsc` version of explicit resource management ([#9585](https://redirect.github.com/swc-project/swc/issues/9585)) ([f735108](https://redirect.github.com/swc-project/swc/commit/f7351080174c61bad5950be9b30c75c4f17ebe3e)) - **(wasm-typescript)** Fix option types of functions ([#9662](https://redirect.github.com/swc-project/swc/issues/9662)) ([4cbe33c](https://redirect.github.com/swc-project/swc/commit/4cbe33c32f244e9c568d388f19c0f297bf3d74f1)) ##### Features - **(es/minifier)** Implement optional catch binding ([#9657](https://redirect.github.com/swc-project/swc/issues/9657)) ([f70b842](https://redirect.github.com/swc-project/swc/commit/f70b842c5579c945fcd6357edb712507228f5eb5)) ##### Miscellaneous Tasks - **(es/typescript)** Improve enum comments and sourcemap ([#9652](https://redirect.github.com/swc-project/swc/issues/9652)) ([31fe3b6](https://redirect.github.com/swc-project/swc/commit/31fe3b6be151cbf63fe1ff06f922f814da105d08)) ### [`v1.7.36`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1736---2024-10-15) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.35...v1.7.36) ##### Bug Fixes - **(es)** Run esnext transforms on esnext target ([#9644](https://redirect.github.com/swc-project/swc/issues/9644)) ([8a19201](https://redirect.github.com/swc-project/swc/commit/8a192018247ad7ac253c2964038de5f626acb8c4)) - **(es/codegen)** Emit space after div if rhs has leading comment ([#9631](https://redirect.github.com/swc-project/swc/issues/9631)) ([f2be26e](https://redirect.github.com/swc-project/swc/commit/f2be26efe090f5c1575f5bb9e4067f7ae531f11c)) - **(es/lints)** Correct the false positive error of TS2309 ([#9635](https://redirect.github.com/swc-project/swc/issues/9635)) ([f74c1f3](https://redirect.github.com/swc-project/swc/commit/f74c1f3e5a117c22aa87a2754715066cb8dfe0fe)) - **(es/minifier)** Only merge last if return ([#9633](https://redirect.github.com/swc-project/swc/issues/9633)) ([6f52949](https://redirect.github.com/swc-project/swc/commit/6f52949210ee2a71ed119cbcdf2db1842a2e63cb)) - **(es/minifier)** Check type of assignment target before merging assignments ([#9617](https://redirect.github.com/swc-project/swc/issues/9617)) ([4436621](https://redirect.github.com/swc-project/swc/commit/44366215644f3fff2f897e509a56b36cb5e1f8a2)) ##### Features - **(es)** Introduce `runPluginFirst` for Wasm plugins ([#9645](https://redirect.github.com/swc-project/swc/issues/9645)) ([3d3e434](https://redirect.github.com/swc-project/swc/commit/3d3e4340b33e124f551ee88b68bfaddb537a3c6a)) - **(es/minifier)** Support unary negate in `cast_to_number` ([#9642](https://redirect.github.com/swc-project/swc/issues/9642)) ([88a2186](https://redirect.github.com/swc-project/swc/commit/88a2186ba419c98c73b997ca9ea90d7a8fd128e4)) ##### Miscellaneous Tasks - **(deps)** Update dependency magic-string to v0.30.12 ([#9634](https://redirect.github.com/swc-project/swc/issues/9634)) ([085bc19](https://redirect.github.com/swc-project/swc/commit/085bc191e46d4d46efc3d4a7cd5fc1240c8474dd)) ### [`v1.7.35`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1735---2024-10-10) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.28...v1.7.35) ##### Bug Fixes - **(ci)** Fix target triples ([#9622](https://redirect.github.com/swc-project/swc/issues/9622)) ([f625035](https://redirect.github.com/swc-project/swc/commit/f625035f8a21eb6d2bc487669a534257f3ef7c7c)) - **(es/codegen)** Fix source map so it works with Sentry ([#9627](https://redirect.github.com/swc-project/swc/issues/9627)) ([9c90a73](https://redirect.github.com/swc-project/swc/commit/9c90a733691e9a15bc1c4182edabcefa8054e9d3)) - **(es/minifier)** Compress consecutive return statements properly ([#9620](https://redirect.github.com/swc-project/swc/issues/9620)) ([8263da1](https://redirect.github.com/swc-project/swc/commit/8263da17664cc7cb5d49e1a8e9fbca8037fe991f)) - **(es/module)** Allow TypeScript nodes for `Rewriter` ([#9606](https://redirect.github.com/swc-project/swc/issues/9606)) ([4ee45ac](https://redirect.github.com/swc-project/swc/commit/4ee45ac1fd10da1ea982a152a458deb9f5359998)) - **(es/testing)** Revert [#9264](https://redirect.github.com/swc-project/swc/issues/9264) ([#9621](https://redirect.github.com/swc-project/swc/issues/9621)) ([85f5e5b](https://redirect.github.com/swc-project/swc/commit/85f5e5b955f65ad6b21b9f4aee5b8dacd8a71e93)) - **(html/minifier)** Fix HTML minifier TS types ([#9615](https://redirect.github.com/swc-project/swc/issues/9615)) ([7b98bb5](https://redirect.github.com/swc-project/swc/commit/7b98bb5e93b132fa14af27b1eadbcf38f0bbcb62)) ##### Features - **(bindings/html)** Accept `Buffer|string` instead of `Buffer` ([#9625](https://redirect.github.com/swc-project/swc/issues/9625)) ([62edb36](https://redirect.github.com/swc-project/swc/commit/62edb3628b26036cdc767b31d59e109c3970497c)) - **(es/preset-env)** Update preset-env data ([#9573](https://redirect.github.com/swc-project/swc/issues/9573)) ([9a11d34](https://redirect.github.com/swc-project/swc/commit/9a11d34ee569f64e8db02fc90beacbba0f2de0cf)) - **(es/testing)** Parse test code as a `Program` instead of a `Module` ([#9264](https://redirect.github.com/swc-project/swc/issues/9264)) ([166b858](https://redirect.github.com/swc-project/swc/commit/166b8581c226b127f5d503cd21c22c0a3a8c675c)) - **(es/testing)** Parse test code as a `Program` instead of a `Module` ([#9623](https://redirect.github.com/swc-project/swc/issues/9623)) ([bfea322](https://redirect.github.com/swc-project/swc/commit/bfea3223515e378c3ebe669f4a9012919f4f9547)) ##### Miscellaneous Tasks - **(atoms)** Update `hstr` ([#9612](https://redirect.github.com/swc-project/swc/issues/9612)) ([e2e9a9c](https://redirect.github.com/swc-project/swc/commit/e2e9a9ccfce75e69546c54fc88a708b4e1dda13b)) ##### Performance - **(es)** Avoid needless string comparisons ([#9613](https://redirect.github.com/swc-project/swc/issues/9613)) ([ec0a62c](https://redirect.github.com/swc-project/swc/commit/ec0a62cbc5c9a20f02d1c558ff2708e7367922a9)) - **(es/codegen)** Reduce usage of `tracing::instrument` ([#9604](https://redirect.github.com/swc-project/swc/issues/9604)) ([2f06fc5](https://redirect.github.com/swc-project/swc/commit/2f06fc559c8e200ea89133b8b30045f970ffc20b)) - **(es/transforms)** Copy benchmarks from `oxc` ([#9602](https://redirect.github.com/swc-project/swc/issues/9602)) ([24c3a0c](https://redirect.github.com/swc-project/swc/commit/24c3a0ce138bacbf12b4660862ccfe9e3d19bdd9)) - **(es/typescript)** Reduce unnecessary visits ([#9605](https://redirect.github.com/swc-project/swc/issues/9605)) ([866af6c](https://redirect.github.com/swc-project/swc/commit/866af6c9478b92cd6be780c515ddd51d2db90ac3)) ##### Refactor - **(es/typescript)** Simplifying enum and namespace transforms ([#9558](https://redirect.github.com/swc-project/swc/issues/9558)) ([2480bb0](https://redirect.github.com/swc-project/swc/commit/2480bb00fc71d588af506eb18f33afa56622361f)) ##### Build - Update `rustc` to `nightly-2024-10-07` ([#9624](https://redirect.github.com/swc-project/swc/issues/9624)) ([6a3b0fc](https://redirect.github.com/swc-project/swc/commit/6a3b0fc1660cba4310880881f21e3bf81aceac0d)) ### [`v1.7.28`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1728---2024-09-24) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.26...v1.7.28) ##### Bug Fixes - **(ast)** Add `archive(check_bytes)` to all relevant AST types ([#9574](https://redirect.github.com/swc-project/swc/issues/9574)) ([185d6f5](https://redirect.github.com/swc-project/swc/commit/185d6f55b35f4f8323035c1199cddb9dd547f254)) - **(cli)** Exclude non-files from get_files_list ([#9560](https://redirect.github.com/swc-project/swc/issues/9560)) ([85cc2bd](https://redirect.github.com/swc-project/swc/commit/85cc2bd79c3193cb0a8b54e4fce0efc1aa15b271)) - **(es/codegen)** Fix wrong sourcemap when there are new lines in tpl ([#9578](https://redirect.github.com/swc-project/swc/issues/9578)) ([cf74382](https://redirect.github.com/swc-project/swc/commit/cf74382ba0429c0d4f04428889cf53a5231fad7f)) - **(es/compat)** Skip `getter` and `setter` as FlowHelper `function` do ([#9580](https://redirect.github.com/swc-project/swc/issues/9580)) ([14cfd70](https://redirect.github.com/swc-project/swc/commit/14cfd70ee00938497ce6b59f68332f9daa17378b)) - **(es/isolated-dts)** Preserve comments ([#9572](https://redirect.github.com/swc-project/swc/issues/9572)) ([6d15d9c](https://redirect.github.com/swc-project/swc/commit/6d15d9c2eb4397b15908cda38f2e44e02d81ebc1)) - **(es/minifier)** Avoid decl name when mangle with eval ([#9546](https://redirect.github.com/swc-project/swc/issues/9546)) ([e2242c4](https://redirect.github.com/swc-project/swc/commit/e2242c41c4d648a32119eb8141dd9990b2c8c468)) - **(es/minifier)** Check variable type while optimizing `+=` ([#9575](https://redirect.github.com/swc-project/swc/issues/9575)) ([04016e9](https://redirect.github.com/swc-project/swc/commit/04016e9687c5f02e764ffc9d7be2432d16da5dc0)) - **(es/module)** Rewrite import specifier in type declaration ([#9577](https://redirect.github.com/swc-project/swc/issues/9577)) ([fc0ba2a](https://redirect.github.com/swc-project/swc/commit/fc0ba2a08408b90f7d799cd5707dfa6827334085)) - **(plugin)** Don't panic when ast byte not match ([#9562](https://redirect.github.com/swc-project/swc/issues/9562)) ([c36871a](https://redirect.github.com/swc-project/swc/commit/c36871a84826cc125c3c10a78ee2d7a435373154)) ##### Miscellaneous Tasks - **(es)** Update `wasmer` to `v4.3.7` ([#9557](https://redirect.github.com/swc-project/swc/issues/9557)) ([190d6f0](https://redirect.github.com/swc-project/swc/commit/190d6f06d9545e4206bdb53c0f1ba2d443a5a7ab)) ##### Testing - **(es)** Add tests for arm64 windows ([#9547](https://redirect.github.com/swc-project/swc/issues/9547)) ([9dd8f6f](https://redirect.github.com/swc-project/swc/commit/9dd8f6facf29817902ddf55ec0388061585cbf7d)) ### [`v1.7.26`](https://redirect.github.com/swc-project/swc/compare/v1.7.25...v1.7.26) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.25...v1.7.26) ### [`v1.7.25`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1725---2024-09-11) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.24...v1.7.25) ##### Bug Fixes - **(es/codegen)** Handle minify number ([#9541](https://redirect.github.com/swc-project/swc/issues/9541)) ([8b1e442](https://redirect.github.com/swc-project/swc/commit/8b1e4428a3324dea76ba480a6d4cddf3865e41e8)) - **(es/codegen)** Ensure decorators are emitted first in TS paramters ([#9545](https://redirect.github.com/swc-project/swc/issues/9545)) ([47ef38d](https://redirect.github.com/swc-project/swc/commit/47ef38dc1d53918604481fd078c76554b012a82b)) ##### Features - **(es/common)** Introduce pure `Span` and `BytePos` to handle `#__PURE__` ([#9539](https://redirect.github.com/swc-project/swc/issues/9539)) ([f63a481](https://redirect.github.com/swc-project/swc/commit/f63a481833ebe9b5eae0708ee69b6a50b946ee28)) ##### Miscellaneous Tasks - **(bindings/node)** Fix type definition ([64ec111](https://redirect.github.com/swc-project/swc/commit/64ec1117697029895284e248d79698f802cf1aa8)) ### [`v1.7.24`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1724---2024-09-08) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.23...v1.7.24) ##### Bug Fixes - **(es/compat)** Handle label block in constructor ([#9528](https://redirect.github.com/swc-project/swc/issues/9528)) ([c43dbad](https://redirect.github.com/swc-project/swc/commit/c43dbad028072396390029af44e31bc3292a342a)) - **(es/decorator)** Add support for private access expressions in legacy decorators ([#9535](https://redirect.github.com/swc-project/swc/issues/9535)) ([62ed065](https://redirect.github.com/swc-project/swc/commit/62ed0655e6d9be2f4a5c641a969b41b8c0e7f75a)) - **(es/minifier)** `typeof` class should be `function` ([#9522](https://redirect.github.com/swc-project/swc/issues/9522)) ([c7fdd6b](https://redirect.github.com/swc-project/swc/commit/c7fdd6b69b129a11465125d4e11a898326b7e884)) - **(es/minifier)** Prevent removing side effects from accessing getter ([#9530](https://redirect.github.com/swc-project/swc/issues/9530)) ([8513816](https://redirect.github.com/swc-project/swc/commit/8513816139c6ceef12a906b03c1bcf9471ce0b07)) - **(es/typescript)** Handle enum in single statement ([#9532](https://redirect.github.com/swc-project/swc/issues/9532)) ([84b0043](https://redirect.github.com/swc-project/swc/commit/84b004387ba8f4135659e1d1f54e59bf1941a57a)) ### [`v1.7.23`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1723---2024-09-02) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.22...v1.7.23) ##### Bug Fixes - **(es/minifier)** Fix name mangler ([#9524](https://redirect.github.com/swc-project/swc/issues/9524)) ([5fd68f9](https://redirect.github.com/swc-project/swc/commit/5fd68f9a3a9eeef0e61627a821c52ace69a89696)) ##### Performance - **(es/compat)** Reimplement constructor transform ([#9519](https://redirect.github.com/swc-project/swc/issues/9519)) ([4b85a92](https://redirect.github.com/swc-project/swc/commit/4b85a92170576f194c2b1ad3b3ec624c4839e215)) - **(es/utils)** Rewrite inject_after_super ([#9496](https://redirect.github.com/swc-project/swc/issues/9496)) ([c562cfa](https://redirect.github.com/swc-project/swc/commit/c562cfa8af1163a4946ef79cb025d461c7e2e5e0)) ### [`v1.7.22`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1722---2024-08-30) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.21...v1.7.22) ##### Bug Fixes - **(es/minifier)** Iterate object properties in reverse direction while inlining property access ([#9507](https://redirect.github.com/swc-project/swc/issues/9507)) ([f584ef7](https://redirect.github.com/swc-project/swc/commit/f584ef76d75e86da15d0725ac94be35a88a1c946)) ### [`v1.7.21`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1721---2024-08-28) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.19...v1.7.21) ##### Bug Fixes - **(es/typescript)** Preserve more comments ([#9509](https://redirect.github.com/swc-project/swc/issues/9509)) ([3e253ec](https://redirect.github.com/swc-project/swc/commit/3e253ecc21f2028437572093b42df97ef5fe505e)) ### [`v1.7.19`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1719---2024-08-28) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.18...v1.7.19) ##### Bug Fixes - **(es/minifier)** Track if a var is used with `in` ([#9508](https://redirect.github.com/swc-project/swc/issues/9508)) ([7d6269e](https://redirect.github.com/swc-project/swc/commit/7d6269e3b826524e340edf274a5e42b2a0ea058a)) ##### Features - **(es/minifier)** Support mangle cache ([#9489](https://redirect.github.com/swc-project/swc/issues/9489)) ([af922d8](https://redirect.github.com/swc-project/swc/commit/af922d83e58596021476006564edb6270069d437)) - **(plugin/runner)** Improve error message ([#9502](https://redirect.github.com/swc-project/swc/issues/9502)) ([da52930](https://redirect.github.com/swc-project/swc/commit/da529304fe23bcb1a15c25811f928ebf91207ef0)) ##### Miscellaneous Tasks - **(es/codegen)** Bump minimum required swc_allocator version to 0.1.8 ([#9492](https://redirect.github.com/swc-project/swc/issues/9492)) ([5258763](https://redirect.github.com/swc-project/swc/commit/5258763cf673e1684808bc2766ba6ee9c84642f1)) ##### Refactor - **(es/utils)** Unify `prepend_stmts` ([#9493](https://redirect.github.com/swc-project/swc/issues/9493)) ([faec8c1](https://redirect.github.com/swc-project/swc/commit/faec8c134d950d10a9f2dce0e5680d9230f87ceb)) ### [`v1.7.18`](https://redirect.github.com/swc-project/swc/compare/v1.7.14...v1.7.18) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.14...v1.7.18) ### [`v1.7.14`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1714---2024-08-19) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.12...v1.7.14) ##### Bug Fixes - **(common)** Use `SourceMap::adjust_mappings` in correct order ([#9447](https://redirect.github.com/swc-project/swc/issues/9447)) ([05961eb](https://redirect.github.com/swc-project/swc/commit/05961eb018e2e76ed5ef95de9bad923b2fe1df88)) - **(es)** Preserve more comments ([#9449](https://redirect.github.com/swc-project/swc/issues/9449)) ([673655c](https://redirect.github.com/swc-project/swc/commit/673655c1697ff1d507f7acbfa937cbf1f58eb1d9)) ##### Features - **(es/decorators)** Groundwork for stage 3 decorator ([#9450](https://redirect.github.com/swc-project/swc/issues/9450)) ([238ba8b](https://redirect.github.com/swc-project/swc/commit/238ba8b1d2220202129595185bd4411b9415cc99)) ##### Refactor - **(visit)** Remove `VisitAll` ([#9448](https://redirect.github.com/swc-project/swc/issues/9448)) ([8845b76](https://redirect.github.com/swc-project/swc/commit/8845b76ac40b36791c79618c5ee89f05d2d08c96)) ### [`v1.7.12`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1712---2024-08-19) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.11...v1.7.12) ##### Bug Fixes - **(common)** Do not use `adjust_mappings` from `sourcemap` crate ([#9437](https://redirect.github.com/swc-project/swc/issues/9437)) ([563c162](https://redirect.github.com/swc-project/swc/commit/563c162f1ca8904e7b9a61a0c79fad952a56d624)) - **(es)** Mark TypeScript nodes as reachable from `Evaluator` ([#9440](https://redirect.github.com/swc-project/swc/issues/9440)) ([308e5ec](https://redirect.github.com/swc-project/swc/commit/308e5ec81b4e6d49c5940f2d8914d8627f838141)) - **(es/compat)** Init this in sub class constructor for async ([#9446](https://redirect.github.com/swc-project/swc/issues/9446)) ([bfaf31b](https://redirect.github.com/swc-project/swc/commit/bfaf31bc4b90ff803457bfdafdbcef0318b76189)) - **(es/decorators)** Fix metadata for accessors ([#9444](https://redirect.github.com/swc-project/swc/issues/9444)) ([99738ef](https://redirect.github.com/swc-project/swc/commit/99738ef41233211d6e26de520c3817d395492d37)) ##### Miscellaneous Tasks - **(deps)** Update rust crate arrayvec to v0.7.6 ([#9436](https://redirect.github.com/swc-project/swc/issues/9436)) ([08dd948](https://redirect.github.com/swc-project/swc/commit/08dd948289006583c6f0f76850c08808651f9135)) ### [`v1.7.11`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1711---2024-08-14) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.10...v1.7.11) ##### Bug Fixes - **(es)** Improve sourcemap url error messages. ([#9422](https://redirect.github.com/swc-project/swc/issues/9422)) ([230d1d9](https://redirect.github.com/swc-project/swc/commit/230d1d98b91bde2fa0de54e5fe06e899302e481c)) - **(visit)** Fix regression of AST paths ([#9420](https://redirect.github.com/swc-project/swc/issues/9420)) ([9751518](https://redirect.github.com/swc-project/swc/commit/9751518a0aa1cbe07e2ad4db7a32b0c6cc342641)) ##### Features - **(es/typescript)** Add ` native_class_properties ` to skip reordering of class properties inits ([#9421](https://redirect.github.com/swc-project/swc/issues/9421)) ([d2929d1](https://redirect.github.com/swc-project/swc/commit/d2929d1ce61a00360cc0596441041571a958da23)) - **(estree/compat)** Remove dependency on `rayon` ([#9393](https://redirect.github.com/swc-project/swc/issues/9393)) ([34d1b27](https://redirect.github.com/swc-project/swc/commit/34d1b27251dab3f87dc3a39d245a3498b4c2b151)) - **(html/minifier)** Support using custom css minifier ([#9425](https://redirect.github.com/swc-project/swc/issues/9425)) ([970cc81](https://redirect.github.com/swc-project/swc/commit/970cc81033b4a616643be6625bdf8da99614ba98)) ##### Miscellaneous Tasks - **(bindings/node)** Deprecate `parse` ([#9419](https://redirect.github.com/swc-project/swc/issues/9419)) ([1bf467d](https://redirect.github.com/swc-project/swc/commit/1bf467d99fb72ebff42136e08d7f03d50872f64e)) - **(deps)** Update cargo (patch) ([#9405](https://redirect.github.com/swc-project/swc/issues/9405)) ([baf4928](https://redirect.github.com/swc-project/swc/commit/baf4928ce2964e659af5ca77cd899427a8c29f60)) - **(es/preset-env)** Update core js compat data ([#9407](https://redirect.github.com/swc-project/swc/issues/9407)) ([ce761cf](https://redirect.github.com/swc-project/swc/commit/ce761cf51571f70c9378b6b67759bac3af4f4f92)) - **(es/typescript)** Remove the workaround for wasm-bindgen ([#9428](https://redirect.github.com/swc-project/swc/issues/9428)) ([55f7268](https://redirect.github.com/swc-project/swc/commit/55f72687f69eae131c6ce08d6a449afaa7357667)) ### [`v1.7.10`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1710---2024-08-09) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.9...v1.7.10) ##### Bug Fixes - **(es/typescript)** Strip optional mark and definite mark ([#9411](https://redirect.github.com/swc-project/swc/issues/9411)) ([8c161a0](https://redirect.github.com/swc-project/swc/commit/8c161a003e741320434f31617bc2de98dd2c9a8f)) - **(es/typescript)** Strip exported default overload function declaration ([#9412](https://redirect.github.com/swc-project/swc/issues/9412)) ([b395f48](https://redirect.github.com/swc-project/swc/commit/b395f483d1e0cb43b1f96126c5c17f9a8c9d0d32)) - **(es/typescript)** Strip `this` param in getter/setter ([#9414](https://redirect.github.com/swc-project/swc/issues/9414)) ([442fb7b](https://redirect.github.com/swc-project/swc/commit/442fb7b48715597d62f8d09327f93acc66f2d1b8)) - **(es/typescript)** Update ts-strip type definition ([#9415](https://redirect.github.com/swc-project/swc/issues/9415)) ([165c8fa](https://redirect.github.com/swc-project/swc/commit/165c8facd42d756077fde99defe91ffe656aede8)) ### [`v1.7.9`](https://redirect.github.com/swc-project/swc/blob/HEAD/CHANGELOG.md#179---2024-08-09) [Compare Source](https://redirect.github.com/swc-project/swc/compare/v1.7.6...v1.7.9) ##### Bug Fixes -Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.