BREAKING(console): remove Deno.customInspect (#25348)

Note: this is implemented on Deploy. However, according to @magurotuna,
a thin compatibility layer might be in the works that'd prevent
breakages for PRs such as this one.

Towards #22079
This commit is contained in:
Asher Gomez 2024-09-03 19:07:19 +10:00 committed by GitHub
parent 71e4ac774b
commit 1a82b0f808
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 0 additions and 28 deletions

View file

@ -56,7 +56,6 @@ import * as version from "ext:runtime/01_version.ts";
import * as os from "ext:runtime/30_os.js";
import * as timers from "ext:deno_web/02_timers.js";
import {
customInspect,
getDefaultInspectOptions,
getStderrNoColor,
inspectArgs,
@ -534,18 +533,6 @@ ObjectDefineProperties(finalDenoNs, {
noColor: core.propGetterOnly(() => op_bootstrap_no_color()),
args: core.propGetterOnly(opArgs),
mainModule: core.propGetterOnly(() => op_main_module()),
// TODO(kt3k): Remove this export at v2
// See https://github.com/denoland/deno/issues/9294
customInspect: {
get() {
warnOnDeprecatedApi(
"Deno.customInspect",
new Error().stack,
'Use `Symbol.for("Deno.customInspect")` instead.',
);
return internals.future ? undefined : customInspect;
},
},
exitCode: {
get() {
return os.getExitCode();