1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-31 11:34:15 -05:00
denoland-deno/cli
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
..
args chore: update deno_ast and deno_graph (#22033) 2024-01-23 11:25:44 +01:00
bench refactor: set removal version for Deno.RequestEvent, Deno.HttpConn and Deno.serveHttp() (#22034) 2024-01-23 03:24:03 +00:00
cache fix(jsr): ensure proper storage of ahead of time module infos (#21918) 2024-01-13 20:56:56 -05:00
js refactor: use core.ensureFastOps() (#21888) 2024-01-10 15:37:25 -07:00
lsp feat(lsp): include scope uri in "deno/didChangeDenoConfiguration" (#22002) 2024-01-23 06:12:41 +00:00
napi chore: forward v1.39.4 release commit to main (#21933) 2024-01-13 20:32:50 -05:00
npm feat(lockfile): track JSR and npm dependencies in config file (#22004) 2024-01-22 22:31:12 +01:00
ops chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
schemas feat: precompile JSX (#20962) 2023-11-01 20:30:23 +00:00
standalone feat(lockfile): track JSR and npm dependencies in config file (#22004) 2024-01-22 22:31:12 +01:00
tests feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
tools refactor: use parsed source cache when unfurling import map (#22001) 2024-01-23 12:40:23 +01:00
tsc BREAKING(unstable): remove Deno.cron() overload (#22035) 2024-01-23 17:37:54 +05:30
util refactor: use parsed source cache when unfurling import map (#22001) 2024-01-23 12:40:23 +01:00
auth_tokens.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
build.rs feat(web): ImageBitmap (#21898) 2024-01-22 12:08:01 +01:00
Cargo.toml chore: update deno_ast and deno_graph (#22033) 2024-01-23 11:25:44 +01:00
cdp.rs refactor(tools/repl): reorganize code (#21810) 2024-01-05 16:14:58 +01:00
deno.ico fix(cli): add icon and metadata to deno.exe on Windows (#6693) 2020-07-15 21:54:38 +02:00
deno_std.rs chore: forward v1.39.3 to main (#21915) 2024-01-12 19:13:18 +00:00
emit.rs chore: bump deno_core (#21832) 2024-01-10 09:48:40 +05:30
entitlements.plist chore: start codesigning mac release builds (#21303) 2023-11-23 15:30:26 -07:00
errors.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
factory.rs feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
file_fetcher.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
graph_util.rs feat(lockfile): track JSR and npm dependencies in config file (#22004) 2024-01-22 22:31:12 +01:00
http_util.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
js.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
main.rs feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
module_loader.rs chore: upgrade deno_core to 0.246.0 (#21904) 2024-01-14 18:28:46 -07:00
node.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
README.md docs(cli): do not need gen doc for cli (#17260) 2023-01-04 13:19:58 +01:00
resolver.rs fix(unstable/byonm): support using an import map with byonm (#21786) 2024-01-04 09:20:58 +05:30
version.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
worker.rs feat: Start warning on each use of a deprecated API (#21939) 2024-01-18 23:30:49 +00:00

Deno CLI Crate

crates

This provides the actual deno executable and the user-facing APIs.

The deno crate uses the deno_core to provide the executable.