summaryrefslogtreecommitdiff
path: root/cli/tests
AgeCommit message (Collapse)Author
2021-11-15fix(test): support typechecking docs with CRLF line endings (#12748)Geert-Jan Zwiers
2021-11-11v1.16.1Luca Casonato
2021-11-11fix: add typings for AbortSignal.reason (#12730)Luca Casonato
2021-11-11fix(crypto): handling large key length in HKDF (#12692)upendra1997
2021-11-10refactor(ext/http): rewrite hyper integration and fix bug (#12732)Bert Belder
Fixes: #12193 Fixes: #12251 Closes: #12714
2021-11-10fix: non ascii buffer response in http server (#12728)Luca Casonato
2021-11-10fix: update unstable Deno props for signal API (#12723)Bartek Iwańczuk
2021-11-09feat(core): streams (#12596)Aaron O'Mullan
This allows resources to be "streams" by implementing read/write/shutdown. These streams are implicit since their nature (read/write/duplex) isn't known until called, but we could easily add another method to explicitly tag resources as streams. `op_read/op_write/op_shutdown` are now builtin ops provided by `deno_core` Note: this current implementation is simple & straightforward but it results in an additional alloc per read/write call Closes #12556
2021-11-09fix(fetch): set content-length for empty POST/PUT (#12703)Luca Casonato
This commit changes `fetch` to set `content-length: 0` on POST and PUT requests with no body.
2021-11-09Revert "refactor(ext/http): rewrite hyper integration and fix bug (#12332)" ↵Luca Casonato
(#12704) This reverts commit 5b1e537446454f6332de44adbeb6a15ff072c2fa.
2021-11-09chore(lsp): align ScriptElementKind to current versions of TypeScript/vscode ↵Kitson Kelly
(#12663)
2021-11-09feat(cli): support React 17 JSX transforms (#12631)Kitson Kelly
Closes #8440
2021-11-08refactor(ext/http): rewrite hyper integration and fix bug (#12332)Bert Belder
Fixes: #12193
2021-11-08feat: update to V8 9.7 (#12685)Luca Casonato
This commit updates the rusty_v8 to 0.34.0. This commit also adds the required typings for the new Array#findLast and Array#findIndexLast methods.
2021-11-08feat(compat): add .code to dyn import error (#12633)Yoshiya Hinosawa
2021-11-08fix(lsp): display module types only dependencies on hover (#12683)Kitson Kelly
Fixes: #12675
2021-11-07fix(lsp): display signature docs as markdown (#12636)Luca Casonato
These were previously displayed as plain text. Now they are displayed as `MarkupContent` with type `Markdown`.
2021-11-04fix(lint): use recommended tag if there is no tags in config file or flags ↵Zheyu Zhang
(#12644)
2021-11-04Revert "feat(cli): enable `useUnknownInCatchVariables` by default" (#12643)Luca Casonato
This partially reverts commit a065604155991dbf4417b606d4562d275cd8955f. Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-11-03fix: Deno.emit crashes with BorrowMutError (#12627)Ryan Dahl
Warn on await_holding_refcell_ref clippy rule to avoid this in the future. Fixes #12453
2021-11-01chore: upgrade deno_ast to 0.5.0 (#12595)David Sherret
2021-11-01fix(fmt/lint): strip unc paths on Windows when displaying file paths in lint ↵David Sherret
and fmt (#12606)
2021-11-01feat(ext/fetch): support fetching local files (#12545)Kitson Kelly
Closes #11925 Closes #2150 Co-authored-by: Bert Belder <bertbelder@gmail.com>
2021-10-30feat(test): better formatting for test elapsed time (#12610)Bartek Iwańczuk
This commit changes formatting of elapsed time in test runner output. Instead of "XXXms", reporter outputs one of: - "XXXms" for <1000ms - "XXs" for <60s - "XXXmYYs" for >=60s
2021-10-30feat(ext/console): Display error.cause in console (#12462)Kenta Moriuchi
2021-10-30fix(cli): linter/formater watches current directory without args (#12550)Zheyu Zhang
2021-10-30fix(cli): lint/format all discoverd files on each change (#12518)Zheyu Zhang
2021-10-29fix(runtime): require full read and write permissions to create symlinks ↵David Sherret
(#12554)
2021-10-29feat: stabilize Deno.startTls (#12581)Luca Casonato
This commit stabilizes `Deno.startTls` and removes `certFile` from the `StartTlsOptions`.
2021-10-29refactor(lsp): use deno_graph and single document struct (#12535)Kitson Kelly
Closes #12473
2021-10-28feat(compat): integrate import map and classic resolutions in ESM resolution ↵Bartek Iwańczuk
(#12549) This commit integrates import map and "classic" resolutions in the "--compat" mode when using ES modules; in effect "http:", "https:" and "blob:" imports now work in compat mode. The algorithm works as follows: 1. If there's an import map, try to resolve using it and if succeeded return the specifier 2. Try to resolve using "Node ESM resolution", and if succeeded return the specifier 3. Fall back to regular ESM resolution
2021-10-28feat(cli): enable `useUnknownInCatchVariables` by default (#12547)Kitson Kelly
Closes #11826 **BREAKING CHANGE** this behaviour was disable when introduced in Deno 1.14/TypeScript 4.4. It will highlight code that unsafely handles variables that are caught, and will cause type errors in unsafe code.
2021-10-27fix(cli): no-check respects inlineSources compiler option (#12559)Kitson Kelly
Fixes #12064
2021-10-27feat(ext/webstorage): use implied origin when --location not set (#12548)Kitson Kelly
Closes #11882 BREAKING CHANGE: Previously when `--location` was set, the unique storage key was derived from the the URL of the location instead of just the origin. This change correctly uses just the origin. This may cause previously persisted storage to change its key and data to not be available with the same location as before.
2021-10-26fix(ext/http): allow multiple values in upgrade header for websocket (#12551)Leo K
Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
2021-10-26feat(ext/net): add TlsConn.handshake() (#12467)Bert Belder
A `handshake()` method was added that returns when the TLS handshake is complete. The `TlsListener` and `TlsConn` interfaces were added to accomodate this new method. Closes: #11759.
2021-10-26feat(runtime): add Deno.addSignalListener API (#12512)Yoshiya Hinosawa
2021-10-26fix(cli): do not cache emit when diagnostics present (#12541)Kitson Kelly
Fixes #12471
2021-10-25fix(tls): Make TLS clients support HTTP/2 (#12530)Andreu Botella
`fetch()` and client-side websocket used to support HTTP/2, but this regressed in #11491. This patch reenables it by explicitly adding `h2` and `http/1.1` to the list of ALPN protocols on the HTTP and websocket clients.
2021-10-21fix: declare web types as global (#12497)Bartek Iwańczuk
Co-authored-by: Feng Yu <F3n67u@outlook.com>
2021-10-21compat: add DENO_NODE_COMPAT_URL env variable (#12508)Bartek Iwańczuk
2021-10-20fix(ext/net): fix TLS bugs and add 'op_tls_handshake' (#12501)Bert Belder
A bug was fixed that could cause a hang when a method was called on a TlsConn object that had thrown an exception earlier. Additionally, a bug was fixed that caused TlsConn.write() to not completely flush large buffers (>64kB) to the socket. The public `TlsConn.handshake()` API is scheduled for inclusion in the next minor release. See https://github.com/denoland/deno/pull/12467.
2021-10-19fix(core/bindings): use is_instance_of_error() instead of is_native_error() ↵Nayeem Rahman
(#12479)
2021-10-19fix(cli/tests): flaky Deno.watchFs() tests (#12485)Nayeem Rahman
2021-10-18feat(unstable): Node CJS and ESM resolvers for compat mode (#12424)Bartek Iwańczuk
This commit adds CJS and ESM Node resolvers to the "--compat" mode. The functionality is spread across "cli/compat" module and Node compatibility layer in "deno_std/node"; this stems from the fact that ES module resolution can only be implemented in Rust as it needs to directly integrated with "deno_core"; however "deno_std/node" already provided CJS module resolution. Currently this resolution is only active when running a files using "deno run --compat --unstable <filename>", and is not available in other subcommands, which will be changed in follow up commits.
2021-10-18fix(cli/fmt_errors): don't panic on source line formatting errors (#12449)Nayeem Rahman
Returns empty values in case of errors, source lines are non-essential anyway. These errors can happen e.g. when source files change at runtime. A warning is also printed to help us track when it happens in unexpected cases besides this.
2021-10-17fix(core): poll async ops eagerly (#12385)Bert Belder
Currently all async ops are polled lazily, which means that op initialization code is postponed until control is yielded to the event loop. This has some weird consequences, e.g. ```js let listener = Deno.listen(...); let conn_promise = listener.accept(); listener.close(); // `BadResource` is thrown. A reasonable error would be `Interrupted`. let conn = await conn_promise; ``` JavaScript promises are expected to be eagerly evaluated. This patch makes ops actually do that.
2021-10-17chore(cli/tests): fix flaky fs watcher tests (#12385)Bert Belder
On OS X, the watcher sometimes witnesses the creation of it's own root directory. Creating that directory using a sync op instead of an async op sidesteps the issue.
2021-10-14fix(cli): re-enable allowSyntheticDefaultImports for tsc (#12435)Kitson Kelly
Fixes #12434
2021-10-14fix(cli/tests): move worker test assertions out of message handlers (#12439)Nayeem Rahman