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/node/polyfills/_util/_util_callbackify.ts | 2 +- ext/node/polyfills/_util/std_asserts.ts | 4 ++-- ext/node/polyfills/_util/std_testing_diff.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/node/polyfills/_util') diff --git a/ext/node/polyfills/_util/_util_callbackify.ts b/ext/node/polyfills/_util/_util_callbackify.ts index 84ec0274d..511282b0f 100644 --- a/ext/node/polyfills/_util/_util_callbackify.ts +++ b/ext/node/polyfills/_util/_util_callbackify.ts @@ -23,7 +23,7 @@ // These are simplified versions of the "real" errors in Node. -import { nextTick } from "internal:deno_node/_next_tick.ts"; +import { nextTick } from "ext:deno_node/_next_tick.ts"; class NodeFalsyValueRejectionError extends Error { public reason: unknown; diff --git a/ext/node/polyfills/_util/std_asserts.ts b/ext/node/polyfills/_util/std_asserts.ts index bd0a4fc6f..b122cf65e 100644 --- a/ext/node/polyfills/_util/std_asserts.ts +++ b/ext/node/polyfills/_util/std_asserts.ts @@ -1,12 +1,12 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. // vendored from std/testing/asserts.ts -import { red } from "internal:deno_node/_util/std_fmt_colors.ts"; +import { red } from "ext:deno_node/_util/std_fmt_colors.ts"; import { buildMessage, diff, diffstr, -} from "internal:deno_node/_util/std_testing_diff.ts"; +} from "ext:deno_node/_util/std_testing_diff.ts"; /** Converts the input into a string. Objects, Sets and Maps are sorted so as to * make tests less flaky */ diff --git a/ext/node/polyfills/_util/std_testing_diff.ts b/ext/node/polyfills/_util/std_testing_diff.ts index a536f70ba..74fe56596 100644 --- a/ext/node/polyfills/_util/std_testing_diff.ts +++ b/ext/node/polyfills/_util/std_testing_diff.ts @@ -9,7 +9,7 @@ import { green, red, white, -} from "internal:deno_node/_util/std_fmt_colors.ts"; +} from "ext:deno_node/_util/std_fmt_colors.ts"; interface FarthestPoint { y: number; -- cgit v1.2.3