aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-10-03feat(encoding): support BOM detection with test passed (#6074)Gravatar WingLim 6-9/+71
2023-10-03docs: update `typescript.md` (#6222)Gravatar JS Park 1-2/+1
Fix inconsistent results from `bun init`.
2023-10-03Docs: Update context.md (#6256)Gravatar John Beene 1-1/+1
Use token from cookies, not from ws.data
2023-10-03Add license information to package.json (#6255)Gravatar Mathias Wulff 1-0/+1
2023-10-03Store workspace package versions (#6258)bun-v1.0.4Gravatar Dylan Conway 4-22/+346
* Store workspace package versions in the lockfile * more logging * wip * keep information from workspace name array and cache * hash key * remove cache, compare workspaces with initially loaded * uncomment sort * remove comments * remove allocation * package json * test `bun add <package>` without workspace prefix * Update test/cli/install/bun-install.test.ts Co-authored-by: Markus Staab <maggus.staab@googlemail.com> --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Markus Staab <maggus.staab@googlemail.com>
2023-10-02Update ws exampleGravatar Colin McDonnell 1-1/+1
2023-10-02Set `fetch` timeout to 5 minutes (#6217)Gravatar Jarred Sumner 3-19/+64
* Increase timeouts * Update uws.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-10-02Fix `bun install` reading Github API from wrong environment variable (#6247)Gravatar Ashcon Partovi 2-6/+65
* Fix `bun install` reading Github API from wrong environment variable * Update src/install/install.zig --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-10-02Warn at start when using AVX build of Bun without AVX support (#6242)Gravatar Jarred Sumner 3-12/+41
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-10-02Update development and document env var expansionGravatar Colin McDonnell 2-24/+40
2023-10-02Update development.md (#6221)Gravatar Cícero Santos 1-2/+2
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-02Fix npm tag for canary bun-typesGravatar Ashcon Partovi 1-1/+10
2023-10-02Added the fileExtensions field to file-system-router.md (#6231)Gravatar Corné Dorrestijn 1-0/+1
2023-10-02more loggingGravatar Jarred Sumner 1-0/+74
2023-10-01Slightly reduce number of open file descriptors in `bun install` (#6219)Gravatar Jarred Sumner 1-12/+15
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-10-01fix(node:process): fix return value of `process.kill` (#6207)Gravatar Ai Hoshino 3-4/+6
2023-09-30Fix bug causing "Connection Refused" errors (#6206)Gravatar Jarred Sumner 2-19/+46
* 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-30Fix regressionGravatar Jarred Sumner 1-1/+1
2023-09-30Update cp.test.tsGravatar Jarred Sumner 1-1/+1
2023-09-30Add titleGravatar Jarred Sumner 4-0/+8
2023-09-30tweak github actions (#6195)Gravatar Jarred Sumner 5-22/+172
* Discord comments * better * better * actions --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-29BumpGravatar Jarred Sumner 1-0/+0
2023-09-29Fix hang in `bun install` (#6192)Gravatar Jarred Sumner 6-22/+204
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-29Implement virtual module support in `Bun.plugin` (#6167)Gravatar Jarred Sumner 17-111/+622
* 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 10-29/+59
* 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-29fix: don't set default request method when creating a Request (#6154)Gravatar Liz 2-13/+24
In the case of creating a Request with the parameters `(Request, object)`, there was a bug that method and headers are set from the default created by the init rather then the already present value from the request param. This is because for a to me unknown reason the order in which the parameters are processed is reversed. This fixes that by adding a check which stops the defaults from being set, unless they are explicitly passed. Fixes: https://github.com/oven-sh/bun/issues/6144
2023-09-29add Socket.prototype; lol (#5945)Gravatar dave caruso 4-27/+29
2023-09-29fix(resolver): support encoded file urls (#5766)Gravatar dave caruso 10-73/+230
* start working on this * it works now * better implementation imo * yippee * more tests and better unrefing * fix leak?
2023-09-29feat(runtime): implement `server.requestIp` + node:http `socket.address()` ↵Gravatar dave caruso 20-47/+553
(#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-29Fixes #6053 (#6162)Gravatar Jarred Sumner 2-4/+48
Fixes #6053 Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-28Upgrade to latest Node.js version (#6158)Gravatar Jarred Sumner 2-6/+6
* Upgrade to latest reported Node.js version * Upgrade --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-28docs (runtime): the order of checking files when using bare impoort (#5919)Gravatar Devin Johw 1-3/+8
2023-09-28fix decorator testsGravatar Dylan Conway 2-524/+1250
2023-09-28Add local tarball install #5812 (#6118)Gravatar axel escalada 3-3/+50
* check if the value passed for add command is a local tarball and install it, test for local tarball * use bunExe() * use absolute path to copy tarball * fmt ts
2023-09-28Reduce memory usage of HTTP server (#6135)Gravatar Jarred Sumner 5-25/+50
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-28Revert WebKit submodule to where it should beGravatar dave caruso 1-0/+0
2023-09-28Improve docsGravatar Colin McDonnell 4-727/+65
2023-09-28docs: update image astro.md (#6149)Gravatar Alba Silvente Fuentes 1-1/+1
2023-09-28Update prismaGravatar Colin McDonnell 1-9/+32
2023-09-28Revert "Update prisma guide"Gravatar Colin McDonnell 2-32/+9
This reverts commit e62fef67658240a4137320729ff26e09498a93fd.
2023-09-28Update prisma guideGravatar Colin McDonnell 2-9/+32
2023-09-28Get Next.js Pages Router to work (#6095)Gravatar dave caruso 61-393/+1283
* 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-27Complete rework of the majority of `node:util`, primarily `util.inspect` (#4493)Gravatar jhmaster 23-612/+7863
* 1st revision of new util.inspect impl. (not done) * fix util.types.isArrayBuffer * fix some utl tests and bugs * fix node:tty missing primordials * fix utl stackoverflow handling & some tests * narrow down diff. context test * util.inspect indirect circulars optimization * temp workaround for buggy is...Function checks * impl. Map/Set/Iterator entries inspection * fix bigint & symbol objects inspection * error inspection fixes * misc util tests stuff * inline getExternalValue stub * leftovers * util.inspect promise internals * run bun fmt * commit make js changes * cut out unnecessary utl files * reorganize utl folder structure * remove browserify buffer check * Try to revert git messing up uws somehow This reverts commit 2c27e16e7d361657b9c3a7dc7892117cf31e15ee. * commit src/js/out files again * redo this edit too * refresh js/out files * Removed uws submodule * tidy up * unused primordials * run fmt --------- Co-authored-by: dave caruso <me@paperdave.net>
2023-09-27fix typescript metadata for import identifiers (#6130)Gravatar Dylan Conway 2-6/+58
* handle import identifiers * a test * handle dot case
2023-09-27update snapshotsGravatar Dylan Conway 1-3/+3
2023-09-27`deadCodeElimination` toggle for Bun.Transpiler (#5932)Gravatar jhmaster 7-46/+107
* 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-27real fix was #5679 (#6123)Gravatar Dylan Conway 1-2/+2
2023-09-27fix(bun install): Handle vercel and github tarball path dependencies (#6122)Gravatar Justin "J.R." Hill 2-1/+80
* fix(bun install): Handle vercel and github tarball path dependencies * test(bun install): test tarball path with when * Simplify github tarball detection --------- Co-authored-by: bun <noreply@oven.sh>