1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 15:49:44 -05:00
denoland-deno/cli/tests/integration
Bartek Iwańczuk 427b73c3ec
feat: warn when using --unstable, prefer granular flags (#21452)
This commit deprecates "--unstable" flag. 

When "--unstable" flag is encountered a warning like this is printed:
```
The `--unstable` flag is deprecated, use granular `--unstable-*` flags instead.
Learn more at: https://docs.deno.com/runtime/manual/tools/unstable_flags
```
When "--unstable" flag is used and an unstable API is called an
additional warning like this is printed for each API call:
```
The `Deno.dlopen` API was used with `--unstable` flag. The `--unstable` flag is deprecated, use granular `--unstable-ffi` instead. 
Learn more at: https://docs.deno.com/runtime/manual/tools/unstable_flags
```
When no "--unstable-*" flag is provided and an unstable API is called
following
warning is issued before exiting:
```
Unstable API 'Deno.dlopen'. The `--unstable-ffi` flag must be provided.
```

---------

Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-23 15:33:07 +01:00
..
bench_tests.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
bundle_tests.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
cache_tests.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
cert_tests.rs chore: bump rustls-tokio-stream and rustls (#21955) 2024-01-16 21:51:54 +01:00
check_tests.rs fix: remove conditional unstable type-checking from other commands (#21991) 2024-01-21 22:47:46 +00:00
compile_tests.rs fix(compile): preserve granular unstable features (#21827) 2024-01-06 19:31:09 +05:30
coverage_tests.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
doc_tests.rs feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
eval_tests.rs refactor: don't error when .env is not present (#21879) 2024-01-22 00:27:14 +01:00
flags_tests.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
fmt_tests.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
info_tests.rs feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
init_tests.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
inspector_tests.rs chore: ignore inspector_port_collision test (#21923) 2024-01-16 13:50:03 -07:00
install_tests.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
js_unit_tests.rs feat(web): ImageBitmap (#21898) 2024-01-22 12:08:01 +01:00
jsr_tests.rs feat(unstable): fast subset type checking of JSR dependencies (#21873) 2024-01-10 22:40:30 +00:00
jupyter_tests.rs feat(jupyter): don't require --unstable flag (#21963) 2024-01-18 23:16:14 +01:00
lint_tests.rs feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
lsp_tests.rs feat(lsp): include scope uri in "deno/didChangeDenoConfiguration" (#22002) 2024-01-23 06:12:41 +00:00
mod.rs fix(jupyter): error message when install fails due to jupyter command not being on PATH (#21767) 2024-01-03 14:45:10 +00:00
node_compat_tests.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
node_unit_tests.rs feat: "rejectionhandled" Web event and "rejectionHandled" Node event (#21875) 2024-01-12 22:10:42 +00:00
npm_tests.rs feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
publish_tests.rs fix(publish): support deno.jsonc file (#21948) 2024-01-15 15:07:57 +00:00
repl_tests.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
run_tests.rs feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
shared_library_tests.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
task_tests.rs fix(task): do not eagerly auto-install packages in package.json when "nodeModulesDir": false (#21858) 2024-01-08 19:30:36 -05:00
test_tests.rs feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
upgrade_tests.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
vendor_tests.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
watcher_tests.rs feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
worker_tests.rs feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00