summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-07-02 20:19:30 +0200
committerGitHub <noreply@github.com>2023-07-02 20:19:30 +0200
commit01f0d03ae82c422c1f9551f3bfbb57daac769ddc (patch)
tree4506903def90de3da497c81e217d70d62f380dab /ext/node/polyfills/internal
parent805497a9a50c3219f64f481feb72271b2fcd6790 (diff)
refactor: rename built-in node modules from ext:deno_node/ to node: (#19680)
Closes https://github.com/denoland/deno/issues/19510
Diffstat (limited to 'ext/node/polyfills/internal')
-rw-r--r--ext/node/polyfills/internal/child_process.ts8
-rw-r--r--ext/node/polyfills/internal/console/constructor.mjs2
-rw-r--r--ext/node/polyfills/internal/crypto/_randomBytes.ts2
-rw-r--r--ext/node/polyfills/internal/crypto/_randomFill.ts2
-rw-r--r--ext/node/polyfills/internal/crypto/certificate.ts2
-rw-r--r--ext/node/polyfills/internal/crypto/cipher.ts2
-rw-r--r--ext/node/polyfills/internal/crypto/diffiehellman.ts2
-rw-r--r--ext/node/polyfills/internal/crypto/hash.ts4
-rw-r--r--ext/node/polyfills/internal/crypto/keygen.ts2
-rw-r--r--ext/node/polyfills/internal/crypto/keys.ts2
-rw-r--r--ext/node/polyfills/internal/crypto/pbkdf2.ts2
-rw-r--r--ext/node/polyfills/internal/crypto/scrypt.ts2
-rw-r--r--ext/node/polyfills/internal/crypto/sig.ts2
-rw-r--r--ext/node/polyfills/internal/crypto/util.ts2
-rw-r--r--ext/node/polyfills/internal/crypto/x509.ts2
-rw-r--r--ext/node/polyfills/internal/dgram.ts2
-rw-r--r--ext/node/polyfills/internal/dns/promises.ts2
-rw-r--r--ext/node/polyfills/internal/dns/utils.ts2
-rw-r--r--ext/node/polyfills/internal/event_target.mjs6
-rw-r--r--ext/node/polyfills/internal/fs/handle.ts6
-rw-r--r--ext/node/polyfills/internal/fs/streams.d.ts4
-rw-r--r--ext/node/polyfills/internal/fs/streams.mjs6
-rw-r--r--ext/node/polyfills/internal/fs/utils.mjs8
-rw-r--r--ext/node/polyfills/internal/http.ts2
-rw-r--r--ext/node/polyfills/internal/net.ts2
-rw-r--r--ext/node/polyfills/internal/readline/emitKeypressEvents.mjs4
-rw-r--r--ext/node/polyfills/internal/readline/interface.mjs6
-rw-r--r--ext/node/polyfills/internal/stream_base_commons.ts4
-rw-r--r--ext/node/polyfills/internal/streams/buffer_list.mjs2
-rw-r--r--ext/node/polyfills/internal/streams/lazy_transform.mjs2
-rw-r--r--ext/node/polyfills/internal/timers.mjs2
-rw-r--r--ext/node/polyfills/internal/url.ts4
-rw-r--r--ext/node/polyfills/internal/util/comparisons.ts2
33 files changed, 52 insertions, 52 deletions
diff --git a/ext/node/polyfills/internal/child_process.ts b/ext/node/polyfills/internal/child_process.ts
index cab52a4ba..b11281fd7 100644
--- a/ext/node/polyfills/internal/child_process.ts
+++ b/ext/node/polyfills/internal/child_process.ts
@@ -7,10 +7,10 @@
// deno-lint-ignore-file prefer-primordials
import { assert } from "ext:deno_node/_util/asserts.ts";
-import { EventEmitter } from "ext:deno_node/events.ts";
+import { EventEmitter } from "node:events";
import { os } from "ext:deno_node/internal_binding/constants.ts";
import { notImplemented, warnNotImplemented } from "ext:deno_node/_utils.ts";
-import { Readable, Stream, Writable } from "ext:deno_node/stream.ts";
+import { Readable, Stream, Writable } from "node:stream";
import { deferred } from "ext:deno_node/_util/async.ts";
import { isWindows } from "ext:deno_node/_util/os.ts";
import { nextTick } from "ext:deno_node/_next_tick.ts";
@@ -20,7 +20,7 @@ import {
ERR_INVALID_ARG_VALUE,
ERR_UNKNOWN_SIGNAL,
} from "ext:deno_node/internal/errors.ts";
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import { errnoException } from "ext:deno_node/internal/errors.ts";
import { ErrnoException } from "ext:deno_node/_global.d.ts";
import { codeMap } from "ext:deno_node/internal_binding/uv.ts";
@@ -43,7 +43,7 @@ import {
} from "ext:deno_node/internal/primordials.mjs";
import { kEmptyObject } from "ext:deno_node/internal/util.mjs";
import { getValidatedPath } from "ext:deno_node/internal/fs/utils.mjs";
-import process from "ext:deno_node/process.ts";
+import process from "node:process";
export function mapValues<T, O>(
record: Readonly<Record<string, T>>,
diff --git a/ext/node/polyfills/internal/console/constructor.mjs b/ext/node/polyfills/internal/console/constructor.mjs
index 9c28fc9eb..f15e677ec 100644
--- a/ext/node/polyfills/internal/console/constructor.mjs
+++ b/ext/node/polyfills/internal/console/constructor.mjs
@@ -28,7 +28,7 @@ const previewEntries = (iter, isKeyValue) => {
return [...iter];
}
};
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
const { isBuffer } = Buffer;
import { formatWithOptions, inspect } from "ext:deno_node/internal/util/inspect.mjs";
import {
diff --git a/ext/node/polyfills/internal/crypto/_randomBytes.ts b/ext/node/polyfills/internal/crypto/_randomBytes.ts
index aff5ea522..71fdca99c 100644
--- a/ext/node/polyfills/internal/crypto/_randomBytes.ts
+++ b/ext/node/polyfills/internal/crypto/_randomBytes.ts
@@ -3,7 +3,7 @@
// TODO(petamoriken): enable prefer-primordials for node polyfills
// deno-lint-ignore-file prefer-primordials
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
export const MAX_RANDOM_VALUES = 65536;
export const MAX_SIZE = 4294967295;
diff --git a/ext/node/polyfills/internal/crypto/_randomFill.ts b/ext/node/polyfills/internal/crypto/_randomFill.ts
index dab6d3108..927acaf8d 100644
--- a/ext/node/polyfills/internal/crypto/_randomFill.ts
+++ b/ext/node/polyfills/internal/crypto/_randomFill.ts
@@ -6,7 +6,7 @@
import {
MAX_SIZE as kMaxUint32,
} from "ext:deno_node/internal/crypto/_randomBytes.ts";
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
const { core } = globalThis.__bootstrap;
const { ops } = core;
diff --git a/ext/node/polyfills/internal/crypto/certificate.ts b/ext/node/polyfills/internal/crypto/certificate.ts
index ebcfecbda..98c00a621 100644
--- a/ext/node/polyfills/internal/crypto/certificate.ts
+++ b/ext/node/polyfills/internal/crypto/certificate.ts
@@ -2,7 +2,7 @@
// Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license.
import { notImplemented } from "ext:deno_node/_utils.ts";
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import { BinaryLike } from "ext:deno_node/internal/crypto/types.ts";
export class Certificate {
diff --git a/ext/node/polyfills/internal/crypto/cipher.ts b/ext/node/polyfills/internal/crypto/cipher.ts
index 002cafe1c..e954562c5 100644
--- a/ext/node/polyfills/internal/crypto/cipher.ts
+++ b/ext/node/polyfills/internal/crypto/cipher.ts
@@ -9,7 +9,7 @@ import {
validateInt32,
validateObject,
} from "ext:deno_node/internal/validators.mjs";
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import { notImplemented } from "ext:deno_node/_utils.ts";
import type { TransformOptions } from "ext:deno_node/_stream.d.ts";
import { Transform } from "ext:deno_node/_stream.mjs";
diff --git a/ext/node/polyfills/internal/crypto/diffiehellman.ts b/ext/node/polyfills/internal/crypto/diffiehellman.ts
index 7621e93fc..9b11920cd 100644
--- a/ext/node/polyfills/internal/crypto/diffiehellman.ts
+++ b/ext/node/polyfills/internal/crypto/diffiehellman.ts
@@ -18,7 +18,7 @@ import {
validateInt32,
validateString,
} from "ext:deno_node/internal/validators.mjs";
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import {
EllipticCurve,
ellipticCurves,
diff --git a/ext/node/polyfills/internal/crypto/hash.ts b/ext/node/polyfills/internal/crypto/hash.ts
index d24c23ec9..cd29251c2 100644
--- a/ext/node/polyfills/internal/crypto/hash.ts
+++ b/ext/node/polyfills/internal/crypto/hash.ts
@@ -5,8 +5,8 @@
// deno-lint-ignore-file prefer-primordials
import { TextEncoder } from "ext:deno_web/08_text_encoding.js";
-import { Buffer } from "ext:deno_node/buffer.ts";
-import { Transform } from "ext:deno_node/stream.ts";
+import { Buffer } from "node:buffer";
+import { Transform } from "node:stream";
import {
forgivingBase64Encode as encodeToBase64,
forgivingBase64UrlEncode as encodeToBase64Url,
diff --git a/ext/node/polyfills/internal/crypto/keygen.ts b/ext/node/polyfills/internal/crypto/keygen.ts
index c0f82d9df..29a062e00 100644
--- a/ext/node/polyfills/internal/crypto/keygen.ts
+++ b/ext/node/polyfills/internal/crypto/keygen.ts
@@ -26,7 +26,7 @@ import {
validateString,
validateUint32,
} from "ext:deno_node/internal/validators.mjs";
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import { KeyFormat, KeyType } from "ext:deno_node/internal/crypto/types.ts";
const { core } = globalThis.__bootstrap;
diff --git a/ext/node/polyfills/internal/crypto/keys.ts b/ext/node/polyfills/internal/crypto/keys.ts
index 8356a908c..f6e5cbb86 100644
--- a/ext/node/polyfills/internal/crypto/keys.ts
+++ b/ext/node/polyfills/internal/crypto/keys.ts
@@ -20,7 +20,7 @@ import type {
PrivateKeyInput,
PublicKeyInput,
} from "ext:deno_node/internal/crypto/types.ts";
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import {
isAnyArrayBuffer,
isArrayBufferView,
diff --git a/ext/node/polyfills/internal/crypto/pbkdf2.ts b/ext/node/polyfills/internal/crypto/pbkdf2.ts
index 10f35e54f..f177d153a 100644
--- a/ext/node/polyfills/internal/crypto/pbkdf2.ts
+++ b/ext/node/polyfills/internal/crypto/pbkdf2.ts
@@ -3,7 +3,7 @@
// TODO(petamoriken): enable prefer-primordials for node polyfills
// deno-lint-ignore-file prefer-primordials
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import { HASH_DATA } from "ext:deno_node/internal/crypto/types.ts";
const { core } = globalThis.__bootstrap;
diff --git a/ext/node/polyfills/internal/crypto/scrypt.ts b/ext/node/polyfills/internal/crypto/scrypt.ts
index ca9187edb..e87cdb856 100644
--- a/ext/node/polyfills/internal/crypto/scrypt.ts
+++ b/ext/node/polyfills/internal/crypto/scrypt.ts
@@ -26,7 +26,7 @@ SOFTWARE.
// TODO(petamoriken): enable prefer-primordials for node polyfills
// deno-lint-ignore-file prefer-primordials
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import { HASH_DATA } from "ext:deno_node/internal/crypto/types.ts";
const { core } = globalThis.__bootstrap;
diff --git a/ext/node/polyfills/internal/crypto/sig.ts b/ext/node/polyfills/internal/crypto/sig.ts
index 29e8ba3bb..ebbd11dc6 100644
--- a/ext/node/polyfills/internal/crypto/sig.ts
+++ b/ext/node/polyfills/internal/crypto/sig.ts
@@ -9,7 +9,7 @@ import {
validateFunction,
validateString,
} from "ext:deno_node/internal/validators.mjs";
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import type { WritableOptions } from "ext:deno_node/_stream.d.ts";
import Writable from "ext:deno_node/internal/streams/writable.mjs";
import type {
diff --git a/ext/node/polyfills/internal/crypto/util.ts b/ext/node/polyfills/internal/crypto/util.ts
index ad4e8ef23..57977ace2 100644
--- a/ext/node/polyfills/internal/crypto/util.ts
+++ b/ext/node/polyfills/internal/crypto/util.ts
@@ -5,7 +5,7 @@
// deno-lint-ignore-file prefer-primordials
import { notImplemented } from "ext:deno_node/_utils.ts";
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import {
ERR_INVALID_ARG_TYPE,
hideStackFrames,
diff --git a/ext/node/polyfills/internal/crypto/x509.ts b/ext/node/polyfills/internal/crypto/x509.ts
index d01c81ddf..ea2b3b8a0 100644
--- a/ext/node/polyfills/internal/crypto/x509.ts
+++ b/ext/node/polyfills/internal/crypto/x509.ts
@@ -5,7 +5,7 @@
// deno-lint-ignore-file prefer-primordials
import { KeyObject } from "ext:deno_node/internal/crypto/keys.ts";
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import { ERR_INVALID_ARG_TYPE } from "ext:deno_node/internal/errors.ts";
import { isArrayBufferView } from "ext:deno_node/internal/util/types.ts";
import { validateString } from "ext:deno_node/internal/validators.mjs";
diff --git a/ext/node/polyfills/internal/dgram.ts b/ext/node/polyfills/internal/dgram.ts
index cffbe9a9a..8794a26d8 100644
--- a/ext/node/polyfills/internal/dgram.ts
+++ b/ext/node/polyfills/internal/dgram.ts
@@ -23,7 +23,7 @@
// TODO(petamoriken): enable prefer-primordials for node polyfills
// deno-lint-ignore-file prefer-primordials
-import { lookup as defaultLookup } from "ext:deno_node/dns.ts";
+import { lookup as defaultLookup } from "node:dns";
import {
isInt32,
validateFunction,
diff --git a/ext/node/polyfills/internal/dns/promises.ts b/ext/node/polyfills/internal/dns/promises.ts
index c88377aff..c68fedae3 100644
--- a/ext/node/polyfills/internal/dns/promises.ts
+++ b/ext/node/polyfills/internal/dns/promises.ts
@@ -59,7 +59,7 @@ import {
GetAddrInfoReqWrap,
QueryReqWrap,
} from "ext:deno_node/internal_binding/cares_wrap.ts";
-import { toASCII } from "ext:deno_node/punycode.ts";
+import { toASCII } from "node:punycode";
function onlookup(
this: GetAddrInfoReqWrap,
diff --git a/ext/node/polyfills/internal/dns/utils.ts b/ext/node/polyfills/internal/dns/utils.ts
index e9747f42e..c78046b56 100644
--- a/ext/node/polyfills/internal/dns/utils.ts
+++ b/ext/node/polyfills/internal/dns/utils.ts
@@ -24,7 +24,7 @@
// deno-lint-ignore-file prefer-primordials
import { getOptionValue } from "ext:deno_node/internal/options.ts";
-import { emitWarning } from "ext:deno_node/process.ts";
+import { emitWarning } from "node:process";
import {
AI_ADDRCONFIG,
AI_ALL,
diff --git a/ext/node/polyfills/internal/event_target.mjs b/ext/node/polyfills/internal/event_target.mjs
index 2ecbbcde9..7f7ab8c60 100644
--- a/ext/node/polyfills/internal/event_target.mjs
+++ b/ext/node/polyfills/internal/event_target.mjs
@@ -11,7 +11,7 @@ import {
ERR_MISSING_ARGS,
} from "ext:deno_node/internal/errors.ts";
import { validateObject, validateString } from "ext:deno_node/internal/validators.mjs";
-import { emitWarning } from "ext:deno_node/process.ts";
+import { emitWarning } from "node:process";
import { nextTick } from "ext:deno_node/_next_tick.ts";
import { Event as WebEvent, EventTarget as WebEventTarget } from "ext:deno_web/02_event.js";
@@ -20,12 +20,12 @@ import {
kEmptyObject,
kEnumerableProperty,
} from "ext:deno_node/internal/util.mjs";
-import { inspect } from "ext:deno_node/util.ts";
+import { inspect } from "node:util";
const kIsEventTarget = Symbol.for("nodejs.event_target");
const kIsNodeEventTarget = Symbol("kIsNodeEventTarget");
-import { EventEmitter } from "ext:deno_node/events.ts";
+import { EventEmitter } from "node:events";
const {
kMaxEventTargetListeners,
kMaxEventTargetListenersWarned,
diff --git a/ext/node/polyfills/internal/fs/handle.ts b/ext/node/polyfills/internal/fs/handle.ts
index 28b97616a..edf2708e9 100644
--- a/ext/node/polyfills/internal/fs/handle.ts
+++ b/ext/node/polyfills/internal/fs/handle.ts
@@ -3,9 +3,9 @@
// TODO(petamoriken): enable prefer-primordials for node polyfills
// deno-lint-ignore-file prefer-primordials
-import { EventEmitter } from "ext:deno_node/events.ts";
-import { Buffer } from "ext:deno_node/buffer.ts";
-import { promises, read, write } from "ext:deno_node/fs.ts";
+import { EventEmitter } from "node:events";
+import { Buffer } from "node:buffer";
+import { promises, read, write } from "node:fs";
import {
BinaryOptionsArgument,
FileOptionsArgument,
diff --git a/ext/node/polyfills/internal/fs/streams.d.ts b/ext/node/polyfills/internal/fs/streams.d.ts
index 03d12b6d7..7562bfb85 100644
--- a/ext/node/polyfills/internal/fs/streams.d.ts
+++ b/ext/node/polyfills/internal/fs/streams.d.ts
@@ -3,9 +3,9 @@
// deno-lint-ignore-file no-explicit-any
import * as stream from "ext:deno_node/_stream.d.ts";
-import * as promises from "ext:deno_node/fs/promises.ts";
+import * as promises from "node:fs/promises";
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import { BufferEncoding, ErrnoException } from "ext:deno_node/_global.d.ts";
type PathLike = string | Buffer | URL;
diff --git a/ext/node/polyfills/internal/fs/streams.mjs b/ext/node/polyfills/internal/fs/streams.mjs
index feb13462b..ef913f6e2 100644
--- a/ext/node/polyfills/internal/fs/streams.mjs
+++ b/ext/node/polyfills/internal/fs/streams.mjs
@@ -6,7 +6,7 @@
import { ERR_INVALID_ARG_TYPE, ERR_OUT_OF_RANGE } from "ext:deno_node/internal/errors.ts";
import { kEmptyObject } from "ext:deno_node/internal/util.mjs";
-import { deprecate } from "ext:deno_node/util.ts";
+import { deprecate } from "node:util";
import { validateFunction, validateInteger } from "ext:deno_node/internal/validators.mjs";
import { errorOrDestroy } from "ext:deno_node/internal/streams/destroy.mjs";
import { open as fsOpen } from "ext:deno_node/_fs/_fs_open.ts";
@@ -14,14 +14,14 @@ import { read as fsRead } from "ext:deno_node/_fs/_fs_read.ts";
import { write as fsWrite } from "ext:deno_node/_fs/_fs_write.mjs";
import { writev as fsWritev } from "ext:deno_node/_fs/_fs_writev.mjs";
import { close as fsClose } from "ext:deno_node/_fs/_fs_close.ts";
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import {
copyObject,
getOptions,
getValidatedFd,
validatePath,
} from "ext:deno_node/internal/fs/utils.mjs";
-import { finished, Readable, Writable } from "ext:deno_node/stream.ts";
+import { finished, Readable, Writable } from "node:stream";
import { toPathIfFileURL } from "ext:deno_node/internal/url.ts";
import { nextTick } from "ext:deno_node/_next_tick.ts";
const kIoDone = Symbol("kIoDone");
diff --git a/ext/node/polyfills/internal/fs/utils.mjs b/ext/node/polyfills/internal/fs/utils.mjs
index d73aae19b..09169127d 100644
--- a/ext/node/polyfills/internal/fs/utils.mjs
+++ b/ext/node/polyfills/internal/fs/utils.mjs
@@ -5,7 +5,7 @@
"use strict";
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import {
ERR_FS_EISDIR,
ERR_FS_INVALID_SYMLINK_TYPE,
@@ -23,7 +23,7 @@ import {
isUint8Array,
} from "ext:deno_node/internal/util/types.ts";
import { once } from "ext:deno_node/internal/util.mjs";
-import { deprecate } from "ext:deno_node/util.ts";
+import { deprecate } from "node:util";
import { toPathIfFileURL } from "ext:deno_node/internal/url.ts";
import {
validateAbortSignal,
@@ -34,14 +34,14 @@ import {
validateObject,
validateUint32,
} from "ext:deno_node/internal/validators.mjs";
-import pathModule from "ext:deno_node/path.ts";
+import pathModule from "node:path";
const kType = Symbol("type");
const kStats = Symbol("stats");
import assert from "ext:deno_node/internal/assert.mjs";
import { lstat, lstatSync } from "ext:deno_node/_fs/_fs_lstat.ts";
import { stat, statSync } from "ext:deno_node/_fs/_fs_stat.ts";
import { isWindows } from "ext:deno_node/_util/os.ts";
-import process from "ext:deno_node/process.ts";
+import process from "node:process";
import {
fs as fsConstants,
diff --git a/ext/node/polyfills/internal/http.ts b/ext/node/polyfills/internal/http.ts
index 00e6506eb..3ea589907 100644
--- a/ext/node/polyfills/internal/http.ts
+++ b/ext/node/polyfills/internal/http.ts
@@ -4,7 +4,7 @@
// TODO(petamoriken): enable prefer-primordials for node polyfills
// deno-lint-ignore-file prefer-primordials
-import { setUnrefTimeout } from "ext:deno_node/timers.ts";
+import { setUnrefTimeout } from "node:timers";
import { notImplemented } from "ext:deno_node/_utils.ts";
let utcCache: string | undefined;
diff --git a/ext/node/polyfills/internal/net.ts b/ext/node/polyfills/internal/net.ts
index cec65aabd..4a6b8ba2c 100644
--- a/ext/node/polyfills/internal/net.ts
+++ b/ext/node/polyfills/internal/net.ts
@@ -23,7 +23,7 @@
// TODO(petamoriken): enable prefer-primordials for node polyfills
// deno-lint-ignore-file prefer-primordials
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import { uvException } from "ext:deno_node/internal/errors.ts";
import { writeBuffer } from "ext:deno_node/internal_binding/node_file.ts";
diff --git a/ext/node/polyfills/internal/readline/emitKeypressEvents.mjs b/ext/node/polyfills/internal/readline/emitKeypressEvents.mjs
index 145dd18ff..6a68e0f67 100644
--- a/ext/node/polyfills/internal/readline/emitKeypressEvents.mjs
+++ b/ext/node/polyfills/internal/readline/emitKeypressEvents.mjs
@@ -25,13 +25,13 @@
import { charLengthAt, CSI, emitKeys } from "ext:deno_node/internal/readline/utils.mjs";
import { kSawKeyPress } from "ext:deno_node/internal/readline/symbols.mjs";
-import { clearTimeout, setTimeout } from "ext:deno_node/timers.ts";
+import { clearTimeout, setTimeout } from "node:timers";
const {
kEscape,
} = CSI;
-import { StringDecoder } from "ext:deno_node/string_decoder.ts";
+import { StringDecoder } from "node:string_decoder";
const KEYPRESS_DECODER = Symbol("keypress-decoder");
const ESCAPE_DECODER = Symbol("escape-decoder");
diff --git a/ext/node/polyfills/internal/readline/interface.mjs b/ext/node/polyfills/internal/readline/interface.mjs
index 8f0eb5047..3c214322a 100644
--- a/ext/node/polyfills/internal/readline/interface.mjs
+++ b/ext/node/polyfills/internal/readline/interface.mjs
@@ -36,7 +36,7 @@ import {
getStringWidth,
stripVTControlCharacters,
} from "ext:deno_node/internal/util/inspect.mjs";
-import EventEmitter from "ext:deno_node/events.ts";
+import EventEmitter from "node:events";
import { emitKeypressEvents } from "ext:deno_node/internal/readline/emitKeypressEvents.mjs";
import {
charLengthAt,
@@ -46,9 +46,9 @@ import {
} from "ext:deno_node/internal/readline/utils.mjs";
import { clearScreenDown, cursorTo, moveCursor } from "ext:deno_node/internal/readline/callbacks.mjs";
import { Readable } from "ext:deno_node/_stream.mjs";
-import process from "ext:deno_node/process.ts";
+import process from "node:process";
-import { StringDecoder } from "ext:deno_node/string_decoder.ts";
+import { StringDecoder } from "node:string_decoder";
import {
kAddHistory,
kDecoder,
diff --git a/ext/node/polyfills/internal/stream_base_commons.ts b/ext/node/polyfills/internal/stream_base_commons.ts
index 9e665d29b..250f54c7d 100644
--- a/ext/node/polyfills/internal/stream_base_commons.ts
+++ b/ext/node/polyfills/internal/stream_base_commons.ts
@@ -35,10 +35,10 @@ import {
import { isUint8Array } from "ext:deno_node/internal/util/types.ts";
import { errnoException } from "ext:deno_node/internal/errors.ts";
import { getTimerDuration, kTimeout } from "ext:deno_node/internal/timers.mjs";
-import { setUnrefTimeout } from "ext:deno_node/timers.ts";
+import { setUnrefTimeout } from "node:timers";
import { validateFunction } from "ext:deno_node/internal/validators.mjs";
import { codeMap } from "ext:deno_node/internal_binding/uv.ts";
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
export const kMaybeDestroy = Symbol("kMaybeDestroy");
export const kUpdateTimer = Symbol("kUpdateTimer");
diff --git a/ext/node/polyfills/internal/streams/buffer_list.mjs b/ext/node/polyfills/internal/streams/buffer_list.mjs
index 37ad26b74..5b81134ac 100644
--- a/ext/node/polyfills/internal/streams/buffer_list.mjs
+++ b/ext/node/polyfills/internal/streams/buffer_list.mjs
@@ -2,7 +2,7 @@
// Copyright Joyent and Node contributors. All rights reserved. MIT license.
// deno-lint-ignore-file
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import { inspect } from "ext:deno_node/internal/util/inspect.mjs";
class BufferList {
diff --git a/ext/node/polyfills/internal/streams/lazy_transform.mjs b/ext/node/polyfills/internal/streams/lazy_transform.mjs
index 2e2defffc..0606341bb 100644
--- a/ext/node/polyfills/internal/streams/lazy_transform.mjs
+++ b/ext/node/polyfills/internal/streams/lazy_transform.mjs
@@ -3,7 +3,7 @@
// deno-lint-ignore-file
import { getDefaultEncoding } from "ext:deno_node/internal/crypto/util.ts";
-import stream from "ext:deno_node/stream.ts";
+import stream from "node:stream";
function LazyTransform(options) {
this._options = options;
diff --git a/ext/node/polyfills/internal/timers.mjs b/ext/node/polyfills/internal/timers.mjs
index cf2f8c070..d7c986917 100644
--- a/ext/node/polyfills/internal/timers.mjs
+++ b/ext/node/polyfills/internal/timers.mjs
@@ -7,7 +7,7 @@
import { inspect } from "ext:deno_node/internal/util/inspect.mjs";
import { validateFunction, validateNumber } from "ext:deno_node/internal/validators.mjs";
import { ERR_OUT_OF_RANGE } from "ext:deno_node/internal/errors.ts";
-import { emitWarning } from "ext:deno_node/process.ts";
+import { emitWarning } from "node:process";
import {
setTimeout as setTimeout_,
clearTimeout as clearTimeout_,
diff --git a/ext/node/polyfills/internal/url.ts b/ext/node/polyfills/internal/url.ts
index 71d6fb984..248730f4d 100644
--- a/ext/node/polyfills/internal/url.ts
+++ b/ext/node/polyfills/internal/url.ts
@@ -3,8 +3,8 @@
// TODO(petamoriken): enable prefer-primordials for node polyfills
// deno-lint-ignore-file prefer-primordials
-import { fileURLToPath } from "ext:deno_node/url.ts";
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { fileURLToPath } from "node:url";
+import { Buffer } from "node:buffer";
const searchParams = Symbol("query");
diff --git a/ext/node/polyfills/internal/util/comparisons.ts b/ext/node/polyfills/internal/util/comparisons.ts
index 1ceeabaae..83dcf40db 100644
--- a/ext/node/polyfills/internal/util/comparisons.ts
+++ b/ext/node/polyfills/internal/util/comparisons.ts
@@ -21,7 +21,7 @@ import {
isTypedArray,
} from "ext:deno_node/internal/util/types.ts";
-import { Buffer } from "ext:deno_node/buffer.ts";
+import { Buffer } from "node:buffer";
import {
getOwnNonIndexProperties,
ONLY_ENUMERABLE,