summaryrefslogtreecommitdiff
path: root/cli/js
AgeCommit message (Collapse)Author
2020-04-07Remove __timers namespace (#4662)Ryan Dahl
2020-04-06docs: add README to cli/js/web/ (#4578)Ondřej Žára
2020-04-05feat: Add File support in FormData (#4632)crowlKats
2020-04-03fix(#4546) Added Math.trunc to toSecondsFromEpoch to conform the result to ↵Parker Gabel
u64 (#4575)
2020-04-03feat: Expose ReadableStream and make Blob more standardized (#4581)Yusuke Sakurai
Co-authored-by: crowlkats <crowlkats@gmail.com>
2020-04-03adjust docs for Deno.seek (#4610)dubiousjim
2020-04-03fix: async ops sanitizer false positives in timers (#4602)Bartek Iwańczuk
2020-04-03make Worker.poll private (#4603)Bartek Iwańczuk
2020-04-03Improve tests and docs for Deno.rename (#4597)dubiousjim
2020-04-02Refactor and expand mkdir tests (#4579)dubiousjim
2020-04-02feat: deno test --filter (#4570)Ryan Dahl
2020-04-01better parameter names for a couple functions (#4559)Chris Knight
2020-04-01refactor(cli/js/testing): Reduce testing interfaces (#4451)Nayeem Rahman
* Reduce "testing" interfaces * Use a callback instead of a generator for Deno.runTests() * Default RunTestsOptions::reportToConsole to true * Compose TestMessage into a single interface
2020-03-31doc: Improve API documentation and add examples (#4548)Chris Knight
2020-03-31fix: invalid blob type (#4536)crowlKats
2020-03-31Properly track isFile, isSymlink, isDirectory (#4541)dubiousjim
* Properly track isFile, isSymlink, isDirectory These don't exhaust all the possibilities, so none of them should be defined as "neither of the others". * empty
2020-03-30Fix umask test (#4533)dubiousjim
2020-03-30console: print promise details (#4524)Michał Sabiniarz
2020-03-30console: iterable printing improvements (#4472)Michał Sabiniarz
1. Array elements are now grouped the same as in Node.js 2. Limit to 100 (Node.js default) elements to display in iterable 3. Print each element in new line if excessing max line length (same as in Node.js) 4. Print length of the TypedArray 5. Print information about empty items in Array
2020-03-29API doc improvments (#4525)Chris Knight
2020-03-28Update to Prettier 2 and use ES Private Fields (#4498)Kitson Kelly
2020-03-26Improve isatty and kill API docs; Deno.kill() - throw on Windows (#4497)Chris Knight
2020-03-25refactor: rename ConsoleOptions to InspectOptions (#4493)Chris Knight
2020-03-24feat: window.close() (#4474)Kevin (Kun) "Kassimo" Qian
2020-03-24doc: improve various API docs and include examples (#4486)Chris Knight
2020-03-24fix: add fsEvent notify::Error casts (#4488)Kevin (Kun) "Kassimo" Qian
2020-03-24feat: add queueMicrotask to d.ts (#4477)Yusuke Sakurai
2020-03-24Revert "avoid using same port number for test (#4147)"Bartek Iwańczuk
Ref #4467 This reverts commit 60cee4f045778777a16b6fffd6d5b9a1400d7246.
2020-03-24console: replace object abbreviation with line breaking (#4425)Michał Sabiniarz
2020-03-23feat: Support Unix Domain Sockets (#4176)João Souto
2020-03-23doc: API improvements to chown, close, compile and connect (#4463)Chris Knight
2020-03-21Remove @url comments from d.ts files (#4449)Ryan Dahl
These have no function and are not tested, probably incorrect in many situations.
2020-03-21BREAKING CHANGE Rename Deno.run's args to cmd (#4444)Akshat Agarwal
This is to avoid confusion with Deno.args which does not include the executable to be run.
2020-03-21avoid using same port number for test (#4147)Yusuke Sakurai
2020-03-20chmod should throw on Windows (#4446)dubiousjim
2020-03-20use prebuilt "not implemented" error (#4442)dubiousjim
2020-03-20refactor: move code from fs.rs into ops/fs.rs (#4428)dubiousjim
This a complex boring PR that shifts around code (primarily) in cli/fs.rs and cli/ops/fs.rs. The gain of this refactoring is to ease the way for #4188 and #4017, and also to avoid some future development pain. Mostly there is no change in functionality. Except: * squashed bugs where op_utime and op_chown weren't using `resolve_from_cwd` * eliminated the use of the external `remove_dir_all` crate. * op_chmod now only queries metadata to verify file/dir exists on Windows (it will already fail on Unix if it doesn't) * op_chown now verifies the file/dir's existence on Windows like chmod does.
2020-03-20Add require-await lint rule (#4401)Samrith Shankar
2020-03-19perf: Optimize TextEncoder and TextDecoder (#4430)Bartek Iwańczuk
* add tests for "Deno.core.encode" and "Deno.core.decode" for empty inputs * use "Deno.core.encode" in "TextEncoder" * use "Deno.core.decode" in "TextDecoder" * remove "core_decode" and "core_encode" benchmarks
2020-03-19Simplify timer with macrotask callback (#4385)Kevin (Kun) "Kassimo" Qian
2020-03-19fix: stack traces for modules imported via std/node's require (#4035)Nikolai Vavilov
2020-03-19refactor: rename Deno.TestDefinition.skip to ignore (#4400)Bartek Iwańczuk
2020-03-18Chmod API documentation improvements (#4427)Chris Knight
2020-03-18Improve API docs for Deno.bundle and Deno.chdir (#4426)Chris Knight
2020-03-18feat: Deno.test() sanitizes ops and resources (#4399)Bartek Iwańczuk
This PR brings assertOps and assertResources sanitizers to Deno.test() API. assertOps checks that test doesn't leak async ops, ie. there are no unresolved promises originating from Deno APIs. Enabled by default, can be disabled using Deno.TestDefinition.disableOpSanitizer. assertResources checks that test doesn't leak resources, ie. all resources used in test are closed. For example; if a file is opened during a test case it must be explicitly closed before test case finishes. It's most useful for asynchronous generators. Enabled by default, can be disabled using Deno.TestDefinition.disableResourceSanitizer. We've used those sanitizers in internal runtime tests and it proved very useful in surfacing incorrect tests which resulted in interference between the tests. All tests have been sanitized. Closes #4208
2020-03-18Fix unit test runner ConnectionReset bug (#4424)Bert Belder
Fixes: #4373
2020-03-18Provide compiled JSON to TypeScript compiler. (#4404)Kitson Kelly
Fixes #4101 Previously, we would just provide the raw JSON to the TypeScript compiler worker, but TypeScript does not transform JSON. This caused a problem when emitting a bundle, that the JSON would just be "inlined" into the output, instead of being transformed into a module. This fixes this problem by providing the compiled JSON to the TypeScript compiler, so TypeScript just sees JSON as a "normal" TypeScript module.
2020-03-17try to handle ConnectionReset error in windows CI for unit tests (#4407)Bartek Iwańczuk
2020-03-17feat: fetch should accept a FormData body (#4363)crowlKats
2020-03-16Add mode option to open/create (#4289)dubiousjim