aboutsummaryrefslogtreecommitdiff
path: root/src/io (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-02-13Implement `FormData` (#2051)Gravatar Jarred Sumner 1-1/+6
* Backport std::forward change * Implement `FormData` * Fix io_darwin headers issue * Implement `Blob` support in FormData * Add test for file upload * Fix bug with Blob not reading Content-Type * Finish implementing FormData * Add FormData to types --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-27fix importGravatar Dylan Conway 1-1/+1
2023-01-07Implement DNS module (#1691)Gravatar Jarred Sumner 1-0/+14
* Boilerplate for DNS stuff * Add c-ares * lookup * make * Implement dns.lookup * Create c-ares * wip * normalize * repro * Revert "repro" This reverts commit 8b93e0c295b335b8882a9601da47720348549beb. * Implement macOS `getaddrinfo_async_start` * embiggen * Update string_immutable.zig * Update Makefile * alright * Update .gitignore * Add types * more ccache * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update bun.d.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-03Remove usages of std.xGravatar Jarred Sumner 1-2/+2
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 2-41/+43
* @min and @max * builtins and some trivial ones * Most of them * more * more! * More Progress * wip * Update tagged_pointer.zig * Update http_client_async.zig * Most of the iterable dir changes * alright * Remove usages of deprecated formatters * :camera: * fmt * Update shimmer.zig * wip * wip * wip * progress * more * Latest * stuck on error * latest * workaround stage2 * wip * Update string_immutable.zig * wip * Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings * Fix build errors * Fixup most of the test failures * Fix `make headers` * Fix "outside package path" error * Fixup aligned alloc * Add missing file * linux * More linux fixes * use latest peechy * Fix transpiler test failure * Forgot about these * Fixup test failure * Update node-timers.test.ts * [node:htt] Fix `undefined is not an object` error Fixes https://github.com/oven-sh/bun/issues/1618 * Update http.exports.js * Make this test less flaky * fix hashes * Fix hex formatting and zls issues * Download zig version * Update Dockerfile * Update Dockerfile * Update uws * Update Dockerfile * Set llvm version * Update README.md * Update uws * Update Dockerfile * Update io_linux.zig * Update bun.zig * Log output * workaround strange @cInclude error * Make ffi tests better * Don't use cImport * Update c.zig * Update c-bindings.cpp * call setOutputDir * Update Dockerfile * Use a longer name * latest * Update serve.test.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 2-2/+2
2022-11-13use `write$NOCANCEL`, more loggingGravatar Jarred Sumner 1-0/+1
2022-10-27Add a stub for io_darwin on linuxGravatar Jarred Sumner 1-0/+12
cc @sno2 hopefully this helps but i'm not sure
2022-10-10Use write() and read() since not every file type supports positionalGravatar Jarred Sumner 1-7/+6
2022-09-22Fix linux buildGravatar Jarred SUmner 1-1/+1
2022-09-221 event loop per thread. Instead of 3.Gravatar Jarred Sumner 2-3/+10
uWebSockets and uSockets will need to be upgraded to match the changes. Previously: - Bun had a separate kqueue/eventfd just for async wakeups. - Bun had a separate kqueue/epoll just for reading files non-blocking in the same thread This commit unifies it into one event loop per thread
2022-09-11Fix build issue on Linux?Gravatar Jarred Sumner 1-1/+1
2022-09-11New HTTP client (#1231)Gravatar Jarred Sumner 1-3/+6
* wip * It mostly works! * Support `bun install` * Support `bun create` * Support chunked transfer encoding * Handle Keep Alive when redirecting to a different domain Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-08-28More reliable macOS event loop (#1166)Gravatar Jarred Sumner 3-81/+316
* More reliable macOS event loop * Reduce CPU usage of idling * Add another implementation * Add benchmark Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-08-24Fix clearTimeout and linux timeout (#1138)Gravatar Zilin Zhu 1-1/+1
2022-08-13Fix macOS buildGravatar Jarred Sumner 1-1/+1
2022-08-13Improve event loop reliability on LinuxGravatar Jarred SUmner 1-22/+52
2022-06-07Web Streams API (#176)Gravatar Jarred Sumner 2-10/+24
* [bun.js] `WritableStream`, `ReadableStream`, `TransformStream`, `WritableStreamDefaultController`, `ReadableStreamDefaultController` & more * Implement `Blob.stream()` * Update streams.test.js * Fix sourcemaps crash * [TextEncoder] 3x faster in hot loops * reading almost works * start to implement native streams * Implement `Blob.stream()` * Implement `Bun.file(pathOrFd).stream()` * Add an extra function * [fs.readFile] Improve performance * make jsc bindings a little easier to work with * fix segfault * faster async/await + readablestream optimizations * WebKit updates * More WebKit updates * Add releaseWEakrefs binding * `bun:jsc` * More streams * Update streams.test.js * Update Makefile * Update mimalloc * Update WebKit * Create bun-jsc.test.js * Faster ReadableStream * Fix off by one & exceptions * Handle empty files/blobs * Update streams.test.js * Move streams to it's own file * temp * impl #1 * take two * good enough for now * Implement `readableStreamToArray`, `readableStreamToArrayBuffer`, `concatArrayBuffers` * jsxOptimizationInlining * Fix crash * Add `jsxOptimizationInline` to Bun.Transpiler * Update Transpiler types * Update js_ast.zig * Automatically choose production mode when NODE_ENV="production" * Update cli.zig * [jsx] Handle defaultProps when inlining * Update transpiler.test.js * uncomment some tests Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-04-12[bun.js] Implement Bun.sha1, Bun.sha256, Bun.sha384, Bun.sha512, Bun.sha512_384Gravatar Jarred Sumner 1-2/+50
2022-04-05`[bun dev]` Fix segfaultsGravatar Jarred Sumner 1-1/+1
2022-04-04fix bug with io sometimes sleeping permanetlyGravatar Jarred SUmner 1-18/+32
2022-03-23[bun.js] Implement Bun.write()Gravatar Jarred SUmner 1-2/+6
2022-03-22Linux-specific tweaksGravatar Jarred SUmner 1-21/+25
2022-03-21[bun.js] 1/? Implement `Response.file`Gravatar Jarred Sumner 2-13/+248
2022-03-16Fix setTimeout on LinuxGravatar Jarred SUmner 1-5/+12
2022-03-01[bun.js] Implement `setTimeout`, `setInterval`, `clearTimeout`, `clearInterval`Gravatar Jarred Sumner 2-0/+8
2022-02-27WASMGravatar Jarred Sumner 1-0/+11
2022-02-05Make bun-install slower but more reliable on Linux Kernel 5.5 and lowerGravatar Jarred SUmner 1-112/+31
2022-02-01IO.Completion.slice()Gravatar Jarred Sumner 2-0/+44
2022-01-25mergeGravatar Jarred Sumner 1-1/+1
2022-01-25On successful connect, switch to non-blocking sockets until we're about to closeGravatar Jarred SUmner 1-2/+18
2022-01-25Fix getsockopt()Gravatar Jarred SUmner 1-2/+5
2022-01-24Automatically retry on would blockGravatar Jarred SUmner 1-8/+4
2022-01-24Fallback to readev / writevGravatar Jarred SUmner 1-7/+226
2022-01-23Update io_linux.zigGravatar Jarred Sumner 1-0/+1
2022-01-23[linux][http] return errno instead of unexpectedGravatar Jarred Sumner 1-2/+31
2022-01-23[http] Remove usages of `unreachable` in syscall error handlingGravatar Jarred Sumner 1-10/+0
2022-01-23Update io_linux.zigGravatar Jarred Sumner 1-0/+1
2022-01-23Use non-cancellable syscalls for HTTP & use errno for errorsGravatar Jarred Sumner 2-77/+928
2021-12-30Update io_linux.zigGravatar Jarred Sumner 1-1/+1
2021-12-30Update io_linux.zigGravatar Jarred Sumner 1-1/+1
2021-12-30_ => .Gravatar Jarred Sumner 1-1/+1
2021-12-30- => .Gravatar Jarred Sumner 2-4/+4
2021-12-30linuxGravatar Jarred Sumner 1-4/+5
2021-12-30Upgrade to latest Zig, remove dependency on patched version of Zig (#96)Gravatar Jarred Sumner 3-44/+45
* Prepare to upgrade zig * zig fmt * AllocGate * Update data_url.zig * wip * few files * just headers now? * I think everything works? * Update mimalloc * Update hash_map.zig * Perf improvements to compensate for Allocgate * Bump * :camera: * Update bun.lockb * Less branching * [js parser] Slightly reduce memory usage * Update js_parser.zig * WIP remove unused * [JS parser] WIP support for `with` keyword * Remove more dead code * Fix all the build errors! * cleanup * Move `network_thread` up * Bump peechy * Update README.md
2021-12-22Fix spawning child bun processesGravatar Jarred Sumner 1-3/+4
2021-12-22Update io_darwin.zigGravatar Jarred Sumner 1-1/+1
2021-12-22Fix error from requesting too much from io_uringGravatar Jarred Sumner 1-2/+18
2021-12-16[npm install] starting to look good!Gravatar Jarred Sumner 1-17/+112
2021-12-16[npm install] Use BoringSSL for https:// requestsGravatar Jarred Sumner 2-2/+6