Jarred Sumner
c7cc618376
Fix leak in fd ( #3487 )
...
* 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-01 21:58:06 -07:00
Jarred Sumner
9fecb3dfb9
Bump
2023-07-01 21:10:55 -07:00
Jarred Sumner
6cae6ebafe
Make buffer.toString("base64") 4x faster ( #3486 )
...
* Add libbase64
* Add bench
* Update licensing.md
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-01 20:02:50 -07:00
Jarred Sumner
a2cca6e292
Update WebCoreJSBuiltins.cpp
2023-07-01 18:31:38 -07:00
Jarred Sumner
01d3b130a9
Update build-id
2023-07-01 17:44:40 -07:00
Jarred Sumner
f00e2be548
Use BunString in SystemError ( #3485 )
...
* 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-01 17:37:44 -07:00
Jarred Sumner
a4fe433db7
Slight fixup
2023-07-01 17:09:59 -07:00
Jarred Sumner
f3833376e7
small cleanup
2023-07-01 17:07:37 -07:00
Ai Hoshino
4720fa1207
[WIP]Fix calling Buffer.toString with (offset, length, encoding) ( #3467 )
...
* 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-01 17:01:52 -07:00
Jarred Sumner
df10252979
Make HTTP Request struct use 8 bytes less memory ( #3483 )
...
* 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-01 14:40:05 -07:00
Dylan Conway
c033d55c47
skip private class fields ( #3484 )
2023-07-01 14:38:38 -07:00
Alex Lam S.L
02f707f231
[jest] fix lifecycle hook execution order ( #3461 )
...
* [jest] fix lifecycle hook execution order
* strip `std.debug.assert()` from release build
2023-07-01 11:44:04 -07:00
dave caruso
d356cd5d48
implement perf_hooks.constants ( #3476 )
2023-06-30 14:58:38 -07:00
Stijn Van Hulle
b83faf8018
fix: export ClientRequest and OutgoingMessage as part of the node:http package ( #3470 )
2023-06-30 10:04:46 -07:00
Alex Lam S.L
2a73d3c793
[install] handle workspace: specifier correctly ( #3474 )
...
fixes #3430
2023-06-30 10:03:53 -07:00
Jarred Sumner
039bbc68ad
Add missing "prependListener" function
2023-06-29 21:24:55 -07:00
dave caruso
b9460087e3
Fixes node:http and node:stream so ytdl-core works. ( #3452 )
...
* 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-29 20:36:18 -07:00
Jarred Sumner
c42a00f9df
Fixes #3462 ( #3465 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-29 20:14:12 -07:00
Dylan Conway
76b9cae259
handle multiple redirects
2023-06-29 17:19:16 -07:00
Jarred Sumner
70a87e1181
Make node:os tmpdir more consistent with Node.js
2023-06-29 16:37:38 -07:00
Dylan Conway
7af757d104
add setters for Agent properties ( #3460 )
...
* make `Agent` properties public
* back to private, added setters
* change properties to public
2023-06-29 15:47:00 -07:00
Dylan Conway
9c66fdc703
[bundler] avoid printing unnecessary declarations ( #3456 )
...
* skip declarations without values
* tests
* deoptimize cjs when decls are needed
2023-06-29 14:51:24 -07:00
dave caruso
fec0d15c4f
cant believe i missed this ( #3453 )
2023-06-29 08:53:44 -07:00
Jarred Sumner
853e377159
Revert "[jest] fix lifecycle hook execution order ( #3447 )" ( #3455 )
...
This reverts commit 182e8aa139 .
2023-06-29 08:30:21 -07:00
Jarred Sumner
8984c81961
Prevent integer overflow
2023-06-28 21:57:31 -07:00
Jarred Sumner
c6f6db95ff
Ref the strings
2023-06-28 21:56:45 -07:00
Jarred Sumner
8481f2922f
Add GC test for errors
2023-06-28 21:45:16 -07:00
Jarred Sumner
68e6fe00a4
Use bun.String for ZigException ( #3451 )
...
* Use `bun.String` for `ZigException`
* woopsie
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-28 21:11:06 -07:00
Dylan Conway
3258bed1c0
use main field over module for runtime ( #3448 )
...
* use main field over module for runtime
* move flag to `Resolver`
* set `prefer_module_field` in `initWithModuleGraph`
2023-06-28 19:28:53 -07:00
dave caruso
0cee640199
export resolve6 from dns/promises ( #3450 )
2023-06-28 17:45:18 -07:00
Alex Lam S.L
182e8aa139
[jest] fix lifecycle hook execution order ( #3447 )
2023-06-28 16:27:15 -07:00
Jarred Sumner
945093ee7e
bump!
2023-06-28 16:22:46 -07:00
Jarred Sumner
292647bd53
Introduce await Bun.file(path).exists() ( #3446 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-28 16:09:08 -07:00
Jarred Sumner
42ded70336
[node:http] Stub _implicitHeader fn
2023-06-28 13:55:58 -07:00
Jarred Sumner
3d5573921e
Error.prototype.stack gets sourcemapped stacktraces and introduce 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 13:53:09 -07:00
Jarred Sumner
43752ec3f0
Fix assertion failure in escapeHTML with UTF-16 text ( #3436 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-28 11:27:31 -07:00
Silas Rech
e6e3d9e368
Fix .randomInt() export ( #3438 )
2023-06-28 11:27:02 -07:00
Alex Lam S.L
0de5bb22af
[install] workaround run-time module loading issue ( #3432 )
2023-06-28 01:20:59 -07:00
Dylan Conway
f670c0fc18
don't overwrite __esModule
2023-06-27 18:23:56 -07:00
Dylan Conway
09994d6067
add __esModule
2023-06-27 17:34:31 -07:00
Jarred Sumner
940c9a8185
Fix some checks
2023-06-27 16:16:47 -07:00
Dylan Conway
28d7507a5d
add todo comment
2023-06-27 14:55:13 -07:00
Jarred Sumner
4f34d48029
getIfPropertyExists is safer than getDirect ( #3391 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-27 13:42:25 -07:00
Dylan Conway
c78aa5a60f
fix macros
2023-06-27 13:23:01 -07:00
Jarred Sumner
2eb885c1d8
Regenerate
2023-06-27 08:24:35 -07:00
Ai Hoshino
1c46d88728
Fix node:util.callbackify ( #3428 )
...
* 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
2023-06-27 08:23:25 -07:00
Jarred Sumner
d220d9ee5a
Update NodeModuleModule.cpp
2023-06-27 08:21:04 -07:00
Jarred Sumner
e77f593b76
Update build-id
2023-06-27 08:14:34 -07:00
Alex Lam S.L
b305309e64
minor build diffs ( #3427 )
2023-06-27 14:05:59 +03:00
Jarred Sumner
c96f3b303b
Fix default export of "module" module
2023-06-26 20:39:15 -07:00