Closed renovate[bot] closed 9 months ago
Latest commit: 76950b386773b4640d3e3e132cba08cbd51313fc
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
This PR contains the following updates:
~1.4.2
->~1.6.0
Release Notes
swc-project/swc-node (@swc-node/register)
### [`v1.6.8`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.8) [Compare Source](https://togithub.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://togithub.com/kdy1) in [https://github.com/swc-project/swc-node/pull/733](https://togithub.com/swc-project/swc-node/pull/733) - chore: fix README for install, build, and test by [@devjiwonchoi](https://togithub.com/devjiwonchoi) in [https://github.com/swc-project/swc-node/pull/728](https://togithub.com/swc-project/swc-node/pull/728) - feat(register): @swc-node/register/esm use TypeScript resolver by [@cm-ayf](https://togithub.com/cm-ayf) in [https://github.com/swc-project/swc-node/pull/727](https://togithub.com/swc-project/swc-node/pull/727) #### New Contributors - [@devjiwonchoi](https://togithub.com/devjiwonchoi) made their first contribution in [https://github.com/swc-project/swc-node/pull/728](https://togithub.com/swc-project/swc-node/pull/728) - [@cm-ayf](https://togithub.com/cm-ayf) made their first contribution in [https://github.com/swc-project/swc-node/pull/727](https://togithub.com/swc-project/swc-node/pull/727) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/core](https://togithub.com/swc-node/core)[@1](https://togithub.com/1).10.5...[@swc-node/register](https://togithub.com/swc-node/register)[@1](https://togithub.com/1).6.8 ### [`v1.6.7`](https://togithub.com/swc-project/swc-node/compare/@swc-node/register@1.6.6...@swc-node/register@1.6.7) [Compare Source](https://togithub.com/swc-project/swc-node/compare/@swc-node/register@1.6.6...@swc-node/register@1.6.7) ### [`v1.6.6`](https://togithub.com/swc-project/swc-node/compare/@swc-node/register@1.6.5...@swc-node/register@1.6.6) [Compare Source](https://togithub.com/swc-project/swc-node/compare/@swc-node/register@1.6.5...@swc-node/register@1.6.6) ### [`v1.6.5`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.5) [Compare Source](https://togithub.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://togithub.com/otaviosoares) in [https://github.com/swc-project/swc-node/pull/702](https://togithub.com/swc-project/swc-node/pull/702) - docs: register node api usage by [@JiangWeixian](https://togithub.com/JiangWeixian) in [https://github.com/swc-project/swc-node/pull/706](https://togithub.com/swc-project/swc-node/pull/706) - Make sourcemaps work with both error stack & debugger by [@ranjan-purbey](https://togithub.com/ranjan-purbey) in [https://github.com/swc-project/swc-node/pull/707](https://togithub.com/swc-project/swc-node/pull/707) - url now returns the href of a url object by [@JipSterk](https://togithub.com/JipSterk) in [https://github.com/swc-project/swc-node/pull/698](https://togithub.com/swc-project/swc-node/pull/698) - chore: upgrade dependencies by [@Brooooooklyn](https://togithub.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/709](https://togithub.com/swc-project/swc-node/pull/709) - fix(register): inline sourcemap by [@robbiespeed](https://togithub.com/robbiespeed) in [https://github.com/swc-project/swc-node/pull/708](https://togithub.com/swc-project/swc-node/pull/708) - fix(register): Fix to resolve adjacent file path by [@chloe463](https://togithub.com/chloe463) in [https://github.com/swc-project/swc-node/pull/711](https://togithub.com/swc-project/swc-node/pull/711) #### New Contributors - [@otaviosoares](https://togithub.com/otaviosoares) made their first contribution in [https://github.com/swc-project/swc-node/pull/702](https://togithub.com/swc-project/swc-node/pull/702) - [@JiangWeixian](https://togithub.com/JiangWeixian) made their first contribution in [https://github.com/swc-project/swc-node/pull/706](https://togithub.com/swc-project/swc-node/pull/706) - [@ranjan-purbey](https://togithub.com/ranjan-purbey) made their first contribution in [https://github.com/swc-project/swc-node/pull/707](https://togithub.com/swc-project/swc-node/pull/707) - [@JipSterk](https://togithub.com/JipSterk) made their first contribution in [https://github.com/swc-project/swc-node/pull/698](https://togithub.com/swc-project/swc-node/pull/698) - [@robbiespeed](https://togithub.com/robbiespeed) made their first contribution in [https://github.com/swc-project/swc-node/pull/708](https://togithub.com/swc-project/swc-node/pull/708) - [@chloe463](https://togithub.com/chloe463) made their first contribution in [https://github.com/swc-project/swc-node/pull/711](https://togithub.com/swc-project/swc-node/pull/711) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/core](https://togithub.com/swc-node/core)[@1](https://togithub.com/1).10.1...[@swc-node/register](https://togithub.com/swc-node/register)[@1](https://togithub.com/1).6.5 ### [`v1.6.4`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.4) [Compare Source](https://togithub.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://togithub.com/otaviosoares) in [https://github.com/swc-project/swc-node/pull/702](https://togithub.com/swc-project/swc-node/pull/702) - docs: register node api usage by [@JiangWeixian](https://togithub.com/JiangWeixian) in [https://github.com/swc-project/swc-node/pull/706](https://togithub.com/swc-project/swc-node/pull/706) - Make sourcemaps work with both error stack & debugger by [@ranjan-purbey](https://togithub.com/ranjan-purbey) in [https://github.com/swc-project/swc-node/pull/707](https://togithub.com/swc-project/swc-node/pull/707) - url now returns the href of a url object by [@JipSterk](https://togithub.com/JipSterk) in [https://github.com/swc-project/swc-node/pull/698](https://togithub.com/swc-project/swc-node/pull/698) - chore: upgrade dependencies by [@Brooooooklyn](https://togithub.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/709](https://togithub.com/swc-project/swc-node/pull/709) #### New Contributors - [@otaviosoares](https://togithub.com/otaviosoares) made their first contribution in [https://github.com/swc-project/swc-node/pull/702](https://togithub.com/swc-project/swc-node/pull/702) - [@JiangWeixian](https://togithub.com/JiangWeixian) made their first contribution in [https://github.com/swc-project/swc-node/pull/706](https://togithub.com/swc-project/swc-node/pull/706) - [@ranjan-purbey](https://togithub.com/ranjan-purbey) made their first contribution in [https://github.com/swc-project/swc-node/pull/707](https://togithub.com/swc-project/swc-node/pull/707) - [@JipSterk](https://togithub.com/JipSterk) made their first contribution in [https://github.com/swc-project/swc-node/pull/698](https://togithub.com/swc-project/swc-node/pull/698) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/core](https://togithub.com/swc-node/core)[@1](https://togithub.com/1).10.1...[@swc-node/register](https://togithub.com/swc-node/register)[@1](https://togithub.com/1).6.4 ### [`v1.6.3`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.3) [Compare Source](https://togithub.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://togithub.com/otaviosoares) in [https://github.com/swc-project/swc-node/pull/702](https://togithub.com/swc-project/swc-node/pull/702) - docs: register node api usage by [@JiangWeixian](https://togithub.com/JiangWeixian) in [https://github.com/swc-project/swc-node/pull/706](https://togithub.com/swc-project/swc-node/pull/706) #### New Contributors - [@otaviosoares](https://togithub.com/otaviosoares) made their first contribution in [https://github.com/swc-project/swc-node/pull/702](https://togithub.com/swc-project/swc-node/pull/702) - [@JiangWeixian](https://togithub.com/JiangWeixian) made their first contribution in [https://github.com/swc-project/swc-node/pull/706](https://togithub.com/swc-project/swc-node/pull/706) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/core](https://togithub.com/swc-node/core)[@1](https://togithub.com/1).10.1...[@swc-node/register](https://togithub.com/swc-node/register)[@1](https://togithub.com/1).6.3 ### [`v1.6.2`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.2) [Compare Source](https://togithub.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://togithub.com/swc-project/swc-node/issues/694)) ([860d1f6](https://togithub.com/swc-project/swc-node/commit/860d1f6f5f7ece197e92a822470a093ae7a7a68a)) ### [`v1.6.1`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.1) [Compare Source](https://togithub.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://togithub.com/swc-project/swc-node/commit/8d6b0b77d5ec725ff75989455f8163d88c306878)) ### [`v1.6.0`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.6.0) [Compare Source](https://togithub.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://togithub.com/Brooooooklyn) in [https://github.com/swc-project/swc-node/pull/643](https://togithub.com/swc-project/swc-node/pull/643) **Full Changelog**: https://github.com/swc-project/swc-node/compare/[@swc-node/jest](https://togithub.com/swc-node/jest)[@1](https://togithub.com/1).5.9...[@swc-node/register](https://togithub.com/swc-node/register)[@1](https://togithub.com/1).6.0 ### [`v1.5.8`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.8) [Compare Source](https://togithub.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://togithub.com/swc-project/swc-node/commit/c51be25d28da06d29620caee2505bff609cba445)) ### [`v1.5.6`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.6) [Compare Source](https://togithub.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://togithub.com/swc-project/swc-node/commit/1d557ece0d9ccbba027ff9f2d262c03d4b918bcb)) - **register:** react configuration ([af643b8](https://togithub.com/swc-project/swc-node/commit/af643b849c32abb58bd1c0fdf98eeeac08548e25)) ### [`v1.5.5`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.5) [Compare Source](https://togithub.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://togithub.com/swc-node/register) ### [`v1.5.4`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.4) [Compare Source](https://togithub.com/swc-project/swc-node/compare/@swc-node/register@1.5.3...@swc-node/register@1.5.4) ##### Bug Fixes - **register:** [@swc/core](https://togithub.com/swc/core) should be in peerDependencies ([cb05cae](https://togithub.com/swc-project/swc-node/commit/cb05cae69dd92d13593c210f8c0044b6aff8ff1c)) ### [`v1.5.3`](https://togithub.com/swc-project/swc-node/compare/@swc-node/register@1.5.2...@swc-node/register@1.5.3) [Compare Source](https://togithub.com/swc-project/swc-node/compare/@swc-node/register@1.5.2...@swc-node/register@1.5.3) ### [`v1.5.2`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.2) [Compare Source](https://togithub.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://togithub.com/swc-project/swc-node/commit/2a6848a00b8931f41b62f6b5a519bdbc548bfec3)) [https://github.com/swc-project/swc-node/pull/666](https://togithub.com/swc-project/swc-node/pull/666) [@terceser](https://togithub.com/terceser) #### New Contributors - [@terceser](https://togithub.com/terceser) made their first contribution in [https://github.com/swc-project/swc-node/pull/666](https://togithub.com/swc-project/swc-node/pull/666) ### [`v1.5.1`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.1) [Compare Source](https://togithub.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://togithub.com/swc-project/swc-node/commit/c0011ca0eb535f7eacf184ec116c775121c64905)) ### [`v1.5.0`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.5.0) [Compare Source](https://togithub.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://togithub.com/swc-project/swc-node/commit/8c180e68abbc66aa68f83b401d985a6c8617baa9)) - **register:** always resolve full file path for tsconfig and add paths if available ([#646](https://togithub.com/swc-project/swc-node/issues/646)) ([3062413](https://togithub.com/swc-project/swc-node/commit/3062413e464a5b5706c5ac4912f43ef7451fe73b)) - **register:** return addHook result to it can be reverted ([222e205](https://togithub.com/swc-project/swc-node/commit/222e2056351e3a2ba2a4764537c9410b0112051e)), closes [/github.com/facebook/jest/blob/199f9811ae68b15879cbe18b7ef7ebd61eefcf23/packages/jest-config/src/readConfigFileAndSetRootDir.ts#L83-101](https://togithub.com//github.com/facebook/jest/blob/199f9811ae68b15879cbe18b7ef7ebd61eefcf23/packages/jest-config/src/readConfigFileAndSetRootDir.ts/issues/L83-101) - **register:** support hook options ([4c6dad7](https://togithub.com/swc-project/swc-node/commit/4c6dad7bfbf4563c44bd25476a6ab5d78cff55dc))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.
š Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.