summaryrefslogtreecommitdiff
path: root/cli
AgeCommit message (Collapse)Author
2021-12-08fix: upgrade swc fixing many bundling and `--no-check` bugs (#13025)David Sherret
2021-12-07feat(cli): use deno fmt for lock and coverage files (#13018)WenheLI
2021-12-08fix(ext/timers): fix flakiness of `httpConnAutoCloseDelayedOnUpgrade` test ↵Yoshiya Hinosawa
(#13017)
2021-12-07refactor(timers): refactor timers to use one async op per timer (#12862)Andreu Botella
This change also makes the timers implementation closer to the spec, and sets up the stage to implement AbortSignal.timeout() (whatwg/dom#1032). Fixes #8965 Fixes #10974 Fixes #11398
2021-12-07build: pin dependencies in cli crate (#12967)Bartek Iwańczuk
2021-12-07chore: upgrade to rustls 0.20 (#12488)Ryan Dahl
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Bert Belder <bertbelder@gmail.com>
2021-12-05feat(ext/crypto): implement unwrapKey (#12539)Divy Srivastava
2021-12-04chore: upgrade to Rust 1.57.0 (#12968)Bartek Iwańczuk
2021-12-04chore: merge v1.16.4 into main (#12984)Luca Casonato
2021-12-01refactor: cli doesn't need to depend on deno_tls (#12952)Ryan Dahl
also move create_http_client to deno_fetch
2021-12-01chore: Fix typo in no-pending-ops error message (#12948)KnorpelSenf
2021-11-30fix(test): Improve reliability of `deno test`'s op sanitizer with timers ↵Andreu Botella
(#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.
2021-11-30feat: add `--no-check=remote` flag (#12766)Kitson Kelly
Closes #11970
2021-11-29refactor(cli): simplify lint/format resolver logic (#12898)Zheyu Zhang
2021-11-29fix(workers): Make `worker.terminate()` not immediately kill the isolate ↵Andreu Botella
(#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.
2021-11-29Revert "fix(test): Improve reliability of `deno test`'s op sanitizer with ↵Bartek Iwańczuk
timers (#12908)" (#12929) This reverts commit d335343a79afbcfe719109af510fe7a1dd0df2e8.
2021-11-29feat(ext/net): enable sending to broadcast address (#12860)Michael Busby
You can now send UDP datagrams to the broadcast address.
2021-11-28fix(test): Improve reliability of `deno test`'s op sanitizer with timers ↵Andreu Botella
(#12908) 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.
2021-11-28fix(websocket): bad rid on WebSocketStream abort(#12913)Andreu Botella
Fix a bad resource ID error when aborting a WebSocketStream immediately after its creation.
2021-11-28feat(runtime): add op_set_exit_code (#12911)Ben Noordhuis
Set the exit code to use if none is provided to Deno.exit(), or when Deno exits naturally. Needed for process.exitCode Node compat. Paves the way for #12888.
2021-11-26feat(ext/net): ALPN support in `Deno.connectTls()` (#12786)Yury Selivanov
2021-11-26feat(etc/fetch): Support `WebAssembly.instantiateStreaming` for file fetches ↵Andreu Botella
(#12901) Fetching of local files, added in #12545, returns a response with no headers, including the `Content-Type` header. This currently makes it not work with the WebAssembly streaming APIs, which require the response to have a content type of `application/wasm`. Since the only way to obtain a `Response` object with a non-empty `url` field is via `fetch()`, this change changes the content type requirement to only apply to responses whose url has the `file:` scheme.
2021-11-25refactor(repl): move rustyline sync channel communication into struct (#12900)David Sherret
2021-11-25fix(cli): fix slow test, unbreak ci (#12897)Ben Noordhuis
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-11-25tests: add 'await' to all invocations of 'assertRejects' (#12893)Bartek Iwańczuk
2021-11-25chore: upgrade lspower to 1.4.0 (#12894)Bartek Iwańczuk
2021-11-24chore: merge v1.16.3 into main (#12892)Bert Belder
2021-11-24fix(lsp): lsp should respect include/exclude files in format config (#12876)David Sherret
2021-11-24compat: support compat mode in REPL (#12882)Bartek Iwańczuk
This commit introduces "ProcState::maybe_resolver" field, which stores a single instance of resolver for the whole lifetime of the process, instead of creating these resolvers for each creation of module graph. As a result, this resolver can be used in fallback case where graph is not constructed (REPL, loading modules using "require") unifying resolution logic.
2021-11-24chore: speed up compat tests (#12884)Bartek Iwańczuk
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-23chore(lsp): fix possible race condition with tests expecting 3 ↵David Sherret
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-23fix(cli/compile): skip bundling for pre-bundled code (#12687)Zheyu Zhang
2021-11-24refactor(cli): deduplicate source cache for redirected specifiers (#12795)Nayeem Rahman
2021-11-24fix(cli): don't cache .tsbuildinfo unless emitting (#12830)Nayeem Rahman
Fixes #12755 Fixes #12807 Fixes #12832
2021-11-23tests: remove 'fmt_check_tests_dir' test (#12875)Bartek Iwańczuk
2021-11-23fix(lsp): normalize urls in did_change_watched_files (#12873)igorsaux
2021-11-23refactor: remove "unitTest" wrapper from cli/tests/unit (#12750)Bartek Iwańczuk
2021-11-23fix(cli): config file should resolve paths relative to the config file (#12867)David Sherret
* Add `specifier_to_file_path` to support converting a ModuleSpecifier with a unix-style path to a PathBuf on Windows.
2021-11-23feat(test): Add more overloads for "Deno.test" (#12749)Bartek Iwańczuk
This commit adds 4 more overloads to "Deno.test()" API. ``` // Deno.test(function testName() { }); export function test(fn: (t: TestContext) => void | Promise<void>): void; // Deno.test("test name", { only: true }, function() { }); export function test( name: string, options: Omit<TestDefinition, "name">, fn: (t: TestContext) => void | Promise<void>, ): void; // Deno.test({ name: "test name" }, function() { }); export function test( options: Omit<TestDefinition, "fn">, fn: (t: TestContext) => void | Promise<void>, ): void; // Deno.test({ only: true }, function testName() { }); export function test( options: Omit<TestDefinition, "fn" | "name">, fn: (t: TestContext) => void | Promise<void>, ): void; ```
2021-11-23fix: support "other" event type in FSWatcher (#12836)Luca Casonato
This commit adds support for "other" events in `FSWatcher`. Flags on events are now exposed via the `flag` property on `FsEvent`.
2021-11-23feat(lsp): add type definition provider (#12789)Kitson Kelly
2021-11-23feat(lsp): add workspace symbol provider (#12787)Kitson Kelly
2021-11-22fix(lsp): use lint exclude files list from the config file (#12825)igorsaux
2021-11-22fix(ext/crypto): don't panic on decryption failure (#12840)Luca Casonato
2021-11-22fix(runtime): support reading /proc using readFile (#12839)Luca Casonato
2021-11-22tests: extend readFile file length during read (#12835)Luca Casonato
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-19fix(fmt): markdown formatting was incorrectly removing some non-breaking ↵David Sherret
space html entities (#12818)
2021-11-18refactor(lsp): remove `Documents` mutex and require `Documents` to be ↵David Sherret
mutated to change it (#12747)
2021-11-18fix(lsp): tag deprecated diagnostics properly (#12801)Kitson Kelly
2021-11-17test(ext/http): DELETE requests should always have body (#12798)Bert Belder
Refs: #12741 Refs: #12746