summaryrefslogtreecommitdiff
path: root/cli/ops
AgeCommit message (Collapse)Author
2020-08-28refactor: migrate ops to new dispatch wrapper (#7118)Bartek Iwańczuk
2020-08-26Simplify ErrBox-to-class mapping & hook it up to core json ops (#7195)Bert Belder
2020-08-26Remove some more unnecessary 'to_string()' calls (#7190)Bert Belder
2020-08-26refactor: remove OpError, use ErrBox everywhere (#7187)Bert Belder
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-08-19Make Rc/Arc wrapper around State/GlobalState visible (#7104)Bert Belder
2020-08-18refactor: permissions (#7074)Nayeem Rahman
2020-08-18Async op dispatcher support with 'stateful_json_op_(a)sync()' (#7095)Bert Belder
Closes: #7020
2020-08-12Undo JsonOpDispatcher and OpDispatcher traits (#7023)Ryan Dahl
This reverts commit f83d672ffad7afb1473bd4f9b9c645539064c620. This reverts commit d51972377c1325076704d9faec2eee6f0e024496.
2020-08-10feat: Stabilize Deno.mainModule (#6993)Nayeem Rahman
2020-08-07Encode op errors as strings instead of numbers (#6977)Bartek Iwańczuk
2020-08-05feat(cli): custom http client for fetch (#6918)Luca Casonato
2020-07-23refactor: remove more compiler runtime code (#6841)Bartek Iwańczuk
2020-07-20Remove deno_typescript (#6813)Ryan Dahl
2020-07-18Share reqwest client between fetch calls (#6792)Luca Casonato
2020-07-14refactor: new trait JsonOpDispatcher (#6742)Gurwinder Singh
2020-07-13refactor: Make OpDispatcher a trait (#6736)Gurwinder Singh
2020-07-10fix(URL): Implement spec-compliant host parsing (#6689)Nayeem Rahman
2020-07-10feat(unstable): add Deno.consoleSize (#6520)Sebastien Filion
2020-07-09fix(cli): panic when stdio is null on windows (#6528)Maayan Hanin
Fixes: #6409
2020-07-08BREAKING(core): Remove control slice from ops (#6048)Valentin Anger
2020-07-08feat(unstable): Deno.ppid (#6539)uki00a
2020-07-06feat: Deno.chown() make uid, gid args optional (#4612)dubiousjim
2020-06-27fix(cli): change seek offset type from i32 to i64 (#6518)Casper Beyer
2020-06-26Fix clippy warning (#6503)Bert Belder
2020-06-26feat(unstable): add Deno.fdatasyncSync and fdatasync (#6403)Casper Beyer
2020-06-25fix: panic when process stdio rid is 0 or invalid (#6405)Luca Casonato
2020-06-22feat(unstable): add Deno.fstatSync and fstat (#6425)Casper Beyer
2020-06-21feat(unstable): add Deno.fsyncSync and fsync (#6411)Casper Beyer
2020-06-20Remove Deno.dir and dirs dependency (#6385)Ryan Dahl
2020-06-20feat(unstable): add Deno.ftruncate and ftruncateSync (#6243)Casper Beyer
2020-06-19refactor(compiler): split code paths for compile and bundle (#6304)Bartek Iwańczuk
* refactor "compile" and "runtimeCompile" in "compiler.ts" and factor out separate methods for "compile" and "bundle" operations * remove noisy debug output from "compiler.ts" * provide "Serialize" implementations for enums in "msg.rs" * rename "analyze_dependencies_and_references" to "pre_process_file" and move it to "tsc.rs" * refactor ModuleGraph to use more concrete types and properly annotate locations where errors occur * remove dead code from "file_fetcher.rs" - "SourceFile.types_url" is no longer needed, as type reference parsing is done in "ModuleGraph" * remove unneeded field "source_path" from ".meta" files stored for compiled source file (towards #6080)
2020-06-15unixpacket should also return byte length on send (#6291)Peter Evers
2020-06-13fix: DatagramConn.send should return bytes sent (#6265)Kermit Xuan
2020-06-12Revert "feat: add Deno.osName()" (#6261)Ryan Dahl
Deno.build.os provides the same functionality This reverts commit 6ccf9037a6b36c81ea0e6ac12d0e2dbd793f6114.
2020-06-11feat: add Deno.osName() (#5714)Rubin Bhandari
2020-06-10feat: Add Deno.mainModule (#6180)John Gardner
2020-06-10fix udp BorrowMutError (#6221)Ryan Dahl
2020-06-09fix: Deno.readSync on stdin (#6126)Casper Beyer
Currently sync operations on stdin are failing because tokio::Stdin cannot be converted to a std::File. This commit replaces tokio::stdin with a raw file descriptor wrapped in a std::fs::File which can be converted to a tokio::File and back again making the synchronous version of op_read actually work.
2020-06-09feat(cli): Add Deno.env.delete() (#5859)Tuan Le
2020-06-09fix(cli/js/web/worker): Disable relative module specifiers (#5266)Nayeem Rahman
2020-06-01feat(core): Ops can take several zero copy buffers (#4788)Valentin Anger
2020-05-30fix(#4850): Deno.remove() fails to remove unix socket (#5967)uki00a
2020-05-30upgrade: Rust crates (#5959)Ryan Dahl
2020-05-29refactor: Split isolate and state using safe get_slot() (#5929)Ryan Dahl
2020-05-29fix(cli/permissions): Fix CWD and exec path leaks (#5642)Nayeem Rahman
2020-05-24Add unstable checks for unix transport (#5818)Valentin Anger
Also remove the unix example from the stable documentation to stay in line with the `Deno.listen` one
2020-05-19Implement Deno.symlink() for windows (#5533)Ali Hasani
2020-05-18Make Deno.remove() work with directory symlinks on windows (#5488)Ali Hasani
2020-05-18refactor: rewrite TS dependency analysis in Rust (#5029)Bartek Iwańczuk
This commit completely overhauls how module analysis is performed in TS compiler by moving the logic to Rust. In the current setup module analysis is performed using "ts.preProcessFile" API in a special TS compiler worker running on a separate thread. "ts.preProcessFile" allowed us to build a lot of functionality in CLI including X-TypeScript-Types header support and @deno-types directive support. Unfortunately at the same time complexity of the ops required to perform supporting tasks exploded and caused some hidden permission escapes. This PR introduces "ModuleGraphLoader" which can parse source and load recursively all dependent source files; as well as declaration files. All dependencies used in TS compiler and now fetched and collected upfront in Rust before spinning up TS compiler. To achieve feature parity with existing APIs this commit includes a lot of changes: * add "ModuleGraphLoader" - can fetch local and remote sources - parses source code using SWC and extracts imports, exports, file references, special headers - this struct inherited all of the hidden complexity and cruft from TS version and requires several follow up PRs * rewrite cli/tsc.rs to perform module analysis upfront and send all required source code to TS worker in one message * remove op_resolve_modules and op_fetch_source_files from cli/ops/compiler.rs * run TS worker on the same thread
2020-05-17Return error if more than one listener calls `WorkerHandle::get_event()` (#5461)Yiyu Lin