aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
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-05Really fix #1722Gravatar Jarred Sumner 1-2/+40
2023-01-05improve `.toThrow()` compatibility with Jest (#1728)Gravatar Alex Lam S.L 1-16/+32
2023-01-04implement `expect().toThrow()` (#1727)Gravatar Alex Lam S.L 2-34/+106
- fix bugs in `JSBufferList` - add tests
2023-01-04Add `SharedBuffer` from WebKit to make it easier to import more WebCore stuffGravatar Jarred Sumner 2-0/+1111
2023-01-04Fix default export for streamGravatar Jarred Sumner 1-11/+4
cc @alexlamsl
2023-01-04Fixes #1722Gravatar Jarred Sumner 1-1/+2
2023-01-04buffer list clean-ups (#1721)Gravatar Alex Lam S.L 1-37/+68
2023-01-04Support non-classes in node:net (#1712)Gravatar Jarred Sumner 1-198/+216
* Support non-classes * Update net.exports.js * Make it less observable * Update net.exports.js Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-04Fixes #1716Gravatar Jarred Sumner 1-2/+2
2023-01-0410x faster `new Buffer` (#1717)Gravatar Jarred Sumner 16-444/+451
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-03[streams] speed up `Readable` in some cases (#1708)Gravatar Alex Lam S.L 2-14/+29
If `encoding` is set, no `Buffer`s would be exposed thus `Uint8Array` can be used directly. - fix data corruption in `BufferList.concat()` - fix segfaults in `BufferList.join()`
2023-01-03Fix crash in BufferListGravatar Jarred Sumner 1-2/+2
2023-01-03Stub out missing napi functions and include error messageGravatar Jarred Sumner 1-1/+1
2023-01-02[socket] handle `connectError` (#1705)Gravatar Alex Lam S.L 2-85/+89
assorted clean-ups & fixes
2023-01-02Support any `ArrayBufferView` in StringDecoderGravatar Jarred Sumner 1-10/+20
2023-01-02implement `net.Socket` (#1701)Gravatar Alex Lam S.L 2-3/+257
- support TCP sockets for now, i.e. no IPC - extra features like keep-alive, no-delay etc. are absent due to limitations of uSockets - fix `jest` to treat `done(nullish)` as success
2023-01-02Upgrade simdutfGravatar Jarred Sumner 2-518/+720
Thanks @lemire
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 12-143/+124
2023-01-01test crypto.randomBytes returns a BufferGravatar Jarred Sumner 1-31/+3
2023-01-01Handle extremely unlikely edgecaseGravatar Jarred SUmner 1-10/+21
2023-01-01Make asPromise() and asInternalPromise() safer, but slowerGravatar Jarred SUmner 1-2/+2
2023-01-01Update bindings.zigGravatar Jarred Sumner 1-4/+0
2023-01-01[internal] Add more bindingsGravatar Jarred Sumner 7-10/+132
2022-12-31[jest] fix and improve hooks (#1689)Gravatar Alex Lam S.L 1-3/+49
- wait for async hooks to complete before running tests - add support for `done(err)` callbacks in hooks fixes #1688
2022-12-30Upgrade WebKitGravatar Jarred Sumner 3-2/+2
2022-12-30More assertionsGravatar Jarred Sumner 2-5/+5
2022-12-29[node:crypto] 50x faster `createHash`Gravatar Jarred Sumner 1-42/+70
2022-12-29Introduce `Bun.CryptoHasher`Gravatar Jarred Sumner 14-193/+959
2022-12-29[node] Implement `process.uptime` and `process.umask`Gravatar Jarred Sumner 1-5/+36
2022-12-28Implement `Bun.RIPEMD160`Gravatar Jarred Sumner 10-13/+482
`RIPEMD160` is used by node:crypto.
2022-12-28[WebSocket] Implement `headers` supportGravatar Jarred Sumner 5-13/+110
Fixes https://github.com/oven-sh/bun/issues/1676
2022-12-28Add `crypto` module from browserifyGravatar Jarred Sumner 2-1/+27959
2022-12-28Move some code upGravatar Jarred Sumner 4-17/+11
2022-12-28Fix `ReadableStream.pipeTo`Gravatar Jarred Sumner 2-3/+3
2022-12-28log object string correctly (#1674)Gravatar Alex Lam S.L 2-14/+13
use `Symbol.toStringTag` of the object or that of its `.prototype` fixes #1584
2022-12-28Fix build issue on latest zigGravatar Jarred Sumner 2-4/+4
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 51-2065/+4776
* @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-23Disable optimizationGravatar Jarred Sumner 1-61/+62
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-21fix jest hooks in bun-test (#1639)Gravatar Ethan Burrell 1-2/+3
* fix(jest) fix broken jest hooks * add tests
2022-12-20Update ZigGlobalObject.cppGravatar Jarred Sumner 1-3/+3
2022-12-20typoGravatar Jarred Sumner 1-3/+3
2022-12-20[web] Support multiple arguments in `setTimeout`, `setInterval`, and ↵Gravatar Jarred Sumner 5-10/+139
`setImmediate`
2022-12-19New subcommand: `bunx` (#1634)Gravatar Jarred Sumner 1-4/+1
* Implement `bunx` * copy cleanup Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-19[Bun.write] Slightly better handling for older linux kernels that lack ↵Gravatar Jarred Sumner 1-2/+2
io_uring support If io_uring is unsupported, we do the writes synchronously even if they're huge