aboutsummaryrefslogtreecommitdiff
path: root/packages (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-10-17perf(bun-types): remove needless some call (#6550)Gravatar Mikhail 1-1/+1
2023-10-16fix(runtime): make some things more stable (partial jsc debug build) (#5881)Gravatar dave caruso 1-23/+23
* make our debug assertions work * install bun-webkit-debug * more progress * ok * progress... * more debug build stuff * ok * a * asdfghjkl * fix(runtime): fix bad assertion failure in JSBufferList * ok * stuff * upgrade webkit * Update src/bun.js/bindings/JSDOMWrapperCache.h Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * fix message for colin's changes * okay * fix cjs prototype * implement mainModule * i think this fixes it all --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-10-16fix(runtime): improve IPC reliability + organization pass on that code (#6475)Gravatar dave caruso 1-0/+1
* dfghj * Handle messages that did not finish * tidy * ok * a * Merge remote-tracking branch 'origin/main' into dave/ipc-fixes * test failures --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-10-16Add type parameter to `expect` (#6128)Gravatar Voldemat 1-3/+3
2023-10-16fix(node:worker_threads): ensure threadId property is exposed on ↵Gravatar Jérôme Benoit 1-0/+6
worker_threads instance (#6521) * fix: ensure threadId property is exposed on worker_threads instance Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> * fix: rename lazy worker_threads module properties Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> * fix: add getter for threadId Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> * test: improve worker_threads UTs Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> * test: fix lazy loading Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> * test: fix worker_threads test Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org> * fix: return the worker threadId Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> * test: refine worker_threads expectation on threadId Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org> --------- Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2023-10-16Add `reusePort` to `Bun.serve` typesGravatar Ashcon Partovi 1-0/+9
2023-10-16Remove uWebSockets header from Bun.serve responsesGravatar Ashcon Partovi 1-6/+6
2023-10-10feat(test): implement `toEqualIgnoringWhitespace` (#6293)Gravatar Elad Bezalel 1-0/+10
* feat(test): implement `toEqualIgnoringWhitespace` * equality check in matcher & incorrect arg error
2023-10-10Update inspector-protocolGravatar Ashcon Partovi 3-99/+357
2023-10-10Update debug-adapter-protocolGravatar Ashcon Partovi 3-11/+33
2023-10-10Add missing ws declarations (#6307)Gravatar Vasilis Themelis 1-0/+4
2023-10-10Documentation for the IPC of Bun.spawn (#6400)Gravatar Nicolae-Rares Ailincai 1-0/+2
* doc/ipc.md * update/spawn.md * improved-documentation-and-added-send-type * Updates * Updates --------- Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
2023-10-09fix(AbortSignal/fetch) fix AbortSignal.timeout, fetch lock behavior and ↵Gravatar Ciro Spaciari 8-15/+23
fetch errors (#6390) * fix abort signal and fetch error * fix fetch error and lock behavior
2023-10-09Fix array variables preview in debugger (#6379)Gravatar 2hu 1-1/+4
2023-10-06[types] allow onLoad plugin callbacks to return undefined (#6346)Gravatar Silver 1-1/+1
Returning undefined simply falls through to the next plugin, or to the default loader. This is defined by esbuild, and supported by Bun, but the types don't reflect it properly.
2023-10-03Remove old packageGravatar Ashcon Partovi 7-202/+0
2023-10-03Add license information to package.json (#6255)Gravatar Mathias Wulff 1-0/+1
2023-10-02Add Bun.TOML to types (#6161)Gravatar Colin McDonnell 2-0/+16
2023-10-02Add dns.reverse and dns.getServers to typesGravatar Colin McDonnell 2-7/+12
2023-10-01fix(node:process): fix return value of `process.kill` (#6207)Gravatar Ai Hoshino 1-1/+1
2023-09-30Fix bug causing "Connection Refused" errors (#6206)Gravatar Jarred Sumner 1-9/+42
* Loop through the return values of getaddrinfo * Remove incorrect assertion * Remove extra check * Remove extra check * Update bsd.c * More consistent --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-29BumpGravatar Jarred Sumner 1-0/+0
2023-09-29Implement virtual module support in `Bun.plugin` (#6167)Gravatar Jarred Sumner 1-0/+31
* Add support for `build.module` in `Bun.plugin` * Another test * Update docs * Update isBuiltinModule.cpp --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2023-09-29fix(runtime): followup for `server.requestIP` (#6185)Gravatar dave caruso 2-6/+2
* fix(runtime): followup for `server.requestIP` * oops * yeah * sure * Update src/deps/libuwsockets.cpp * Update Dockerfile * lol --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-29feat(runtime): implement `server.requestIp` + node:http `socket.address()` ↵Gravatar dave caruso 4-0/+57
(#6165) * [server] requestIp and AnyRequestContext Changed Request.uws_request to the new AnyRequestContext. This allows grabbing the IP from a Request. Unfinished. * [server] basic `requestIp` implementation Currently using uws's requestIpAsText, which always returns a ipv6 string. We should return a `SocketAddress` object to the user instead, which will contain the formatted address string and what type it is. We'll have to use requestIpAsBinary and parse that ourselves. * TypeScript docs, use `bun.String`, return `undefined` instead of `null` if we can't get the ip. * binary address formatting * uws getRemoteAddress binding * remove dead code * working * final touches:sparkles: * I will abide by the results of this poll. --------- Co-authored-by: Parzival-3141 <29632054+Parzival-3141@users.noreply.github.com>
2023-09-28Reduce memory usage of HTTP server (#6135)Gravatar Jarred Sumner 1-2/+13
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-28Get Next.js Pages Router to work (#6095)Gravatar dave caruso 1-1/+1
* hell * make it so bun-debug-src * teag * wild * yippee * fas * fix async hooks assertions * yap * yeah that's wild * aa * a * increase time allowed * so trivial
2023-09-27`deadCodeElimination` toggle for Bun.Transpiler (#5932)Gravatar jhmaster 1-0/+8
* add Bun.Transpiler DCE option * mark DCE toggle experimental + tests * full (hopefully) DCE toggle * update DCE toggle tests * add DCE option to types * run fmt * Removed uws submodule
2023-09-26fix server end of stream, fix fetch not streaming without content-length or ↵Gravatar Ciro Spaciari 1-0/+18
chunked encoding, fix case when stream do not return a promise on pull (#6086)
2023-09-25Better typings for test.each()Gravatar Colin McDonnell 2-6/+38
2023-09-21Update test scriptGravatar Colin McDonnell 2-2/+4
2023-09-21On Linux, respect memory limit from cgroups (#5849)Gravatar Jarred Sumner 1-0/+8
* Implement `process.constrainedMemory()` * Add a comment * Handle max * Missing header * We can use WTF::ramSize now * Update WebKit * Update ZigGlobalObject.cpp * WebKit * :scissors: --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-20fix(run): interpret extensionless files as typescript (#5711)Gravatar dave caruso 1-0/+4
* test * gadsgsagdsa * add better err msg * r * oops * ok
2023-09-20Improve types for `test.each`, `describe.each` (#5838)Gravatar Colin McDonnell 2-10/+59
* Improve types for each * more * remove
2023-09-20Fix rendering of bun.lockb in vscode extensionGravatar Ashcon Partovi 5-114/+4
2023-09-20Run bun fmtGravatar Ashcon Partovi 1-3/+3
2023-09-20Fix various bugs in vscode extension (#5772)Gravatar JeremyFunk 3-9/+85
* Fix bugs * Fix bugs * Revert "Fix bugs" This reverts commit 608639eb2214fdf4310477051ce47d20702b5dd0.
2023-09-20fix(doc): correct `server.reload` (#5799)Gravatar Ai Hoshino 1-1/+1
2023-09-19Doc updates (#5759)Gravatar Colin McDonnell 2-1/+6
* WIP * WIP
2023-09-19Delete long-broken package which is causing confusionGravatar Jarred Sumner 15-1884/+0
2023-09-18PrettierGravatar Jarred Sumner 4-32/+28
2023-09-18add navigator type definition (#5444)Gravatar Rui He 1-0/+8
2023-09-18feat(runtime): Implement `console.Console` (#5448)Gravatar dave caruso 1-3/+22
* prototype * asdfg * It works! * okay its done now fr * self review * ok * fix * fix test --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-17Implement VSCode tasks for bun (#5529)Gravatar JeremyFunk 9-81/+372
* Fix VSCode extension configuration documentation * Fix config descriptions * Fix typo * Implement bun.lockb highlighter * Update style * Improve styling * Revert bunlock change * Implement bun tasks * Revert change * Package json codelens * Fixes * Refactor
2023-09-16fix: failing `array-buffer.test-d.ts` test (#5580)Gravatar Max Karou 1-2/+1
2023-09-16fix: `ArrayBufferConstructor` type signature (#5579)Gravatar Max Karou 1-1/+2
2023-09-15fix(corking) uncork if needed (#5525)Gravatar Ciro Spaciari 3-8/+10
* fix size limit * uncork if needed instead of terminating * undo unrelated changes
2023-09-15Improve rending of lockfiles in VSCode extension (#4652)Gravatar JeremyFunk 6-21/+157
* Fix VSCode extension configuration documentation * Fix config descriptions * Fix typo * Implement bun.lockb highlighter * Update style * Improve styling * Revert bunlock change
2023-09-15Implement `URL.canParse` (#5463)Gravatar Jarred Sumner 1-1/+8
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-14async-ify all node:fs functions (#5360)Gravatar Jarred Sumner 5-58/+5
* async all node:fs functions * draw the rest of the owl * LLVM & Clang 16 --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>