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/url.ts | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'ext/node/polyfills/url.ts') diff --git a/ext/node/polyfills/url.ts b/ext/node/polyfills/url.ts index 4366f14ea..4beebe844 100644 --- a/ext/node/polyfills/url.ts +++ b/ext/node/polyfills/url.ts @@ -27,8 +27,8 @@ import { ERR_INVALID_FILE_URL_PATH, ERR_INVALID_URL, ERR_INVALID_URL_SCHEME, -} from "internal:deno_node/internal/errors.ts"; -import { validateString } from "internal:deno_node/internal/validators.mjs"; +} from "ext:deno_node/internal/errors.ts"; +import { validateString } from "ext:deno_node/internal/validators.mjs"; import { CHAR_0, CHAR_9, @@ -65,20 +65,17 @@ import { CHAR_UPPERCASE_Z, CHAR_VERTICAL_LINE, CHAR_ZERO_WIDTH_NOBREAK_SPACE, -} from "internal:deno_node/path/_constants.ts"; -import * as path from "internal:deno_node/path.ts"; -import { toASCII, toUnicode } from "internal:deno_node/punycode.ts"; -import { isWindows, osType } from "internal:deno_node/_util/os.ts"; -import { - encodeStr, - hexTable, -} from "internal:deno_node/internal/querystring.ts"; -import querystring from "internal:deno_node/querystring.ts"; +} from "ext:deno_node/path/_constants.ts"; +import * as path from "ext:deno_node/path.ts"; +import { toASCII, toUnicode } from "ext:deno_node/punycode.ts"; +import { isWindows, osType } from "ext:deno_node/_util/os.ts"; +import { encodeStr, hexTable } from "ext:deno_node/internal/querystring.ts"; +import querystring from "ext:deno_node/querystring.ts"; import type { ParsedUrlQuery, ParsedUrlQueryInput, -} from "internal:deno_node/querystring.ts"; -import { URL, URLSearchParams } from "internal:deno_url/00_url.js"; +} from "ext:deno_node/querystring.ts"; +import { URL, URLSearchParams } from "ext:deno_url/00_url.js"; const forwardSlashRegEx = /\//g; const percentRegEx = /%/g; -- cgit v1.2.3