summaryrefslogtreecommitdiff
path: root/cli
AgeCommit message (Collapse)Author
2020-05-25Add more tests for fetch response body (#5852)Marcos Casagrande
2020-05-25fix(cli/web/fetch): Make Response constructor standard (#5787)Marcos Casagrande
2020-05-25fix: Allow ArrayBuffer as Fetch request body (#5831)Marcos Casagrande
2020-05-25Improve bufferFromStream (#5826)Marcos Casagrande
2020-05-25Move getHeaderValueParams & hasHeaderValueOf to util.ts (#5824)Marcos Casagrande
2020-05-25fix: BorrowMutError when evaluating expression in inspector console (#5822)Bert Belder
Note that this does not fix the 'Uncaught ReferenceError' issue that happens when 'eager evaluation' is enabled in the inspector. Fixes: #5807
2020-05-25test: add utility function for assigning unique port to inspector (#5822)Bert Belder
2020-05-24fix: create HTTP cache lazily (#5795)Bartek Iwańczuk
2020-05-24Re-enable several fetch tests (#5803)Andrew Mitchell
2020-05-24Add unstable checks for unix transport (#5818)Valentin Anger
Also remove the unix example from the stable documentation to stay in line with the `Deno.listen` one
2020-05-23fix: TSX analysis in module graph loader (#5785)Bartek Iwańczuk
2020-05-23Fix example (#5775)guzhongren
2020-05-23Fix Deno.dir and Diagnostics being present at stable runtime (#5750)Luca Casonato
2020-05-22Simplify isFiniteNonNegativeNumber (#5686)Marcos Casagrande
2020-05-22fix: atob should throw dom exception (#5730)Ergenekon Yiğit
2020-05-22v1.0.2Bartek Iwańczuk
2020-05-22fix: SWC lexer settings and silent errors (#5752)Bartek Iwańczuk
This commit changes how error occurring in SWC are handled. Changed lexer settings to properly handle TS decorators. Changed output of SWC error to annotate with position in file.
2020-05-22fix: ts type imports (#5733)Bartek Iwańczuk
2020-05-22doc: clarify and warn on Deno.read/write behaviour (#5743)Chris Knight
2020-05-22fix: redirects handling in module analysis (#5726)Bartek Iwańczuk
This commit fixes a bug introduced in #5029 that caused bad handling of redirects during module analysis. Also ensured that duplicate modules are not downloaded.
2020-05-21fix(fmt): Do not panic on new expr with no parens. (#5734)David Sherret
Closes #5567
2020-05-21fix: --inspect flag working like --inspect-brk (#5697)Bartek Iwańczuk
2020-05-21docd: Replace obsolete Deno.homeDir() with Deno.dir('home') (#5708)Bhumij Gupta
2020-05-21ci: Errors in benchmarks should fail CI (#5422)Colin Harrington
2020-05-21fix: disallow http imports for modules loaded over https (#5680)Bartek Iwańczuk
2020-05-21docs: fix test glob pattern (#5661)Maple Miao
2020-05-20fix: streams hwm validation (#5681)Marcos Casagrande
2020-05-20move js unit tests to cli/tests (#5678)Ryan Dahl
2020-05-20v1.0.1Ryan Dahl
2020-05-20Update dprint 0.18.4 (#5671)David Sherret
Fixes trailing comma issue
2020-05-20refactor: reorganize TS compiler (#5603)Bartek Iwańczuk
2020-05-19fix(doc): crash on formatting type predicate (#5651)Ryan Dahl
2020-05-19Provide better ANSI colorized output when inspecting objects (#5404)Speykious
2020-05-19fix: REPL does not exit properly when close() is called (#5451)uki00a
2020-05-18Mark Deno.pid and Deno.noColor as const (#5593)buckle2000
2020-05-19Implement Deno.symlink() for windows (#5533)Ali Hasani
2020-05-18Fix URL encoding (#5557)Nayeem Rahman
2020-05-18Make Deno.remove() work with directory symlinks on windows (#5488)Ali Hasani
2020-05-18Revert "Fix definition of URL constructor (#5521)" (#5564)Ryan Dahl
This reverts commit 63bc468365bceda929a39b5eb93b605e2dc2bd9c.
2020-05-18fix: disable test using 019_media_types (#5589)Bartek Iwańczuk
This commit disabled flaky test in cli/module_graph.rs. The test uses 019_media_types.ts which was known to be flaky for some time. Test should be reenabled once test HTTP server is rewritten to Rust.
2020-05-18refactor: rewrite TS dependency analysis in Rust (#5029)Bartek Iwańczuk
This commit completely overhauls how module analysis is performed in TS compiler by moving the logic to Rust. In the current setup module analysis is performed using "ts.preProcessFile" API in a special TS compiler worker running on a separate thread. "ts.preProcessFile" allowed us to build a lot of functionality in CLI including X-TypeScript-Types header support and @deno-types directive support. Unfortunately at the same time complexity of the ops required to perform supporting tasks exploded and caused some hidden permission escapes. This PR introduces "ModuleGraphLoader" which can parse source and load recursively all dependent source files; as well as declaration files. All dependencies used in TS compiler and now fetched and collected upfront in Rust before spinning up TS compiler. To achieve feature parity with existing APIs this commit includes a lot of changes: * add "ModuleGraphLoader" - can fetch local and remote sources - parses source code using SWC and extracts imports, exports, file references, special headers - this struct inherited all of the hidden complexity and cruft from TS version and requires several follow up PRs * rewrite cli/tsc.rs to perform module analysis upfront and send all required source code to TS worker in one message * remove op_resolve_modules and op_fetch_source_files from cli/ops/compiler.rs * run TS worker on the same thread
2020-05-17Miscellaneous documentation and spelling improvements (#5527)Bert Belder
* Extended/updated documentation on code editor setup and plugins. * Moved documentation to the right file. * Fixed spelling errors in documentation and code. * Updated broken links. Co-authored-by: 迷渡 <justjavac@gmail.com> Co-authored-by: AlfieriChou <alfierichou@gmail.com> Co-authored-by: Anil Seervi <anil13112000@gmail.com Co-authored-by: Bert Belder <bertbelder@gmail.com> Co-authored-by: Fernando Basso <fernandobasso.br@gmail.com> Co-authored-by: József Sallai <jozsef@sallai.me> Co-authored-by: S4ltyGo4t <mario.weidner@gmx.de> Co-authored-by: Tommy May <tommymay37@gmail.com> Co-authored-by: Turbinya <wownucleos@gmail.com> Co-authored-by: ᴜɴвʏтᴇ <i@shangyes.net>
2020-05-17Implement Deno.kill for windows (#5347)Ali Hasani
2020-05-17Update to dprint 0.18.3 and the latest version of swc (#5509)David Sherret
2020-05-17chore: capture stderr in integration tests (#5549)Bartek Iwańczuk
This commit removes "check_stderr" setting from itest! macro used to generate integration tests. Without this setting on tests discarded output of stderr making it very hard to debug the problem in test. Numerous tests were changed by adding "--quiet" flag to not display "Compile"/"Download" prompts.
2020-05-17Fix definition of URL constructor (#5521)Masahiro Miyashiro (3846masa)
2020-05-17docs: update cli/js/tests README (#5531)Ali Hasani
2020-05-17Return error if more than one listener calls `WorkerHandle::get_event()` (#5461)Yiyu Lin
2020-05-16tsc: use serde to (de)serialize CompiledFileMetadata (#5481)Yiyu Lin
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2020-05-16Fix formatting of example code in typescript declaration files (#5475)Siddharth Parmar