1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-22 15:10:44 -05:00
denoland-deno/cli
Bartek Iwańczuk 4e1abb4f3a
refactor: use OpError instead of ErrBox for errors in ops (#4058)
To better reflect changes in error types in JS from #3662 this PR changes 
default error type used in ops from "ErrBox" to "OpError".

"OpError" is a type that can be sent over to JSON; it has all 
information needed to construct error in JavaScript. That
made "GetErrorKind" trait useless and so it was removed altogether.

To provide compatibility with previous use of "ErrBox" an implementation of
"From<ErrBox> for OpError" was added, however, it is an escape hatch and
ops implementors should strive to use "OpError" directly.
2020-02-23 14:51:29 -05:00
..
compilers refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
js fetch: proper error for unsupported protocol (#4085) 2020-02-23 09:45:02 -05:00
ops refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
tests feat: support brotli compression for fetch API (#4082) 2020-02-23 09:37:43 -05:00
build.rs Support loading additional TS lib files (#3863) 2020-02-19 00:34:11 -05:00
Cargo.toml feat: support brotli compression for fetch API (#4082) 2020-02-23 09:37:43 -05:00
checksum.rs feat: lockfiles (#3231) 2019-11-03 10:39:27 -05:00
colors.rs refactor: cleanup cli/lib.rs (#4006) 2020-02-18 10:08:18 -05:00
deno_dir.rs refactor: rewrite HTTP cache for file fetcher (#4030) 2020-02-19 08:17:13 -05:00
diagnostics.rs Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
disk_cache.rs Do not panic and improve error message on cache failure (#3784) 2020-01-24 17:16:31 -05:00
file_fetcher.rs refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
flags.rs feat: add --cert flag for http client (#3972) 2020-02-17 11:59:51 -05:00
fmt.rs refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
fmt_errors.rs workers: minimal error handling and async module loading (#3665) 2020-01-17 18:43:53 -05:00
fs.rs refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
global_state.rs refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
global_timer.rs Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
http_cache.rs refactor: rewrite HTTP cache for file fetcher (#4030) 2020-02-19 08:17:13 -05:00
http_util.rs refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
import_map.rs update references to testing/mod.ts in manual (#3973) 2020-02-11 21:50:20 +01:00
installer.rs feat: add --cert flag for http client (#3972) 2020-02-17 11:59:51 -05:00
js.rs workers: proper TS libs, more spec-compliant APIs (#3812) 2020-01-29 18:54:23 +01:00
lib.rs refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
lockfile.rs feat: lockfiles (#3231) 2019-11-03 10:39:27 -05:00
main.rs Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600) 2020-01-05 11:56:18 -05:00
metrics.rs refactor: Remove atomics from metrics (#3968) 2020-02-11 17:23:40 +01:00
msg.rs refactor: remove unneeded ErrorKinds (#3936) 2020-02-21 10:36:13 -05:00
op_error.rs refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
permissions.rs refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
README.md update readmes (#3765) 2020-01-23 22:32:52 +01:00
repl.rs refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
resolve_addr.rs refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
signal.rs refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
source_maps.rs Remove //tests symlink (#3849) 2020-02-02 16:55:22 -05:00
startup_data.rs Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600) 2020-01-05 11:56:18 -05:00
state.rs refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
test_runner.rs fix(deno test): support directories as arguments (#4011) 2020-02-17 13:11:45 -05:00
test_util.rs feat: add --cert flag for http client (#3972) 2020-02-17 11:59:51 -05:00
tokio_util.rs workers: basic event loop (#3828) 2020-02-11 10:04:59 +01:00
version.rs Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600) 2020-01-05 11:56:18 -05:00
web_worker.rs fix: add io ops to worker to fix fetch (#4054) 2020-02-21 10:35:41 -05:00
worker.rs feat: Deno.fsEvents() (#3452) 2020-02-21 13:21:51 -05:00

Deno CLI Crate

crates docs

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

The deno crate uses the deno_core and deno_typescript to provide the executable.