Luca Casonato
4ae50f5c06
refactor: use primordials for extensions/webidl ( #11227 )
2021-07-02 16:37:41 +02:00
David Sherret
68b4d60fd7
fix(diff): better handling of text with only line ending differences ( #11212 )
...
Additionally fixes:
* It not displaying a diff when one text had a trailing newline and the other didn't.
* Edge case where the line number width could be incorrect if the original text had say 99 lines and the edit text had 100 lines.
2021-07-02 10:16:09 -04:00
Bartek Iwańczuk
7dd4090c2a
Remove unstable native plugins ( #10908 )
...
This commit removes implementation of native plugins
alongside the unstable "Deno.openPlugin()" API.
2021-07-02 16:11:23 +02:00
Luca Casonato
2544ec9af4
refactor: use primordials for extensions/url ( #11225 )
2021-07-02 14:08:28 +02:00
Luca Casonato
c9204c4aee
refactor: introduce primordials ( #10939 )
...
This commit introduces primordials to deno_core. Primordials are a
frozen set of all intrinsic objects in the runtime. They are not
vulnerable to prototype pollution.
2021-07-02 12:18:30 +02:00
Andreu Botella
7b0375fae7
perf: speed up TextEncoder.prototype.encodeInto() ( #11219 )
...
The current implementation of op_encoding_encode_into UTF-8 encodes each
individual code point in the input string into the output buffer. But after the
ops binding, the input is a Rust String, so the UTF-8 bytes can simply be copied
to the output. This should improve this API's performance.
2021-07-02 12:11:20 +02:00
Andreu Botella
4bc8fe71db
fix(fetch): a consumed body with a non-stream source should result in a disturbed stream ( #11217 )
2021-07-02 11:34:12 +02:00
Bartek Iwańczuk
513f921219
feat(core): pump V8 message loop on event loop tick ( #11221 )
...
This commit adds support for Atomics and FinalizationRegistry by integrating
V8's message loop into "JsRuntime::poll_event_loop".
2021-07-02 10:46:37 +02:00
Zhangyuan Nie
5648b22fe1
docs(cli/flags): use deno instead of target/debug/deno ( #11215 )
2021-07-02 10:43:53 +02:00
Bartek Iwańczuk
bce662d5bb
chore: upgrade rusty_v8 and serde_v8 ( #11216 )
2021-07-02 09:32:48 +02:00
Luca Casonato
0385a99052
v1.11.3
...
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2021-07-02 00:13:40 +02:00
Bert Belder
1a5984983f
ci: don't set DENO_CANARY when releasing, attempt 2 ( #11214 )
2021-07-01 23:48:53 +02:00
David Sherret
899470addc
chore: update dprint-plugin-json to remove duplicate dprint-core dependency ( #11209 )
2021-07-01 11:22:28 -04:00
Luca Casonato
32b9aa5720
build: switch to wpt.fyi prod ( #11201 )
2021-07-01 15:44:44 +02:00
Luca Casonato
e9e286a56e
upgrade: swc 0.44.0 ( #11197 )
2021-07-01 11:48:42 +02:00
Luca Casonato
de6e44794b
fix: panic in request body streaming ( #11191 )
2021-06-30 18:05:58 +02:00
Bartek Iwańczuk
3e21ffc935
feat(inspector): improve inspector prompt in Chrome Devtools ( #11187 )
...
This commit improves how Deno inspector presents itself in Chrome Devtools.
2021-06-30 18:01:11 +02:00
Bert Belder
622f9c6889
ci: don't set DENO_CANARY when releasing ( #11181 )
...
Fixes: #11179
2021-06-29 21:01:34 +00:00
Bert Belder
5db9f627e3
chore: get rid of REPL timeout ( #11175 )
...
* Get rid of timeout
* Use tokio channel and reduce calls to run_event_loop
Co-authored-by: David Sherret <dsherret@gmail.com>
2021-06-29 14:39:28 -04:00
Casper Beyer
a0c0daac24
test(cli): harden test runner tests ( #11166 )
2021-06-29 15:40:16 +02:00
Casper Beyer
96d0582900
fix(cli): pretty print coverage files ( #11157 )
2021-06-29 03:39:19 +02:00
Nayeem Rahman
c577c273a4
fix(core/modules): Fix concurrent loading of dynamic imports ( #11089 )
...
This commit changes implementation of module loading in "deno_core"
to track all currently fetched modules across all existing module loads.
In effect a bug that caused concurrent dynamic imports referencing the
same module to fail is fixed.
2021-06-29 03:03:02 +02:00
Bartek Iwańczuk
38a7128cdd
feat: Add "deno_net" extension ( #11150 )
...
This commits moves implementation of net related APIs available on "Deno"
namespace to "deno_net" extension.
Following APIs were moved:
- Deno.listen()
- Deno.connect()
- Deno.listenTls()
- Deno.serveHttp()
- Deno.shutdown()
- Deno.resolveDns()
- Deno.listenDatagram()
- Deno.startTls()
- Deno.Conn
- Deno.Listener
- Deno.DatagramConn
2021-06-29 01:43:03 +02:00
Bartek Iwańczuk
30cba24848
chore: release deno_core ( #11164 )
2021-06-28 20:59:23 +02:00
Bartek Iwańczuk
9e875b2a23
fix(http): remove unwrap() in HTTP bindings ( #11130 )
2021-06-28 00:19:40 +02:00
David Sherret
098a7c8886
chore: split up integration_tests.rs into separate files ( #11131 )
2021-06-27 13:27:36 -04:00
Andreu Botella
5bf7da91f1
fix(runtime/http): Encode and decode headers as byte strings in the HTTP server ( #11144 )
2021-06-27 02:29:01 +02:00
Bartek Iwańczuk
7b9737b9f4
feat(inspector): pipe console messages between terminal and inspector ( #11134 )
...
This commit adds support for piping console messages to inspector.
This is done by "wrapping" Deno's console implementation with default
console provided by V8 by the means of "Deno.core.callConsole" binding.
Effectively each call to "console.*" methods calls a method on Deno's
console and V8's console.
2021-06-27 02:27:50 +02:00
Andreu Botella
015f252066
fix(fetch): encode and decode headers as byte strings ( #11070 )
2021-06-26 17:34:24 +02:00
Luca Casonato
22e7b0f585
fix: MessagePort in message for postMessage transfers ( #11103 )
2021-06-26 11:17:05 +02:00
David Sherret
1f4cdc067a
fix(lsp): reload import registries should not error when the module registries directory does not exist ( #11123 )
2021-06-25 21:44:27 -04:00
Nick Randall
2f1ac46091
feat(core): Re-export serde_v8 ( #11125 )
2021-06-26 03:09:25 +02:00
Bartek Iwańczuk
59696df9e0
chore: use local deno_std in tools scripts ( #11122 )
2021-06-26 02:02:31 +02:00
David Sherret
5ee6995cf7
chore: move repl integration tests to separate file ( #11127 )
2021-06-25 19:07:06 -04:00
Luca Casonato
40b083c540
fix: specify AbortSignal for native http requests ( #11126 )
2021-06-26 00:01:25 +02:00
Bartek Iwańczuk
e86c1710f4
chore: upgrade serde_v8 ( #11120 )
2021-06-25 18:58:18 +02:00
Ryan Dahl
48f9df9aa2
upgrade: rusty_v8 0.23.0 (V8 9.2.230.12) ( #11113 )
2021-06-25 12:54:53 +02:00
Yoshiya Hinosawa
d832d2bfd1
chore(ext/console): deprecate Deno.customInspect ( #10035 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-06-25 16:19:18 +09:00
Yoshiya Hinosawa
606611708c
fix(runtime/signal): use op_async_unref for op_signal_poll ( #11097 )
2021-06-25 13:15:35 +09:00
Yoshiya Hinosawa
66c5f41c5b
test(cli): refactor the usages of delay ( #11098 )
...
This PR refactors the usages of delay utility in js unit testing. The same
utiliy is defined in several places with different names. This PR replaces those
usages with the one provided in std/async/delay.ts to improve the readability
and consistency of test code.
2021-06-25 03:44:14 +02:00
Daniel Perez Alvarez
dd4ed82576
docs(lsp): Add Emacs eglot lsp configuration example ( #10006 )
...
Co-authored-by: John Spurlock <john.spurlock@gmail.com>
2021-06-25 03:36:23 +02:00
Kitson Kelly
9e51766f3e
feat(lsp): dependency hover information ( #11090 )
2021-06-25 09:06:51 +10:00
Andreu Botella
be5d2983b4
chore(wpt): clean up temporary files created by the WPT test runner ( #11108 )
...
Fixes #11107 .
2021-06-24 15:07:36 -04:00
David Sherret
586586b791
fix: make readonly Event
properties readonly ( #11106 )
2021-06-24 14:21:13 -04:00
David Sherret
a2067ec46d
fix(inspect): eliminate panic inspecting event classes ( #10979 )
2021-06-24 09:43:41 -04:00
David Sherret
4b3845b998
feat(repl): support import declarations in the REPL ( #11086 )
2021-06-24 09:00:46 -04:00
Kitson Kelly
8ed83cba7e
fix(lsp): handle invalid config setting better ( #11104 )
...
Fixes #11100
Fixes #10808
2021-06-24 22:41:04 +10:00
Andreu Botella
40310eaebf
fix(url): use USVStrings in URLSearchParams constructor ( #11101 )
2021-06-24 11:38:37 +02:00
Nick Williams
d54e3ea9bb
docs: fixed spelling mistake ( #11096 )
2021-06-24 09:09:37 +10:00
Bert Belder
b7f875e010
ci: fix pushing benchmark results to gh-pages ( #11095 )
2021-06-23 23:54:25 +02:00