jprichardson / node-jsonfile

Easily read/write JSON files.
MIT License
1.2k stars 321 forks source link

Use "node:" prefixed imports everywhere #154

Open boenrobot opened 2 months ago

boenrobot commented 2 months ago

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