aboutsummaryrefslogtreecommitdiff
path: root/packages (follow)
AgeCommit message (Collapse)AuthorFilesLines
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>
2023-09-14fix warnings during bun run publish-layer (#5419)Gravatar Nang Chan 1-0/+1
- add missing package @oclif/plugin-plugins to resolved warning: could not find package.json with { type: 'dev',
2023-09-13fix(doc): Add "compilerOptions" to bun-types README.md (#5325)Gravatar Patrick Klitzke 1-3/+5
Reading the documentation on bun-types it was not clear to me that the tsconfig.ts needs to look like this: ``` { "compilerOptions": { "types": ["bun-types"] } } ``` So i added the "compilerOptions" information.
2023-09-12docs: Made bun-types install as dev dependency in example (#5120)Gravatar Gordon Goldbach 1-1/+1
2023-09-12udate README.md (#5127)Gravatar Toby 1-1/+1
update path
2023-09-12fix(bun-lambda) Fix API Gateway V1 events and expand on Lambda documentation ↵Gravatar Mitchell K 3-50/+69
(#5161) * Fix issues with using V1 API Gateway events with Bun Lambda Layer. * Remove aws-lambda as it is not needed
2023-09-11fix(bun-lambda): Don't drop arguments in console.log(...) (#4992)Gravatar Justin "J.R." Hill 1-3/+3
Closes #4826
2023-09-08Fix bun-typesGravatar Ashcon Partovi 1-2/+2
2023-09-07Progress for Next.js (#4468)Gravatar dave caruso 5-2/+77
* L * ipc * asdfghjkl * dfghjk * it works! * types * patches for next.js * sdfghj * wsdfgn,./ * this * yolo * okay loser * asdfghjk * add some more APIs * MESS * sdfghjkl * remove native events from streams * stuff * remove lazy(primordials) test * debugging * okay * less fake extensions object * fix `Buffer.toString()` args logic * fix deserialize * make tests work * add test for `Buffer.toString` args * Update server.zig * remove test * update test * Update spawn-streaming-stdin.test.ts * fix linux build * Update fs.test.ts * cli message improvements * dfshaj * Fix fs.watch bug maybe? * remove --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2023-09-06feat(fetch) rejectUnauthorized and checkServerIdentity (#4514)Gravatar Ciro Spaciari 2-30/+30
* enable root certs on fetch * rebase * fix lookup * some fixes and improvements * fmt * more fixes * more fixes * check detached onHandshake * fix promise case * fix cert non-Native * add fetch tls tests * more one test
2023-09-06Add bun-types to 'bun fmt' scriptGravatar Ashcon Partovi 2-18/+20
2023-09-06Add types for watchFile and unwatchFileGravatar Ashcon Partovi 1-1/+171
2023-09-06Add types for cp and cpSyncGravatar Ashcon Partovi 2-0/+106
2023-09-05update root certs (#4499)Gravatar Ciro Spaciari 2-912/+1993
2023-09-01bun-vscode 0.0.8Gravatar Colin McDonnell 3-41/+39
2023-09-01Update commandsGravatar Colin McDonnell 3-4/+6
2023-09-01Fix debug console from appears on startGravatar Ashcon Partovi 2-2/+5
2023-09-01Add configuration options to extensionGravatar Ashcon Partovi 5-5/+137
2023-09-01Fix run button starting cwd at /Gravatar Ashcon Partovi 1-0/+2
2023-09-01Fix background colorGravatar Ashcon Partovi 1-2/+3
2023-09-01Allow older versions of VSCodeGravatar Ashcon Partovi 2-6/+5
2023-09-01Fix README for extensionGravatar Ashcon Partovi 2-7/+12