From 05f91cde98c2b2ed8a6e930f4f019e1665b73f01 Mon Sep 17 00:00:00 2001 From: Evan Mattiza Date: Mon, 6 Jan 2025 19:19:29 -0600 Subject: [PATCH 1/2] chore: use node prefix imports change import to be prefixed with node: to indicate builtin module usage --- src/Node/Path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Node/Path.js b/src/Node/Path.js index 908c0d9..eaad2de 100644 --- a/src/Node/Path.js +++ b/src/Node/Path.js @@ -1,4 +1,4 @@ -import path from "path"; +import path from "node:path"; export const normalize = path.normalize; export function concat(segments) { From a1cf3a016ade103c462befeda12bec3a62bc1b86 Mon Sep 17 00:00:00 2001 From: Evan Mattiza Date: Mon, 6 Jan 2025 19:27:26 -0600 Subject: [PATCH 2/2] add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f741311..18b5648 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ New features: Bugfixes: Other improvements: +- Use node: prefix imports in FFI to preferentially force builtin module usage (#24) ## [v5.0.0](https://github.com/purescript-node/purescript-node-path/releases/tag/v5.0.0) - 2022-04-27