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

Add 'node:' prefix explicitly to import built-in modules #746

Merged
merged 11 commits into from
Mar 11, 2024

Conversation

Yang-33
Copy link
Contributor

@Yang-33 Yang-33 commented Mar 10, 2024

Current Node.js v18 allows us to use node: prefix to import built-in modules. line-bot-sdk-nodejs only supports Node.js version >= 18, this won't affect normal line-bot-sdk-nodejs users.

ref: nodejs/node#36098, https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#2021-09-28-version-14180-fermium-lts-targos
ref: https://nodejs.org/api/esm.html#node-imports

list: https://github.com/sindresorhus/builtin-modules/blob/main/builtin-modules.json

Copy link
Member

@tokuhirom tokuhirom left a comment

Choose a reason for hiding this comment

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

@Yang-33 Yang-33 merged commit b1db79a into line:master Mar 11, 2024
3 checks passed
@Yang-33 Yang-33 deleted the add-node-prefix branch March 11, 2024 04:12
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