aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-12fix missing error pageGravatar Jarred Sumner 1-3/+3
2023-01-12woopsGravatar Jarred Sumner 1-0/+4
2023-01-12missingGravatar Jarred Sumner 1-22/+45
2023-01-11[Bun.serve] Introduce publishToSelf boolean on websocket: {} config objectGravatar Jarred SUmner 1-45/+81
2023-01-11`require.resolve` in the runtime should use CommonJS export conditionsGravatar Jarred Sumner 1-3/+18
2023-01-10[TCPSocket] Add a log for write()Gravatar Jarred Sumner 1-1/+3
2023-01-10don't call add_server-name if len is not >0Gravatar Jarred Sumner 1-1/+2
2023-01-10Allow `tls: true` in Bun.connectGravatar Jarred Sumner 2-18/+45
2023-01-09[dns] Fix UAFGravatar Jarred Sumner 1-15/+27
2023-01-09Cleanup error handling in Bun.listenGravatar Jarred Sumner 1-90/+121
2023-01-08Add welcome page when viewed from a browserGravatar Jarred Sumner 2-30/+46
2023-01-08[internal] Fix checking for Error objectGravatar Jarred Sumner 3-19/+19
2023-01-07Workaround macOS issueGravatar Jarred Sumner 1-1/+12
2023-01-07[Bun.connect] Fix bug where connect() Promise wouldn't reject on a ↵Gravatar Jarred Sumner 1-10/+23
connection error
2023-01-07Fix segfault on Linux when getaddrinfo returns an error\nSee ↵Gravatar Jarred SUmner 1-1/+4
https://github.com/ziglang/zig/pull/14242
2023-01-07Mark more things as only macGravatar Jarred Sumner 1-0/+8
2023-01-07Don't include this symbol on linuxGravatar Jarred Sumner 1-0/+3
2023-01-07Implement DNS module (#1691)Gravatar Jarred Sumner 1-0/+1371
* 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-05[socket] fix double-free in `finalize()` (#1731)Gravatar Alex Lam S.L 1-13/+10
- tidy up `.isEmptyOrUndefinedOrNull()` usage
2023-01-05fix `onConnectError()` error propagation (#1730)Gravatar Alex Lam S.L 1-2/+2
* fix `onConnectError()` error propagation suppress extraneous logging messages * Update src/bun.js/api/bun/socket.zig Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
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