aboutsummaryrefslogtreecommitdiff
path: root/src/js/out (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-07-28fix(tls) exposes native canonicalizeIP and fix rootCertificates (#3866)Gravatar Ciro Spaciari 1-4/+2
* exposes native canonicalizeIP * remove unintended duplicate * add tests * add tests for debug builds * add rootCertificates test and fix len * just randomize test ids on prisma * remove work around and bump usockets with the actual fix * fix case * bump uws
2023-07-28Add todoGravatar Jarred Sumner 1-0/+2
cc @cirospaciari
2023-07-27Add `Bun.isMainThread`Gravatar Jarred Sumner 1-2/+2
2023-07-27Resolve watch directories outside main thread + async iterator and symlink ↵Gravatar Ciro Spaciari 1-1/+1
fixes (#3846) * linux working pending tests with FSEvents * add more tests, fix async iterator * remove unnecessary check * fix macos symlink on directories * remove indirection layer * todos * fixes and some permission test * fix opsie and make prisma test more reliable * rebase with main * add comptime check for macOS * oops * oops2 * fix symlinks cascade on FSEvents * use JSC.WorkPool * use withResolver, createFIFO and fix close event on async iterator * remove unused events --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-07-27Make readFile() async (#3850)Gravatar Jarred Sumner 2-2/+5
* less leaky * async readfile * Update types.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-27Make readdir() async, fix crash in large directory trees (#3838)Gravatar Jarred Sumner 2-5/+14
* Fix unsafe GC behavior on large arrays returned by fs * Fix crash in large arrays of strings * async readdir * Add tests for large number of files returned by readdir * Move this down * Fix encoding edgecase in path.join * Async stat & lstat * add test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-26Start time performance improvements to build tools (#3797)Gravatar Jarred Sumner 1-2/+53
* Make os.cpus() faster on Linux * Fix crash See https://github.com/ziglang/zig/issues/16540 * Handle watcher_count == 0 * Add assertion * Clean up lifetimes of fs watcher a little * :scissors: * Use `errdefer` * Make the error better * Make os.cpus() more lazy * Please don't translate-c on the entire C standard library * immediately closing works correctly is still bug * ops * fmt+fixeup * add back verbose * free instead of destroy * remove destroy option for watcher tasks * flush verbose and add debug log * fixup files * use log for debug --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: cirospaciari <ciro.spaciari@gmail.com>
2023-07-24Merge import.meta.require and require to be the same thing (#3732)Gravatar dave caruso 2-19/+0
* Merge import.meta.require and require to be the same thing * support `require` and BunPlugin (runtime plugin) * plugins * unused code * revert launch.json
2023-07-23Upgrade WebKit (#3777)Gravatar Jarred Sumner 1-111/+111
* Upgrade to latest WebKit * Upgrade WebKit * hm * Fix failing tests * Delete utf8-encoding-fixture.bin.cmp --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-22fix path.format for `vite build` (#3734)Gravatar dave caruso 3-3/+155
* fix path.format for vite * Update path.test.js --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-22Unified event loop (#3741)Gravatar Jarred Sumner 1-3/+8
* 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-22improve test (#3731)Gravatar Alex Lam S.L 2-2/+2
- minor build diffs
2023-07-21fix `isFIFO` (#3715)Gravatar Dylan Conway 1-2/+2
* check poll ref flags * Update WebCoreJSBuiltins.cpp
2023-07-20fix process.exit status code handling (#3714)Gravatar dave caruso 1-2/+2
2023-07-20Fix builtins again (#3713)Gravatar dave caruso 1-6/+6
2023-07-20fix process.binding (#3711)Gravatar dave caruso 1-10/+10
2023-07-19Support streams in response.formData() & request.formData, introduce ↵Gravatar Jarred Sumner 13-23/+42
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-19Fix vite (#3694)Gravatar dave caruso 1-1/+1
* Fix ServerWebSocket.readyState * Add create_hash_table to our repo * Fix #3216
2023-07-19Implement `AsyncLocalStorage` (#3089)Gravatar dave caruso 4-237/+427
* 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-2/+4
* implement tls.rootCertificates * add test * bump uws/usockets * bump uws + .len on certs
2023-07-19fix createDecipheriv (#3680)Gravatar Ciro Spaciari 1-4/+4
* fix createDecipheriv * fix createDecipheriv iv and password validations
2023-07-19fix #3681 (#3690)Gravatar dave caruso 1-1/+1
2023-07-19move constants module to cpp (#3683)Gravatar Ciro Spaciari 1-1/+0
2023-07-18feature(constants) add constants/node:constants module and tests(prisma) use ↵Gravatar Ciro Spaciari 1-0/+1
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/+2
2023-07-17Implement `process.{stdout, stderr}.{columns, rows, getWindowSize}`Gravatar Jarred Sumner 2-3/+3
2023-07-17[tls] General compatibility improvements (#3596)Gravatar Ciro Spaciari 3-201/+280
* 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-16Implement Workers (#3645)Gravatar Jarred Sumner 2-5/+8
* 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-13Implement `ping()`, `pong()`, `terminate()` for WebSocket client and server ↵Gravatar Ashcon Partovi 1-35/+88
(#3257)
2023-07-13Fixes #3629Gravatar Jarred Sumner 1-4/+4
2023-07-12Improve our internal typedefs (#3608)Gravatar dave caruso 8-59/+53
* types * some more * yeah * i think that fixes it * oop
2023-07-11Implement `process.kill` and `process._kill`Gravatar Jarred Sumner 1-150/+150
2023-07-11fix #3597 (#3609)Gravatar Dylan Conway 1-1/+5
* fix #3597 * Update http.ts * initialize to true
2023-07-11Avoid Object.getPrototypeOfjarred/fix-http-compressionGravatar Jarred Sumner 1-3/+9
2023-07-11use `Object.getPrototypeOf`Gravatar Hanaasagi 1-3/+2
2023-07-11Merge branch 'main' into fix-httpGravatar Ai Hoshino 3-156/+156
2023-07-11small fix, check if the method has been reassigned.Gravatar Hanaasagi 1-2/+6
2023-07-10fix "readable" event being emitted incorrectly (#3475)Gravatar dave caruso 2-152/+152
* 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-4/+4
* add getCurves * add nodefallbacks * update docs * oops
2023-07-10Fixes #3588 (#3590)Gravatar Jarred Sumner 1-27/+53
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-10trim node:stream a littleGravatar Jarred Sumner 1-2/+2
2023-07-09Implement nearly all of `process` object methods and properties (#3581)Gravatar Jarred Sumner 2-10/+10
* Add special case * Make process object load faster * Fix openStdin --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-06Add util.toUSVStringGravatar Jarred Sumner 1-1/+5
2023-07-06Minify zlib because its hugeGravatar Jarred Sumner 1-2552/+1
2023-07-06Add missing export in `url`Gravatar Jarred Sumner 1-366/+1
2023-07-06refactor (#3543)Gravatar Ciro Spaciari 1-6/+11
2023-07-05Fixes #3515 (#3523)Gravatar Jarred Sumner 2-158/+177
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-04boopGravatar Jarred Sumner 10-55/+55
2023-07-04[install] fix run-time module loading (#3510)Gravatar Alex Lam S.L 1-0/+2
- fix version buffer confusion - improve workaround to handle cached modules fixes #3507
2023-07-03[tls] add socket parameter, setServername and ALPNprotocols support (#3457)Gravatar Ciro Spaciari 2-60/+248
* add socket parameter support * refactor #socket * add test and more fixs * some fixes * bump uws * handlers fix * more fixes * fix node net and node tls tests * fix duplicate port * fix deinit on CallbackJobs * cleanup * add setImmediate repro * add test to setImmediate * this is necessary? * fix prependOnce on native listener * try to findout the error on nodemailer CI * show error message * Update bun.lockb * prettier * Use exact versions of packages * add alpnProtocol support * update * emit error when connect fails on net.Socket * format * fix _write and cleanup * fixup * fix connect, add alpn test * fix socket.io * add socket parameter to TLSSocket * add TLSSocket socket first parameter * fixup and _start * remove flask tests * fmt --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>