summaryrefslogtreecommitdiff
path: root/std/node
AgeCommit message (Collapse)Author
2020-08-12fix: Make std work with isolatedModules (#7016)Nayeem Rahman
2020-07-26chore: use ts-expect-error instead of ts-ignore (#6876)Trivikram Kamat
2020-07-14Use dprint for internal formatting (#6682)David Sherret
2020-07-14feat(std/node): add string_decoder (#6638)Steven Guerrero
2020-07-08feat: add --no-check option (#6456)Kitson Kelly
This commit adds a "--no-check" option to following subcommands: - "deno cache" - "deno info" - "deno run" - "deno test" The "--no-check" options allows to skip type checking step and instead directly transpiles TS sources to JS sources. This solution uses `ts.transpileModule()` API and is just an interim solution before implementing it fully in Rust.
2020-07-05test(std/node): include windows in link tests (#6620)Casper Beyer
2020-07-05fix(std/node): add encoding argument to Buffer.byteLength (#6639)Marcos Casagrande
2020-07-05feat(std/node): add buf.equals method (#6640)Marcos Casagrande
2020-07-02improve(std/asserts): allow assert functions to specify type parameter (#6413)WJH
2020-06-29fix(std/node): do not use absolute urls (#6562)Ryan Dahl
2020-06-28feat(std/node): Add Buffer.isEncoding (#6521)Marcos Casagrande
2020-06-28feat(std/node): Add Buffer.allocUnsafe (#6533)Marcos Casagrande
2020-06-27feat(std/node): support hex/base64 encoding in fs.readFile/fs.writeFile (#6512)Marcos Casagrande
2020-06-27test(std/node): Add Buffer tests (#6524)Marcos Casagrande
2020-06-27fix(std/node): add fill & encoding args to Buffer.alloc (#6526)Marcos Casagrande
2020-06-25fix(std/node/process): env, argv exports (#6455)Benjamin Lupton
The promise approach still required permissions to be specified at initialisation, rather than at request. Using a Proxy instance solves this permission issue. The Proxy instance approach also eliminates the need for the await. Achieving direct compatibility with Node.js. /ref pr #6392 /ref commit d16337cc9c59732fe81655482e08b72d844472e6
2020-06-23fix(std/node): fix readFile types, add encoding types (#6451)Benjamin Lupton
2020-06-23fix(std/node): global process should usable (#6392)Benjamin Lupton
2020-06-21feat(std/node): support hex / base64 encoding in Buffer (#6414)Marcos Casagrande
2020-06-20Remove Deno.dir and dirs dependency (#6385)Ryan Dahl
2020-06-13fix(std/node): added tests for static methods of Buffer (#6276)David Gonzalez
2020-06-13Doc: Node buffer is now supported (#6274)Michael Yuan
2020-06-12refactor: Don't destructure the Deno namespace (#6268)Nayeem Rahman
2020-06-12Revert "feat: add Deno.osName()" (#6261)Ryan Dahl
Deno.build.os provides the same functionality This reverts commit 6ccf9037a6b36c81ea0e6ac12d0e2dbd793f6114.
2020-06-12make std deno-lint clean (#6240)Ryan Dahl
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-06-11feat: add Deno.osName() (#5714)Rubin Bhandari
2020-06-09fix(std/node): emitter.removeAllListeners (#5583)blairzhao111
When given a non-registered eventName to emitter.removeAllListeners(eventName), current code would remove all listeners instead of silently skip, which is not ideal.
2020-06-08feat(std/node) - Add util.promisify (#5540)Marcos Casagrande
2020-06-07feat(std/node) add util.types (#6159)Peter Evers
2020-06-07refactor(std): remove testing dependencies from non-test code (#5838)Chris Knight
2020-06-06feat(std/node): Buffer (#5925)Nikolai Vavilov
2020-06-06fix: use queueMicrotask instead of setTimeout (#6112)Marcos Casagrande
2020-06-05Rename abbreviated assertions in std/testing (#6118)Casper Beyer
2020-06-02fix: Better use of @ts-expect-error (#6038)Kitson Kelly
2020-06-01feat(std/node): add util.type.isDate (#6029)Peter Evers
2020-05-28feat(std/node): add link/linkSync polyfill (#5930)Chris Knight
2020-05-26Use ts-expect-error instead of ts-ignore. (#5869)Kitson Kelly
2020-05-25Fix typo (#5834)Rares Folea
2020-05-23refactor: remove duplicated code in std/node/module (#5778)Ali Hasani
2020-05-22std/node: fs.writeFile/sync path can now be an URL (#5652)Marcos Casagrande
2020-05-22re-enable symlink tests on windows (#5746)Ali Hasani
2020-05-20Remove duplicate test (#5687)Marcos Casagrande
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-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-20feat(std/node): Add fs.promises.readFile (#5656)Marcos Casagrande
2020-05-19fix(std/node) improve fs.close compatibility (#5649)Marcos Casagrande
2020-05-16Fix a bunch of spelling errors (#5314)Bert Belder
2020-05-15fix: setTimeout and friends have too strict types (#5412)Tomasz Gałkowski
2020-05-15feat(std/node): fs.writeFileSync polyfill (#5414)Marcos Casagrande