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: remove is-core-module dependency #77

Merged
merged 1 commit into from
Jun 28, 2024
Merged

fix: remove is-core-module dependency #77

merged 1 commit into from
Jun 28, 2024

Conversation

wojtekmaj
Copy link

Follow-up after answer in #76.

Node.js from v6.13.0, v8.10.0, v9.3.0 includes module.builtinModules which we can use to natively check if some module belongs to Node.js core or not.

This drops not one, but three dependencies from pkg, removing 70 KB of bloat: https://npmgraph.js.org/?q=is-core-module

Node.js from v6.13.0, v8.10.0, v9.3.0 includes `module.builtinModules` which we can use to natively check if some module belongs to Node.js core or not. This drops not one, but _three_ dependencies from `pkg`: https://npmgraph.js.org/?q=is-core-module, removing 70 KB of bloat.
@robertsLando robertsLando changed the title Remove is-core-module dependency fix: remove is-core-module dependency Jun 28, 2024
Copy link
Member

@robertsLando robertsLando left a comment

Choose a reason for hiding this comment

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

LGTM

@robertsLando robertsLando enabled auto-merge (squash) June 28, 2024 09:22
@robertsLando robertsLando merged commit 2f27414 into yao-pkg:main Jun 28, 2024
6 checks passed
@wojtekmaj wojtekmaj deleted the no-is-core-module branch June 28, 2024 09:57
Vylpes pushed a commit to Vylpes/random-bunny that referenced this pull request Sep 10, 2024
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@yao-pkg/pkg](https://github.com/yao-pkg/pkg) | devDependencies | minor | [`5.12.0` -> `5.13.0`](https://renovatebot.com/diffs/npm/@yao-pkg%2fpkg/5.12.0/5.13.0) |

---

### Release Notes

<details>
<summary>yao-pkg/pkg (@&#8203;yao-pkg/pkg)</summary>

### [`v5.13.0`](https://github.com/yao-pkg/pkg/blob/HEAD/CHANGELOG.md#5130-2024-09-06)

[Compare Source](yao-pkg/pkg@v5.12.1...v5.13.0)

##### Features

-   bump [email protected] with node 20.17.0 and 18.20.4 support ([dda9032](yao-pkg/pkg@dda9032))

##### Bug Fixes

-   wrong placeholder replaced in windows binary ([#&#8203;86](yao-pkg/pkg#86)) ([d9b28c3](yao-pkg/pkg@d9b28c3))

### [`v5.12.1`](https://github.com/yao-pkg/pkg/blob/HEAD/CHANGELOG.md#5121-2024-08-14)

[Compare Source](yao-pkg/pkg@v5.12.0...v5.12.1)

##### Bug Fixes

-   remove `is-core-module` dependency ([#&#8203;77](yao-pkg/pkg#77)) ([2f27414](yao-pkg/pkg@2f27414))
-   run prebuild-install only if actually used by the package ([#&#8203;83](yao-pkg/pkg#83)) ([2a046e4](yao-pkg/pkg@2a046e4))

##### Chores

-   drop package-lock file uploaded by error ([ba407ef](yao-pkg/pkg@ba407ef))

</details>

---

### 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.

---

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

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjQzMS40IiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: https://git.vylpes.xyz/RabbitLabs/random-bunny/pulls/216
Reviewed-by: Vylpes <[email protected]>
Co-authored-by: Renovate Bot <[email protected]>
Co-committed-by: Renovate Bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants