Skip to content

feat: Deprecate Deno.run API in favor of Deno.Command (#17630) #18866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions cli/tsc/dts/lib.deno.ns.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3691,7 +3691,10 @@ declare namespace Deno {
options?: { recursive: boolean },
): FsWatcher;

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

/** The status resolved from the `.status()` method of a
/**
* @deprecated Use {@linkcode Deno.Command} instead.
*
* 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 @@ -3769,6 +3775,8 @@ 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 @@ -3925,7 +3933,10 @@ declare namespace Deno {
handler: () => void,
): void;

/** Spawns new subprocess. RunOptions must contain at a minimum the `opt.cmd`,
/**
* @deprecated Use {@linkcode Deno.Command} instead.
*
* 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