aboutsummaryrefslogtreecommitdiff
path: root/src/js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-08-02Rewrite built-in modules to use CommonJS over ESM (#3814)Gravatar dave caruso 145-26116/+4146
* stfdsafsd sadffdsa stuff finish commonjs stuff asdf not done but work not done but work not done yet but this is how far i am remove files lol update built files uncomment everything in events lol export default stuff * afdsafsd * its not perfect but almost done * okay * cool * remove temp file * finish rebase * revert settings.json * a * ch-ch-ch-ch-changes * okay * remove this check in release for now * sxdcfghnjm, * lkjhgf * fmt * filename can be null * Update NodeModuleModule.h * weee * fmt --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-31Add a test for TransformStreamGravatar Jarred Sumner 3-11/+10
2023-07-31Fixes #2935Gravatar Jarred Sumner 2-9/+87
2023-07-28add fork to child_process (#3851)Gravatar Vlad Sirenko 2-16/+162
* add fork to child_process * fix export * add test to child_process method `fork` * fmt fork * remove only from test
2023-07-28fix the chunk boundary (`node:stream:createReadStream`) (#3853)Gravatar Ai Hoshino 2-8/+8
* fix the slice boundary. Close: #3668 * Add more boundary test case. * fix end is 0.
2023-07-28fix(tls) exposes native canonicalizeIP and fix rootCertificates (#3866)Gravatar Ciro Spaciari 2-10/+6
* 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 2-0/+8
cc @cirospaciari
2023-07-27Add `Bun.isMainThread`Gravatar Jarred Sumner 2-3/+3
2023-07-27Resolve watch directories outside main thread + async iterator and symlink ↵Gravatar Ciro Spaciari 2-17/+41
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 4-4/+13
* 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 4-36/+42
* 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 2-3/+116
* 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 3-23/+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 14-224/+225
* 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 7-3/+156
* 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 2-7/+19
* 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 2-7/+7
2023-07-20fix process.binding (#3711)Gravatar dave caruso 2-14/+13
2023-07-19Support streams in response.formData() & request.formData, introduce ↵Gravatar Jarred Sumner 14-23/+52
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 3-8/+3
* Fix ServerWebSocket.readyState * Add create_hash_table to our repo * Fix #3216
2023-07-19Implement `AsyncLocalStorage` (#3089)Gravatar dave caruso 13-460/+835
* 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 2-3/+7
* implement tls.rootCertificates * add test * bump uws/usockets * bump uws + .len on certs
2023-07-19fix createDecipheriv (#3680)Gravatar Ciro Spaciari 2-12/+56
* fix createDecipheriv * fix createDecipheriv iv and password validations
2023-07-19fix #3681 (#3690)Gravatar dave caruso 2-13/+23
2023-07-19move constants module to cpp (#3683)Gravatar Ciro Spaciari 3-478/+0
2023-07-18feature(constants) add constants/node:constants module and tests(prisma) use ↵Gravatar Ciro Spaciari 3-1/+478
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 2-2/+3
2023-07-17Implement `process.{stdout, stderr}.{columns, rows, getWindowSize}`Gravatar Jarred Sumner 3-31/+54
2023-07-17[tls] General compatibility improvements (#3596)Gravatar Ciro Spaciari 5-280/+422
* 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 4-9/+15
* 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 1-1/+1
* 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 2-99/+186
(#3257)
2023-07-13Fixes #3629Gravatar Jarred Sumner 2-9/+9
2023-07-12Improve our internal typedefs (#3608)Gravatar dave caruso 30-110/+152
* 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 2-1/+24
* fix #3597 * Update http.ts * initialize to true
2023-07-11Avoid Object.getPrototypeOfjarred/fix-http-compressionGravatar Jarred Sumner 2-6/+22
2023-07-11use `Object.getPrototypeOf`Gravatar Hanaasagi 2-6/+3
2023-07-11Merge branch 'main' into fix-httpGravatar Ai Hoshino 5-162/+198
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 3-157/+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 2-5/+39
* 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 9-95/+243
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