summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-04-12feat(runtime): add truncate and truncateSync methods to Deno.File (#10130)Casper Beyer
2021-04-12feat(runtime): add stat and statSync methods to Deno.File (#10107)Casper Beyer
2021-04-12perf(runtime): optimize PermissionState::check (#9993)Aaron O'Mullan
2021-04-12feat(runtime): stabilize Deno.fstat and Deno.fstatSync (#10108)Casper Beyer
This commit stabilizes Deno.fstat and Deno.fstatSync which are well known system calls and have a stable interface.
2021-04-12feat: Add Deno.memoryUsage() (#9986)Aaron O'Mullan
2021-04-12feat(runtime/permissions): prompt fallback (#9376)crowlKats
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-04-12fix(runtime/js/timers): Use (0, eval) instead of eval() (#10103)Nayeem Rahman
2021-04-11ci: store last-modified timestamps in Github Actions cache (#10110)Bert Belder
2021-04-11Revert "use incremental build in ci (#10053)" (#10110)Bert Belder
This reverts commit fd65e6de3dc1ff909a1419c3b8f0c76daf1a69ed.
2021-04-11fix(op_crates/console): console.table value misalignment with varying keys ↵Liam Murphy
(#10127)
2021-04-11perf: build runtime at opt-3 (#10072)Aaron O'Mullan
2021-04-11feat: blob URL support in fetch (#10120)Luca Casonato
This commit adds blob URL support in `fetch`. Tested via WPT. This is the first op_crate to have a rust dependency on a different op_crate.
2021-04-11feat: stabilize Deno.ftruncate and Deno.ftruncateSync (#10126)Casper Beyer
This stabilizes Deno.ftruncate and Deno.ftruncateSync. This is a well known system call and the interface is not going to change. Implicitly requires write permissions as the file has to be opened with write to be truncated.
2021-04-11refactor(op_crates/web): remove unused code path in TextEncoder (#10104)Thiago de Arruda Padilha
According to https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder, TextEncoder should ignore the "encoding" parameter and always use "utf-8".
2021-04-11core: avoid async op future reboxing to bundle PromiseId (#10123)Aaron O'Mullan
2021-04-11feat: set useDefineForClassFields to true (#10119)Nayeem Rahman
Fixes: #9773
2021-04-10feat: data URL support in fetch (#10054)Luca Casonato
This commit adds data URL support in `fetch`. Tested via wpt.
2021-04-10feat(unstable): ALPN config in listenTls (#10065)Luca Casonato
This commit adds the ability for users to configure ALPN protocols when calling `Deno.listenTls`.
2021-04-10runtime/inspector: pretend to be node (#10115)Aaron O'Mullan
Also change frontend URL from inspector.html to js_app.html
2021-04-10fix(cli/diagnostics): Update UNSTABLE_DENO_PROPS (#10095)Nayeem Rahman
2021-04-10chore: improve lsp registry validations (#10096)Luca Casonato
2021-04-10feat(permissions): allow run permission to take values (#9833)crowlKats
This commit adds allowlist support to `--allow-run` flag. Additionally `Deno.permissions.query()` allows to query for specific programs within allowlist.
2021-04-09chore: upgrade dependencies (#10094)Bartek Iwańczuk
This commit upgrades: - swc_ecmascript - swc_bundler - deno_doc - deno_lint - dprint-plugin-typescript
2021-04-09perf: use BTreeMap for ResourceTable (#10074)Aaron O'Mullan
2021-04-09Revert "Improve incremental build time (#10039)" (#10086)Ryan Dahl
This reverts commit a87da4b19a6da67dde15d1d0ceefaad2bdad1637.
2021-04-09perf(core): use BTreeMap for GothamState (#10073)Aaron O'Mullan
This commit replaces GothamState's internal HashMap with a BTreeMap to improve performance. OpState/GothamState keys by TypeId which is essentially an opaque u64. For small sets of integer keys BTreeMap outperforms HashMap mainly since it removes the hashing overhead and Eq/Comp on integer-like types is very cheap, it should also have a smaller memory footprint. We only use ~30 unique types and thus ~30 unique keys to access OpState, so the keyset is small and immutable throughout the life of a JsRuntime, there's no meaningful churn in keys added/removed.
2021-04-09fix: async op error stacktraces (#10080)Nayeem Rahman
Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
2021-04-09API change: Deno.startHttp -> Deno.serveHttp (#10087)Ryan Dahl
2021-04-09docs: fix typo in fetch example (#10057)Tobias Nießen
2021-04-09Improve incremental build time (#10039)Ryan Dahl
Unfortunately this increases the release build size by 8M ``` | | incremental build | full build | binary size | |--------|-------------------|------------|-------------| | main | 4m 21s | 6m 24s | 72M | | #10039 | 1m 45s | 5m 28s | 80M | ```
2021-04-09docs(readme): improve link descriptions (#10083)Jesse Jackson
2021-04-09ci: do not include branch name in cache key (#10081)Yoshiya Hinosawa
2021-04-09docs: add a link to the Discord server to the Readme (#10082)YodaLightsabr
Fixes: #9712 Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-04-09feat(lsp): add registry import auto-complete (#9934)Kitson Kelly
2021-04-09ci: add gnu tar path (#10075)Yoshiya Hinosawa
2021-04-09fix(lsp): normalize windows file URLs properly (#10034)Kitson Kelly
Fixes: #9744 Fixes: https://github.com/denoland/vscode_deno/issues/386
2021-04-08feat: native HTTP bindings (#9935)Bartek Iwańczuk
Co-authered-by: Luca Casonato <lucacasonato@yahoo.com> Co-authered-by: Ben Noordhuis <info@bnoordhuis.nl> Co-authered-by: Ryan Dahl <ry@tinyclouds.org>
2021-04-08Clear CI cache (#10071)Ryan Dahl
2021-04-08ci: use gnu tar on macos (#10069)Yoshiya Hinosawa
2021-04-08chore: update deps (#10058)Luca Casonato
This commit updates crate dependencies.
2021-04-08fix(core): error handling in examples (#9867)Inteon
2021-04-08ci: fallback to main's cache (#10068)Yoshiya Hinosawa
2021-04-08fix(runtime/readFile*): close resources on error during read (#10059)Satya Rohith
This commit ensures readFile, readFileSync, readTextFile, and readTextFileSync does not leak resources on error.
2021-04-08fix: enable FileReader wpt and align to spec (#10063)Luca Casonato
This adds some algorithms from the whatwg mimesniff, whatwg infra, and whatwg encoding specs that FileReader needs to use internally.
2021-04-08ci: use repository and ref as part of the cache key (#10067)Casper Beyer
2021-04-08chore: update deno_file to use deno_webidl (#10042)Luca Casonato
This changes the custom input converters in deno_file to use deno_webidl converters.
2021-04-07use incremental build in ci (#10053)Yoshiya Hinosawa
2021-04-07feat: blob URL support (#10045)Luca Casonato
This commit adds blob URL support. Blob URLs are stored in a process global storage, that can be accessed from all workers, and the module loader. Blob URLs can be created using `URL.createObjectURL` and revoked using `URL.revokeObjectURL`. This commit does not add support for `fetch`ing blob URLs. This will be added in a follow up commit.
2021-04-07perf(core.js): introduce promise ring (#9979)Aaron O'Mullan
This is another optimization to help improve the baseline overhead of async ops. It shaves off ~55ns/op or ~7% of the current total async op overhead. It achieves these gains by taking advantage of the sequential nature of promise IDs and optimistically stores them sequentially in a pre-allocated circular buffer and fallbacks to the promise Map for slow to resolve promises.
2021-04-07docs: list globs used by `deno test` (#9976)yw662