aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-02[socket] handle `connectError` (#1705)Gravatar Alex Lam S.L 1-85/+85
assorted clean-ups & fixes
2023-01-02fix lingering process by dead sockets (#1700)Gravatar Alex Lam S.L 1-67/+75
`Bun.listen()` and `Bun.connect()` would create sockets that under certain conditions with calls to `.end()` or `.stop`, prevents the process from exiting gracefully.
2023-01-01clean up `Promise` handling (#1697)Gravatar Alex Lam S.L 5-40/+16
2022-12-30More assertionsGravatar Jarred Sumner 1-3/+3
2022-12-29Introduce `Bun.CryptoHasher`Gravatar Jarred Sumner 2-18/+461
2022-12-28Implement `Bun.RIPEMD160`Gravatar Jarred Sumner 2-3/+16
`RIPEMD160` is used by node:crypto.
2022-12-28Fix build issue on latest zigGravatar Jarred Sumner 1-1/+1
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 10-267/+298
* @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-12-27emit `206 Partial Content` only for partial response (#1670)Gravatar Alex Lam S.L 1-1/+1
fixes #1668
2022-12-20[web] Support multiple arguments in `setTimeout`, `setInterval`, and ↵Gravatar Jarred Sumner 1-3/+60
`setImmediate`
2022-12-15[bun run] Include signal code on errorGravatar Jarred Sumner 1-38/+4
2022-12-11[Transpiler] Implement `minifyWhitespace` optionGravatar Jarred Sumner 1-0/+8
2022-12-11[internal] Change HashMap implementation for storing symbolsGravatar Jarred Sumner 3-3/+0
2022-12-10Implement simple version of inlining single-use expressions and statementsGravatar Jarred Sumner 1-0/+6
2022-12-07Update html_rewriter.zigbun-v0.3.0Gravatar Jarred Sumner 1-22/+19
2022-12-06add server scheduleDeinit, ignore logs in testGravatar Dylan Conway 1-2/+12
2022-12-06Fix glibc symbol version issues preventing `bun install` from being used in ↵Gravatar Jarred Sumner 1-2/+4
older glibc versions (#1580) * Prevent integer overflow in connectError * Add missing deepEquals() type to Bun * fix missing glibc symbols * Fix missing symbol issues * Try this * Update glibc-versions-hack.cpp * Update glibc-versions-hack.cpp * Update glibc-versions-hack.cpp Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-05Introduce `Bun.indexOfLine`Gravatar Jarred Sumner 1-0/+61
2022-12-04Update ffi.zigGravatar Jarred Sumner 1-6/+6
2022-12-04[breaking] `onExit` callback in Bun.spawn sets the first property to be the ↵Gravatar Jarred Sumner 1-3/+9
Subprocess object Sometimes Bun.spawn calls the onExit callback before the Bun.spawn() callback is called. Instead of delaying a tick, we set the `Subprocess` to be the first argument to the `onExit` callback now.
2022-12-04[Bun.spawn] Introduce `Subprocess.prototype.signalCode`Gravatar Jarred Sumner 2-39/+118
2022-12-04:scissors:Gravatar Jarred Sumner 3-3/+3
2022-12-04content-range is inclusiveGravatar Jarred Sumner 1-1/+1
2022-12-04[Bun.serve] Implement `Content-Range` support with `Bun.file()`Gravatar Jarred Sumner 1-13/+107
2022-12-02Run promise before callbackGravatar Jarred Sumner 1-13/+13
2022-12-02Close stdin earlierGravatar Jarred Sumner 1-0/+9
2022-12-02Fix incorrect panic in spawnSyncGravatar Jarred Sumner 1-1/+1
2022-12-01[bun bun] Fix crash in canaryGravatar Jarred Sumner 1-2/+2
2022-12-01Reduce memory usage in Bun.serve() by up to 3x (#1569)Gravatar Jarred Sumner 2-1/+13
* Update WebKit * Use 5x less memory in Bun.serve() * Update Dockerfile.devcontainer * Update async-overhead.mjs Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 9-122/+122
2022-11-28Handle when the process already exited immediatelyGravatar Jarred Sumner 1-1/+1
2022-11-28Fix failing spawn() and spawnSync() testsGravatar Jarred Sumner 1-25/+142
cc @ThatOneBro
2022-11-28Fix process.env and Bun.env object spreadGravatar Jarred Sumner 1-177/+20
Fixes https://github.com/oven-sh/bun/issues/1512
2022-11-27Fix `console.log(process.env)`Gravatar Jarred Sumner 1-20/+21
2022-11-27Fix handling `delete process.env.foo`Gravatar Jarred Sumner 1-1/+4
2022-11-27Don't make toJSON enumerable in process.envGravatar Jarred Sumner 1-27/+2
2022-11-26Make HTTP status text more consistent with other HTTP serversGravatar Jarred Sumner 1-2/+73
2022-11-25SimplifyGravatar Jarred Sumner 1-7/+5
2022-11-25Always watchGravatar Jarred Sumner 1-1/+2
2022-11-25Fix `Subprocess.prototype.killed`Gravatar Jarred Sumner 1-4/+18
2022-11-25Use new enum for checking writableGravatar Jarred Sumner 1-3/+3
2022-11-24Improve SIGPIPE handlingGravatar Jarred Sumner 1-17/+16
2022-11-24Use is_in_heap_region instead of _check_ownedGravatar Jarred Sumner 1-1/+1
2022-11-23nohang flagGravatar Jarred Sumner 1-1/+1
2022-11-23Close the streams moreGravatar Jarred Sumner 1-27/+32
2022-11-23possibly more reliable Bun.spawn (#1547)Gravatar Jarred Sumner 5-286/+280
* wip * wip * Fix bug with stdin * zig fmt * seems to work! * Update streams.test.js Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-22[FileSystemRouter] Fix reload()Gravatar Jarred Sumner 1-1/+2
2022-11-22Remove some dead codeGravatar Jarred Sumner 3-0/+4
2022-11-22[FileSystemRouter] Fix failing testsGravatar Jarred Sumner 1-1/+4
2022-11-22[FileSystemRouter] base_dir, Request, ResponseGravatar Jarred Sumner 3-10/+55