summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2021-04-07fix(lsp): don't error on tsc debug failures for code actions (#10047)Kitson Kelly
Resolves: #9913
2021-04-06fix(webgpu): correct GPUFeatureName webidl to match typings (#10023)crowlKats
2021-04-06perf: build core packages at opt-3 (#10038)Aaron O'Mullan
2021-04-06docs(workers): fix permissions examples (#9965)Mason Medeiros
2021-04-06docs: export EmitOptions and EmitResult (#10037)Yoshiya Hinosawa
2021-04-06fix(lsp): properly handle encoding URLs from lsp client (#10033)Kitson Kelly
Fixes #9741
2021-04-06refactor: add deno_file op crate (#10019)Luca Casonato
Also enables WPT for FileReader.
2021-04-06refactor: rewrite "net" ops to use serde_v8 (#10028)Aaron O'Mullan
2021-04-06fix(lsp): folding range adjustment panic (#10030)Kitson Kelly
Fixes #10029
2021-04-05core: remove serde_json-isms in op_close() and op_resources() (#10026)Aaron O'Mullan
Core no longer uses `serde_json` now, besides re-exporting it or in the module specifier tests
2021-04-06chore: deprecate Deno.iter and Deno.iterSync (#10025)Luca Casonato
This commit marks the `Deno.iter` and `Deno.iterSync` utils as deprecated, and schedules them for removal in Deno 2.0. These utilities are implemented in pure JS, so should not be part of the Deno namespace. These utilities are now available in std/io/util: denoland/deno_std#843.
2021-04-06chore: deprecate Deno.Buffer and read/write utils (#9793)Luca Casonato
This commit marks the `Deno.Buffer` / `Deno.readAll` / `Deno.readAllSync` / `Deno.writeAll` / `Deno.writeAllSync` utils as deprecated, and schedules them for removal in Deno 2.0. These utilities are implemented in pure JS, so should not be part of the Deno namespace. These utilities are now available in std/io/buffer and std/io/util: https://github.com/denoland/deno_std/pull/808. This additionallty removes all internal dependance on Deno.Buffer.
2021-04-05refactor: convert ops to use serde_v8 (#10009)Aaron O'Mullan
This commit rewrites most of the ops to use "serde_v8" instead of "json" serialization.
2021-04-05chore: update std submodule (#10017)Luca Casonato
2021-04-05docs: add documentation about Atom Editor LSP client (#10016)ayame113
Co-authored-by: ayame113 <ayame113@users.noreply.github.com>
2021-04-04perf(serde_v8): preallocate vector when serializing arrays (#9955)Aaron O'Mullan
2021-04-04docs: update Deno.metrics() table data (#9999)Divy Srivastava
2021-04-04chore(cli): Upgrade jsonc_parser to 0.17 (#9977)David Sherret
Use new parse_to_serde_value as it's faster and less code here.
2021-04-04fix: Properly await already evaluating dynamic imports (#9984)Nayeem Rahman
2021-04-04docs: update kakoune LSP example configuration (#9989)louix
Fixes #9988
2021-04-04perf(serde_v8): drop need for EscapableHandleScope (#9990)Aaron O'Mullan
This is another improvement to serde_v8's serialization code, it drops the need for creating a v8::EscapableHandleScope or "subscope".