summaryrefslogtreecommitdiff
path: root/std
AgeCommit message (Collapse)Author
2020-03-14Node polyfill for fs.chown and fs.close (#4377)Chris Knight
2020-03-14BREAKING CHANGE FileInfo.len renamed to FileName.size (#4338)dubiousjim
2020-03-14feat: add chmod Node polyfill and related file system constants (#4358)Chris Knight
2020-03-14Add node querystring polyfill (#4370)crowlKats
2020-03-14doc(http/server): Add coherence to the docs (#4372)Lucas De Angelis
Functions that returns a server are now documented with "Create", and functions that launches one are documented with "Start". Also added documentation for listenAndServe that respects these changes. Fixes #4367
2020-03-13fix(std): Use Deno.errors where possible. (#4356)Oliver Lenehan
2020-03-12fix: Node polyfill fsAppend rework (#4322)Chris Knight
* My original implementation of `fs.appendFile` used an async API, which, though it would work fine as a polyfill, wasn't an exact match with the Node API. This PR reworks that API to mimic the Node API fully as a synchronous void function with an async internal implementation. * Refactor move of other internal fs `dirent` and `dir` classes to the _fs internal directory.
2020-03-10doc(cli/flags): Reduce empty lines in help messages (#4312)Nayeem Rahman
2020-03-10feat (std/encoding): add binary module (#4274)Oliver Lenehan
2020-03-10refactor(cli/js/net): Cleanup iterable APIs (#4236)Nayeem Rahman
Listener and UDPConn are AsyncIterables instead of AsyncIterators. The [Symbol.asyncIterator]()s are defined as generators and the next() methods are gone. "Listener/Socket has been closed" errors are now BadResource.
2020-03-10refactor: Cleanup options object parameters (#4296)Nayeem Rahman
2020-03-09test: add actual error class to fail message (#4305)Chris Knight
2020-03-08feat(std/node) add appendFile and appendFileSync (#4294)Chris Knight
2020-03-08reorg: move JS ops implementations to cli/js/ops/, part 1 (#4264)Bartek Iwańczuk
Following JS ops were moved to separate files in cli/js/ops directory: - compiler - dispatch_json - dispatch_minimal - errors - fetch - fs_events - os - random - repl - resources - runtime_compiler - runtime - tty
2020-03-08Improvements to std/flags. (#4279)Kitson Kelly
Adds JSDoc to module, improves the typing of the return type, uses iteration instead of Array forEach, uses the dotall support in Regular Expression which is now supported in JavaScript, uses destructuring and nullish coalescing where appropriate.
2020-03-07Update manual to reflect newer test running (#4278)Harry Wolff
This updates this example code to follow the new test running conventions. The code as is, when ran produces the following output: ``` ➜ dencro git:(master) ✗ deno test Compile file:///Users/hswolff/Sites/dencro/test.ts running 2 tests OK oneTest (2.00ms) OK t2 (0.00ms) test result: OK 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out (2.00ms) running 2 tests OK oneTest (0.00ms) OK t2 (0.00ms) test result: OK 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out (0.00ms) ➜ dencro git:(master) ✗ ``` Removing `await Deno.runTests();` just causes the tests to run once.
2020-03-06doc: Update manual with suggestions for when cargo isn't building properly ↵Chris Knight
(#4252)
2020-03-06Rename readDir -> readdir (#4225)dubiousjim
2020-03-05Document TypeScript compiler options (#4241)Ryan Dahl
2020-03-04Use discord instead of gitter (#4253)Ryan Dahl
2020-03-03feat(std/node): add directory classes (#4087)Chris Knight
2020-03-01feat(std/node): add os.tmpdir() implementation (#4213)ecyrbe
2020-02-28[std/ws] provide default close code for ws.close() (#4172)Yusuke Sakurai
2020-02-27reduce unnecessary output on tests (#4148)Yusuke Sakurai
2020-02-26refactor(std/http): move io functions to http/io.ts (#4126)Yusuke Sakurai
2020-02-25upgrade: TypeScript 3.8 (#4100)Kitson Kelly
2020-02-24fix: [http] Consume unread body and trailers before reading next request (#3990)Yusuke Sakurai
- Added `ServerRequest.finalize()`: consuming all unread body stream and trailers. - This is cleanup method for reading next request from same keep-alive connection. - Needed when handler didn't consume all body and trailers even after responding. - refactor: `ServerRequest._bodyStream()`, `ServerRequestBody` are removed. - Now using `bodyReader()` and `chunkedBodyReader()` instead. - fix: Trailers should only be read `transfer-encoding` is `chunked` and `trailer` header is set and its value is valid. - fix: use `Headers.append()` on reading trailers. - fix: delete `trailer` field from headers after reading trailers. - reorg: Several functions related to IO are moved into `http/io.ts`
2020-02-24Remove ansi_term dependency (#4116)João Souto
2020-02-24Revert "Remove ansi_term dependency"Ryan Dahl
Broke colors https://github.com/denoland/deno/issues/4112#issuecomment-590545385 This reverts commit c250778704a4e0065e54e6bf6ca6c39d556a6d8d.
2020-02-24fix: createSecKey logic (#4063)Suguru Motegi
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-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-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>