Jarred Sumner
34b0e7a2bb
Update ZigGlobalObject.cpp
2023-07-11 19:06:49 -07:00
Jarred Sumner
c5f2280489
Implement process.kill and process._kill
2023-07-11 19:06:01 -07:00
Jarred Sumner
a686b3bfc1
Fixes #3595
2023-07-11 19:00:51 -07:00
dave caruso
a1fb289c96
typo ( #3610 )
2023-07-11 18:50:34 -07:00
Dylan Conway
8ca2194a37
fix #3597 ( #3609 )
...
* fix #3597
* Update http.ts
* initialize to true
2023-07-11 18:49:35 -07:00
Jarred Sumner
854ddaa909
Implement throwIfNoEntry
2023-07-11 17:44:29 -07:00
Jarred Sumner
fd4c8fb871
Merge branch 'jarred/fix-http-compression'
2023-07-11 13:09:37 -07:00
Jarred Sumner
bab58b7541
Avoid Object.getPrototypeOf
2023-07-11 13:07:03 -07:00
Dylan Conway
5c8726d602
process signal events ( #3569 )
...
* signal events
* simple tests
* ignore SIGSTOP
* better tests
* use `EventEmitter`
* use `Bun__getDefaultGlobal`
* progress
* don't use 'Bun__getDefaultGlobal`
* fix tests
* remove signals from map
* update tests
* don't overwrite event emitter methods
* avoid two lookups
* use `std::once`
* releaseEarly()
* Remove signal handler after use
* Update call-raise.js
* Create process-signal-handler.fixture.js
* Don't register duplicates
* Add missing lock
* another test
* update test
* revert some changes
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-11 12:48:46 -07:00
Dylan Conway
ae7bc37e94
fix iterating stack trace ( #3600 )
...
* `i + 1` and remove `defer`
* a test
* fix test
2023-07-11 12:48:32 -07:00
dave caruso
31ab56d362
Fix: console.log with class constructors ( #3602 )
...
* Fix console.log with class constructors
* oops
* fix it
* lol
* fix test
2023-07-11 12:48:19 -07:00
Hanaasagi
c4c5eb2d32
use Object.getPrototypeOf
2023-07-11 21:31:49 +09:00
Ai Hoshino
e7afae305c
Merge branch 'main' into fix-http
2023-07-11 19:35:11 +08:00
Hanaasagi
17031936c8
small fix, check if the method has been reassigned.
2023-07-11 20:32:09 +09:00
dave caruso
b2c576bba2
fix "readable" event being emitted incorrectly ( #3475 )
...
* fix "readable" event being emitted incorrectly
* fix impl and add test
* changes
* asdfghj
* esm
2023-07-10 18:25:20 -07:00
Ciro Spaciari
4af4b508a1
feat(crypto) add getCurves ( #3598 )
...
* add getCurves
* add nodefallbacks
* update docs
* oops
2023-07-10 17:14:37 -07:00
Hanaasagi
0c2df4ae01
ignore check
2023-07-10 22:33:07 +09:00
Ai Hoshino
cc0d920018
Merge branch 'main' into fix-http
2023-07-10 21:12:00 +08:00
Hanaasagi
c6e1135548
call writeHead before send headers
...
Close : #3585
2023-07-10 21:35:10 +09:00
Jarred Sumner
ec11170311
Fixes #3588 ( #3590 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-10 02:21:03 -07:00
Jarred Sumner
93b0e94410
trim node:stream a little
2023-07-10 01:26:02 -07:00
Jarred Sumner
963d4311e6
Fixes #3530 ( #3587 )
...
* Fixes #3530
* Handle OOM
* Add test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-09 22:36:24 -07:00
Jarred Sumner
2f5e4fffe9
Implement process.memoryUsage() and process.cpuUsage() ( #3586 )
...
* Implement process.memoryUsage() and process.cpuUsage()
* Avoid mi_process_info
* Update bench
* Update Process.cpp
* fixup
* More tests + linux fixup
* Skip it for now since it seems less accurate
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-09 21:50:19 -07:00
Jarred Sumner
ca42c820d2
Implement nearly all of process object methods and properties ( #3581 )
...
* Add special case
* Make process object load faster
* Fix openStdin
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-09 16:33:49 -07:00
Ai Hoshino
565d1689e9
fix metadata bits of uuid (randomUUID()) ( #3583 )
...
* fix uuid version
Close: https://github.com/oven-sh/bun/issues/3575
* add unittest
* small fix
* avoid unnecessary copying
2023-07-09 07:20:52 -07:00
Jarred Sumner
59570fe237
Handle case with TS decorators and export default anonymous class ( #3578 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-08 17:41:24 -07:00
Jarred Sumner
aa8b832ef6
Implement process.on("beforeExit", cb) and process.on("exit", cb) ( #3576 )
...
* Support `process.on('beforeExit')` and `process.on('exit')`
* [bun:sqlite] Always call sqlite3_close on exit
* Update process.test.js
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-08 14:26:19 -07:00
Jarred Sumner
fa632c3331
Fix bug with decorators not being generated in export default class ( #3577 )
...
* Fix bug with decorators not being generated in `export default class`
* Update decorator-export-default-class-fixture.ts
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-08 04:00:55 -07:00
Jarred Sumner
5846ad00ed
Add assertion
2023-07-07 22:01:58 -07:00
Jarred Sumner
52b7962dae
Use BunString in JSBundlerPlugin ( #3557 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-07 21:20:30 -07:00
Jarred Sumner
67ee498861
Fix potential coercion issue ( #3558 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-07 20:12:39 -07:00
Ai Hoshino
c0cf7b4501
fix decoding invalid UTF-8 input ( #3563 )
...
* fix decoding invalid UTF-8 input
Close: https://github.com/oven-sh/bun/issues/3562
* add unittest
2023-07-07 15:10:49 -07:00
Colin McDonnell
affd06d05c
Update types, partially fix typecheck ( #3551 )
...
* Update types
* Remove caret
2023-07-07 15:10:33 -07:00
Jarred Sumner
7ab8d832fb
Add obscure HTTP methods ( #3553 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-07 00:38:18 -07:00
Jarred Sumner
0ecdbf4793
[node:fs] read, write - support large numbers and BigInt ( #3556 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-07 00:33:43 -07:00
Jarred Sumner
284aaec3cd
Remove unnecessary @setRuntimeSafety(false)
2023-07-06 23:50:32 -07:00
Dylan Conway
9bebb7f03d
add [dir] to default
2023-07-06 20:51:41 -07:00
Jarred Sumner
4d2c86fd5c
Add util.toUSVString
2023-07-06 17:08:01 -07:00
Jarred Sumner
d905dbe214
Minify zlib because its huge
2023-07-06 16:50:03 -07:00
Jarred Sumner
038ca83004
Add missing export in url
2023-07-06 16:49:41 -07:00
Ciro Spaciari
954b6fcaf3
refactor ( #3543 )
2023-07-06 13:55:27 -07:00
Dylan Conway
abe095dd1e
fixes #3544 ( #3549 )
2023-07-06 13:55:00 -07:00
Ciro Spaciari
95ddfcc437
fix query without slash ( #3547 )
2023-07-06 12:01:16 -07:00
Jarred Sumner
ee57935260
Fixes #3537 ( #3539 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-06 00:06:43 -07:00
Dylan Conway
6bf8f6f9f2
don't unwrap react below version 18.0.0 ( #3538 )
...
* don't unwrap react below version 18
* empty string
* also `react-dom`
2023-07-05 22:23:32 -07:00
Ciro Spaciari
8869bac411
fix callbacks on release version ( #3531 )
2023-07-05 22:22:56 -07:00
Dylan Conway
f61d9ef476
Update websocket_http_client.zig
2023-07-05 12:45:20 -07:00
Jarred Sumner
3aaec120e7
Fixes #3512 ( #3526 )
...
* 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-05 03:46:10 -07:00
Jarred Sumner
c864976da6
Fixes #3515 ( #3523 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-05 01:21:35 -07:00
Jarred Sumner
a7f5a91cfb
Fixes #3520 ( #3522 )
...
* Fixes #3520
* Update html_rewriter.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-05 00:08:59 -07:00