summaryrefslogtreecommitdiff
path: root/cli/tests
AgeCommit message (Collapse)Author
2022-01-16fix(cli): Don't strip shebangs from modules (#13220)Andreu Botella
Deno's module loader currently strips a shebang if a module file starts with one. However, this is no longer necessary, since there is a stage-3 TC39 that adds support for shebangs (or "hashbangs") to the language (https://github.com/tc39/proposal-hashbang), and V8, `tsc` and `swc` all support it. Furthermore, stripping shebangs causes a correctness bug with JSON modules, since a JSON file with a shebang should not parse as a JSON module, yet it does with this stripping. This change fixes this.
2022-01-14test: type check lib.deno_core.d.ts (#13356)Bartek Iwańczuk
2022-01-14feat(ext/crypto): implement AES-GCM decryption (#13319)Divy Srivastava
2022-01-13chore: forward v1.17.3 to main (#13364)Bartek Iwańczuk
2022-01-12feat(cli): add ignore directives to bundled code (#13309)juju
This commit adds lint and fmt ignore directives to bundled code as well as a comment stating that the code was bundled and shouldn't be edited manually.
2022-01-11fix(coverage): merge coverage ranges (#13334)Bartek Iwańczuk
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-11feat(ext/crypto): implement AES-KW for wrapKey/unwrapKey (#13286)Sean Michael Wykes
2022-01-10cli(compile): fix output flag behaviour on compile command (#13299)Rabin Gaire
2022-01-10fix(coverage): don't type check (#13324)Bartek Iwańczuk
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-09fix: expose "Deno.memoryUsage()" in worker context (#13293)Rodney van den Velden
2022-01-09test: add inspector test with ts files (#13312)Bartek Iwańczuk
2022-01-07chore: update copyright to 2022 (#13306)Ryan Dahl
Co-authored-by: Erfan Safari <erfanshield@outlook.com>
2022-01-07feat(lsp): provide registry details on hover if present (#13294)Kitson Kelly
Closes: #13272
2022-01-06feat(ext/websocket): server automatically handle ping/pong for incoming ↵Leo Kettmeir
WebSocket (#13172)
2022-01-06chore: forward 1.17.2 to main (#13295)Bartek Iwańczuk
2022-01-05feat(ext/websocket): add header support to WebSocketStream (#11887)Leo Kettmeir
2022-01-05feat(ext/crypto): implement AES-GCM encryption (#13119)Divy Srivastava
2022-01-05fix(ext/crypto) - exportKey JWK for AES/HMAC must use base64url (#13264)Sean Michael Wykes
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-01-04fix: upgrade swc_ecmascript to 0.103 (#13284)David Sherret
2022-01-04fix(signals): prevent panic when listening to forbidden signals (#13273)Leo Kettmeir
2022-01-04fix(lsp): handle repeating patterns in registry correctly (#13275)Kitson Kelly
2022-01-03feat(compat) preload Node.js built-in modules in global vars REPL (#13127)VishnuJin
This commit adds preloading of built-in Node.js modules in the REPL if running with "deno repl --compat --unstable".
2022-01-03fix(ext/crypto): use forgiving base64 encoding for JWK (#13240)Sean Michael Wykes
Implements "forgiving" in JWK decode passing suitable config to base64::decode_config
2022-01-03feat(ext/crypto): support AES-CTR encrypt/decrypt (#13177)Sean Michael Wykes
Fixes #13201.
2022-01-02chore: update std submodule to efa94f2 (#13260)Bartek Iwańczuk
2022-01-02fix(lsp): properly generate data URLs for completion items (#13246)Kitson Kelly
2021-12-30feat(test): Add support for "deno test --compat" (#13235)Steven Guerrero
2021-12-30fix(core): inspector works if no "Runtime.runIfWaitingForDebugger" message ↵Bartek Iwańczuk
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.
2021-12-29feat: output `cause` on JS runtime errors (#13209)Leo Kettmeir
2021-12-23fix(coverage): use only string byte indexes and 0-indexed line numbers (#13190)David Sherret
2021-12-24fix(cli): include JSON modules in bundle (#13188)Kitson Kelly
Fixes #13150
2021-12-23fix(ext/console): map basic css color keywords to ansi (#13175)Zach
2021-12-22chore: merge v1.17.1 into main (#13184)Bartek Iwańczuk
2021-12-22chore: update deno_graph and deno_doc (#13173)Kitson Kelly
2021-12-21chore(tests): remove pty_complete_imports test for deleting the cwd (#13164)David Sherret
2021-12-20feat(lsp): add code lens for debugging tests (#13138)Jesper van den Ende
Closes: #13130
2021-12-17fix: inspector prompts (#13123)Bartek Iwańczuk
This commit fixes prompts printed to the terminal when running with "--inspect" or "--inspect-brk" flags. When debugger disconnects error is no longer printed as users don't care about the reason debugger did disconnect. A message suggesting to go to "chrome://inspect" is printed if debugger is active. Additionally and information that process is waiting for debugger to connect is printed if running with "--inspect-brk" flag.
2021-12-16v1.17.0Bartek Iwańczuk
2021-12-16feat(ext/crypto): support importing ECSDA and ECDH (#13088)Sean Michael Wykes
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-12-16feat(fetch): support abort reasons in fetch (#13106)Andreu Botella
2021-12-16feat: support abort reasons in Deno APIs and `WebSocketStream` (#13066)Andreu Botella
2021-12-16refactor(cli): use GraphData for check and emit (#12960)Nayeem Rahman
2021-12-16fix(lsp): provide diagnostics for import assertions (#13105)Kitson Kelly
Fixes: #13099
2021-12-16fix(test): wait for inspector session in side modules (#13065)Jesper van den Ende
This commit fixes inspector integration with "deno test" subcommand by waiting for inspector sessions to connect if "--inspect-brk" flag is passed. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-12-15feat(watch): support watching external files (#13087)Jesper van den Ende
2021-12-15feat: REPL import specifier auto-completions (#13078)David Sherret
2021-12-15feat: Add support for import assertions and JSON modules (#12866)Bartek Iwańczuk
This commit adds proper support for import assertions and JSON modules. Implementation of "core/modules.rs" was changed to account for multiple possible module types, instead of always assuming that the code is an "ES module". In effect "ModuleMap" now has knowledge about each modules' type (stored via "ModuleType" enum). Module loading pipeline now stores information about expected module type for each request and validates that expected type matches discovered module type based on file's "MediaType". Relevant tests were added to "core/modules.rs" and integration tests, additionally multiple WPT tests were enabled. There are still some rough edges in the implementation and not all WPT were enabled, due to: a) unclear BOM handling in source code by "FileFetcher" b) design limitation of Deno's "FileFetcher" that doesn't download the same module multiple times in a single run Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-12-14fix(ext/net): make unix and tcp identical on close (#13075)Ben Noordhuis
std/http/server knows how to handle "Listener has been closed" exceptions but not "operation canceled" errors. Make "unix" listen sockets throw the same exception as "tcp" listen sockets when the socket is closed and has a pending accept operation. There is still a discrepancy when multiple accept requests are posted but that's probably a less visible issue and something for another day. Fixes #13033
2021-12-15chore: updates to support deno_graph API changes (#13080)Kitson Kelly
2021-12-14feat(ext/crypto): support exporting RSA JWKs (#13081)Luca Casonato
This commit adds support for exporting RSA JWKs in the Web Crypto API. It also does some minor fixes for RSA JWK imports. Co-authored-by: Sean Michael Wykes <sean.wykes@nascent.com.br>