Age | Commit message (Collapse) | Author |
|
This commit adds allowlist support to `--allow-run` flag.
Additionally `Deno.permissions.query()` allows to query for specific
programs within allowlist.
|
|
This commit upgrades:
- swc_ecmascript
- swc_bundler
- deno_doc
- deno_lint
- dprint-plugin-typescript
|
|
|
|
This reverts commit a87da4b19a6da67dde15d1d0ceefaad2bdad1637.
|
|
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.
|
|
Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
|
|
|
|
|
|
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 |
```
|
|
|
|
|
|
Fixes: #9712
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
|
|
|
|
|
|
Fixes: #9744
Fixes: https://github.com/denoland/vscode_deno/issues/386
|
|
Co-authered-by: Luca Casonato <lucacasonato@yahoo.com>
Co-authered-by: Ben Noordhuis <info@bnoordhuis.nl>
Co-authered-by: Ryan Dahl <ry@tinyclouds.org>
|
|
|
|
|
|
This commit updates crate dependencies.
|
|
|
|
|
|
This commit ensures readFile, readFileSync, readTextFile,
and readTextFileSync does not leak resources on error.
|
|
This adds some algorithms from the whatwg mimesniff, whatwg infra, and
whatwg encoding specs that FileReader needs to use internally.
|
|
|
|
This changes the custom input converters in deno_file to use deno_webidl
converters.
|
|
|
|
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.
|
|
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.
|
|
|
|
Resolves: #9913
|
|
|
|
|
|
|
|
|
|
Fixes #9741
|
|
Also enables WPT for FileReader.
|
|
|
|
Fixes #10029
|
|
Core no longer uses `serde_json` now, besides re-exporting it or in the module specifier tests
|
|
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.
|
|
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.
|
|
This commit rewrites most of the ops to use "serde_v8" instead
of "json" serialization.
|
|
|
|
Co-authored-by: ayame113 <ayame113@users.noreply.github.com>
|
|
|
|
|
|
Use new parse_to_serde_value as it's faster and less code here.
|
|
|
|
Fixes #9988
|
|
This is another improvement to serde_v8's serialization code,
it drops the need for creating a v8::EscapableHandleScope or "subscope".
|