summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-02-26 01:35:10 +0800
committerGitHub <noreply@github.com>2021-02-25 18:35:10 +0100
commitaa47f8186cbc068232e23b92a6966be9bd23e4bb (patch)
tree0c9c2e455e0700d2a674aa24b0e14f9a5860b83f /cli/dts/lib.deno.unstable.d.ts
parentcdae4423c27443e0085d59f45eda1c978f186a1c (diff)
feat(runtime): stabilize Deno.link and Deno.linkSync (#9417)
This commit makes "Deno.link" and "Deno.linkSync" stable. The permission required has been changed to read-write to ensure one cannot escape the sandbox.
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts22
1 files changed, 0 insertions, 22 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index 8623e73d4..5007d657d 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -21,28 +21,6 @@ declare namespace Deno {
*/
export function umask(mask?: number): number;
- /** **UNSTABLE**: This API needs a security review.
- *
- * Synchronously creates `newpath` as a hard link to `oldpath`.
- *
- * ```ts
- * Deno.linkSync("old/name", "new/name");
- * ```
- *
- * Requires `allow-read` and `allow-write` permissions. */
- export function linkSync(oldpath: string, newpath: string): void;
-
- /** **UNSTABLE**: This API needs a security review.
- *
- * Creates `newpath` as a hard link to `oldpath`.
- *
- * ```ts
- * await Deno.link("old/name", "new/name");
- * ```
- *
- * Requires `allow-read` and `allow-write` permissions. */
- export function link(oldpath: string, newpath: string): Promise<void>;
-
/** **UNSTABLE**: New API, yet to be vetted.
*
* Gets the size of the console as columns/rows.