mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
b1c6142f74
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 <ashersaupingomez@gmail.com> Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com> Co-authored-by: Nathan Whitaker <nathan@deno.com>
47 lines
1.4 KiB
Text
47 lines
1.4 KiB
Text
{
|
|
"tempDir": true,
|
|
"tests": {
|
|
"no_config": {
|
|
// --no-config
|
|
"args": "run -L debug -A --no-config noconfig.ts",
|
|
"output": "noconfig.out",
|
|
"cwd": "code"
|
|
},
|
|
"no_npm": {
|
|
// --no-npm
|
|
"args": "run -L debug -A --no-npm noconfig.ts",
|
|
"output": "noconfig.out",
|
|
"cwd": "code"
|
|
},
|
|
"no_pkg_json_env_var": {
|
|
// not auto-discovered with env var
|
|
"args": "run -L debug -A noconfig.ts",
|
|
"output": "no_package_json.out",
|
|
"cwd": "code",
|
|
"envs": {
|
|
"DENO_NO_PACKAGE_JSON": "1"
|
|
}
|
|
},
|
|
"no_pkg_json_imports": {
|
|
// this should not use --quiet because we should ensure no package.json install occurs
|
|
"args": "run -A no_package_json_imports.ts",
|
|
"output": "no_package_json_imports.out",
|
|
"cwd": "code"
|
|
},
|
|
"auto_discovered": {
|
|
// TODO(2.0): most likely needs to change output to not expect auto-install
|
|
"ignore": true,
|
|
// auto-discovered node_modules relative package.json
|
|
"args": "run -A main.js",
|
|
"output": "code/sub_dir/main.out",
|
|
"cwd": "code/sub_dir"
|
|
},
|
|
"auto_discovered_arg": {
|
|
// TODO(2.0): most likely needs to change output to not expect auto-install
|
|
"ignore": true,
|
|
// auto-discovered for local script arg
|
|
"args": "run -L debug -A code/main.ts", // notice this is not in the sub dir
|
|
"output": "main.out"
|
|
}
|
|
}
|
|
}
|