Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(esm-resolver): only return early if the specifier is an unsupported file #789

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

fargito
Copy link
Contributor

@fargito fargito commented Jun 17, 2024

Hello,

I encountered an issue with @swc-node/[email protected] that did not happen with version 1.9.1

Description

Pull requests with the issue:

Both projects are esm-only, with Node v20.14.0, running swc with node --import @swc-node/register/esm-register my-entrypoint.ts. Also they don't have extensions in the internal imports (i.e. import { foo } from './foo' and not import { foo } from './foo.js').

Investigation

In #777 the pattern matching for supported extensions, was fixed. It used to match every single string.

However, now that this pattern is correct, the condition used to check it the specifier was supported was no longer valid for extension-less specifiers.

E.g.

import { foo } from './foo.js'; 

Is correctly flagged as a supported specifier and processed by swc.

But:

import  { foo } from './foo';

Isn't flagged as supported, and then directly passed to the default NodeJS loader, which is unable to undestand it.

Proposed fix

Only apply the early return if the specifier explicitely refers to an unsupported file.

WDYT?

@CLAassistant
Copy link

CLAassistant commented Jun 17, 2024

CLA assistant check
All committers have signed the CLA.

@Brooooooklyn Brooooooklyn merged commit 014cf6a into swc-project:master Jun 26, 2024
7 checks passed
tsang-bot bot referenced this pull request in tsangste/nx-package-test Jul 2, 2024
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@swc-node/register](https://togithub.com/swc-project/swc-node) |
[`1.9.2` ->
`1.10.0`](https://renovatebot.com/diffs/npm/@swc-node%2fregister/1.9.2/1.10.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@swc-node%2fregister/1.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@swc-node%2fregister/1.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@swc-node%2fregister/1.9.2/1.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@swc-node%2fregister/1.9.2/1.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>swc-project/swc-node (@&#8203;swc-node/register)</summary>

###
[`v1.10.0`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.10.0)

[Compare
Source](https://togithub.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected])

#### What's Changed

- fix: fix ts extension detect regex, close
[#&#8203;775](https://togithub.com/swc-project/swc-node/issues/775)
[#&#8203;774](https://togithub.com/swc-project/swc-node/issues/774)
[#&#8203;772](https://togithub.com/swc-project/swc-node/issues/772) by
[@&#8203;yeliex](https://togithub.com/yeliex) in
[https://github.com/swc-project/swc-node/pull/777](https://togithub.com/swc-project/swc-node/pull/777)
- doc: update readme by [@&#8203;yeliex](https://togithub.com/yeliex) in
[https://github.com/swc-project/swc-node/pull/778](https://togithub.com/swc-project/swc-node/pull/778)
- fix(esm-resolver): only return early if the specifier is an
unsupported file by [@&#8203;fargito](https://togithub.com/fargito) in
[https://github.com/swc-project/swc-node/pull/789](https://togithub.com/swc-project/swc-node/pull/789)
- fix(register): ts files extension resolve by
[@&#8203;Brooooooklyn](https://togithub.com/Brooooooklyn) in
[https://github.com/swc-project/swc-node/pull/793](https://togithub.com/swc-project/swc-node/pull/793)

#### New Contributors

- [@&#8203;fargito](https://togithub.com/fargito) made their first
contribution in
[https://github.com/swc-project/swc-node/pull/789](https://togithub.com/swc-project/swc-node/pull/789)

**Full Changelog**:
https://github.com/swc-project/swc-node/compare/[@&#8203;swc-node/register](https://togithub.com/swc-node/register)[@&#8203;1](https://togithub.com/1).9.1...[@&#8203;swc-node/register](https://togithub.com/swc-node/register)[@&#8203;1](https://togithub.com/1).10.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuNSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS41IiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: tsang-bot[bot] <146107447+tsang-bot[bot]@users.noreply.github.com>
tsang-bot bot referenced this pull request in tsangste/nx-package-test Jul 9, 2024
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@swc-node/register](https://togithub.com/swc-project/swc-node) |
[`1.10.0` ->
`1.10.2`](https://renovatebot.com/diffs/npm/@swc-node%2fregister/1.10.0/1.10.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@swc-node%2fregister/1.10.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@swc-node%2fregister/1.10.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@swc-node%2fregister/1.10.0/1.10.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@swc-node%2fregister/1.10.0/1.10.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>swc-project/swc-node (@&#8203;swc-node/register)</summary>

###
[`v1.10.2`](https://togithub.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected])

[Compare
Source](https://togithub.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected])

###
[`v1.10.1`](https://togithub.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.10.1)

[Compare
Source](https://togithub.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected])

#### What's Changed

- fix: fix ts extension detect regex, close
[#&#8203;775](https://togithub.com/swc-project/swc-node/issues/775)
[#&#8203;774](https://togithub.com/swc-project/swc-node/issues/774)
[#&#8203;772](https://togithub.com/swc-project/swc-node/issues/772) by
[@&#8203;yeliex](https://togithub.com/yeliex) in
[https://github.com/swc-project/swc-node/pull/777](https://togithub.com/swc-project/swc-node/pull/777)
- doc: update readme by [@&#8203;yeliex](https://togithub.com/yeliex) in
[https://github.com/swc-project/swc-node/pull/778](https://togithub.com/swc-project/swc-node/pull/778)
- fix(esm-resolver): only return early if the specifier is an
unsupported file by [@&#8203;fargito](https://togithub.com/fargito) in
[https://github.com/swc-project/swc-node/pull/789](https://togithub.com/swc-project/swc-node/pull/789)
- fix(register): ts files extension resolve by
[@&#8203;Brooooooklyn](https://togithub.com/Brooooooklyn) in
[https://github.com/swc-project/swc-node/pull/793](https://togithub.com/swc-project/swc-node/pull/793)
- fix(register): do not send undefined source code for compilation by
[@&#8203;fargito](https://togithub.com/fargito) in
[https://github.com/swc-project/swc-node/pull/797](https://togithub.com/swc-project/swc-node/pull/797)
- refactor(core): use oxc-resolver by
[@&#8203;Brooooooklyn](https://togithub.com/Brooooooklyn) in
[https://github.com/swc-project/swc-node/pull/798](https://togithub.com/swc-project/swc-node/pull/798)
- fix(register): tsx file by
[@&#8203;Brooooooklyn](https://togithub.com/Brooooooklyn) in
[https://github.com/swc-project/swc-node/pull/800](https://togithub.com/swc-project/swc-node/pull/800)
- fix(register): file path with query by
[@&#8203;Brooooooklyn](https://togithub.com/Brooooooklyn) in
[https://github.com/swc-project/swc-node/pull/801](https://togithub.com/swc-project/swc-node/pull/801)
- fix(register): ensure TS compiler option to SWC config transformer
respects inline source map option by
[@&#8203;behroozk](https://togithub.com/behroozk) in
[https://github.com/swc-project/swc-node/pull/726](https://togithub.com/swc-project/swc-node/pull/726)

#### New Contributors

- [@&#8203;fargito](https://togithub.com/fargito) made their first
contribution in
[https://github.com/swc-project/swc-node/pull/789](https://togithub.com/swc-project/swc-node/pull/789)
- [@&#8203;behroozk](https://togithub.com/behroozk) made their first
contribution in
[https://github.com/swc-project/swc-node/pull/726](https://togithub.com/swc-project/swc-node/pull/726)

**Full Changelog**:
https://github.com/swc-project/swc-node/compare/[@&#8203;swc-node/register](https://togithub.com/swc-node/register)[@&#8203;1](https://togithub.com/1).9.1...[@&#8203;swc-node/register](https://togithub.com/swc-node/register)[@&#8203;1](https://togithub.com/1).10.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMyIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4zIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: tsang-bot[bot] <146107447+tsang-bot[bot]@users.noreply.github.com>
tsang-bot bot referenced this pull request in tsangste/nx-package-test Sep 13, 2024
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@swc-node/register](https://redirect.github.com/swc-project/swc-node)
| [`1.9.2` ->
`1.10.9`](https://renovatebot.com/diffs/npm/@swc-node%2fregister/1.9.2/1.10.9)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@swc-node%2fregister/1.10.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@swc-node%2fregister/1.10.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@swc-node%2fregister/1.9.2/1.10.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@swc-node%2fregister/1.9.2/1.10.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [express](http://expressjs.com/)
([source](https://redirect.github.com/expressjs/express)) | [`4.19.2` ->
`4.20.0`](https://renovatebot.com/diffs/npm/express/4.19.2/4.20.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/express/4.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/express/4.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/express/4.19.2/4.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/express/4.19.2/4.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [node-mocks-http](https://redirect.github.com/eugef/node-mocks-http) |
[`1.13.0` ->
`1.16.0`](https://renovatebot.com/diffs/npm/node-mocks-http/1.13.0/1.16.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/node-mocks-http/1.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/node-mocks-http/1.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/node-mocks-http/1.13.0/1.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/node-mocks-http/1.13.0/1.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [yaml](https://eemeli.org/yaml/)
([source](https://redirect.github.com/eemeli/yaml)) | [`2.3.2` ->
`2.5.1`](https://renovatebot.com/diffs/npm/yaml/2.3.2/2.5.1) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/yaml/2.5.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/yaml/2.5.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/yaml/2.3.2/2.5.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/yaml/2.3.2/2.5.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>swc-project/swc-node (@&#8203;swc-node/register)</summary>

###
[`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/[email protected]...@swc-node/[email protected])

#### What's Changed

- fix(register): skip load files in node_modules by
[@&#8203;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/[@&#8203;swc-node/register](https://redirect.github.com/swc-node/register)[@&#8203;1](https://redirect.github.com/1).10.8...[@&#8203;swc-node/register](https://redirect.github.com/swc-node/register)[@&#8203;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/[email protected]...@swc-node/[email protected])

#### What's Changed

- fix(register): default register/esm TSCONFIG_PATH on windows. by
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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

- [@&#8203;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)
- [@&#8203;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/[@&#8203;swc-node/register](https://redirect.github.com/swc-node/register)[@&#8203;1](https://redirect.github.com/1).10.7...[@&#8203;swc-node/register](https://redirect.github.com/swc-node/register)[@&#8203;1](https://redirect.github.com/1).10.8

###
[`v1.10.7`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected])

[Compare
Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected])

###
[`v1.10.6`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected])

[Compare
Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected])

###
[`v1.10.5`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.10.5)

[Compare
Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected])

#### What's Changed

- chore: replace deprecated husky install by
[@&#8203;fargito](https://redirect.github.com/fargito) in
[https://github.com/swc-project/swc-node/pull/809](https://redirect.github.com/swc-project/swc-node/pull/809)
- fix(register): resolve internal cjs module by
[@&#8203;Brooooooklyn](https://redirect.github.com/Brooooooklyn) in
[https://github.com/swc-project/swc-node/pull/811](https://redirect.github.com/swc-project/swc-node/pull/811)
- docs: recommend `-S` on hashbang by
[@&#8203;silverwind](https://redirect.github.com/silverwind) in
[https://github.com/swc-project/swc-node/pull/810](https://redirect.github.com/swc-project/swc-node/pull/810)
- fix(register): resolve .cjs/.cts file in esm package by
[@&#8203;Brooooooklyn](https://redirect.github.com/Brooooooklyn) in
[https://github.com/swc-project/swc-node/pull/813](https://redirect.github.com/swc-project/swc-node/pull/813)
- fix(register): allow running .tsx file by
[@&#8203;xandris](https://redirect.github.com/xandris) in
[https://github.com/swc-project/swc-node/pull/812](https://redirect.github.com/swc-project/swc-node/pull/812)

#### New Contributors

- [@&#8203;silverwind](https://redirect.github.com/silverwind) made
their first contribution in
[https://github.com/swc-project/swc-node/pull/810](https://redirect.github.com/swc-project/swc-node/pull/810)
- [@&#8203;xandris](https://redirect.github.com/xandris) made their
first contribution in
[https://github.com/swc-project/swc-node/pull/812](https://redirect.github.com/swc-project/swc-node/pull/812)

**Full Changelog**:
https://github.com/swc-project/swc-node/compare/[@&#8203;swc-node/register](https://redirect.github.com/swc-node/register)[@&#8203;1](https://redirect.github.com/1).10.3...[@&#8203;swc-node/register](https://redirect.github.com/swc-node/register)[@&#8203;1](https://redirect.github.com/1).10.5

###
[`v1.10.4`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected])

[Compare
Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected])

###
[`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/[email protected]...@swc-node/[email protected])

#### What's Changed

- fix(register): support moduleResolution Bundler by
[@&#8203;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/[@&#8203;swc-node/register](https://redirect.github.com/swc-node/register)[@&#8203;1](https://redirect.github.com/1).10.2...[@&#8203;swc-node/register](https://redirect.github.com/swc-node/register)[@&#8203;1](https://redirect.github.com/1).10.3

###
[`v1.10.2`](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected])

[Compare
Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected])

###
[`v1.10.1`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.10.1)

[Compare
Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected])

#### What's Changed

- fix: fix ts extension detect regex, close
[#&#8203;775](https://redirect.github.com/swc-project/swc-node/issues/775)
[#&#8203;774](https://redirect.github.com/swc-project/swc-node/issues/774)
[#&#8203;772](https://redirect.github.com/swc-project/swc-node/issues/772)
by [@&#8203;yeliex](https://redirect.github.com/yeliex) in
[https://github.com/swc-project/swc-node/pull/777](https://redirect.github.com/swc-project/swc-node/pull/777)
- doc: update readme by
[@&#8203;yeliex](https://redirect.github.com/yeliex) in
[https://github.com/swc-project/swc-node/pull/778](https://redirect.github.com/swc-project/swc-node/pull/778)
- fix(esm-resolver): only return early if the specifier is an
unsupported file by
[@&#8203;fargito](https://redirect.github.com/fargito) in
[https://github.com/swc-project/swc-node/pull/789](https://redirect.github.com/swc-project/swc-node/pull/789)
- fix(register): ts files extension resolve by
[@&#8203;Brooooooklyn](https://redirect.github.com/Brooooooklyn) in
[https://github.com/swc-project/swc-node/pull/793](https://redirect.github.com/swc-project/swc-node/pull/793)
- fix(register): do not send undefined source code for compilation by
[@&#8203;fargito](https://redirect.github.com/fargito) in
[https://github.com/swc-project/swc-node/pull/797](https://redirect.github.com/swc-project/swc-node/pull/797)
- refactor(core): use oxc-resolver by
[@&#8203;Brooooooklyn](https://redirect.github.com/Brooooooklyn) in
[https://github.com/swc-project/swc-node/pull/798](https://redirect.github.com/swc-project/swc-node/pull/798)
- fix(register): tsx file by
[@&#8203;Brooooooklyn](https://redirect.github.com/Brooooooklyn) in
[https://github.com/swc-project/swc-node/pull/800](https://redirect.github.com/swc-project/swc-node/pull/800)
- fix(register): file path with query by
[@&#8203;Brooooooklyn](https://redirect.github.com/Brooooooklyn) in
[https://github.com/swc-project/swc-node/pull/801](https://redirect.github.com/swc-project/swc-node/pull/801)
- fix(register): ensure TS compiler option to SWC config transformer
respects inline source map option by
[@&#8203;behroozk](https://redirect.github.com/behroozk) in
[https://github.com/swc-project/swc-node/pull/726](https://redirect.github.com/swc-project/swc-node/pull/726)

#### New Contributors

- [@&#8203;fargito](https://redirect.github.com/fargito) made their
first contribution in
[https://github.com/swc-project/swc-node/pull/789](https://redirect.github.com/swc-project/swc-node/pull/789)
- [@&#8203;behroozk](https://redirect.github.com/behroozk) made their
first contribution in
[https://github.com/swc-project/swc-node/pull/726](https://redirect.github.com/swc-project/swc-node/pull/726)

**Full Changelog**:
https://github.com/swc-project/swc-node/compare/[@&#8203;swc-node/register](https://redirect.github.com/swc-node/register)[@&#8203;1](https://redirect.github.com/1).9.1...[@&#8203;swc-node/register](https://redirect.github.com/swc-node/register)[@&#8203;1](https://redirect.github.com/1).10.1

###
[`v1.10.0`](https://redirect.github.com/swc-project/swc-node/releases/tag/%40swc-node/register%401.10.0)

[Compare
Source](https://redirect.github.com/swc-project/swc-node/compare/@swc-node/[email protected]...@swc-node/[email protected])

#### What's Changed

- fix: fix ts extension detect regex, close
[#&#8203;775](https://redirect.github.com/swc-project/swc-node/issues/775)
[#&#8203;774](https://redirect.github.com/swc-project/swc-node/issues/774)
[#&#8203;772](https://redirect.github.com/swc-project/swc-node/issues/772)
by [@&#8203;yeliex](https://redirect.github.com/yeliex) in
[https://github.com/swc-project/swc-node/pull/777](https://redirect.github.com/swc-project/swc-node/pull/777)
- doc: update readme by
[@&#8203;yeliex](https://redirect.github.com/yeliex) in
[https://github.com/swc-project/swc-node/pull/778](https://redirect.github.com/swc-project/swc-node/pull/778)
- fix(esm-resolver): only return early if the specifier is an
unsupported file by
[@&#8203;fargito](https://redirect.github.com/fargito) in
[https://github.com/swc-project/swc-node/pull/789](https://redirect.github.com/swc-project/swc-node/pull/789)
- fix(register): ts files extension resolve by
[@&#8203;Brooooooklyn](https://redirect.github.com/Brooooooklyn) in
[https://github.com/swc-project/swc-node/pull/793](https://redirect.github.com/swc-project/swc-node/pull/793)

#### New Contributors

- [@&#8203;fargito](https://redirect.github.com/fargito) made their
first contribution in
[https://github.com/swc-project/swc-node/pull/789](https://redirect.github.com/swc-project/swc-node/pull/789)

**Full Changelog**:
https://github.com/swc-project/swc-node/compare/[@&#8203;swc-node/register](https://redirect.github.com/swc-node/register)[@&#8203;1](https://redirect.github.com/1).9.1...[@&#8203;swc-node/register](https://redirect.github.com/swc-node/register)[@&#8203;1](https://redirect.github.com/1).10.0

</details>

<details>
<summary>expressjs/express (express)</summary>

###
[`v4.20.0`](https://redirect.github.com/expressjs/express/blob/HEAD/History.md#4200--2024-09-10)

[Compare
Source](https://redirect.github.com/expressjs/express/compare/4.19.2...4.20.0)

\==========

-   deps: [email protected]
    -   Remove link renderization in html while redirecting
-   deps: [email protected]
    -   Remove link renderization in html while redirecting
-   deps: [email protected]
    -   add `depth` option to customize the depth level in the parser
- IMPORTANT: The default `depth` level for parsing URL-encoded data is
now `32` (previously was `Infinity`)
-   Remove link renderization in html while using `res.redirect`
-   deps: [email protected]
- Adds support for named matching groups in the routes using a regex
- Adds backtracking protection to parameters without regexes defined
-   deps: encodeurl@~2.0.0
- Removes encoding of `\`, `|`, and `^` to align better with URL spec
- Deprecate passing `options.maxAge` and `options.expires` to
`res.clearCookie`
- Will be ignored in v5, clearCookie will set a cookie with an expires
in the past to instruct clients to delete the cookie

</details>

<details>
<summary>eugef/node-mocks-http (node-mocks-http)</summary>

###
[`v1.16.0`](https://redirect.github.com/eugef/node-mocks-http/blob/HEAD/HISTORY.md#v-1160)

[Compare
Source](https://redirect.github.com/eugef/node-mocks-http/compare/v1.15.1...v1.16.0)

-   Add appendHeader to MockResponse [Issue #&#8203;306][306].
- Add Fetch API types as accepted mock parameters [Issue
#&#8203;291][291].

[306]: https://redirect.github.com/eugef/node-mocks-http/pull/306

[291]: https://redirect.github.com/eugef/node-mocks-http/pull/291

###
[`v1.15.1`](https://redirect.github.com/eugef/node-mocks-http/blob/HEAD/HISTORY.md#v-1151)

[Compare
Source](https://redirect.github.com/eugef/node-mocks-http/compare/v1.15.0...v1.15.1)

- Allowing [@&#8203;types/node](https://redirect.github.com/types/node)
v22 [Issue #&#8203;305][305].

[305]: https://redirect.github.com/eugef/node-mocks-http/pull/305

###
[`v1.15.0`](https://redirect.github.com/eugef/node-mocks-http/blob/HEAD/HISTORY.md#v-1150)

[Compare
Source](https://redirect.github.com/eugef/node-mocks-http/compare/v1.14.1...v1.15.0)

- Add to write() and end() support of TypedArray [Issue
#&#8203;300][300].
- Fix: return empty string when send() was called with undefined [Issue
#&#8203;298][298].

[300]: https://redirect.github.com/eugef/node-mocks-http/pull/300

[298]: https://redirect.github.com/eugef/node-mocks-http/pull/298

###
[`v1.14.1`](https://redirect.github.com/eugef/node-mocks-http/blob/HEAD/HISTORY.md#v-1141)

[Compare
Source](https://redirect.github.com/eugef/node-mocks-http/compare/15a2c6f4f09fe4bc731156e661f6d09a43e6eb93...v1.14.1)

-   Move express and node types to prod deps [Issue #&#8203;290][290].

[290]: https://redirect.github.com/eugef/node-mocks-http/pull/290

###
[`v1.14.0`](https://redirect.github.com/eugef/node-mocks-http/blob/HEAD/HISTORY.md#v-1140)

[Compare
Source](https://redirect.github.com/eugef/node-mocks-http/compare/v1.13.0...15a2c6f4f09fe4bc731156e661f6d09a43e6eb93)

-   Fix nodejs typing [Issue #&#8203;281][281].
-   Add testing capability in TypeScript [Issue #&#8203;282][282].

[281]: https://redirect.github.com/eugef/node-mocks-http/pull/281

[282]: https://redirect.github.com/eugef/node-mocks-http/pull/282

</details>

<details>
<summary>eemeli/yaml (yaml)</summary>

###
[`v2.5.1`](https://redirect.github.com/eemeli/yaml/releases/tag/v2.5.1)

[Compare
Source](https://redirect.github.com/eemeli/yaml/compare/v2.5.0...v2.5.1)

- Include range in flow sequence pair maps
([#&#8203;573](https://redirect.github.com/eemeli/yaml/issues/573))

###
[`v2.5.0`](https://redirect.github.com/eemeli/yaml/releases/tag/v2.5.0)

[Compare
Source](https://redirect.github.com/eemeli/yaml/compare/v2.4.5...v2.5.0)

- Add `--indent` option to CLI tool
([#&#8203;559](https://redirect.github.com/eemeli/yaml/issues/559), with
thanks to
[@&#8203;danielbayley](https://redirect.github.com/danielbayley))
- Require newline in all cases for props on block sequence
([#&#8203;557](https://redirect.github.com/eemeli/yaml/issues/557))
- Always reset indentation in lexer on `...`
([#&#8203;558](https://redirect.github.com/eemeli/yaml/issues/558))
- Ignore `minContentWidth` if greater than `lineWidth`
([#&#8203;562](https://redirect.github.com/eemeli/yaml/issues/562))
- Drop unused `Collection.maxFlowStringSingleLineLength`
([#&#8203;522](https://redirect.github.com/eemeli/yaml/issues/522),
[#&#8203;421](https://redirect.github.com/eemeli/yaml/issues/421))

###
[`v2.4.5`](https://redirect.github.com/eemeli/yaml/releases/tag/v2.4.5)

[Compare
Source](https://redirect.github.com/eemeli/yaml/compare/v2.4.4...v2.4.5)

- Improve tab handling
([#&#8203;553](https://redirect.github.com/eemeli/yaml/issues/553),
yaml-test-suite tests
[DK95](https://redirect.github.com/yaml/yaml-test-suite/blob/main/src/DK95.yaml)
&
[Y79Y](https://redirect.github.com/yaml/yaml-test-suite/blob/main/src/Y79Y.yaml))

###
[`v2.4.4`](https://redirect.github.com/eemeli/yaml/releases/tag/v2.4.4)

[Compare
Source](https://redirect.github.com/eemeli/yaml/compare/v2.4.3...v2.4.4)

With special thanks to
[@&#8203;RedCMD](https://redirect.github.com/RedCMD) for finding and
reporting all of the following:

- Allow comment after top-level block scalar with explicit indent
indicator
([#&#8203;547](https://redirect.github.com/eemeli/yaml/issues/547))
- Allow tab as indent for line comments before nodes
([#&#8203;548](https://redirect.github.com/eemeli/yaml/issues/548))
- Do not allow tab before block collection
([#&#8203;549](https://redirect.github.com/eemeli/yaml/issues/549))
- In flow collections, allow `[]{}` immediately after `:` with plain key
([#&#8203;550](https://redirect.github.com/eemeli/yaml/issues/550))
- Require indentation for `?` explicit-key contents
([#&#8203;551](https://redirect.github.com/eemeli/yaml/issues/551))
- Require indentation from block scalar header & flow collections in
mapping values
([#&#8203;553](https://redirect.github.com/eemeli/yaml/issues/553))

###
[`v2.4.3`](https://redirect.github.com/eemeli/yaml/releases/tag/v2.4.3)

[Compare
Source](https://redirect.github.com/eemeli/yaml/compare/v2.4.2...v2.4.3)

- Improve error when parsing a non-string value
([#&#8203;459](https://redirect.github.com/eemeli/yaml/issues/459))
- Do not parse `-.NaN` or `+.nan` as NaN
([#&#8203;546](https://redirect.github.com/eemeli/yaml/issues/546))
-   Support `#` within `%TAG` prefixes with trailing `#comments`
- Check for non-node complex keys when stringifying with simpleKeys
([#&#8203;541](https://redirect.github.com/eemeli/yaml/issues/541))

###
[`v2.4.2`](https://redirect.github.com/eemeli/yaml/releases/tag/v2.4.2)

[Compare
Source](https://redirect.github.com/eemeli/yaml/compare/v2.4.1...v2.4.2)

- Restrict YAML 1.1 boolean strings to their explicit capitalization
([#&#8203;530](https://redirect.github.com/eemeli/yaml/issues/530))
- Add sponsorship by [Scipress](https://www.scipress.io/)
([#&#8203;536](https://redirect.github.com/eemeli/yaml/issues/536))

###
[`v2.4.1`](https://redirect.github.com/eemeli/yaml/releases/tag/v2.4.1)

[Compare
Source](https://redirect.github.com/eemeli/yaml/compare/v2.4.0...v2.4.1)

- cst: Do not drop trailing newline after line comment in block-map if
followed by unindented block-seq value
([#&#8203;525](https://redirect.github.com/eemeli/yaml/issues/525))
- Stringify flow collection comments in parent
([#&#8203;528](https://redirect.github.com/eemeli/yaml/issues/528))
- Do not skip folding lines after the first in indented block scalars
([#&#8203;529](https://redirect.github.com/eemeli/yaml/issues/529))

###
[`v2.4.0`](https://redirect.github.com/eemeli/yaml/releases/tag/v2.4.0)

[Compare
Source](https://redirect.github.com/eemeli/yaml/compare/v2.3.4...v2.4.0)

- Add a command-line tool
([#&#8203;523](https://redirect.github.com/eemeli/yaml/issues/523))
- Use the `lineWidth` option for line breaking in flow collections
([#&#8203;522](https://redirect.github.com/eemeli/yaml/issues/522))

###
[`v2.3.4`](https://redirect.github.com/eemeli/yaml/releases/tag/v2.3.4)

[Compare
Source](https://redirect.github.com/eemeli/yaml/compare/v2.3.3...v2.3.4)

- Do not throw for carriage return in tag shorthand
([#&#8203;501](https://redirect.github.com/eemeli/yaml/issues/501))

###
[`v2.3.3`](https://redirect.github.com/eemeli/yaml/releases/tag/v2.3.3)

[Compare
Source](https://redirect.github.com/eemeli/yaml/compare/v2.3.2...v2.3.3)

- Do not throw error on malformed URI escape in tag
([#&#8203;498](https://redirect.github.com/eemeli/yaml/issues/498))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC42NC4wIiwidXBkYXRlZEluVmVyIjoiMzguNzcuMyIsInRhcmdldEJyYW5jaCI6ImRldmVsb3AiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: tsang-bot[bot] <146107447+tsang-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants