summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-21fix(std/http): file_server's target directory (#5695)moyinzi
2020-05-21typos (#5713)Khang Dinh
2020-05-21feat(std/hash): add md5 (#5719)skdltmxn
2020-05-21docs: add entry for 'deno info' (#5703)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: Update debugger.md (#5615)Chris Schepman
2020-05-21docs: update permissions docs (#5426)JavaScriptDude
2020-05-21Move std/fmt/sprintf.ts to std/fmt/printf.ts (#4567)Ryan Dahl
2020-05-21docs: fix test glob pattern (#5661)Maple Miao
2020-05-20Remove duplicate test (#5687)Marcos Casagrande
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-20Provide required arguments to walk in example. (#5668)Hendrik
2020-05-20fix: compilation error introduced by #4543 (#5673)uki00a
2020-05-20feat(std/node): first pass at url module (#4700)Ali Hasani
2020-05-20feat(std/node) Export TextDecoder and TextEncoder from util (#5663)Garrone Joseph
2020-05-20fix(std/io): BufReader should not share the internal buffer across reads (#4543)uki00a
2020-05-20feat(std/bytes): add hasSuffix and contains functions, update docs (#4801)Ali Hasani
2020-05-20Update dprint 0.18.4 (#5671)David Sherret
Fixes trailing comma issue
2020-05-20feat(std/fmt): rgb24 and bgRgb24 can use numbers for color (#5198)Oliver Lenehan
2020-05-20std/node: add util.callbackify (#5415)Evan Hahn
This adds [Node's `util.callbackify`][0] to `std/node/util.ts`. I lifted most of this from the [original Node source code][1] (and [its tests][2]). I tried to make minimal modifications to the source. I made a few arbitrary decisions: - I was unable to do the function's types elegantly. I made overloads for functions that have 0 to 5 (inclusive) arguments, excluding the callback. I would love to know a better way to do this. (It seems that the folks at DefinitelyTyped [were also stumped][3], though maybe their solution is deliberate.) - There are a few edge cases that cause custom Node errors to be produced. Instead of re-implementing those errors completely, I created simplified classes. These are mostly correct but are not identical to the real Node errors. - The tests implement a possibly-arcane `TestQueue` class. I originally used a lot of inline promises but found it too repetitive. Closes [#5366][4]. [0]: https://nodejs.org/api/util.html#util_util_callbackify_original [1]: https://github.com/nodejs/node/blob/47804933012841f2dc90626bdcc161adf34569a5/lib/util.js#L183-L226 [2]: https://github.com/nodejs/node/blob/47804933012841f2dc90626bdcc161adf34569a5/test/parallel/test-util-callbackify.js [3]: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/7d24857ddb07ab637dfa8c477d13352f8a8206fc/types/node/util.d.ts#L61-L84 [4]: https://github.com/denoland/deno/issues/5366
2020-05-20fix(std/log): await default logger setup (#5341)Marcos Casagrande
2020-05-20refactor: reorganize TS compiler (#5603)Bartek Iwańczuk
2020-05-20docs(std): fixed spelling mistake (#5662)Anil Seervi
2020-05-20feat(std/node): Add fs.promises.readFile (#5656)Marcos Casagrande
2020-05-19fix(std/node) improve fs.close compatibility (#5649)Marcos Casagrande
2020-05-19fix(doc): crash on formatting type predicate (#5651)Ryan Dahl
2020-05-19fix url (#5637)moumni
2020-05-19fix(multipart): fix error when parsing file name in utf8 format (#5428)zfx
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-18adjust docs (#5598)Matt Dumler
2020-05-18docs: Clarify external code vendoring (#5597)Nayeem Rahman
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-18Update `docs/getting_started/first_steps.md` (#5573)Matt Dumler
2020-05-18Update style_guide.md (#5576)Richard Lemaster
2020-05-18Update `docs/getting_started/permissions.md` (#5574)Matt Dumler
Aligned the example wording more closely with that in the `first_steps.md` document, and made other minor edits/corrections.
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-18docs(std): Fix typo (#5582)pontakornth
2020-05-18fix(std/hash): SHA1 hash of Uint8Array (#5086)Andrey Trebler