1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
Commit graph

6707 commits

Author SHA1 Message Date
Luca Casonato
ab286750a8
v1.16.4 2021-12-03 19:43:54 +01:00
Luca Casonato
2bddf44d69
chore: bump crate version for v1.16.4 (#12982) 2021-12-03 17:47:05 +01:00
Luca Casonato
44df5550f3 chore: update to rusty v8 0.36.0 (#12979) 2021-12-03 16:25:44 +01:00
Leo Kettmeir
192a6cf9eb refactor(ext/fetch): pass opstate in FetchHandler::fetch_file 2021-12-03 16:25:44 +01:00
Nikita Sobolev
e1c197eab2 chore(ci): update setup-python action version (#12965) 2021-12-03 16:25:44 +01:00
KnorpelSenf
905cb31c50 chore: Fix typo in no-pending-ops error message (#12948) 2021-12-03 16:25:44 +01:00
Ryan Dahl
50fd8ebe40 refactor: remove deno_fetch::HttpClientDefaults (#12931)
More clean up that should have been in cc83ad3
2021-12-03 16:25:44 +01:00
Zheyu Zhang
1333334496 refactor(cli): simplify lint/format resolver logic (#12898) 2021-12-03 16:25:44 +01:00
David Sherret
4acb46e3d9 refactor(repl): move rustyline sync channel communication into struct (#12900) 2021-12-03 16:25:44 +01:00
Luca Casonato
3865496783 fix(ext/crypto): throw on key & op algo mismatch (#12838) 2021-12-03 16:25:44 +01:00
Ben Noordhuis
ace470c389 fix(cli): fix slow test, unbreak ci (#12897)
Reduce the number of iterations from 1,024 to 128.

On my big bruiser of a desktop machine it already takes up close to a
minute to complete when nothing else is running so no way it's going to
finish in the allotted time on the CI.

The fact that the test used to pass may be indicative of a performance
regression somewhere but it's not clear to me when or where that would
have been introduced.

Fixes #12887.
2021-12-03 16:25:44 +01:00
Bartek Iwańczuk
5731583853 tests: add 'await' to all invocations of 'assertRejects' (#12893) 2021-12-03 16:25:44 +01:00
Ryan Dahl
b31209aea3 refactor: add deno_fetch::Options for init (#12904)
deno_fetch::init has a lot of parameters and generic on two types 
that keeps expanding over time. This refactor adds deno_fetch::Options 
struct for more clearly defining the various parameters.
2021-12-03 15:32:49 +01:00
Bartek Iwańczuk
c52f7fc7aa
fix(core): throw on invalid callConsole args (#12973) (#12974)
Instead of panicking via asserts, since JS-callable code (even Deno.core ...) should not cause process crashes/panics

Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
2021-12-03 14:41:10 +01:00
Bartek Iwańczuk
389c089366
ci: fix sysroot setup (#12958) (#12975)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-12-03 13:55:04 +01:00
Bartek Iwańczuk
9ed7e385a6
fix(test): Improve reliability of deno test's op sanitizer with timers (#12934)
Although not easy to replicate in the wild, the `deno test` op sanitizer
can fail when there are intervals that started before a test runs, since
the op sanitizer can end up running in the time between the timer op for
an interval's run resolves and the op for the next run starts.

This change fixes that by adding a new macrotask callback that will run
after the timer macrotask queue has drained. This ensures that there is
a timer op if there are any timers which are unresolved by the time the
op sanitizer runs.

Co-authored-by: Andreu Botella <abb@randomunok.com>
2021-11-30 12:25:16 +01:00
Bartek Iwańczuk
0ec9656168
fix(core): Wake up the runtime if there are ticks scheduled (#12933)
Co-authored-by: Andreu Botella <abb@randomunok.com>
2021-11-30 12:20:10 +01:00
Bartek Iwańczuk
49879bf38d
fix(workers): Make worker.terminate() not immediately kill the isolate (#12831)
Due to a bug in V8, terminating an isolate while a module with top-level
await is being evaluated would crash the process. This change makes it
so calling `worker.terminate()` will signal the worker to terminate at
the next iteration of the event loop, and it schedules a proper
termination of the worker's isolate after 2 seconds.

Co-authored-by: Andreu Botella <abb@randomunok.com>
2021-11-29 20:39:37 +01:00
Ben Noordhuis
44ccae108f
fix(websocket): bad rid on WebSocketStream abort (#12913)
Fix a bad resource ID error when aborting a WebSocketStream immediately
after its creation.
2021-11-28 15:05:53 +01:00
Bert Belder
bfa2f30529
v1.16.3 2021-11-24 14:45:25 -08:00
Bert Belder
88847d6c9b
chore: bump crate versions for 1.16.3 (#12890) 2021-11-24 14:19:41 -08:00
David Sherret
e705c4f64e
fix(lsp): lsp should respect include/exclude files in format config (#12876) 2021-11-24 14:19:41 -08:00
Abdfn
4954eae115
chore: upgrade Rust version to 1.56.1 (#12870) 2021-11-24 14:19:41 -08:00
Bartek Iwańczuk
a3cacb0059
chore: speed up compat tests (#12884)
This commit speeds up compat tests by using local copy of "deno_std"
instead of downloading it from https://deno.land for each test.
Additionally type checking is skipped.
2021-11-24 14:19:40 -08:00
Bartek Iwańczuk
41e9f16290
chore: update std submodule to 0.115.1 (#12883) 2021-11-24 14:19:40 -08:00
David Sherret
0ac5848b94
chore(lsp): fix possible race condition with tests expecting 3 publishDiagnostics messages (#12868)
The tests expect 3 publish notifications. It was possible for less than 3 to occur if two or more tasks set the diagnostics in the collection, exited the lock at the same time, then called `publish_diagnostics`
2021-11-24 14:19:40 -08:00
Zheyu Zhang
7b3ba8e3cb
fix(cli/compile): skip bundling for pre-bundled code (#12687) 2021-11-24 14:19:40 -08:00
Nayeem Rahman
07520ce013
refactor(cli): deduplicate source cache for redirected specifiers (#12795) 2021-11-24 14:19:40 -08:00
Nayeem Rahman
9b404bb468
fix(cli): don't cache .tsbuildinfo unless emitting (#12830)
Fixes #12755
Fixes #12807
Fixes #12832
2021-11-24 14:19:40 -08:00
Bartek Iwańczuk
ef9431db7e
tests: remove 'fmt_check_tests_dir' test (#12875) 2021-11-24 14:19:40 -08:00
igorsaux
47d516a4a0
fix(lsp): normalize urls in did_change_watched_files (#12873) 2021-11-24 14:19:40 -08:00
David Sherret
0ef5b21a3c
fix(cli): config file should resolve paths relative to the config file (#12867)
* Add `specifier_to_file_path` to support converting a ModuleSpecifier with a unix-style path to a PathBuf on Windows.
2021-11-24 12:54:09 -08:00
Luca Casonato
d34980d222
fix: support "other" event type in FSWatcher (#12836)
This commit adds support for "other" events in `FSWatcher`. Flags on
events are now exposed via the `flag` property  on `FsEvent`.
2021-11-24 12:54:09 -08:00
Luca Casonato
a1ba06c57e
revert: store header keys lower case internally (#12837)
This reverts commit 49ec3d10ad.
2021-11-24 12:54:09 -08:00
igorsaux
3abe31252e
fix(lsp): use lint exclude files list from the config file (#12825) 2021-11-22 18:10:33 -05:00
Luca Casonato
71ceca0ffc
fix(ext/crypto): don't panic on decryption failure (#12840) 2021-11-22 23:58:21 +01:00
Luca Casonato
3cc724c9ba
fix(runtime): support reading /proc using readFile (#12839) 2021-11-22 16:53:58 +01:00
Luca Casonato
429c773a2e
tests: extend readFile file length during read (#12835)
This commit adds some tests that demonstrate that Deno.readFile reads
the entire file, even if the read file is extended during read.
2021-11-22 16:25:42 +01:00
Giacomo Rizzi
86e5238384
core(examples): Deserialize the result of execute_script (#12806)
Example of transforming execute_script response to a serde_json::Value

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-11-22 14:47:29 +01:00
Bartek Iwańczuk
f6d04bfe70
fix(core): don't panic when evaluating module after termination (#12833) 2021-11-22 13:51:20 +01:00
Yacine Hmito
2dbc8fb3d5
fix(test): do not throw on error.errors.map (#12810)
In tests, the function to format errors would assume that any error with
a property `errors` would be an `AggregateError`, and therefore the
property `errors` would contain an error. This is not necessarily the
case.
2021-11-20 09:43:40 -05:00
David Sherret
ddfba7d8ca
fix(fmt): markdown formatting was incorrectly removing some non-breaking space html entities (#12818) 2021-11-19 12:54:41 -05:00
Ben Noordhuis
22dcf82230
fix(core): keep event loop alive if there are ticks scheduled (#12814)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-11-19 14:01:30 +01:00
David Sherret
c82ce74133
refactor(lsp): remove Documents mutex and require Documents to be mutated to change it (#12747) 2021-11-18 13:50:24 -05:00
Kitson Kelly
14f83da221
fix(lsp): tag deprecated diagnostics properly (#12801) 2021-11-18 13:05:20 +11:00
Bert Belder
77c4c249ba
test(ext/http): DELETE requests should always have body (#12798)
Refs: #12741
Refs: #12746
2021-11-17 15:34:41 -08:00
Bert Belder
6a797f7ba9
chore(ext/http): deno fmt (#12798) 2021-11-17 15:34:41 -08:00
Bert Belder
c4c8543d5c
upgrade: v8 crate 0.35.0 (V8 9.7.106.5) (#12797)
Fixes: #11406
2021-11-17 14:09:13 -08:00
David Sherret
4836ab769c
1.16.2 (#12794) 2021-11-17 11:00:58 -05:00
David Sherret
cd61cedd19
chore: bump crates for 1.16.2 (#12792) 2021-11-17 10:14:23 -05:00