From 435d1f7acd78a00c9dab2a7f6489155c7caac97c Mon Sep 17 00:00:00 2001 From: Sam Gammon Date: Sat, 30 Mar 2024 18:31:25 -0700 Subject: [PATCH] fix: use `node:`-prefixed requires for builtins Fixes and closes isaacs/node-glob#580 by switching to `node:`- prefixed requires for Node API builtins. Will need releases for `minipass` and `path-scurry`, PRs for these are noted below. Relates to: - isaacs/path-scurry#17 - isaacs/minipass#55 Signed-off-by: Sam Gammon PR-URL: https://github.com/isaacs/node-glob/pull/581 Credit: @sgammon Close: #581 Reviewed-by: @isaacs --- src/glob.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glob.ts b/src/glob.ts index 53a85e17..cf200947 100644 --- a/src/glob.ts +++ b/src/glob.ts @@ -8,7 +8,7 @@ import { PathScurryPosix, PathScurryWin32, } from 'path-scurry' -import { fileURLToPath } from 'url' +import { fileURLToPath } from 'node:url' import { IgnoreLike } from './ignore.js' import { Pattern } from './pattern.js' import { GlobStream, GlobWalker } from './walker.js'