aboutsummaryrefslogtreecommitdiff
path: root/test/js/node (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-09-07revert (#4539)Gravatar dave caruso 3-15/+18
* Revert "remove native events from streams" This reverts commit e063a47a53744a2bf5b1c2dd433698c9e37b75d6. * finish revert * remove accidental submodule * dfghj
2023-09-07Progress for Next.js (#4468)Gravatar dave caruso 3-28/+33
* L * ipc * asdfghjkl * dfghjk * it works! * types * patches for next.js * sdfghj * wsdfgn,./ * this * yolo * okay loser * asdfghjk * add some more APIs * MESS * sdfghjkl * remove native events from streams * stuff * remove lazy(primordials) test * debugging * okay * less fake extensions object * fix `Buffer.toString()` args logic * fix deserialize * make tests work * add test for `Buffer.toString` args * Update server.zig * remove test * update test * Update spawn-streaming-stdin.test.ts * fix linux build * Update fs.test.ts * cli message improvements * dfshaj * Fix fs.watch bug maybe? * remove --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2023-09-06feat(fetch) rejectUnauthorized and checkServerIdentity (#4514)Gravatar Ciro Spaciari 2-12/+20
* enable root certs on fetch * rebase * fix lookup * some fixes and improvements * fmt * more fixes * more fixes * check detached onHandshake * fix promise case * fix cert non-Native * add fetch tls tests * more one test
2023-09-06fix(runtime): fix `events.once` not working (#4520)Gravatar dave caruso 1-0/+12
2023-09-05Align `process.nextTick` execution order with Node (#4409)Gravatar Jarred Sumner 2-8/+944
* Align `process.nextTick` execution order with Node * some tests * formatting * fixups * fix the test failures * simplify the logic here * push it up --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: dave caruso <me@paperdave.net>
2023-09-05feat(runtime): Implement `fs.watchFile` (#4467)Gravatar dave caruso 1-0/+121
* really lame prototype * uses threads but badly * it works i guess * unwatchFile but lame * it works * test * a * aomitcs * fix unwatching race condition * use hasPendingActivity and GC stuff better * test * revert this
2023-09-05fix(node:net): emit close event on connection error (#4336)Gravatar dave caruso 1-3/+18
* emit close event on connection error * re-review * add test
2023-09-05fix checkout/build failure due to `src/deps/uws` (#4505)Gravatar Alex Lam S.L 1-5/+5
2023-09-03fix(syscall): fix handling syscall errno (#4461)Gravatar Ai Hoshino 1-0/+21
* fix(syscall): fix handling syscall errno Close: #4198 * remove unused code * add more tests * remove unused code
2023-09-01fix `Bun.serve` with tls and `Bun.file` (#4450)Gravatar Dylan Conway 2-6/+24
* check sendfile ctx * add test * undo blob check * undo undo and add assert
2023-08-31fix(runtime): `fs.cp` edge cases (#4439)Gravatar dave caruso 1-3/+36
* yippee * enable cpSync tests * much better * that doesnt actually do anything * lose
2023-08-30feat(node:fs): add `cp`/`cpSync`/`promises.cp` + async `copyFile` (#4340)Gravatar dave caruso 2-2/+259
* half working disaster code * this * async copyFile * . * its failing symlink tests * asdfg * asdf * hmm * okay i think ti works * small edits * fix test on linux * i hate atomics / atomics hate me back <3 * add a message in the builtins bundler that 0.8 is needed. it breaks on older versions lol. * fixed * rebase
2023-08-30fix(http/https) disable decompress on http/https client (#4399)Gravatar Ciro Spaciari 1-2/+13
* disable decompress on http/https module * make js again
2023-08-30Fix bug in `util/types`.{isGeneratorFunction,isAsyncFunction}Gravatar Jarred Sumner 1-2/+20
2023-08-29fix(node-fetch): use stream.Readable instead of web streams (#4394)Gravatar dave caruso 4-33/+103
* fix blobFrom * fix(node-fetch): use stream.Readable instead of web streams * uncomment * comment why
2023-08-29parse unix socket path param in `http.server` (#4390)Gravatar Ai Hoshino 1-0/+27
2023-08-29emit open and call close callback (#4384)Gravatar Dylan Conway 1-0/+55
2023-08-28feat(node:dns): implement `dns.reverse`. (#4332)Gravatar Ai Hoshino 1-0/+45
* feat(node:dns): implement `dns.reverse`. Close: #4299 * fix dns reverse for ipv6 --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-08-28use `options.fd` if provided for `fs.Read/WriteStream` (#4378)Gravatar Dylan Conway 1-0/+22
* use `options.fd` over path * tests * fix `@clack/prompts` * == null
2023-08-27Fix some edge cases in the `env` param of `spawn`. (#4364)Gravatar Ai Hoshino 1-6/+17
Close: #4362
2023-08-24Fix(node:http): fix URL formatting when using a proxy. (#4297)Gravatar Ai Hoshino 1-0/+57
Close: #4295
2023-08-24Make the server not crash if an error occurs in dev build. (#4300)Gravatar Ai Hoshino 1-0/+16
Close: #4298
2023-08-21Implement FileGravatar Jarred Sumner 1-1/+1
2023-08-20Fixes #1675 (#4230)Gravatar Jarred Sumner 2-0/+76
* Fixes https://github.com/oven-sh/bun/issues/1675 * Add fallback for Bun.write * Update blob.zig * Fix test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-20Fix test failures from 3a9a6c63a (#4231)Gravatar Jarred Sumner 1-18/+1
cc @Hanaasagi Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-19tty `ReadStream`, `WriteStream`, and readline rawmode (#4179)Gravatar Dylan Conway 1-1/+123
* tty `WriteStream`, `ReadStream`, and rawmode * tests * refactor prototypes * fix failing test * fix test and library usage * more merge * fix child_process test * create pseudo terminal for tty tests * match node logic * handle invalid tty * close descriptors * move tests to another process * fix test again * fix test on linux
2023-08-18Implement BigIntStats (#4208)Gravatar dave caruso 1-0/+35
* Implement BigIntStats * changes * rename test * comment * test changes?
2023-08-17Add `util.inspect.custom` support to `util.inspect/Bun.inspect/console.log` ↵Gravatar dave caruso 2-0/+178
(#4194) * start work on util.inspect.custom * asdf * finish util inspect custom inspect * inspect * fix tests * revert * tidy * revert * oops * test * fix issues
2023-08-17Support Nitro (#4098)Gravatar dave caruso 1-0/+25
* Add formatWithOptions * tests and tweaks * adjust * changes * hi * add mark/measure stubs * stuff * allow unix absolute paths here * typo * rebase * fix stats
2023-08-17Allow IncomingRequest.req to be overwritten. (#4154)Gravatar dave caruso 1-0/+17
* Allow IncomingRequest.req to be overwritten. * add test * fix test * yoo
2023-08-17Fix(node:fs): add buffer parameter in fs.read callback. (#4191)Gravatar Ai Hoshino 1-0/+116
Close: #4178
2023-08-10async realpath (#4117)Gravatar Jarred Sumner 1-1/+31
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-10add util.formatWithOptions (#4090)Gravatar dave caruso 1-0/+10
* Add formatWithOptions * tests and tweaks * adjust --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-08-09Fix constructing buffer from a UTF16 string with the Latin1 encoding. (#4086)Gravatar Ai Hoshino 1-0/+12
Close: #3914
2023-08-08Set exports to {} in user-constructed CommonJSModuleRecords (#4076)Gravatar dave caruso 1-1/+4
2023-08-08Fix require("console") #3820 (#4073)Gravatar dave caruso 1-0/+4
* Fix #3820 * Add Module (#4074)
2023-08-081. Check if the argument is an empty string in `path.format`. (#4064)Gravatar Ai Hoshino 1-63/+196
2. Avoid duplicating '/' at the beginning of the path. Close: #4005
2023-08-07Add `env` option for `node:worker_threads` (#4052)Gravatar dave caruso 1-2/+4
* almost works * env stuff * test fixes * wtfmove * ok * ok * ref by default * it now does the ref stuff by default * cool
2023-08-07WASM test analyzer (#4043)Gravatar Jarred Sumner 1-2/+0
* wasm * WASM test scanner * Update Makefile * Update Makefile * Configurable heap limit * slightly better error * Update js_parser.zig * Update path.test.js * Update node.mjs --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-07Fix `path.normalize` edge case. (#4042)Gravatar Ai Hoshino 1-0/+1
Close: #4041
2023-08-06Fixes #4029 and fixes #4022 (#4032)Gravatar Jarred Sumner 1-22/+22
* Fixes #4029 and Fixes #4022 Fixes #4029 Fixes #4022 * Add test for all the fetches --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-06Code coverage for `bun test` (#3975)Gravatar Jarred Sumner 1-1/+0
* WIP code coverage initial commit * almost works * one approach * Code Coverage * Update WebKit * it works but is not yet accurate * skip double ascii check * wrapper * it works but i'm not sure what to do about blocks * hide blocks for now * Update ZigSourceProvider.cpp * Create coverage.md * Update nav.ts --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-06feat: impl `dns.getServers` (#3982)Gravatar Ai Hoshino 1-0/+33
* feat: impl `dns.getServers` Close: #3981 * check return value of `ares_inet_ntop`
2023-08-04Buffer.copy should ignore out-of-range sourceEnd (#3971)Gravatar Yifei Wang 1-16/+32
2023-08-03Fix thread safety issue in async fs functions file paths (#3964)Gravatar Jarred Sumner 1-0/+33
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-03Make the test betterGravatar Jarred Sumner 1-1/+2
2023-08-03Test for Module.wrap()Gravatar Jarred Sumner 1-1/+7
2023-08-03Fix edge case in `path.relative`. (#3952)Gravatar Ai Hoshino 1-0/+8
Close: #3924
2023-08-03Bunch of fixes (#3516)Gravatar Ashcon Partovi 3-2537/+2535
* Fix #3497 * Fix #3497 * Run prettier * Fix package.json * remove this too * yeah * Fix missing tests * Use native for utf-8-validate * Add module ID names to builtins * Defer evaluation of ESM & CJS modules until link time * Use builtin name for exports in plugins * Add module IDs to builtins * Update JSC build with new flag * WebKit upgrade fixes * Update WebKit * prettier * Upgrade WebKit * bump * Update once again * Add visitAdditionalChildren, remove .fill() usage * Update process.test.js * Update fs.test.ts --------- Co-authored-by: dave caruso <me@paperdave.net> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-03Fix the string encoding in `path.extname`. (#3949)Gravatar Ai Hoshino 1-0/+5
Close: #3948