From 83642976bf267c81f36742793a5a4a9250f54591 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 25 Jan 2023 12:28:08 -0500 Subject: fix: remove leftover Deno.spawn references (#17524) --- cli/tsc/diagnostics.rs | 4 --- cli/tsc/dts/lib.deno.unstable.d.ts | 67 +------------------------------------- 2 files changed, 1 insertion(+), 70 deletions(-) (limited to 'cli/tsc') diff --git a/cli/tsc/diagnostics.rs b/cli/tsc/diagnostics.rs index b3026d934..ffb4a946d 100644 --- a/cli/tsc/diagnostics.rs +++ b/cli/tsc/diagnostics.rs @@ -29,12 +29,8 @@ const UNSTABLE_DENO_PROPS: &[&str] = &[ "removeSignalListener", "shutdown", "umask", - "spawnChild", "Child", "ChildProcess", - "spawn", - "spawnSync", - "SpawnOptions", "ChildStatus", "SpawnOutput", "command", diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts index 12186c0b3..5ffde749b 100644 --- a/cli/tsc/dts/lib.deno.unstable.d.ts +++ b/cli/tsc/dts/lib.deno.unstable.d.ts @@ -1407,71 +1407,6 @@ declare namespace Deno { */ export function upgradeHttpRaw(request: Request): [Deno.Conn, Uint8Array]; - /** **UNSTABLE**: New API, yet to be vetted. - * - * @deprecated Use the Deno.Command API instead. - * - * Options which can be set when calling {@linkcode Deno.spawn}, - * {@linkcode Deno.spawnSync}, and {@linkcode Deno.spawnChild}. - * - * @category Sub Process - */ - export interface SpawnOptions { - /** Arguments to pass to the process. */ - args?: string[]; - /** - * The working directory of the process. - * - * If not specified, the `cwd` of the parent process is used. - */ - cwd?: string | URL; - /** - * Clear environmental variables from parent process. - * - * Doesn't guarantee that only `env` variables are present, as the OS may - * set environmental variables for processes. - * - * @default {false} - */ - clearEnv?: boolean; - /** Environmental variables to pass to the subprocess. */ - env?: Record; - /** - * Sets the child process’s user ID. This translates to a setuid call in the - * child process. Failure in the set uid call will cause the spawn to fail. - */ - uid?: number; - /** Similar to `uid`, but sets the group ID of the child process. */ - gid?: number; - /** - * An {@linkcode AbortSignal} that allows closing the process using the - * corresponding {@linkcode AbortController} by sending the process a - * SIGTERM signal. - * - * Not supported in {@linkcode Deno.spawnSync}. - */ - signal?: AbortSignal; - - /** How `stdin` of the spawned process should be handled. - * - * Defaults to `"null"`. */ - stdin?: "piped" | "inherit" | "null"; - /** How `stdout` of the spawned process should be handled. - * - * Defaults to `"piped". */ - stdout?: "piped" | "inherit" | "null"; - /** How `stderr` of the spawned process should be handled. - * - * Defaults to `"piped"`. */ - stderr?: "piped" | "inherit" | "null"; - - /** Skips quoting and escaping of the arguments on windows. This option - * is ignored on non-windows platforms. - * - * @default {false} */ - windowsRawArguments?: boolean; - } - /** **UNSTABLE**: New API, yet to be vetted. * * Create a child process. @@ -1634,7 +1569,7 @@ declare namespace Deno { * corresponding {@linkcode AbortController} by sending the process a * SIGTERM signal. * - * Not supported in {@linkcode Deno.spawnSync}. + * Not supported in {@linkcode Deno.Command.outputSync}. */ signal?: AbortSignal; -- cgit v1.2.3