aboutsummaryrefslogtreecommitdiff
path: root/test/js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-07-23Fix bugs with connecting to localhost (#3758)Gravatar Jarred Sumner 2-3/+3
* Fix bugs with connecting to localhost * Update uws * More logs * Allow not setting a hostname * Make server.hostname & server.protocol faster * Fixup * normalize listening host * Fix test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-22[install] improve workspace substitution of npm dependencies (#3754)Gravatar Alex Lam S.L 1-1/+1
- respect semver ranges
2023-07-22Fixes ↵Gravatar Jarred Sumner 1-0/+53
https://discord.com/channels/876711213126520882/1131175053409656833/1131175053409656833 @tr1ckydev this fixes the issue you ran into, see the diff for an example usage of a Bun.plugin that makes a network request on import.
2023-07-22fix path.format for `vite build` (#3734)Gravatar dave caruso 1-1/+5
* fix path.format for vite * Update path.test.js --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-22Fix `writeFileSync` when the mode is greater than 0o777. (#3747)Gravatar Ai Hoshino 1-1/+6
Close: #3740
2023-07-22Fixes #3744Gravatar Jarred Sumner 1-1/+17
2023-07-22Unified event loop (#3741)Gravatar Jarred Sumner 6-0/+273
* Unified event loop * Update WebKit, add test for es-module-lexer * Update README.md * Use async wasm * Explicitly set whether concurrenttask should be deinit'd * Update package.json --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-21Use WebKit's URL parser in fetch() and `bun install` (#3730)Gravatar Jarred Sumner 1-1/+1
* Use WebKit's URL parser in fetch() and `bun install` * Allocate less memory * Fix test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-21handle `latin1` in `Bun__encoding__toString`. (#3739)Gravatar Ai Hoshino 1-0/+10
Close: #3738
2023-07-22improve test (#3731)Gravatar Alex Lam S.L 1-11/+9
- minor build diffs
2023-07-21clean tables before testing (#3721)Gravatar Ciro Spaciari 1-2/+10
* clean tables before testing * typo
2023-07-20Update async_hooks.node.test.tsGravatar Dylan Conway 1-1/+1
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