summaryrefslogtreecommitdiff
path: root/cli/js
AgeCommit message (Collapse)Author
2020-06-02fix: Better use of @ts-expect-error (#6038)Kitson Kelly
2020-06-01feat(core): Ops can take several zero copy buffers (#4788)Valentin Anger
2020-06-01fix jsDoc (#5992)精武陈真
2020-06-01fix(cli/web): Body.bodyUsed should use IsReadableStreamDisturbedMarcos Casagrande
2020-06-01fix(cli/js/web): formData parser for binary files (#6015)Marcos Casagrande
2020-05-31fix(cli/fetch): set null body for null-body status (#5980)Marcos Casagrande
2020-05-31fix(fetch): network error on multiple redirects (#5985)Marcos Casagrande
2020-05-31fix Headers.name and FormData.name (#5994)Marcos Casagrande
2020-05-30doc: add/update jsdoc for global functions (#5963)Chris Knight
2020-05-29fix(cli/permissions): Fix CWD and exec path leaks (#5642)Nayeem Rahman
2020-05-29fix(cli/js/error_stack): Expose Error.captureStackTrace (#5254)Nayeem Rahman
2020-05-29Improved typechecking error for unstable props (#5503)Luca Casonato
2020-05-29fix: REPL evaluates in strict mode (#5565)Kitson Kelly
Since everything that Deno loads is treated as an ES Module, it means that all code is treated as "use strict" except for when using the REPL. This PR changes that so code in the REPL is also always evaluated with "use strict". There are also a couple other places where we load code as scripts which should also use "use strict" just in case.
2020-05-29fix DenoBlob name (#5879)Peter Evers
2020-05-28improve indentation when displaying objects with console.log (#5909)Speykious
2020-05-28formData: set default filename for Blob to <blob> (#5907)Marcos Casagrande
2020-05-28console: Hide `values` for console.table if display not necessary (#5914)Kevin (Kun) "Kassimo" Qian
2020-05-26Use ts-expect-error instead of ts-ignore. (#5869)Kitson Kelly
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-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 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-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-21docd: Replace obsolete Deno.homeDir() with Deno.dir('home') (#5708)Bhumij Gupta
2020-05-20fix: streams hwm validation (#5681)Marcos Casagrande
2020-05-20move js unit tests to cli/tests (#5678)Ryan Dahl
2020-05-20refactor: reorganize TS compiler (#5603)Bartek Iwańczuk
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-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-17Fix definition of URL constructor (#5521)Masahiro Miyashiro (3846masa)
2020-05-17docs: update cli/js/tests README (#5531)Ali Hasani
2020-05-16Fix formatting of example code in typescript declaration files (#5475)Siddharth Parmar
2020-05-16Fix a bunch of spelling errors (#5314)Bert Belder
2020-05-15fix: setTimeout and friends have too strict types (#5412)Tomasz Gałkowski
2020-05-15doc: add stream api (#5418)Chris Knight
2020-05-14cli: don't panic on Deno.close invalid argument (#5320)Kevin (Kun) "Kassimo" Qian