Skip to content

Commit

Permalink
Revert "feat: Deprecate Deno.run API in favor of Deno.Command (denola…
Browse files Browse the repository at this point in the history
…nd#17630)" (denoland#17875)

Deno.Command needs to be stabilized first and allow people to upgrade to
it before we can deprecate Deno.run. Otherwise lint will suddenly fail
with deprecated errors without giving people a chance to update.
  • Loading branch information
ry committed Feb 22, 2023
1 parent 2f98c3e commit 4afa150
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions cli/tsc/dts/lib.deno.ns.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3688,10 +3688,7 @@ declare namespace Deno {
options?: { recursive: boolean },
): FsWatcher;

/**
* @deprecated Use {@linkcode Deno.Command} instead.
*
* Options which can be used with {@linkcode Deno.run}.
/** Options which can be used with {@linkcode Deno.run}.
*
* @category Sub Process */
export interface RunOptions {
Expand Down Expand Up @@ -3749,10 +3746,7 @@ declare namespace Deno {
stdin?: "inherit" | "piped" | "null" | number;
}

/**
* @deprecated Use {@linkcode Deno.Command} instead.
*
* The status resolved from the `.status()` method of a
/** The status resolved from the `.status()` method of a
* {@linkcode Deno.Process} instance.
*
* If `success` is `true`, then `code` will be `0`, but if `success` is
Expand All @@ -3772,8 +3766,6 @@ declare namespace Deno {
};

/**
* * @deprecated Use {@linkcode Deno.Command} instead.
*
* Represents an instance of a sub process that is returned from
* {@linkcode Deno.run} which can be used to manage the sub-process.
*
Expand Down Expand Up @@ -3930,10 +3922,7 @@ declare namespace Deno {
handler: () => void,
): void;

/**
* @deprecated Use {@linkcode Deno.Command} instead.
*
* Spawns new subprocess. RunOptions must contain at a minimum the `opt.cmd`,
/** Spawns new subprocess. RunOptions must contain at a minimum the `opt.cmd`,
* an array of program arguments, the first of which is the binary.
*
* ```ts
Expand Down

0 comments on commit 4afa150

Please sign in to comment.