mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
refactor: use granular --unstable-*
CLI flags (#4232)
* refactor: use granular `--unstable-*` CLI flags * tweak
This commit is contained in:
parent
df1954c0cd
commit
845a6f8d97
@ -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";
|
||||
|
@ -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" };
|
||||
}>;
|
||||
|
@ -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"
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user