1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/runtime/ops
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
..
os fix: android support (#19437) 2024-01-10 06:04:14 -07:00
web_worker chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
bootstrap.rs feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
fs_events.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
http.rs feat(unstable): remove Deno.upgradeHttp API (#21856) 2024-01-22 21:35:39 +00:00
mod.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
permissions.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
process.rs chore: update to Rust 1.75 (#21731) 2024-01-01 23:22:48 +01:00
runtime.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
signal.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
tty.rs fix(web): use rustyline for prompt (#21893) 2024-01-11 22:05:55 +01:00
utils.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
web_worker.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
worker_host.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00