From b1c6142f741a507ba6594ab174065e00213100b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 30 Aug 2024 18:58:58 +0100 Subject: BREAKING: `DENO_FUTURE=1` by default, or welcome to Deno 2.0 (#25213) This commit effectively turns Deno into Deno 2.0. This is done by forcing `DENO_FUTURE=1` env var, that was available in the past few months to try Deno 2 changes. This commit contains several breaking changes scheduled for Deno 2: - all deprecated JavaScript APIs are not available any more, mostly `Deno.*` APIs - `window` global is removed - FFI, WebGPU and FS APIs are now stable and don't require `--unstable-*` flags - import assertions are no longer supported - "bring your own node modules" is enabled by default This is the first commit in a series that are scheduled before the Deno 2 release. Follow up work is tracked in https://github.com/denoland/deno/issues/25241. --------- Co-authored-by: Asher Gomez Co-authored-by: Nayeem Rahman Co-authored-by: Nathan Whitaker --- tests/specs/install/no_future_install_global/pkg/main.js | 3 --- tests/specs/install/no_future_install_global/pkg/package.json | 6 ------ 2 files changed, 9 deletions(-) delete mode 100644 tests/specs/install/no_future_install_global/pkg/main.js delete mode 100644 tests/specs/install/no_future_install_global/pkg/package.json (limited to 'tests/specs/install/no_future_install_global/pkg') diff --git a/tests/specs/install/no_future_install_global/pkg/main.js b/tests/specs/install/no_future_install_global/pkg/main.js deleted file mode 100644 index 6268d7136..000000000 --- a/tests/specs/install/no_future_install_global/pkg/main.js +++ /dev/null @@ -1,3 +0,0 @@ -import { setValue } from "npm:@denotest/esm-basic"; - -setValue(5); diff --git a/tests/specs/install/no_future_install_global/pkg/package.json b/tests/specs/install/no_future_install_global/pkg/package.json deleted file mode 100644 index 9f465ad50..000000000 --- a/tests/specs/install/no_future_install_global/pkg/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "deno-test-bin", - "dependencies": { - "@denotest/esm-basic": "*" - } -} -- cgit v1.2.3