aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/fs.exports.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-06-01Bundle and minify `.exports.js` files. (#3036)Gravatar dave caruso 1-1015/+0
* move all exports.js into src/js * finalize the sort of this * and it works * add test.ts to gitignore * okay * convert some to ts just to show * finish up * fixup makefile * minify syntax in dev * finish rebase * dont minify all modules * merge * finish rebase merge * flaky test that hangs
2023-05-11fix(fs) mkdtemp and mkdtempSync errors (#2851)Gravatar Ciro Spaciari 1-2/+8
* fix mkdtemp * fmt * fix errno
2023-04-06fix: export `constants` from `fs/promises` (#2567)Gravatar dave caruso 1-1/+1
* fix: export `constants` from `fs/promises` * fix type tests * third time's the charm fixing the typedef * run fmt * remove injected constant from fs, re-exporting from fs/promises
2023-03-22A couple bug fixes (#2458)Gravatar Dylan Conway 1-2/+2
* fix valid status code range * update path * highwatermark option * throw DOMException * remove extra transpiler output * more transpiler tests * comment * get index not quickly * replace with `getDirectIndex` * update abort test * throw out of range status code * promisify test fix * move stdio test instance files * working crypto tests * allow duplicate set-cookie headers * different formatting * revert, fix will be in different pr * it is called * use min buffer size * fix url tests * null origin for other protocols * remove overload * add very large file test * await * coerce to int64 * 64 * no cast * add todo blob url tests * use `tryConvertToInt52`
2023-02-14[WIP] fix(node:fs): export `fs.ReadStream` and `fs.WriteStream` (#1798)Gravatar Derrick Farris 1-71/+141
* fix(node:fs): export fs.WriteStream and fs.ReadStream * test(node:fs): add tests for fs.ReadStream and fs.WriteStream * test(node:fs): prevent opening fd w/o closing * fix(node:fs): hack ESM export for fs streams to keep lazy loading * fix(node:fs): = -> ===, fix hasInstance comparison * test(node:fs): add test that actually checks that re-exported streams work * fix(fs): eagerly load our slow lazy fns (thanks esm) * fix(fs): employ @alexlamsl 's constructor w/o new trick on Read/WriteStream
2023-02-06Expose Dirent and Stats (#1998)Gravatar MichaƂ Warda 1-0/+4
* Expose dirent and stats * Expose Dirent and Stats inside fs * Add tests for Dirent and Stats exposing * Automatically generate bindings
2023-01-31Re-run prettier after changesGravatar Jarred Sumner 1-52/+19
2023-01-18add `fs.rmdir` & friends (#1838)Gravatar Alex Lam S.L 1-0/+6
2023-01-10Fix fs:promisesGravatar Jarred Sumner 1-215/+143
2022-12-22pass callback to super _construct if possibleGravatar Dylan Conway 1-1/+5
2022-12-22fix createReadStream hangGravatar Dylan Conway 1-1/+1
highWaterMark test not working correctly but this prevents createReadStream from hanging
2022-12-21Fix throwGravatar Jarred Sumner 1-1/+1
2022-12-02feat(process): add process.{stdin, stdout, stderr} support (#1495)Gravatar Derrick Farris 1-166/+242
* fix(stream): get Duplex working * feat(process): add stdin,stdout,stderr in a semi-broken state (pipes??) * test(NodeTestHelpers): fix test names * test(NodeTestHelpers): add test for createDoneDotAll done called w error * test(NodeTestHelpers): remove stray console.log * fix(stream): fix bug in Duplex, Readable * test(process.stdio): rename test * fix(process.stdio): change onData listener to onReadable * refactor(streams): add file-wide debug fn, destructure opts * fix(child_process): check isCallable on promise * fix: get stdio streams mostly working (mostly) * fix(child_process): wait until stream is drained before calling end? * fix(child_process): change to result?.then * debug(child_process,streams): add EE id tracking, add shim for stdio after handle is dead * test(child_process): fix double pipe test, temp fix for ChildProcess.kill() return val * fix(child_process): remove immediate emit of exit on kill * debug(streams): add more debug log * debug(streams): add more debug logs part 2 * feat(streams,fs): add NativeWritable, adapt fs.WriteStream and fs.ReadStream to native
2022-11-09Add bun-types, add typechecking, add `child_process` types (#1475)Gravatar Colin McDonnell 1-6/+6
* Add bun-types to packages * Improve typing * Fix types in tests * Fix dts tests * Run formatter * Fix all type errors * Add strict mode, fix type errors * Add ffi changes * Move workflows to root * Add workflows * Remove labeler * Add child_process types * Fix synthetic defaults issue * Remove docs * Move scripts * Run prettier * Include examples in typechecking * captureStackTrace types * moved captureStackTrace types to globals * Address reviews Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2022-11-01fix createWriteStream (#1433)Gravatar Lawrence Chen 1-9/+35
* fix createWriteStream * remove comment
2022-10-21Implement `fs.createReadStream`, begin `fs.createWriteStream`Gravatar Jarred Sumner 1-3/+621
2022-10-05Improve stack traces in fs functionsGravatar Jarred Sumner 1-62/+57
This is a hack
2022-10-03`node:fs` implement `rm` on macOSGravatar Jarred Sumner 1-5/+8
no linux yet
2022-09-06Make the plugins a little more resilientGravatar Jarred Sumner 1-40/+39
2022-09-06Make fs extensibleGravatar Jarred Sumner 1-108/+113
2022-07-04Export fs.promisesGravatar Jarred Sumner 1-0/+72
2022-06-22change the directory structurejarred/renameGravatar Jarred Sumner 1-0/+236