aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-08Add napi to process.versionsGravatar Jarred Sumner 1-1/+2
2023-01-08Update process.versionsGravatar Jarred Sumner 3-35/+54
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 6-19/+44
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-07very simple node:dns implementationGravatar Jarred Sumner 3-0/+445
completely untested
2023-01-07Implement DNS module (#1691)Gravatar Jarred Sumner 15-43/+1664
* 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-05lazily create buffer/string slices (#1735)Gravatar Alex Lam S.L 2-33/+120
2023-01-05always report rejected promisesGravatar Jarred Sumner 1-1/+1
2023-01-05Clean up some napi codeGravatar Jarred Sumner 1-45/+78
2023-01-05napi_boolean -> napi_numberGravatar Jarred Sumner 1-1/+1
2023-01-05Fixes #1733Gravatar Jarred Sumner 1-10/+78
2023-01-05[socket] fix double-free in `finalize()` (#1731)Gravatar Alex Lam S.L 3-53/+45
- 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-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