1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 01:58:05 -05:00
Commit graph

6855 commits

Author SHA1 Message Date
Ryan Dahl
6d7a72569c
error on warnings (#13344) 2022-01-12 16:25:48 +01:00
Leo Kettmeir
4d8866eb5f
chore: bump rust-urlpattern to 0.1.3 (#13328) 2022-01-12 16:25:43 +01:00
Bartek Iwańczuk
219afc4877
fix(coverage): merge coverage ranges (#13334)
Covered ranges were not merged and thus it appeared that some lines
might be uncovered. To fix this I used "v8-coverage" that takes care
of merging the ranges properly. With this change, coverage collected
from a file by multiple entrypoints is now correctly calculated.

I ended up forking https://github.com/demurgos/v8-coverage and adding
"cli/tools/coverage/merge.rs" and "cli/tools/coverage/range_tree.rs".
2022-01-12 16:25:38 +01:00
Luca Casonato
7c33e3e4d6
fix(ext/web): handle no arguments in atob (#13341) 2022-01-12 16:25:36 +01:00
Aaron O'Mullan
37a02bef69
chore(ci): ubuntu-latest-xl => ubuntu-20.04-xl (#13342) 2022-01-12 16:25:31 +01:00
Rabin Gaire
d19e87e435
cli(compile): fix output flag behaviour on compile command (#13299) 2022-01-12 16:25:08 +01:00
Bartek Iwańczuk
d2456ec777
fix(coverage): don't type check (#13324)
This commit changes "deno coverage" command not to type check.

Instead of relying on infrastructure for module loading in "deno run";
the code now directly reaches into cache for original and transpiled
sources. In case sources are not available the error is returned to the
user, suggesting to first run "deno test --coverage" command.
2022-01-12 16:24:26 +01:00
David Sherret
357ff7bb13
docs: update writeSync docs to refer to writeAllSync in deno.land/std instead of Deno.writeAllSync (#13314) 2022-01-12 16:24:24 +01:00
David Sherret
a561c59954
fix: install shim with --allow-all should not output each permission individually (#13325) 2022-01-12 16:24:21 +01:00
Rodney van den Velden
4b2470135d
fix: expose "Deno.memoryUsage()" in worker context (#13293) 2022-01-12 16:24:17 +01:00
Bartek Iwańczuk
bcea8cae21
test: add inspector test with ts files (#13312) 2022-01-12 16:24:14 +01:00
Ryan Dahl
4775d57867
chore: update copyright to 2022 (#13306)
Co-authored-by: Erfan Safari <erfanshield@outlook.com>
2022-01-12 16:24:10 +01:00
Aaron O'Mullan
f336cd1bbe
fix(serde_v8): support #[serde(default)] (#13300) 2022-01-12 16:24:06 +01:00
Sean Michael Wykes
3cf6f566cd
chore(wpt): add "--inspect-brk" flag to WPT runner (#13267) 2022-01-12 16:23:46 +01:00
Rafael Ávila de Espíndola
5b99b6150d
fix: Get lib.deno_core.d.ts to parse correctly (#13238) 2022-01-12 16:23:39 +01:00
Bartek Iwańczuk
063537315d
ci: cycle cache key (#13292) 2022-01-12 16:23:33 +01:00
Bartek Iwańczuk
ad4a077894
v1.17.2 2022-01-05 18:22:50 +01:00
Bartek Iwańczuk
d0a9bebf39
chore: release crates for v1.17.2 (#13290) 2022-01-05 17:48:25 +01:00
DjDeveloper
8806e4165e
fix(ext/ffi): throw errors instead of panic (#13283) 2022-01-05 16:48:23 +01:00
Sean Michael Wykes
91cbd1ab52
fix(ext/crypto) - exportKey JWK for AES/HMAC must use base64url (#13264)
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-01-05 16:48:17 +01:00
Leo Kettmeir
afd60fb65c
fix: support mts, cjs & cts files for deno test & deno fmt (#13274) 2022-01-05 16:48:11 +01:00
Andreu Botella
49ccfdd696
refactor(ext/web): Don't rely on NaN comparisons in TextEncoderStream (#13151)
In the `transform` function to `TextEncoderStream`'s internal
`TransformStream`, if `chunk` is the empty string and
`this.#pendingHighSurrogate` is null, then `lastCodeUnit` will be NaN.
As it turns out, this does not cause a bug because the comparison to
check for lone surrogates turns out to be false for NaN, but to rely on
it makes the code brittle.
2022-01-05 16:48:06 +01:00
David Sherret
0721ee504d
fix: upgrade swc_ecmascript to 0.103 (#13284) 2022-01-05 16:47:58 +01:00
Leo Kettmeir
d69091a4e7
fix(signals): prevent panic when listening to forbidden signals (#13273) 2022-01-05 16:47:53 +01:00
Bartek Iwańczuk
8a10f4bfcb
refactor(core): InspectorSession implements Stream (#13270)
This commit rewrites "InspectorSession" to no longer implement "Future"
trait but instead implement "Stream" trait. "Stream" trait is implemented
by yielding a raw pointer to the "v8::inspector::V8InspectorSession" and
received message. In effect received messages are no longer dispatched
from within the future, but are explicitly dispatched by the caller.

This change should allow us to dispatch a message to the session when
another message is being dispatched, ie.
"V8InspectorSesssion::dispatch_protocol_message" is already on the
call stack.
2022-01-05 16:47:44 +01:00
Kitson Kelly
fbdd6c81e7
fix(lsp): handle repeating patterns in registry correctly (#13275) 2022-01-05 16:47:36 +01:00
Sean Michael Wykes
de99d60959
fix(ext/crypto): use forgiving base64 encoding for JWK (#13240)
Implements "forgiving" in JWK decode passing suitable config to base64::decode_config
2022-01-05 16:47:29 +01:00
Bartek Iwańczuk
82e4f9d885
chore: update std submodule to efa94f2 (#13260) 2022-01-05 16:47:23 +01:00
Luca Casonato
7f0a4ea68a
build: hardcode WPT_FYI_USER (#13262)
GHA keeps redacting all occurrences of the word "deno" out of logs
because this is our wpt.fyi username. This is rather annoying, so I am
just hardcoding the username in the CI script.
2022-01-05 16:47:17 +01:00
Kitson Kelly
b6ee2ce933
fix(lsp): better handling of folders in registry completions (#13250) 2022-01-05 16:47:08 +01:00
Kitson Kelly
74ed6875e8
fix(lsp): properly generate data URLs for completion items (#13246) 2022-01-05 16:47:02 +01:00
Bartek Iwańczuk
3360b8ee37
fix(core): inspector works if no "Runtime.runIfWaitingForDebugger" message is sent (#13191)
This commit changes flow in inspector code to no longer require 
"Runtime.runIfWaitingForDebugger" message to complete a handshake.

Even though clients like Chrome DevTools always send this message on startup,
it is against the protocol to require this message to start an inspector
session.

Instead "Runtime.runIfWaitingForDebugger" is required only when running with
"--inspect-brk" flag, which matches behavior of Node.js.
2022-01-05 16:46:53 +01:00
Bartek Iwańczuk
ada8f58c7a
chore(core): remove stale TODOs (#13232) 2022-01-05 16:46:47 +01:00
Andreu Botella
4e1fd69760
fix(doc): Make private types which show up in the rustdocs public (#13230)
`CrossIsolateStore`, `ExtensionBuilder` and `InMemoryChannelResource`
are private types which are referred to by other public APIs, and so
don't show up as links in the rustdoc. This is especially confusing for
`ExtensionBuilder`, since there is nothing in the docs that explains how
to build an extension.

Exposing these three types doesn't add any new capabilities:
`ExtensionBuilder` can be created from `Extension::builder()`,
`SharedArrayBufferStore` and `CompiledWasmModuleStore` already enable
doing anything that `CrossIsolateStore` can do by itself, and
`InMemoryChannelResource` isn't constructable.
2022-01-05 16:46:41 +01:00
Aaron O'Mullan
0537d8255d
cleanup(cli/lsp): use op Extensions (#13225) 2022-01-05 16:46:35 +01:00
Aaron O'Mullan
e8c60f757e
cleanup(core): use Extensions to register ops (#13224)
In examples and tests
2022-01-05 16:46:30 +01:00
Aaron O'Mullan
4186f1a9db
chore(bench_util): update README example (#13226) 2022-01-05 16:46:25 +01:00
Aaron O'Mullan
4a1ab26360
cleanup(cli): use op Extensions (#13223)
Enabling op-middleware for overrides in lieu of imperative .replace_op() etc...

Impacts #13219,  #12938, #13122
2022-01-05 16:46:20 +01:00
Kitson Kelly
27fa51d0d4
fix(lsp): add code lens for tests just using named functions (#13218)
Fixes: #13216
2022-01-05 16:46:15 +01:00
Bartek Iwańczuk
b064794695
refactor(core): cleanup Inspector implementation (#12962) 2022-01-05 16:46:10 +01:00
Sean Michael Wykes
8b9cf4b857
fix(ext/crypto) include AES-CTR for deriveKey (#13174) 2022-01-05 16:46:04 +01:00
David Sherret
d7bab0dd2a
fix(coverage): use only string byte indexes and 0-indexed line numbers (#13190) 2022-01-05 16:45:58 +01:00
Kitson Kelly
cd40d81bcb
fix(cli): include JSON modules in bundle (#13188)
Fixes #13150
2022-01-05 16:45:53 +01:00
Ryan Dahl
8e1adc4c12
docs: update release instructions for M1 build (#13182) 2022-01-05 16:45:47 +01:00
Zach
662432a31d
fix(ext/console): map basic css color keywords to ansi (#13175) 2022-01-05 16:45:40 +01:00
Bartek Iwańczuk
ded77918fb
v1.17.1 2021-12-22 18:48:06 +01:00
Bartek Iwańczuk
615717bc59
chore: release crates for v1.17.1 (#13179) 2021-12-22 17:38:50 +01:00
Kitson Kelly
8547a37132
chore: update deno_graph and deno_doc (#13173) 2021-12-22 14:25:06 +01:00
David Sherret
ac06797fa8
chore(tests): remove pty_complete_imports test for deleting the cwd (#13164) 2021-12-21 12:21:07 -05:00
Bartek Iwańczuk
aca41a472a
refactor: Cleanup core/modules.rs (#13149) 2021-12-21 15:53:46 +01:00