aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-07-12feat(bun/test): Implement "bail" option for "bun test" (#3253)Gravatar Tiramify (A.K. Daniel) 3-4/+44
* Implement bun test --bail * Fixes * move printSummary() (more readable) * Fixes 2 * idk why it got deleted * Fixes 3 * fmt this better * Update test_command.zig * Fix "0 files" * track number of files so bailing out early prints the right number --------- Co-authored-by: dave caruso <me@paperdave.net>
2023-07-12Update build-idGravatar Jarred Sumner 1-1/+1
2023-07-11Fix another crash in Error.captureStackTrace (#3611)bun-v0.6.14Gravatar Jarred Sumner 2-20/+10
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-11Fix crash on linux when throwing SystemError from C++Gravatar Jarred SUmner 3-31/+47
2023-07-11Update ZigGlobalObject.cppGravatar Jarred Sumner 1-1/+1
2023-07-11Implement `process.kill` and `process._kill`Gravatar Jarred Sumner 3-222/+302
2023-07-11Fixes #3595Gravatar Jarred Sumner 1-1/+19
2023-07-11typo (#3610)Gravatar dave caruso 1-1/+1
2023-07-11fix #3597 (#3609)Gravatar Dylan Conway 2-1/+24
* fix #3597 * Update http.ts * initialize to true
2023-07-11Implement throwIfNoEntryGravatar Jarred Sumner 1-8/+43
2023-07-11Merge branch 'jarred/fix-http-compression'Gravatar Jarred Sumner 2-3/+27
2023-07-11Avoid Object.getPrototypeOfjarred/fix-http-compressionGravatar Jarred Sumner 2-6/+22
2023-07-11process signal events (#3569)Gravatar Dylan Conway 9-90/+250
* 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-11fix iterating stack trace (#3600)Gravatar Dylan Conway 1-3/+3
* `i + 1` and remove `defer` * a test * fix test
2023-07-11Fix: console.log with class constructors (#3602)Gravatar dave caruso 3-41/+52
* Fix console.log with class constructors * oops * fix it * lol * fix test
2023-07-11use `Object.getPrototypeOf`Gravatar Hanaasagi 2-6/+3
2023-07-11Merge branch 'main' into fix-httpGravatar Ai Hoshino 7-163/+220
2023-07-11small fix, check if the method has been reassigned.Gravatar Hanaasagi 2-4/+11
2023-07-10fix "readable" event being emitted incorrectly (#3475)Gravatar dave caruso 4-158/+159
* fix "readable" event being emitted incorrectly * fix impl and add test * changes * asdfghj * esm
2023-07-10feat(crypto) add getCurves (#3598)Gravatar Ciro Spaciari 3-5/+61
* add getCurves * add nodefallbacks * update docs * oops
2023-07-10ignore checkGravatar Hanaasagi 1-2/+2
2023-07-10Merge branch 'main' into fix-httpGravatar Ai Hoshino 26-565/+1498
2023-07-10call `writeHead` before send headersGravatar Hanaasagi 1-1/+5
Close: #3585
2023-07-10Fixes #3588 (#3590)Gravatar Jarred Sumner 2-63/+149
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-10trim node:stream a littleGravatar Jarred Sumner 3-16/+38
2023-07-09Fixes #3530 (#3587)Gravatar Jarred Sumner 4-26/+89
* Fixes #3530 * Handle OOM * Add test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-09Implement process.memoryUsage() and process.cpuUsage() (#3586)Gravatar Jarred Sumner 5-58/+447
* 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-09Implement nearly all of `process` object methods and properties (#3581)Gravatar Jarred Sumner 10-450/+812
* Add special case * Make process object load faster * Fix openStdin --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-09fix metadata bits of uuid (`randomUUID()`) (#3583)Gravatar Ai Hoshino 5-11/+22
* fix uuid version Close: https://github.com/oven-sh/bun/issues/3575 * add unittest * small fix * avoid unnecessary copying
2023-07-08Handle case with TS decorators and export default anonymous class (#3578)Gravatar Jarred Sumner 1-1/+11
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-08Implement `process.on("beforeExit", cb)` and `process.on("exit", cb)` (#3576)Gravatar Jarred Sumner 7-75/+285
* 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-08Fix bug with decorators not being generated in `export default class` (#3577)Gravatar Jarred Sumner 1-1/+12
* 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-07Add assertionGravatar Jarred Sumner 1-0/+3
2023-07-07Use BunString in JSBundlerPlugin (#3557)Gravatar Jarred Sumner 3-41/+67
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-07Fix potential coercion issue (#3558)Gravatar Jarred Sumner 1-1/+8
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-07fix decoding invalid UTF-8 input (#3563)Gravatar Ai Hoshino 1-2/+2
* fix decoding invalid UTF-8 input Close: https://github.com/oven-sh/bun/issues/3562 * add unittest
2023-07-07Update types, partially fix `typecheck` (#3551)Gravatar Colin McDonnell 11-14/+24
* Update types * Remove caret
2023-07-07Add obscure HTTP methods (#3553)Gravatar Jarred Sumner 2-17/+85
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-07[node:fs] `read`, `write` - support large numbers and BigInt (#3556)Gravatar Jarred Sumner 2-27/+28
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-06Remove unnecessary `@setRuntimeSafety(false)`Gravatar Jarred Sumner 1-8/+8
2023-07-06add `[dir]` to defaultGravatar Dylan Conway 1-1/+1
2023-07-06Add util.toUSVStringGravatar Jarred Sumner 2-1/+10
2023-07-06Minify zlib because its hugeGravatar Jarred Sumner 2-2552/+2
2023-07-06Add missing export in `url`Gravatar Jarred Sumner 3-366/+3
2023-07-06refactor (#3543)Gravatar Ciro Spaciari 9-131/+53
2023-07-06fixes #3544 (#3549)Gravatar Dylan Conway 1-0/+1
2023-07-06fix query without slash (#3547)Gravatar Ciro Spaciari 1-10/+10
2023-07-06Fixes #3537 (#3539)Gravatar Jarred Sumner 1-10/+41
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-05don't unwrap react below version `18.0.0` (#3538)Gravatar Dylan Conway 2-5/+24
* don't unwrap react below version 18 * empty string * also `react-dom`
2023-07-05fix callbacks on release version (#3531)Gravatar Ciro Spaciari 2-31/+27