refactor: use granular --unstable-* CLI flags (#4232)

* refactor: use granular `--unstable-*` CLI flags

* tweak
This commit is contained in:
Asher Gomez 2024-01-25 07:48:48 +11:00 committed by GitHub
parent df1954c0cd
commit 845a6f8d97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 7 deletions

View File

@ -25,8 +25,7 @@ export interface DelayOptions {
* // ...
* ```
*
* To allow the process to continue to run as long as the timer exists. Requires
* `--unstable` flag.
* To allow the process to continue to run as long as the timer exists.
*
* ```ts
* import { delay } from "https://deno.land/std@$STD_VERSION/async/delay.ts";

View File

@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Run this test with `deno test --unstable -A compare_with_rust.ts`
// Run this test with `deno test --unstable-ffi -A compare_with_rust.ts`
import { unicodeWidth } from "../unicode_width.ts";
import { fromFileUrl } from "../../path/mod.ts";
@ -21,7 +21,7 @@ Deno.test("fast-check equality with unicode_width Rust crate", async (t) => {
const toCString = (str: string) => new TextEncoder().encode(str + "\0");
// @ts-ignore type-check errors if unavailable due to lack of --unstable flag
// @ts-ignore type-check errors if unavailable due to lack of --unstable-ffi flag
let dylib: Deno.DynamicLibrary<{
unicode_width: { parameters: ["buffer"]; result: "usize" };
}>;

View File

@ -12,7 +12,7 @@
"automation/": "https://raw.githubusercontent.com/denoland/automation/0.10.0/"
},
"tasks": {
"test": "DENO_NO_DEPRECATION_WARNINGS=1 deno test --doc --unstable --allow-all --parallel --coverage --trace-ops",
"test": "DENO_NO_DEPRECATION_WARNINGS=1 deno test --unstable-http --unstable-webgpu --doc --allow-all --parallel --coverage --trace-ops",
"test:browser": "git grep --name-only \"This module is browser compatible.\" | grep -v deno.json | grep -v .github/workflows | grep -v _tools | xargs deno check --config browser-compat.tsconfig.json",
"fmt:licence-headers": "deno run --allow-read --allow-write ./_tools/check_licence.ts",
"lint:deprecations": "deno run --allow-read --allow-net --allow-env=HOME ./_tools/check_deprecation.ts",
@ -22,7 +22,7 @@
"lint": "deno lint && deno task fmt:licence-headers --check && deno task lint:deprecations && deno task lint:doc-imports && deno task lint:circular && deno task lint:tools-types",
"typos": "typos -c ./.github/workflows/typos.toml",
"build:crypto": "deno task --cwd crypto/_wasm wasmbuild",
"wasmbuild": "deno run --unstable -A https://deno.land/x/wasmbuild@0.15.5/main.ts --js-ext mjs --sync",
"wasmbuild": "deno run -A https://deno.land/x/wasmbuild@0.15.5/main.ts --js-ext mjs --sync",
"cov:gen": "deno coverage coverage --lcov --output=cov.lcov",
"cov:view": "deno coverage --html coverage",
"ok": "deno task lint && deno fmt --check && deno task test:browser && deno task test"

View File

@ -235,7 +235,7 @@ Deno.test("expandGlobSync() accepts includeDirs option set to false", function (
Deno.test("expandGlob() throws permission error without fs permissions", async function () {
const exampleUrl = new URL("testdata/expand_wildcard.js", import.meta.url);
const command = new Deno.Command(Deno.execPath(), {
args: ["run", "--quiet", "--unstable", "--no-lock", exampleUrl.toString()],
args: ["run", "--quiet", "--no-lock", exampleUrl.toString()],
});
const { code, success, stdout, stderr } = await command.output();
const decoder = new TextDecoder();