Skip to content

Conversation

SukkaW
Copy link
Collaborator

@SukkaW SukkaW commented Jul 22, 2024

cc @wojtekmaj @SunsetTechuila

Closes #303.

Use @nolyfill/is-core-module.

node: prefix only module (node:sea, node:test) doesn't exist in module.builtinModules, and I want ESLint to detect typos like node:slqite. So we will have to maintain a data set.

The differences between @nolyfill/is-core-module and is-core-module:

  • 0 dependency vs 1 dependency hasown (which then has a transitive dependency function-bind)
  • Use Set#has instead of the hasown package
  • Don't run the match against the Node.js version vs use the current Node.js version when not provided
  • 2.7 KiB installation size vs 72 KiB installation size

Copy link

changeset-bot bot commented Jul 22, 2024

🦋 Changeset detected

Latest commit: 9255279

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-import-resolver-typescript Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

socket-security bot commented Jul 22, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@nolyfill/[email protected] unsafe 0 2.71 kB sukkaw

🚮 Removed packages: npm/[email protected]

View full report↗︎

Copy link

codesandbox-ci bot commented Jul 22, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor

@SunsetTechuila SunsetTechuila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't run the match against the Node.js version

I'm not sure if this is an advantage

I wouldn't mind going back to using is-core-module (or maybe prefer that, since 72 kib size and 2 deps is not an issue for me), but this is ok too

@SukkaW
Copy link
Collaborator Author

SukkaW commented Jul 23, 2024

I wouldn't mind going back to using is-core-module (or maybe prefer that), but this is ok too

I will go back to is-core-module as soon as is-core-module drops hasown and function-bind.

@SukkaW SukkaW added this pull request to the merge queue Jul 23, 2024
Merged via the queue into import-js:master with commit f8d7b82 Jul 23, 2024
@SukkaW SukkaW deleted the change-is-core-module branch July 23, 2024 12:38
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 9, 2024
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.6.1 | 3.6.3 |


## [v3.6.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#363)

##### Patch Changes

-   [#305](import-js/eslint-import-resolver-typescript#305) [`f8d7b82`](import-js/eslint-import-resolver-typescript@f8d7b82) Thanks [@SukkaW](https://github.com/SukkaW)! - Fix resolve for `node:test`, `node:sea`, and `node:sqlite` without sacrificing installation size

-   [#288](import-js/eslint-import-resolver-typescript#288) [`a4c6c78`](import-js/eslint-import-resolver-typescript@a4c6c78) Thanks [@SunsetTechuila](https://github.com/SunsetTechuila)! - fix: ignore bun built-in modules
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 10, 2024
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.6.1 | 3.6.3 |


## [v3.6.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#363)

##### Patch Changes

-   [#305](import-js/eslint-import-resolver-typescript#305) [`f8d7b82`](import-js/eslint-import-resolver-typescript@f8d7b82) Thanks [@SukkaW](https://github.com/SukkaW)! - Fix resolve for `node:test`, `node:sea`, and `node:sqlite` without sacrificing installation size

-   [#288](import-js/eslint-import-resolver-typescript#288) [`a4c6c78`](import-js/eslint-import-resolver-typescript@a4c6c78) Thanks [@SunsetTechuila](https://github.com/SunsetTechuila)! - fix: ignore bun built-in modules
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 11, 2024
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.6.1 | 3.6.3 |


## [v3.6.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#363)

##### Patch Changes

-   [#305](import-js/eslint-import-resolver-typescript#305) [`f8d7b82`](import-js/eslint-import-resolver-typescript@f8d7b82) Thanks [@SukkaW](https://github.com/SukkaW)! - Fix resolve for `node:test`, `node:sea`, and `node:sqlite` without sacrificing installation size

-   [#288](import-js/eslint-import-resolver-typescript#288) [`a4c6c78`](import-js/eslint-import-resolver-typescript@a4c6c78) Thanks [@SunsetTechuila](https://github.com/SunsetTechuila)! - fix: ignore bun built-in modules
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 13, 2024
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.6.1 | 3.6.3 |


## [v3.6.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#363)

##### Patch Changes

-   [#305](import-js/eslint-import-resolver-typescript#305) [`f8d7b82`](import-js/eslint-import-resolver-typescript@f8d7b82) Thanks [@SukkaW](https://github.com/SukkaW)! - Fix resolve for `node:test`, `node:sea`, and `node:sqlite` without sacrificing installation size

-   [#288](import-js/eslint-import-resolver-typescript#288) [`a4c6c78`](import-js/eslint-import-resolver-typescript@a4c6c78) Thanks [@SunsetTechuila](https://github.com/SunsetTechuila)! - fix: ignore bun built-in modules
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 14, 2024
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.6.1 | 3.6.3 |


## [v3.6.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#363)

##### Patch Changes

-   [#305](import-js/eslint-import-resolver-typescript#305) [`f8d7b82`](import-js/eslint-import-resolver-typescript@f8d7b82) Thanks [@SukkaW](https://github.com/SukkaW)! - Fix resolve for `node:test`, `node:sea`, and `node:sqlite` without sacrificing installation size

-   [#288](import-js/eslint-import-resolver-typescript#288) [`a4c6c78`](import-js/eslint-import-resolver-typescript@a4c6c78) Thanks [@SunsetTechuila](https://github.com/SunsetTechuila)! - fix: ignore bun built-in modules
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 15, 2024
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.6.1 | 3.6.3 |


## [v3.6.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#363)

##### Patch Changes

-   [#305](import-js/eslint-import-resolver-typescript#305) [`f8d7b82`](import-js/eslint-import-resolver-typescript@f8d7b82) Thanks [@SukkaW](https://github.com/SukkaW)! - Fix resolve for `node:test`, `node:sea`, and `node:sqlite` without sacrificing installation size

-   [#288](import-js/eslint-import-resolver-typescript#288) [`a4c6c78`](import-js/eslint-import-resolver-typescript@a4c6c78) Thanks [@SunsetTechuila](https://github.com/SunsetTechuila)! - fix: ignore bun built-in modules
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 16, 2024
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.6.1 | 3.6.3 |


## [v3.6.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#363)

##### Patch Changes

-   [#305](import-js/eslint-import-resolver-typescript#305) [`f8d7b82`](import-js/eslint-import-resolver-typescript@f8d7b82) Thanks [@SukkaW](https://github.com/SukkaW)! - Fix resolve for `node:test`, `node:sea`, and `node:sqlite` without sacrificing installation size

-   [#288](import-js/eslint-import-resolver-typescript#288) [`a4c6c78`](import-js/eslint-import-resolver-typescript@a4c6c78) Thanks [@SunsetTechuila](https://github.com/SunsetTechuila)! - fix: ignore bun built-in modules
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 17, 2024
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.6.1 | 3.6.3 |


## [v3.6.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#363)

##### Patch Changes

-   [#305](import-js/eslint-import-resolver-typescript#305) [`f8d7b82`](import-js/eslint-import-resolver-typescript@f8d7b82) Thanks [@SukkaW](https://github.com/SukkaW)! - Fix resolve for `node:test`, `node:sea`, and `node:sqlite` without sacrificing installation size

-   [#288](import-js/eslint-import-resolver-typescript#288) [`a4c6c78`](import-js/eslint-import-resolver-typescript@a4c6c78) Thanks [@SunsetTechuila](https://github.com/SunsetTechuila)! - fix: ignore bun built-in modules
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 18, 2024
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.6.1 | 3.6.3 |


## [v3.6.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#363)

##### Patch Changes

-   [#305](import-js/eslint-import-resolver-typescript#305) [`f8d7b82`](import-js/eslint-import-resolver-typescript@f8d7b82) Thanks [@SukkaW](https://github.com/SukkaW)! - Fix resolve for `node:test`, `node:sea`, and `node:sqlite` without sacrificing installation size

-   [#288](import-js/eslint-import-resolver-typescript#288) [`a4c6c78`](import-js/eslint-import-resolver-typescript@a4c6c78) Thanks [@SunsetTechuila](https://github.com/SunsetTechuila)! - fix: ignore bun built-in modules
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 19, 2024
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.6.1 | 3.6.3 |


## [v3.6.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#363)

##### Patch Changes

-   [#305](import-js/eslint-import-resolver-typescript#305) [`f8d7b82`](import-js/eslint-import-resolver-typescript@f8d7b82) Thanks [@SukkaW](https://github.com/SukkaW)! - Fix resolve for `node:test`, `node:sea`, and `node:sqlite` without sacrificing installation size

-   [#288](import-js/eslint-import-resolver-typescript#288) [`a4c6c78`](import-js/eslint-import-resolver-typescript@a4c6c78) Thanks [@SunsetTechuila](https://github.com/SunsetTechuila)! - fix: ignore bun built-in modules
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 20, 2024
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.6.1 | 3.6.3 |


## [v3.6.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#363)

##### Patch Changes

-   [#305](import-js/eslint-import-resolver-typescript#305) [`f8d7b82`](import-js/eslint-import-resolver-typescript@f8d7b82) Thanks [@SukkaW](https://github.com/SukkaW)! - Fix resolve for `node:test`, `node:sea`, and `node:sqlite` without sacrificing installation size

-   [#288](import-js/eslint-import-resolver-typescript#288) [`a4c6c78`](import-js/eslint-import-resolver-typescript@a4c6c78) Thanks [@SunsetTechuila](https://github.com/SunsetTechuila)! - fix: ignore bun built-in modules
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 22, 2024
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.6.1 | 3.6.3 |


## [v3.6.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#363)

##### Patch Changes

-   [#305](import-js/eslint-import-resolver-typescript#305) [`f8d7b82`](import-js/eslint-import-resolver-typescript@f8d7b82) Thanks [@SukkaW](https://github.com/SukkaW)! - Fix resolve for `node:test`, `node:sea`, and `node:sqlite` without sacrificing installation size

-   [#288](import-js/eslint-import-resolver-typescript#288) [`a4c6c78`](import-js/eslint-import-resolver-typescript@a4c6c78) Thanks [@SunsetTechuila](https://github.com/SunsetTechuila)! - fix: ignore bun built-in modules
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 23, 2024
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.6.1 | 3.6.3 |


## [v3.6.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#363)

##### Patch Changes

-   [#305](import-js/eslint-import-resolver-typescript#305) [`f8d7b82`](import-js/eslint-import-resolver-typescript@f8d7b82) Thanks [@SukkaW](https://github.com/SukkaW)! - Fix resolve for `node:test`, `node:sea`, and `node:sqlite` without sacrificing installation size

-   [#288](import-js/eslint-import-resolver-typescript#288) [`a4c6c78`](import-js/eslint-import-resolver-typescript@a4c6c78) Thanks [@SunsetTechuila](https://github.com/SunsetTechuila)! - fix: ignore bun built-in modules
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 24, 2024
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.6.1 | 3.6.3 |


## [v3.6.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#363)

##### Patch Changes

-   [#305](import-js/eslint-import-resolver-typescript#305) [`f8d7b82`](import-js/eslint-import-resolver-typescript@f8d7b82) Thanks [@SukkaW](https://github.com/SukkaW)! - Fix resolve for `node:test`, `node:sea`, and `node:sqlite` without sacrificing installation size

-   [#288](import-js/eslint-import-resolver-typescript#288) [`a4c6c78`](import-js/eslint-import-resolver-typescript@a4c6c78) Thanks [@SunsetTechuila](https://github.com/SunsetTechuila)! - fix: ignore bun built-in modules
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 25, 2024
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.6.1 | 3.6.3 |


## [v3.6.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#363)

##### Patch Changes

-   [#305](import-js/eslint-import-resolver-typescript#305) [`f8d7b82`](import-js/eslint-import-resolver-typescript@f8d7b82) Thanks [@SukkaW](https://github.com/SukkaW)! - Fix resolve for `node:test`, `node:sea`, and `node:sqlite` without sacrificing installation size

-   [#288](import-js/eslint-import-resolver-typescript#288) [`a4c6c78`](import-js/eslint-import-resolver-typescript@a4c6c78) Thanks [@SunsetTechuila](https://github.com/SunsetTechuila)! - fix: ignore bun built-in modules
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 26, 2024
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 3.6.1 | 3.6.3 |


## [v3.6.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#363)

##### Patch Changes

-   [#305](import-js/eslint-import-resolver-typescript#305) [`f8d7b82`](import-js/eslint-import-resolver-typescript@f8d7b82) Thanks [@SukkaW](https://github.com/SukkaW)! - Fix resolve for `node:test`, `node:sea`, and `node:sqlite` without sacrificing installation size

-   [#288](import-js/eslint-import-resolver-typescript#288) [`a4c6c78`](import-js/eslint-import-resolver-typescript@a4c6c78) Thanks [@SunsetTechuila](https://github.com/SunsetTechuila)! - fix: ignore bun built-in modules
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.

2 participants