aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-07-05Fix detect-libcGravatar Ashcon Partovi 7-4/+48
2023-07-05Fixes #3512 (#3526)Gravatar Jarred Sumner 1-28/+72
* Fixes #3512 * Fix `clearTimeout` and `clearInterval` not cancelling jobs same-tick --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-05Fixes #3515 (#3523)Gravatar Jarred Sumner 1-32/+1
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-05Fixes #3520 (#3522)Gravatar Jarred Sumner 1-18/+8
* Fixes #3520 * Update html_rewriter.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-04[tls] fix servername (#3513)Gravatar Ciro Spaciari 1-7/+41
* fix servername * add postgres tls tests * update test packages * add basic CRUD test
2023-07-04Add alias for readBigUInt64BE ... (#3514)Gravatar Ai Hoshino 1-4/+13
* Add alias for `readBigUInt64BE` ... Close: https://github.com/oven-sh/bun/issues/3338 * add some tests for `readBigUint64BE` alias * format code
2023-07-04Fix crashGravatar Jarred Sumner 1-5/+8
2023-07-04Fix napiGravatar Jarred SUmner 1-5/+79
2023-07-03Allow zero length WebSocket client & server messages (#3488)Gravatar Jarred Sumner 6-78/+75
* Allow zero length WebSocket client & server messages * Add test * Clean this up a little * Clean up these tests a little * Hopefully fix the test failure in release build * Don't copy into the receive buffer * Less flaky --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-03[fix] patch fs.watch sym link (#3481)Gravatar Ciro Spaciari 1-1/+1
* oopsie * add tests --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-07-03Fixes #3317Gravatar Jarred Sumner 1-7/+10
2023-07-03Fixes #3508Gravatar Jarred Sumner 2-1/+29
2023-07-03[tls] add socket parameter, setServername and ALPNprotocols support (#3457)Gravatar Ciro Spaciari 10-67/+795
* add socket parameter support * refactor #socket * add test and more fixs * some fixes * bump uws * handlers fix * more fixes * fix node net and node tls tests * fix duplicate port * fix deinit on CallbackJobs * cleanup * add setImmediate repro * add test to setImmediate * this is necessary? * fix prependOnce on native listener * try to findout the error on nodemailer CI * show error message * Update bun.lockb * prettier * Use exact versions of packages * add alpnProtocol support * update * emit error when connect fails on net.Socket * format * fix _write and cleanup * fixup * fix connect, add alpn test * fix socket.io * add socket parameter to TLSSocket * add TLSSocket socket first parameter * fixup and _start * remove flask tests * fmt --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-02Stub out `useFakeTimers` and `useRealTimers`Gravatar Jarred Sumner 2-3/+40
2023-07-02Support mocking `new Date()` & `Date.now()` in bun:test (#3501)Gravatar Jarred Sumner 3-0/+29
* Support changing the time * Bump WebKit * Update bun.lockb --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-02Fixes #3499Gravatar Jarred Sumner 1-9/+7
2023-07-02Add commentGravatar Jarred Sumner 1-0/+4
2023-07-02Use fast path for Base64 in `btoa` (#3504)Gravatar Jarred Sumner 1-21/+53
* Use fast path for Base64 in `atob` * Fix utf16, crash on linux --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-02[node:buffer] Implement `isUtf8` and `isAscii` (#3498)Gravatar Jarred Sumner 1-0/+130
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-02fix zero length env var (#3496)Gravatar dave caruso 1-2/+2
2023-07-02Fixes #3495Gravatar Jarred Sumner 1-4/+0
2023-07-02Fixes #3489 (#3490)Gravatar Jarred Sumner 1-27/+8
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-01Fix leak in fd (#3487)Gravatar Jarred Sumner 2-1/+18
* Fix file descriptor leak * Skip unnecessary clone * Don't break --hot --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-01Make `buffer.toString("base64")` 4x faster (#3486)Gravatar Jarred Sumner 1-2/+2
* Add libbase64 * Add bench * Update licensing.md --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-01Use `BunString` in `SystemError` (#3485)Gravatar Jarred Sumner 16-135/+187
* Use `BunString` in SystemError * Use Bun::toStringRef when we will de-ref strings * Move `napi_create_error` to C++ to support `code` being a Symbol potentially * Update blob.zig * Make this test less flaky --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-01Slight fixupGravatar Jarred Sumner 1-2/+8
2023-07-01small cleanupGravatar Jarred Sumner 1-12/+21
2023-07-01[WIP]Fix calling `Buffer.toString` with `(offset, length, encoding)` (#3467)Gravatar Ai Hoshino 1-27/+40
* Allow `toString` to be called with `(offset, length, encoding)`. Close: #3085 * handle undefined value * add tests for buffer.xxxSlice * fix parameters * fix offset and length
2023-07-01Make HTTP Request struct use 8 bytes less memory (#3483)Gravatar Jarred Sumner 1-134/+137
* Make HTTP Request struct use 8 bytes less memory * Update server.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-01skip private class fields (#3484)Gravatar Dylan Conway 1-6/+6
2023-07-01[jest] fix lifecycle hook execution order (#3461)Gravatar Alex Lam S.L 1-82/+119
* [jest] fix lifecycle hook execution order * strip `std.debug.assert()` from release build
2023-06-29Add missing "prependListener" functionbun-v0.6.12Gravatar Jarred Sumner 1-1/+1
2023-06-29Fixes `node:http` and `node:stream` so `ytdl-core` works. (#3452)Gravatar dave caruso 3-5/+9
* fix crash in readablestate * make node:https request+get actually use https * use a native readablestream in IncomingMessage * tweaks * fix abort crash * emit close by default * remove abort. this isnt a real function * add validate functions, fixup some other requested changes. not done yet * Update WebCoreJSBuiltins.cpp * Update JSReadableState.cpp * Add some missing exports --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-29Make `node:os` `tmpdir` more consistent with Node.jsGravatar Jarred Sumner 1-26/+2
2023-06-29Revert "[jest] fix lifecycle hook execution order (#3447)" (#3455)Gravatar Jarred Sumner 1-96/+66
This reverts commit 182e8aa1392af9ba92beccce06f49f8e4593fe5c.
2023-06-28Prevent integer overflowGravatar Jarred Sumner 1-2/+2
2023-06-28Ref the stringsGravatar Jarred Sumner 1-2/+9
2023-06-28Add GC test for errorsGravatar Jarred Sumner 3-4/+8
2023-06-28Use `bun.String` for `ZigException` (#3451)Gravatar Jarred Sumner 6-139/+170
* Use `bun.String` for `ZigException` * woopsie --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-28use main field over module for runtime (#3448)Gravatar Dylan Conway 1-0/+2
* use main field over module for runtime * move flag to `Resolver` * set `prefer_module_field` in `initWithModuleGraph`
2023-06-28[jest] fix lifecycle hook execution order (#3447)Gravatar Alex Lam S.L 1-66/+96
2023-06-28Introduce `await Bun.file(path).exists()` (#3446)Gravatar Jarred Sumner 4-0/+64
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-28Error.prototype.stack gets sourcemapped stacktraces and introduce ↵Gravatar Jarred Sumner 3-38/+200
Error.appendStackTrace (#3441) * Fix potential crash when reading sourcemapped stack traces * Format & sourcemap Error.prototype.stack * prevent double sourcemapping * Introduce Error.appendStackTrace * Fix source url * hide private stack traces in non-debug builds * fixes #3443 * Bump WebKit * Fix test failure in vm.test * Support new() & add test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-28[install] workaround run-time module loading issue (#3432)Gravatar Alex Lam S.L 1-6/+0
2023-06-27Fix some checksGravatar Jarred Sumner 1-3/+3
2023-06-27getIfPropertyExists is safer than getDirect (#3391)Gravatar Jarred Sumner 1-16/+17
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-27Update NodeModuleModule.cppGravatar Jarred Sumner 1-2/+5
2023-06-26Fix default export of `"module"` modulebun-v0.6.10Gravatar Jarred Sumner 1-46/+56
2023-06-26fix #3412 (#3422)Gravatar dave caruso 1-4/+8
2023-06-26webpack test and add empty `prototype` prop to module (#3421)Gravatar Dylan Conway 1-3/+6