1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00
denoland-deno/test_napi
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
..
src chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
tests chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
.gitignore fix(napi): clear currently registering module slot (#19249) 2023-05-26 10:10:17 +05:30
array_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
arraybuffer_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
async_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
bigint_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
build.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
callback_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
Cargo.toml chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
cleanup_hook_test.js feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
coerce_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
common.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
date_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
env_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
error_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
init_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
make_callback_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
mem_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
module.c fix(napi): clear currently registering module slot (#19249) 2023-05-26 10:10:17 +05:30
numbers_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
object_wrap_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
promise_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
properties_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
strings_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
symbol_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
typedarray_test.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00