aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
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 2-28/+29
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-01BumpGravatar Jarred Sumner 1-1/+15
2023-07-01Make `buffer.toString("base64")` 4x faster (#3486)Gravatar Jarred Sumner 3-3/+21
* Add libbase64 * Add bench * Update licensing.md --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-01Update WebCoreJSBuiltins.cppGravatar Jarred Sumner 1-125/+125
2023-07-01Update build-idGravatar Jarred Sumner 1-1/+1
2023-07-01Use `BunString` in `SystemError` (#3485)Gravatar Jarred Sumner 19-151/+203
* 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 2-108/+117
2023-07-01[WIP]Fix calling `Buffer.toString` with `(offset, length, encoding)` (#3467)Gravatar Ai Hoshino 2-43/+56
* 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-30implement perf_hooks.constants (#3476)Gravatar dave caruso 1-0/+15
2023-06-30fix: export `ClientRequest` and `OutgoingMessage` as part of the `node:http` ↵Gravatar Stijn Van Hulle 1-0/+2
package (#3470)
2023-06-30[install] handle `workspace:` specifier correctly (#3474)Gravatar Alex Lam S.L 5-8/+9
fixes #3430
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 17-256/+405
* 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-29Fixes #3462 (#3465)Gravatar Jarred Sumner 2-0/+32
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-29handle multiple redirectsGravatar Dylan Conway 1-2/+11
2023-06-29Make `node:os` `tmpdir` more consistent with Node.jsGravatar Jarred Sumner 3-30/+35
2023-06-29add setters for `Agent` properties (#3460)Gravatar Dylan Conway 3-202/+111
* make `Agent` properties public * back to private, added setters * change properties to public
2023-06-29[bundler] avoid printing unnecessary declarations (#3456)Gravatar Dylan Conway 2-79/+41
* skip declarations without values * tests * deoptimize cjs when decls are needed
2023-06-29cant believe i missed this (#3453)Gravatar dave caruso 1-0/+1
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 10-143/+198
* 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 2-1/+10
* use main field over module for runtime * move flag to `Resolver` * set `prefer_module_field` in `initWithModuleGraph`
2023-06-28export resolve6 from dns/promises (#3450)Gravatar dave caruso 1-0/+2
2023-06-28[jest] fix lifecycle hook execution order (#3447)Gravatar Alex Lam S.L 1-66/+96
2023-06-28bump!Gravatar Jarred Sumner 1-1/+1
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-28[node:http] Stub `_implicitHeader` fnGravatar Jarred Sumner 2-0/+10
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-28Fix assertion failure in escapeHTML with UTF-16 text (#3436)Gravatar Jarred Sumner 1-10/+5
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-28Fix .randomInt() export (#3438)Gravatar Silas Rech 2-2/+2
2023-06-28[install] workaround run-time module loading issue (#3432)Gravatar Alex Lam S.L 3-27/+46
2023-06-27don't overwrite `__esModule`Gravatar Dylan Conway 2-79/+83
2023-06-27add `__esModule`Gravatar Dylan Conway 2-117/+119
2023-06-27Fix some checksGravatar Jarred Sumner 1-3/+3
2023-06-27add todo commentGravatar Dylan Conway 1-0/+2
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-27fix macrosGravatar Dylan Conway 1-1/+1
2023-06-27RegenerateGravatar Jarred Sumner 1-3/+3
2023-06-27Fix `node:util.callbackify` (#3428)Gravatar Ai Hoshino 1-2/+3
* remove the incorrect parameters Close: https://github.com/oven-sh/bun/issues/3424 * fix error code * add callbackify tests * fix function type * ensure `done` is called when error occurred