Skip to content

Use "node:" prefixed imports everywhere #154

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

boenrobot
Copy link

@boenrobot boenrobot commented Jul 26, 2024

And bump the minimum nodejs version to the ones that support this.

CI is updated accordingly.


Using "node:" prefixed imports enables this library to be used with runtimes other than node which have a node compatibility layer when internal dependencies are prefixed with "node:". Case in point is workerd. The cost is raising up the minimum node version to ">=14.18.0 <15 || >=16".

@boenrobot boenrobot force-pushed the runtimeCompat branch 3 times, most recently from 73a5006 to 947d0bc Compare July 26, 2024 13:22
…version to the ones that support this.

CI is updated accordingly.
@RyanZim
Copy link
Collaborator

RyanZim commented Aug 9, 2025

I know this is over a year later; my apologies, I must have somehow missed the notification for this. I'm not opposed to this change in principle; obviously is a breaking change. If we're going to release a major version, it probably makes sense to do other changes, like using fs/promises internally, etc. at the same time.

node: [10.x, 12.x, 14.x, 16.x]
runs-on: ubuntu-latest
node: [14.18.0, 14, 16.0.0, 16]
os: [ubuntu-latest, macOS-latest, windows-latest]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Appveyor is windows testing; no need to duplicate it here. Is there a good reason for testing macOS separately?

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