From 72fe9bb47005e720444e65a66e91559287137780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 8 Mar 2023 07:44:54 -0400 Subject: refactor: rename InternalModuleLoader to ExtModuleLoader, use ext: scheme for snapshotted modules (#18041) This commit renames "deno_core::InternalModuleLoader" to "ExtModuleLoader" and changes the specifiers used by the modules loaded from this loader to "ext:". "internal:" scheme was really ambiguous and it's more characters than "ext:", which should result in slightly smaller snapshot size. Closes https://github.com/denoland/deno/issues/18020 --- ext/net/01_net.js | 4 ++-- ext/net/02_tls.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/net') diff --git a/ext/net/01_net.js b/ext/net/01_net.js index c56f837b8..8d8e34e56 100644 --- a/ext/net/01_net.js +++ b/ext/net/01_net.js @@ -7,8 +7,8 @@ import { readableStreamForRidUnrefableRef, readableStreamForRidUnrefableUnref, writableStreamForRid, -} from "internal:deno_web/06_streams.js"; -import * as abortSignal from "internal:deno_web/03_abort_signal.js"; +} from "ext:deno_web/06_streams.js"; +import * as abortSignal from "ext:deno_web/03_abort_signal.js"; const primordials = globalThis.__bootstrap.primordials; const { Error, diff --git a/ext/net/02_tls.js b/ext/net/02_tls.js index 14bf3dce8..a40972e34 100644 --- a/ext/net/02_tls.js +++ b/ext/net/02_tls.js @@ -2,7 +2,7 @@ const core = globalThis.Deno.core; const ops = core.ops; -import { Conn, Listener } from "internal:deno_net/01_net.js"; +import { Conn, Listener } from "ext:deno_net/01_net.js"; const primordials = globalThis.__bootstrap.primordials; const { TypeError } = primordials; -- cgit v1.2.3