summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2022-05-17 21:27:17 +0100
committerGitHub <noreply@github.com>2022-05-17 22:27:17 +0200
commit330c820ae8d7826dfe3d88c01ba07728121fa021 (patch)
treea5c0216f5cba4ea503e9cba3b0abdd8d4290c123 /cli/dts/lib.deno.unstable.d.ts
parentf57aac77ff9ce514730504066daca0a61a959d32 (diff)
BREAKING(unstable): Enable Deno namespace in workers by default (#14581)
This commit removes "WorkerOptions.deno" option as a boolean, as well as "WorkerOptions.deno.namespace" settings. Starting with this commit all workers have access to "Deno" namespace by default.
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts10
1 files changed, 1 insertions, 9 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index 6e9cf7789..d5797eb83 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -1135,9 +1135,6 @@ declare function fetch(
declare interface WorkerOptions {
/** UNSTABLE: New API.
*
- * Set deno.namespace to `true` to make `Deno` namespace and all of its
- * methods available to the worker environment. Defaults to `false`.
- *
* Configure permissions options to change the level of access the worker will
* have. By default it will have no permissions. Note that the permissions
* of a worker can't be extended beyond its parent's permissions reach.
@@ -1154,7 +1151,6 @@ declare interface WorkerOptions {
* new URL("deno_worker.ts", import.meta.url).href, {
* type: "module",
* deno: {
- * namespace: true,
* permissions: {
* read: true,
* },
@@ -1163,11 +1159,7 @@ declare interface WorkerOptions {
* );
* ```
*/
- // TODO(Soremwar)
- // `deno: boolean` is kept for backwards compatibility with the previous
- // worker options implementation. Remove for 2.0.
- deno?: boolean | {
- namespace?: boolean;
+ deno?: {
/** Set to `"none"` to disable all the permissions in the worker. */
permissions?: Deno.PermissionOptions;
};