Ben Noordhuis
986513c080
core: let embedders plug in their own V8 platform
...
Fixes #9912 .
2021-04-12 22:03:32 +02:00
Aaron O'Mullan
46b1c653c0
refactor(deno): remove concept of bin & json ops ( #10145 )
2021-04-12 15:55:05 -04:00
Nayeem Rahman
a20504642d
fix(runtime/js/http): Correctly parse user response headers ( #10076 )
2021-04-12 10:24:45 -04:00
Casper Beyer
9d53dab4df
feat(runtime): add truncate and truncateSync methods to Deno.File ( #10130 )
2021-04-12 14:32:58 +02:00
Casper Beyer
da9219341f
feat(runtime): add stat and statSync methods to Deno.File ( #10107 )
2021-04-12 13:33:05 +02:00
Aaron O'Mullan
5c2a8cdbdc
perf(runtime): optimize PermissionState::check ( #9993 )
2021-04-12 13:24:41 +02:00
Casper Beyer
875ac73f1e
feat(runtime): stabilize Deno.fstat and Deno.fstatSync ( #10108 )
...
This commit stabilizes Deno.fstat and Deno.fstatSync
which are well known system calls and have a stable interface.
2021-04-12 11:27:38 +02:00
Aaron O'Mullan
bf99039ea9
feat: Add Deno.memoryUsage() ( #9986 )
2021-04-12 10:47:44 +02:00
crowlKats
fefe93c91b
feat(runtime/permissions): prompt fallback ( #9376 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-04-12 11:15:43 +09:00
Nayeem Rahman
8b49d948f5
fix(runtime/js/timers): Use (0, eval) instead of eval() ( #10103 )
2021-04-12 01:40:42 +02:00
Bert Belder
06b5959eed
ci: store last-modified timestamps in Github Actions cache ( #10110 )
2021-04-11 20:57:17 +00:00
Bert Belder
ae95da5d10
Revert "use incremental build in ci ( #10053 )" ( #10110 )
...
This reverts commit fd65e6de3d
.
2021-04-11 20:57:16 +00:00
Liam Murphy
3c645457a4
fix(op_crates/console): console.table value misalignment with varying keys ( #10127 )
2021-04-11 14:19:50 +02:00
Aaron O'Mullan
6519f232bd
perf: build runtime at opt-3 ( #10072 )
2021-04-11 14:10:22 +02:00
Luca Casonato
e7f18d6468
feat: blob URL support in fetch ( #10120 )
...
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-11 14:09:10 +02:00
Casper Beyer
f5a9474952
feat: stabilize Deno.ftruncate and Deno.ftruncateSync ( #10126 )
...
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-11 14:05:22 +02:00
Thiago de Arruda Padilha
c0b6e09172
refactor(op_crates/web): remove unused code path in TextEncoder ( #10104 )
...
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-11 20:47:06 +09:00
Aaron O'Mullan
29eca72fea
core: avoid async op future reboxing to bundle PromiseId ( #10123 )
2021-04-11 07:05:43 +02:00
Nayeem Rahman
8aa0d5f96e
feat: set useDefineForClassFields to true ( #10119 )
...
Fixes: #9773
2021-04-11 07:56:40 +10:00
Luca Casonato
3ab94983b4
feat: data URL support in fetch ( #10054 )
...
This commit adds data URL support in `fetch`. Tested via wpt.
2021-04-10 23:38:15 +02:00
Luca Casonato
8d55d8b6be
feat(unstable): ALPN config in listenTls ( #10065 )
...
This commit adds the ability for users to configure ALPN protocols when
calling `Deno.listenTls`.
2021-04-10 22:04:44 +02:00
Aaron O'Mullan
1c6602b85b
runtime/inspector: pretend to be node ( #10115 )
...
Also change frontend URL from inspector.html to js_app.html
2021-04-10 13:12:59 -04:00
Nayeem Rahman
dc4ab98ee7
fix(cli/diagnostics): Update UNSTABLE_DENO_PROPS ( #10095 )
2021-04-10 02:41:59 +02:00
Luca Casonato
1aeabce134
chore: improve lsp registry validations ( #10096 )
2021-04-10 02:37:42 +02:00
crowlKats
e7b7129b7a
feat(permissions): allow run permission to take values ( #9833 )
...
This commit adds allowlist support to `--allow-run` flag.
Additionally `Deno.permissions.query()` allows to query for specific
programs within allowlist.
2021-04-10 00:12:00 +02:00
Bartek Iwańczuk
1c7217e390
chore: upgrade dependencies ( #10094 )
...
This commit upgrades:
- swc_ecmascript
- swc_bundler
- deno_doc
- deno_lint
- dprint-plugin-typescript
2021-04-09 23:35:29 +02:00
Aaron O'Mullan
0fd1fb9329
perf: use BTreeMap for ResourceTable ( #10074 )
2021-04-09 14:07:24 -04:00
Ryan Dahl
01d8d70b10
Revert "Improve incremental build time ( #10039 )" ( #10086 )
...
This reverts commit a87da4b19a
.
2021-04-09 14:03:32 -04:00
Aaron O'Mullan
0b4cb29386
perf(core): use BTreeMap for GothamState ( #10073 )
...
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-09 19:49:11 +02:00
Nayeem Rahman
c86ee742a2
fix: async op error stacktraces ( #10080 )
...
Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
2021-04-09 11:55:33 -04:00
Ryan Dahl
c6e7a243d5
API change: Deno.startHttp -> Deno.serveHttp ( #10087 )
2021-04-09 11:54:27 -04:00
Tobias Nießen
cd0560210a
docs: fix typo in fetch example ( #10057 )
2021-04-09 23:16:33 +09:00
Ryan Dahl
a87da4b19a
Improve incremental build time ( #10039 )
...
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-09 08:18:49 -04:00
Jesse Jackson
40983a48b6
docs(readme): improve link descriptions ( #10083 )
2021-04-09 16:29:48 +09:00
Yoshiya Hinosawa
94c666fc45
ci: do not include branch name in cache key ( #10081 )
2021-04-09 14:43:33 +09:00
YodaLightsabr
0d9aa81c69
docs: add a link to the Discord server to the Readme ( #10082 )
...
Fixes: #9712
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-04-09 15:09:08 +10:00
Kitson Kelly
d9d4a5d73c
feat(lsp): add registry import auto-complete ( #9934 )
2021-04-09 11:27:27 +10:00
Yoshiya Hinosawa
3168fa4ee7
ci: add gnu tar path ( #10075 )
2021-04-09 10:24:13 +09:00
Kitson Kelly
1ed9512022
fix(lsp): normalize windows file URLs properly ( #10034 )
...
Fixes: #9744
Fixes: https://github.com/denoland/vscode_deno/issues/386
2021-04-09 09:36:32 +10:00
Bartek Iwańczuk
70af812876
feat: native HTTP bindings ( #9935 )
...
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-08 18:34:15 -04:00
Ryan Dahl
b30ac9c5cf
Clear CI cache ( #10071 )
2021-04-08 15:00:53 -04:00
Yoshiya Hinosawa
3dd525d767
ci: use gnu tar on macos ( #10069 )
2021-04-08 13:37:59 -04:00
Luca Casonato
4e70ff80c2
chore: update deps ( #10058 )
...
This commit updates crate dependencies.
2021-04-08 18:46:14 +02:00
Inteon
d050b491b1
fix(core): error handling in examples ( #9867 )
2021-04-08 18:04:02 +02:00
Yoshiya Hinosawa
c4b21fbff1
ci: fallback to main's cache ( #10068 )
2021-04-08 10:56:43 -04:00
Satya Rohith
543080de55
fix(runtime/readFile*): close resources on error during read ( #10059 )
...
This commit ensures readFile, readFileSync, readTextFile,
and readTextFileSync does not leak resources on error.
2021-04-08 16:36:52 +02:00
Luca Casonato
c867c1aa47
fix: enable FileReader wpt and align to spec ( #10063 )
...
This adds some algorithms from the whatwg mimesniff, whatwg infra, and
whatwg encoding specs that FileReader needs to use internally.
2021-04-08 15:05:08 +02:00
Casper Beyer
d2e500e1cf
ci: use repository and ref as part of the cache key ( #10067 )
2021-04-08 20:52:01 +09:00
Luca Casonato
ee07ef2962
chore: update deno_file to use deno_webidl ( #10042 )
...
This changes the custom input converters in deno_file to use deno_webidl
converters.
2021-04-08 01:23:26 +02:00
Yoshiya Hinosawa
fd65e6de3d
use incremental build in ci ( #10053 )
2021-04-07 10:17:55 -04:00