diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-03-08 07:44:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-08 12:44:54 +0100 |
commit | 72fe9bb47005e720444e65a66e91559287137780 (patch) | |
tree | d529ee7f3b2c33063ba4496f8fd3dfdbac0d1355 /ext/node/polyfills/url.ts | |
parent | d24c6ea27f7dea57e3bc0cda342d6cbe59782f7d (diff) |
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
Diffstat (limited to 'ext/node/polyfills/url.ts')
-rw-r--r-- | ext/node/polyfills/url.ts | 23 |
1 files changed, 10 insertions, 13 deletions
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; |