aboutsummaryrefslogtreecommitdiff
path: root/test/js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-07-20fix process.exit status code handling (#3714)Gravatar dave caruso 1-1/+0
2023-07-20Update process.test.jsGravatar Dylan Conway 1-2/+2
2023-07-20Update text-decoder.test.jsGravatar Jarred Sumner 1-1/+1
2023-07-20Pass constructor arguments to TextDecoder (#3692)Gravatar Julian 1-0/+19
* Make TextDecoder constructor use options parameter The constructor now actually sets TextDecoder properties using the options parameter. * Defer decoder allocation to end of constructor * Verify types of TextDecoder options * TextDecoder throw TypeError on failure * Tidying
2023-07-20fix start delay on Worker (#3707)Gravatar Ciro Spaciari 3-0/+30
* fix start delay on Worker * fmt * add delay test
2023-07-19Bump version to Bun v0.7.0Gravatar Jarred Sumner 1-1/+1
2023-07-19Support streams in response.formData() & request.formData, introduce ↵Gravatar Jarred Sumner 2-4/+173
Bun.readableStreamToFormData() (#3697) * codegen * FormData.from * Fixes #3225 * Introduce `Bun.readableStreamToFormData` * Update bun.d.ts * Add examples * add --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-19Inline`bun` object from workersGravatar Jarred Sumner 1-3/+1
2023-07-19Implement `AsyncLocalStorage` (#3089)Gravatar dave caruso 4-27/+631
* work to get async local storage working. * a * a * everything but queueMicrotask * sdfghj * . * finish * tests * test * ok * done * im so stupid * Upgrade WebKit * refactor * refactor * changes requested * oops * cool * fix runInAsyncScope
2023-07-19update root certificates and add tls.rootCertificates (#3688)Gravatar Ciro Spaciari 1-1/+13
* implement tls.rootCertificates * add test * bump uws/usockets * bump uws + .len on certs
2023-07-19fix createDecipheriv (#3680)Gravatar Ciro Spaciari 1-0/+18
* fix createDecipheriv * fix createDecipheriv iv and password validations
2023-07-18feature(constants) add constants/node:constants module and tests(prisma) use ↵Gravatar Ciro Spaciari 6-9/+40
prima 5.0.0 + use same connection for postgres, add prisma mssql (disabled for now) (#3672) * use prima 5.0.0 + use same connection for postgres * change mongodb test URL * constants module + mssql prisma test (disabled)
2023-07-18patch checkServerIdentity (#3671)Gravatar Ciro Spaciari 1-1/+6
2023-07-18[jest] execute lifecycle hooks on empty blocks (#3663)Gravatar Alex Lam S.L 1-11/+53
fixes #3494
2023-07-17Enable postgres prisma testGravatar Jarred Sumner 1-1/+1
2023-07-17Fix potential crash in process.dlopen()Gravatar Jarred Sumner 1-0/+10
2023-07-17[tls] General compatibility improvements (#3596)Gravatar Ciro Spaciari 2-1/+167
* wip * subjectaltname * more progress * bindings * fmt * getCert/getPeerCertificate * fix checkServerIdentity * fix checkServerIdentity * add a lot of TLSSocket functions * getEphemeralKeyInfo fix and comment * add alternative for getEphemeralKeyInfo * add get session and set session * fix isSessionReused * get back the raw data for MSSQL * fixeup * fixup getSession + tests * fix doc + fmt * getFinished/getPeerFinished * codegen * fixup * revert webkit * more fixes * ssl helper + revert test oops * asserts
2023-07-17workaround `readable-stream` compatibility (#3626)Gravatar Alex Lam S.L 1-1/+0
- update `bun link` tests - update `tests/bun.lockb` - drop unused import in test
2023-07-17Fix flaky process testGravatar Jarred SUmner 1-2/+2
2023-07-17Fix incorrect nameGravatar Jarred Sumner 1-2/+2
2023-07-17Fix crash in console.log(urlSearchParams) on a URLSearchParams object with a ↵Gravatar Jarred Sumner 1-0/+87
lot of keys
2023-07-16Fix testGravatar Jarred Sumner 1-2/+2
2023-07-16Fixes base64url encoding for crypto (#3654)Gravatar Jarred Sumner 1-0/+4
* Fixes base64url encoding for crypto * :green_apple: * Update nodejs-apis.md --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-16Implement Workers (#3645)Gravatar Jarred Sumner 4-0/+101
* copy files * format * options * Introduce `Worker`, `onmessage`, `onerror`, and `postMessage` globals * Stub `Worker.prototype.ref` & `Worker.prototype.unref` * Update web_worker.zig * Worker works * Add "mini" mode * add wakeup * Partially fix the keep-alive issue * clean up refer behavior * Implement `serialize` & `deserialize` in `bun:jsc` & add polyfill for `node:v8` * Types & docs * Update globals.d.ts * Add mutex * Fixes --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-14structured clone (#3637)Gravatar Dylan Conway 4-7/+257
* copy `SerializedScriptValue` * format * make `SerializedScriptValue` compile * add `transfer` option * tests * serialize/deserialize blobs * tests for blobs * serialize/deserialize file blobs * more tests * small cleanup * format * small changes + serialize offset * slice helper * map and set test
2023-07-13Implement `ping()`, `pong()`, `terminate()` for WebSocket client and server ↵Gravatar Ashcon Partovi 5-1180/+1260
(#3257)
2023-07-12feat(bun/test): Implement "bail" option for "bun test" (#3253)Gravatar Tiramify (A.K. Daniel) 1-0/+28
* 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-11Update process.test.jsGravatar Jarred Sumner 1-2/+2
2023-07-11Implement `process.kill` and `process._kill`Gravatar Jarred Sumner 1-0/+27
2023-07-11Testsjarred/throw-ifGravatar Jarred Sumner 1-0/+12
2023-07-11Merge branch 'jarred/fix-http-compression'Gravatar Jarred Sumner 1-0/+33
2023-07-11process signal events (#3569)Gravatar Dylan Conway 3-2/+102
* 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 2-0/+23
* `i + 1` and remove `defer` * a test * fix test
2023-07-11Fix: console.log with class constructors (#3602)Gravatar dave caruso 2-1/+13
* Fix console.log with class constructors * oops * fix it * lol * fix test
2023-07-11Merge branch 'main' into fix-httpGravatar Ai Hoshino 2-1/+31
2023-07-11small fix, check if the method has been reassigned.Gravatar Hanaasagi 1-1/+1
2023-07-10fix "readable" event being emitted incorrectly (#3475)Gravatar dave caruso 1-0/+23
* fix "readable" event being emitted incorrectly * fix impl and add test * changes * asdfghj * esm
2023-07-10feat(crypto) add getCurves (#3598)Gravatar Ciro Spaciari 1-1/+8
* add getCurves * add nodefallbacks * update docs * oops
2023-07-10Merge branch 'main' into fix-httpGravatar Ai Hoshino 3-2/+203
2023-07-10add testsGravatar Hanaasagi 1-0/+33
2023-07-09Fixes #3530 (#3587)Gravatar Jarred Sumner 1-0/+44
* 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 1-2/+140
* 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-09fix metadata bits of uuid (`randomUUID()`) (#3583)Gravatar Ai Hoshino 1-0/+19
* fix uuid version Close: https://github.com/oven-sh/bun/issues/3575 * add unittest * small fix * avoid unnecessary copying
2023-07-08Implement `process.on("beforeExit", cb)` and `process.on("exit", cb)` (#3576)Gravatar Jarred Sumner 6-3/+117
* 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-07fix decoding invalid UTF-8 input (#3563)Gravatar Ai Hoshino 1-0/+9
* 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 4-53/+58
* Update types * Remove caret
2023-07-07[node:fs] `read`, `write` - support large numbers and BigInt (#3556)Gravatar Jarred Sumner 1-0/+52
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-06Add util.toUSVStringGravatar Jarred Sumner 1-0/+17
2023-07-06fix query without slash (#3547)Gravatar Ciro Spaciari 1-0/+4
2023-07-05Fixes #3512 (#3526)Gravatar Jarred Sumner 7-8/+94
* Fixes #3512 * Fix `clearTimeout` and `clearInterval` not cancelling jobs same-tick --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>