summaryrefslogtreecommitdiff
path: root/std
AgeCommit message (Collapse)Author
2020-02-24update build instructions for windows (#4027)Matthew Lennon
2020-02-24Remove ansi_term dependency (#4106)João Souto
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-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-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-21refactor: remove unneeded ErrorKinds (#3936)Bartek Iwańczuk
2020-02-20/std/ws: Fix args index for WS examples (#4046)Clemens Tolboom
2020-02-19Enable TS strict mode by default (#3899)Maximilien Mellen
Fixes #3324 Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
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-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-17Update ws client example (#4012)Nikolai Vavilov
2020-02-13fix: appended CRLF to end of trailer headers (#3989)Yusuke Sakurai
2020-02-11feat(node): add EventEmitter.errorMonitor (#3960)Chris Knight
2020-02-11fix(file_server): don't crash on "%" pathname (#3953)木杉
2020-02-11update references to testing/mod.ts in manual (#3973)Bartek Iwańczuk
2020-02-11refactor: rewrite tests in std/ to use Deno.test (#3930)Bartek Iwańczuk
2020-02-11fix(std/node): support named import for EventEmitter (#3959)uki00a
2020-02-10feat: Event emitter node polyfill (#3944)Chris Knight
2020-02-10feat: Support HTTP trailer headers for response (#3938)Yusuke Sakurai
2020-02-10Add readlink, readlinkSync for std/node/fs.ts (#3926)Benny Shi
2020-02-09Bump required VS version (#3940)Nikolai Vavilov
deno builds successfully with VS2019, so no need to require VS2017.
2020-02-08reenable server tests (#3928)Bartek Iwańczuk
2020-02-08remove non-null assertion operator from std (part2) (#3927)Yusuke Sakurai
2020-02-07remove non-null assertion operator from std (part1) (#3900)Yusuke Sakurai
2020-02-07feat: add std/signal/mod.ts (#3913)Yoshiya Hinosawa
2020-02-06fix(std/path/globrex.ts): Use non-capturing groups in globrex() (#3898)Nayeem Rahman
2020-02-06fix: make WebSocket.send() exclusive (#3885)Yusuke Sakurai
2020-02-04std/http/server::serve aligned to std/http/server::serveTLS (#3881)Kitson Kelly
2020-02-03fix: Deno.remove() to properly remove dangling symlinks (#3860)Rafael Vargas
For some reason, the unit tests for Deno.remove() were not being imported to unit_tests.ts and, consequently, not being executed. Thus, I imported them, refactored some existent ones and wrote new ones for the symlink removal case. Since the creation of a symlink is not implemented for Windows yet, assertions that consider this state were added when the tests are executed in this OS.
2020-02-02std/encoding: add base32 support (#3855)Kevin (Kun) "Kassimo" Qian
2020-02-02Fixed month reference in documented output of parseDate and parseDateTime ↵Chris Knight
function calls (#3859)
2020-01-31chore: remove std/installer, port installer tests to Rust (#3843)Bartek Iwańczuk
2020-01-30bring back std/examples/xeval.ts (#3822)Kevin (Kun) "Kassimo" Qian
2020-01-30feat(std/node) Endianness (#3833)Chris Knight
2020-01-30feat: deno install in Rust (#3806)Bartek Iwańczuk
//std/installer couldn't be removed due to bug, but it's now deprecated.
2020-01-30Remove --current-thread flag (#3830)Ryan Dahl
This flag was added to evaluate performance relative to tokio's threaded runtime. Although it's faster in the HTTP benchmark, it's clear the runtime is not the only perf problem. Removing this flag will simplify further refactors, in particular adopting the #[tokio::main] macro. This will be done in a follow up. Ultimately we expect to move to the current thread runtime with Isolates pinned to specific threads, but that will be a much larger refactor. The --current-thread just complicates that effort.
2020-01-29feat: dprint formatter (#3820)Bartek Iwańczuk
* rewrite fmt_test in Rust, remove tools/fmt_test.py * remove //std/prettier
2020-01-29Partial implementation of node os polyfill based on currently available Deno ↵cknight
functionality (#3821)
2020-01-27dx: descriptive permission errors (#3808)Bartek Iwańczuk
Before: ``` ▶ target/debug/deno https://deno.land/std/examples/echo_server.ts error: Uncaught PermissionDenied: run again with the --allow-net flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) at unwrapResponse ($deno$/dispatch_json.ts:40:11) at sendSync ($deno$/dispatch_json.ts:67:10) at listen ($deno$/net.ts:170:15) at https://deno.land/std/examples/echo_server.ts:4:23 ``` ``` ▶ target/debug/deno --allow-read=/usr https://deno.land/std/examples/cat.ts /etc/passwd error: Uncaught PermissionDenied: run again with the --allow-read flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) at unwrapResponse ($deno$/dispatch_json.ts:40:11) at sendAsync ($deno$/dispatch_json.ts:91:10) ``` After: ``` ▶ target/debug/deno https://deno.land/std/examples/echo_server.ts error: Uncaught PermissionDenied: network access to "0.0.0.0:8080", run again with the --allow-net flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) at unwrapResponse ($deno$/dispatch_json.ts:40:11) at sendSync ($deno$/dispatch_json.ts:67:10) at listen ($deno$/net.ts:170:15) at https://deno.land/std/examples/echo_server.ts:4:23 ``` ``` ▶ target/debug/deno --allow-read=/usr https://deno.land/std/examples/cat.ts /etc/passwd error: Uncaught PermissionDenied: read access to "/etc/passwd", run again with the --allow-read flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) at unwrapResponse ($deno$/dispatch_json.ts:40:11) at sendAsync ($deno$/dispatch_json.ts:91:10) ```
2020-01-26Improve support of type definitions (#3755)Kitson Kelly
2020-01-25add some tests for isSymbol in std/node/util_test (#3788)Takashi Idobe
2020-01-24fix crate name in docs (#3778)David Asabina