Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-03-16 | Add mode option to open/create (#4289) | dubiousjim | |
2020-03-16 | refactor: remove an unsafe and some boxing (#4398) | Gurwinder Singh | |
2020-03-14 | BREAKING CHANGE FileInfo.len renamed to FileName.size (#4338) | dubiousjim | |
2020-03-12 | upgrade: Rust 1.42.0 (#4331) | Ryan Dahl | |
2020-03-11 | Add waker to StreamResource to fix hang on close bugs (#4293) | João Souto | |
2020-03-11 | support permission mode in mkdir (#4286) | dubiousjim | |
2020-03-10 | refactor(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-10 | Add Deno.umask (#4290) | dubiousjim | |
2020-03-07 | refactor: 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-06 | Rename 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-05 | fix: call unwatch when dropping FsEventsResource (#4266) | Ryan Dahl | |
2020-03-05 | Allow BadResource errors to take a custom message (#4251) | Ryan Dahl | |
2020-03-04 | Remove 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-02 | Do not convert exceptions to JSON and back (#4214) | Bert Belder | |
2020-03-02 | feat: update metrics to track different op types (#4221) | Bartek Iwańczuk | |
2020-03-02 | refactor: 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-02 | seek should return cursor position (#4211) | bartOssh | |
2020-03-02 | Cleanup comments and internal variables (#4205) | dubiousjim | |
2020-03-01 | feat(std/node): add os.tmpdir() implementation (#4213) | ecyrbe | |
2020-02-27 | replace impl Future with poll_fn for net.rs, process.rs, tls.rs (#4158) | Bartek Iwańczuk | |
2020-02-26 | rewrite 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-26 | remove Read/Write futures, use poll_fn instead (#4150) | Bartek Iwańczuk | |
2020-02-26 | tty: Deno.setRaw(rid, mode) to turn on/off raw mode (#3958) | Kevin (Kun) "Kassimo" Qian | |
2020-02-25 | Remove _async from method names since _sync are gone (#4128) | Ryan Dahl | |
2020-02-25 | fix: Resolve makeTemp* paths from CWD (#4104) | Nayeem Rahman | |
2020-02-25 | Clean up how we use opIds (#4118) | Ryan Dahl | |
2020-02-24 | feat: Add Deno.formatDiagnostics (#4032) | Kitson Kelly | |
2020-02-24 | Add missing node os.release() implementation (#4065) | ecyrbe | |
2020-02-23 | refactor: 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-23 | fetch: proper error for unsupported protocol (#4085) | Kevin (Kun) "Kassimo" Qian | |
2020-02-22 | feat(std/node): add os.loadavg() (#4075) | ecyrbe | |
2020-02-21 | feat: Deno.fsEvents() (#3452) | Bartek Iwańczuk | |
2020-02-21 | feat: support UDP sockets (#3946) | hazæ41 | |
2020-02-21 | refactor: remove unneeded ErrorKinds (#3936) | Bartek Iwańczuk | |
2020-02-19 | refactor: rewrite file_fetcher to use async fns, lift blocking call (#4037) | Bartek Iwańczuk | |
2020-02-19 | Support loading additional TS lib files (#3863) | Kitson Kelly | |
Fixes #3726 This PR provides support for referencing other lib files (like lib.dom.d.ts that are not used by default in Deno. | |||
2020-02-18 | refactor: remove run_worker_loop (#4028) | Bartek Iwańczuk | |
* remove run_worker_loop, impl poll for WebWorker * store JoinHandle to worker thread | |||
2020-02-18 | feat: Deno.makeTempFile (#4024) | Kevin (Kun) "Kassimo" Qian | |
2020-02-18 | refactor: cleanup cli/lib.rs (#4006) | Bartek Iwańczuk | |
* rename methods on Worker related to module loading * reorganize cli/lib.rs * remove cli/progress.rs and cli/shell.rs | |||
2020-02-17 | feat: add --cert flag for http client (#3972) | geoFlux | |
2020-02-15 | fix: skip non-UTF-8 dir entries in Deno.readDir() (#4004) | Ben Noordhuis | |
Example: $ python2 -c 'open("\x80\x7F", "w")' $ deno eval 'Deno.readDirSync(".")' thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', cli/ops/fs.rs:373:16 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace fatal runtime error: failed to initiate panic, error 5 Aborted (core dumped) Before this commit they made deno panic, now they are silently skipped. Not ideal but arguably better than panicking. No test because what characters are and aren't allowed in filenames is highly file system-dependent. Closes #3950 | |||
2020-02-15 | refactor: replace Arc<Box<..>> with Rc<..> (#3996) | Bartek Iwańczuk | |
2020-02-11 | refactor: Remove atomics from metrics (#3968) | Bartek Iwańczuk | |
* replace "AtomicUsize" with "u64" for field type on "Metrics" * move "compiler_starts" field from "Metrics" to "GlobalState" | |||
2020-02-11 | workers: basic event loop (#3828) | Bartek Iwańczuk | |
* establish basic event loop for workers * make "self.close()" inside worker * remove "runWorkerMessageLoop() - instead manually call global function in Rust when message arrives. This is done in preparation for structured clone * refactor "WorkerChannel" and use distinct structs for internal and external channels; "WorkerChannelsInternal" and "WorkerHandle" * move "State.worker_channels_internal" to "Worker.internal_channels" * add "WorkerEvent" enum for child->host communication; currently "Message(Buf)" and "Error(ErrBox)" variants are supported * add tests for nested workers * add tests for worker throwing error on startup | |||
2020-02-09 | No longer require aligned buffer for shared queue (#3935) | Andy Finch | |
Fixes: #3925 | |||
2020-02-08 | refactor: rename ThreadSafeState, use RefCell for mutable state (#3931) | Bartek Iwańczuk | |
* rename ThreadSafeState to State * State stores InnerState wrapped in Rc and RefCell | |||
2020-02-07 | Add blanket impl for the 'Resource' trait (#3903) | Bert Belder | |
2020-02-07 | Enable thread pool for blocking ops (#3912) | Ryan Dahl | |
2020-02-05 | fix: basic web worker message passing (#3893) | Ryan Dahl | |
Removes OP_HOST_GET_WORKER_LOADED, OP_HOST_POLL_WORKER, OP_HOST_RESUME_WORKER and ready/messageBuffer in cli/js/workers.ts. | |||
2020-02-05 | Move create_channels into worker constructor (#3889) | Ryan Dahl | |