summaryrefslogtreecommitdiff
path: root/cli/ops
AgeCommit message (Collapse)Author
2020-04-16remove more calls to futures::executor::block_on (#4775)Bartek Iwańczuk
2020-04-15remove calls to futures::executor::block_on (#4760)Bartek Iwańczuk
2020-04-15Make writeSync, readSync, seekSync, openSync, isatty proper synchronous ↵Ryan Dahl
syscalls (#4762)
2020-04-14fix(worker): make worker name spec compliant (#4746)Bartek Iwańczuk
2020-04-13refactor(core/js_error): Align JSStackFrame with CallSite (#4715)Nayeem Rahman
Renames and adds missing fields to JSStackFrame from CallSite. Fixes #4705. Cleans up base changes for line and column numbers.
2020-04-10Replace panic with invalid_utf8 OpError (#4704)gewoonwoutje
Co-authored-by: Wout Elstgeest <w.elstgeest@inepro.com>
2020-04-10implement Worker.terminate() and self.close() (#4684)Bartek Iwańczuk
2020-04-03clippy (#4618)Kitson Kelly
2020-04-03Properly handle invalid utf8 in paths (#4609)dubiousjim
2020-04-03adjust docs for Deno.seek (#4610)dubiousjim
2020-03-31Properly track isFile, isSymlink, isDirectory (#4541)dubiousjim
* Properly track isFile, isSymlink, isDirectory These don't exhaust all the possibilities, so none of them should be defined as "neither of the others". * empty
2020-03-27feat: Support Inspector / Chrome Devtools (#4484)Ryan Dahl
This is a first pass implementation which is still missing several important features: - support for --inspect-brk (#4503) - support for source maps (#4501) - support for piping console.log to devtools console (#4502) Co-authored-by: Bert Belder <bertbelder@gmail.com> Co-authored-by: Matt Harrison <mt.harrison86@gmail.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-03-23feat: Support Unix Domain Sockets (#4176)João Souto
2020-03-21BREAKING CHANGE Rename Deno.run's args to cmd (#4444)Akshat Agarwal
This is to avoid confusion with Deno.args which does not include the executable to be run.
2020-03-20chmod should throw on Windows (#4446)dubiousjim
2020-03-20use prebuilt "not implemented" error (#4442)dubiousjim
2020-03-20refactor: move code from fs.rs into ops/fs.rs (#4428)dubiousjim
This a complex boring PR that shifts around code (primarily) in cli/fs.rs and cli/ops/fs.rs. The gain of this refactoring is to ease the way for #4188 and #4017, and also to avoid some future development pain. Mostly there is no change in functionality. Except: * squashed bugs where op_utime and op_chown weren't using `resolve_from_cwd` * eliminated the use of the external `remove_dir_all` crate. * op_chmod now only queries metadata to verify file/dir exists on Windows (it will already fail on Unix if it doesn't) * op_chown now verifies the file/dir's existence on Windows like chmod does.
2020-03-18Provide compiled JSON to TypeScript compiler. (#4404)Kitson Kelly
Fixes #4101 Previously, we would just provide the raw JSON to the TypeScript compiler worker, but TypeScript does not transform JSON. This caused a problem when emitting a bundle, that the JSON would just be "inlined" into the output, instead of being transformed into a module. This fixes this problem by providing the compiled JSON to the TypeScript compiler, so TypeScript just sees JSON as a "normal" TypeScript module.
2020-03-16Add mode option to open/create (#4289)dubiousjim
2020-03-16refactor: remove an unsafe and some boxing (#4398)Gurwinder Singh
2020-03-14BREAKING CHANGE FileInfo.len renamed to FileName.size (#4338)dubiousjim
2020-03-12upgrade: Rust 1.42.0 (#4331)Ryan Dahl
2020-03-11Add waker to StreamResource to fix hang on close bugs (#4293)João Souto
2020-03-11support permission mode in mkdir (#4286)dubiousjim
2020-03-10refactor(cli/js/net): Cleanup iterable APIs (#4236)Nayeem Rahman
Listener and UDPConn are AsyncIterables instead of AsyncIterators. The [Symbol.asyncIterator]()s are defined as generators and the next() methods are gone. "Listener/Socket has been closed" errors are now BadResource.
2020-03-10Add Deno.umask (#4290)dubiousjim
2020-03-07refactor: remove cli/ops/files.rs (#4246)Bartek Iwańczuk
* "op_close" - moved to "cli/ops/resources.rs" * "op_seek", "op_open" - moved to "cli/ops/fs.rs" Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-03-06Rename name/filename arguments to path (#4227)dubiousjim
There's a lot of variation in doc comments and internal code about whether the first parameter to file system calls is `path` or `name` or `filename`. For consistency, have made it always be `path`.
2020-03-05fix: call unwatch when dropping FsEventsResource (#4266)Ryan Dahl
2020-03-05Allow BadResource errors to take a custom message (#4251)Ryan Dahl
2020-03-04Remove unnecessary macro from cli/ops/tty.rs (#4254)Bert Belder
It contains a clippy issue, and there's no need for this macro anyway.
2020-03-02Do not convert exceptions to JSON and back (#4214)Bert Belder
2020-03-02feat: update metrics to track different op types (#4221)Bartek Iwańczuk
2020-03-02refactor: rename structures related to Modules (#4217)Bartek Iwańczuk
* rename structures related to ES Modules; add "Modules" prefix * remove unneeded Unpin trait requirement for "ModuleLoader"
2020-03-02seek should return cursor position (#4211)bartOssh
2020-03-02Cleanup comments and internal variables (#4205)dubiousjim
2020-03-01feat(std/node): add os.tmpdir() implementation (#4213)ecyrbe
2020-02-27replace impl Future with poll_fn for net.rs, process.rs, tls.rs (#4158)Bartek Iwańczuk
2020-02-26rewrite normalize_path (#4143)Bartek Iwańczuk
Rewrite "normalize_path()" to remove all intermediate components from the path, ie. "./" and "../". It's very similar in functionality to fs::canonicalize(), however "normalize_path() doesn't resolve symlinks.
2020-02-26remove Read/Write futures, use poll_fn instead (#4150)Bartek Iwańczuk
2020-02-26tty: Deno.setRaw(rid, mode) to turn on/off raw mode (#3958)Kevin (Kun) "Kassimo" Qian
2020-02-25Remove _async from method names since _sync are gone (#4128)Ryan Dahl
2020-02-25fix: Resolve makeTemp* paths from CWD (#4104)Nayeem Rahman
2020-02-25Clean up how we use opIds (#4118)Ryan Dahl
2020-02-24feat: Add Deno.formatDiagnostics (#4032)Kitson Kelly
2020-02-24Add missing node os.release() implementation (#4065)ecyrbe
2020-02-23refactor: use OpError instead of ErrBox for errors in ops (#4058)Bartek Iwańczuk
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-23fetch: proper error for unsupported protocol (#4085)Kevin (Kun) "Kassimo" Qian
2020-02-22feat(std/node): add os.loadavg() (#4075)ecyrbe
2020-02-21feat: Deno.fsEvents() (#3452)Bartek Iwańczuk