summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-02-24fix: createSecKey logic (#4063)Suguru Motegi
2020-02-24Add Deno.Err change missing from previous commit (#4113)Ryan Dahl
2020-02-24rename Deno.Err -> Deno.errors (#4093)Bartek Iwańczuk
2020-02-24doc: Remove old link to deno types output (#4111)Nayeem Rahman
2020-02-24feat: Add Deno.formatDiagnostics (#4032)Kitson Kelly
2020-02-24disable std/examples/chat tests for windows (#4109)Bartek Iwańczuk
2020-02-24update build instructions for windows (#4027)Matthew Lennon
2020-02-24Remove ansi_term dependency (#4106)João Souto
2020-02-24fix: add mutex guard for permission_prompt tests (#4105)Yoshiya Hinosawa
This PR introduces the mutex guard for the test cases which depends on the permission prompt mocking utility. permission_request test cases depend on the mocked (dummy) value of the permission_prompt result. The value is stored at static STUB_PROMPT_VALUE: AtomicBool and these test cases share this value. So we should lock at the start of these test cases. Before this change cargo test permission failed 6 times out of 20. After this change, 0 times out of 20 (on my mac).
2020-02-24Add missing node os.release() implementation (#4065)ecyrbe
2020-02-24fix(std/examples): add tests for examples (#4094)uki00a
2020-02-24fix: chat example's content-security-policy (#4091)Yusuke Sakurai
2020-02-23refactor: use OpError instead of ErrBox for errors in ops (#4058)Bartek Iwańczuk
To better reflect changes in error types in JS from #3662 this PR changes default error type used in ops from "ErrBox" to "OpError". "OpError" is a type that can be sent over to JSON; it has all information needed to construct error in JavaScript. That made "GetErrorKind" trait useless and so it was removed altogether. To provide compatibility with previous use of "ErrBox" an implementation of "From<ErrBox> for OpError" was added, however, it is an escape hatch and ops implementors should strive to use "OpError" directly.
2020-02-23feat(std/node): add os Symbol.toPrimitive methods (#4073)Ben Noordhuis
Node's os module exports a number of methods that evaluate to themselves when coerced to a primitive. I.e., `"" + os.arch` and `os.arch()` evaluate to the same string, and now Deno's shims do too.
2020-02-23fix: [ws] sock shouldn't throw eof error when failed to read frame (#4083)Yusuke Sakurai
2020-02-23fetch: proper error for unsupported protocol (#4085)Kevin (Kun) "Kassimo" Qian
2020-02-23Move WebAsssembly namespace to shared_globals (#4084)Kevin (Kun) "Kassimo" Qian
2020-02-23feat: support brotli compression for fetch API (#4082)EnokMan
2020-02-22Added browser chat example (#4022)Yusuke Sakurai
2020-02-22feat(std/node): add os.loadavg() (#4075)ecyrbe
2020-02-22Fix example (#4076)jigsaw
2020-02-21feat: Deno.fsEvents() (#3452)Bartek Iwańczuk
2020-02-21feat(std/node) : add os.platform (#4064)ecyrbe
2020-02-21feat: support UDP sockets (#3946)hazæ41
2020-02-21refactor: remove unneeded ErrorKinds (#3936)Bartek Iwańczuk
2020-02-21fix: add io ops to worker to fix fetch (#4054)Bartek Iwańczuk
2020-02-21upgrade: dprint 0.6.1 (#4061)木杉
2020-02-20v0.34.0Ryan Dahl
2020-02-20/std/ws: Fix args index for WS examples (#4046)Clemens Tolboom
2020-02-19fix: mis-detecting imports on JavaScript when there is no checkJs (#4040)Kitson Kelly
This PR fixes an issue where we recursively analysed imports on plain JS files in the compiler irrespective of "checkJs" being true. This caused problems where when analysing the imports of those files, we would mistake some import like structures (AMD/CommonJS) as dependencies and try to resolve the "modules" even though the compiler would not actually look at those files.
2020-02-19fix: emit when bundle contains single module (#4042)Kitson Kelly
Fixes #4031 When a bundle contains a single module, we were incorrectly determining the module name, resulting in a non-functional bundle. This PR corrects that determination.
2020-02-19refactor: rewrite file_fetcher to use async fns, lift blocking call (#4037)Bartek Iwańczuk
2020-02-19Enable TS strict mode by default (#3899)Maximilien Mellen
Fixes #3324 Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2020-02-19refactor: rewrite HTTP cache for file fetcher (#4030)Bartek Iwańczuk
2020-02-19Support loading additional TS lib files (#3863)Kitson Kelly
Fixes #3726 This PR provides support for referencing other lib files (like lib.dom.d.ts that are not used by default in Deno.
2020-02-18refactor: remove run_worker_loop (#4028)Bartek Iwańczuk
* remove run_worker_loop, impl poll for WebWorker * store JoinHandle to worker thread
2020-02-18feat: Deno.makeTempFile (#4024)Kevin (Kun) "Kassimo" Qian
2020-02-18upgrade: dprint 0.6.0 (#4026)Ryan Dahl
2020-02-18refactor: cleanup cli/lib.rs (#4006)Bartek Iwańczuk
* rename methods on Worker related to module loading * reorganize cli/lib.rs * remove cli/progress.rs and cli/shell.rs
2020-02-17feat(std/io): Export readDelim(), readStringDelim() and readLines() from ↵Nayeem Rahman
bufio.ts (#4019) Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-02-17feat: Asynchronous event iteration node polyfill (#4016)Chris Knight
2020-02-17fix(deno test): support directories as arguments (#4011)Bartek Iwańczuk
2020-02-17Update ws client example (#4012)Nikolai Vavilov
2020-02-17feat: add --cert flag for http client (#3972)geoFlux
2020-02-16Fix issue with detecting AMD like imports (#4009)Kitson Kelly
2020-02-15fix: skip non-UTF-8 dir entries in Deno.readDir() (#4004)Ben Noordhuis
Example: $ python2 -c 'open("\x80\x7F", "w")' $ deno eval 'Deno.readDirSync(".")' thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', cli/ops/fs.rs:373:16 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace fatal runtime error: failed to initiate panic, error 5 Aborted (core dumped) Before this commit they made deno panic, now they are silently skipped. Not ideal but arguably better than panicking. No test because what characters are and aren't allowed in filenames is highly file system-dependent. Closes #3950
2020-02-15refactor: replace Arc<Box<..>> with Rc<..> (#3996)Bartek Iwańczuk
2020-02-13v0.33.0Ryan Dahl
2020-02-13fix: appended CRLF to end of trailer headers (#3989)Yusuke Sakurai
2020-02-13Clean up fmt flags and path handling (#3988)Ryan Dahl