aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-09-22Add epoll to list of syscalls that can failGravatar Jarred Sumner 1-0/+1
2022-09-22Remove a mutex when enqueuing concurrent tasksGravatar Jarred Sumner 1-3/+3
2022-09-221 event loop per thread. Instead of 3.Gravatar Jarred Sumner 3-134/+129
uWebSockets and uSockets will need to be upgraded to match the changes. Previously: - Bun had a separate kqueue/eventfd just for async wakeups. - Bun had a separate kqueue/epoll just for reading files non-blocking in the same thread This commit unifies it into one event loop per thread
2022-09-22[breaking] Bun.serve().hostname should return the hostname instead of the ↵Gravatar Jarred Sumner 1-1/+1
baseURI Previously Bun.serve().hostname was returning the baseURI, effectively the `origin` That was incorrect. Instead, it should be returning the hostname
2022-09-21Fix crash when creating an empty arrayGravatar Jarred Sumner 1-1/+1
2022-09-20Update types.zigGravatar Jarred Sumner 1-1/+3
2022-09-20fixupGravatar Jarred Sumner 1-3/+4
2022-09-20Update WebKitGravatar Jarred Sumner 1-0/+0
2022-09-20Be more careful with process.argvGravatar Jarred Sumner 1-8/+12
2022-09-20meant to include this in the previous commitGravatar Jarred Sumner 1-0/+4
2022-09-20Add `navigator.userAgent` , `navigator.hardwareConcurrency`Gravatar Jarred Sumner 2-0/+50
2022-09-20Fix incorrect `hostname` logicGravatar Jarred Sumner 2-13/+28
Fixes https://github.com/oven-sh/bun/issues/1261
2022-09-19Update `process.argv` to more closely match nodeGravatar Jarred Sumner 1-17/+12
2022-09-19Fix broken destructorsGravatar Jarred Sumner 1-5/+2
2022-09-18Improve the perf of reading HTTP request bodyGravatar Jarred Sumner 1-28/+15
2022-09-18Fix occasional crash with .json()Gravatar Jarred Sumner 1-1/+7
2022-09-18Add a way to disable timeout and keepaliveGravatar Jarred Sumner 1-30/+52
2022-09-17Fix napi module registrationGravatar Jarred Sumner 3-6/+17
Fixes https://github.com/oven-sh/bun/issues/1240
2022-09-17Update WebKitGravatar Jarred Sumner 1-0/+0
2022-09-17Explicitly enable ShadowRealmGravatar Jarred Sumner 1-0/+1
2022-09-17Prevent returning resolved promisesGravatar Jarred Sumner 1-1/+3
2022-09-17Fix default hostnameGravatar Jarred Sumner 1-1/+1
2022-09-17Partially implement `server.fetch()` on Bun.serveGravatar Jarred Sumner 2-5/+127
2022-09-17Fix missing `reason` and `code` in `CloseEvent`Gravatar Jarred Sumner 4-41/+42
cc @paperdave hardcoded right now but at least tells you why it closed
2022-09-16Make `fetch` throw a `SystemError` on rejectGravatar Jarred Sumner 1-9/+7
2022-09-16Fix issue with server not starting before exitingGravatar Jarred Sumner 3-2/+10
2022-09-16Fix `origin` missing `protocol` in `URL`Gravatar Jarred Sumner 1-1/+15
Fixes https://github.com/oven-sh/bun/issues/1244
2022-09-16Fix process not exitingGravatar Jarred Sumner 2-11/+7
2022-09-16Make new HTTP client more stableGravatar Jarred Sumner 9-367/+470
2022-09-14Use entropy cache for websocket maskGravatar Jarred Sumner 1-10/+9
2022-09-145x faster crypto.randomValues()Gravatar Jarred Sumner 3-22/+114
2022-09-14Make `crypto.getRandomValues()` faster + fix > 1 byte/element typed arraysGravatar Jarred Sumner 9-51/+188
Fix crypto.getRandomValues() with > 1 byte element typed arrays Fixes https://github.com/oven-sh/bun/issues/1237
2022-09-11Fix bug with `Buffer.from([123], "utf8")`Gravatar Jarred Sumner 2-3/+9
cc @worm-emoji
2022-09-11New HTTP client (#1231)Gravatar Jarred Sumner 2-12/+20
* wip * It mostly works! * Support `bun install` * Support `bun create` * Support chunked transfer encoding * Handle Keep Alive when redirecting to a different domain Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-09-09Fix segfault due to GC and some more helper functions (#1221)Gravatar Zilin Zhu 8-193/+292
* Fix segfault due to GC and some more helper functions * fix upon reviews * add visitChildren
2022-09-09[node:fs] Fix readFileSync on non-regular filesGravatar Jarred Sumner 1-0/+42
Fixes https://github.com/oven-sh/bun/issues/1220
2022-09-09Fix potential crash when returning an empty stringGravatar Jarred Sumner 2-0/+22
2022-09-09[bun:ffi] Add `f32`, `f64`, `i64`, u64` to `read`Gravatar Jarred Sumner 7-10/+311
2022-09-09Fix failing tests after ptr changeGravatar Jarred Sumner 2-3/+11
2022-09-09[breaking][bun:ffi] Change the pointer representation to be a 52-bit integerGravatar Jarred Sumner 5-33/+46
Storing the pointer this way enables DOMJIT to be used with a new API in `bun:ffi` that lets you efficiently read values from a pointer without creating a new `DataView` ```js import {read} from 'bun:ffi'; const myPtr = myFunctionThatReturnsAPtr(); // new: const value = read.u32(myPtr, 0); // old: const view = new DataView(toArrayBuffer(myPtr)); const otherValue = view.getUint32(0, true); ``` cc @bwasti this might be a breaking change for that call to `napi_add_finalizer`
2022-09-08Last commit was missing some codeGravatar Jarred Sumner 1-13/+211
2022-09-08[bun:ffi] Implement `read.{u8,i8,i16,i32,u16,u32,ptr,intptr}`Gravatar Jarred Sumner 9-18/+449
`read` in `bun:ffi` lets you read data from a pointer without creating a new DataView/ArrayBufferView ``` import {read} from 'bun:ffi'; expect(read.i8(ptr_, i)).toBe(view.getInt8(i, true)); expect(read.i16(ptr_, i)).toBe(view.getInt16(i, true)); expect(read.i32(ptr_, i)).toBe(view.getInt32(i, true)); expect(read.u8(ptr_, i)).toBe(view.getUint8(i, true)); expect(read.u16(ptr_, i)).toBe(view.getUint16(i, true)); expect(read.u32(ptr_, i)).toBe(view.getUint32(i, true)); } ```
2022-09-08Add native helper functions for Readable and convert ReadableState ↵Gravatar Zilin Zhu 6-138/+405
properties to getter/setter (#1218)
2022-09-08Make some more globals modifiableGravatar Jarred Sumner 2-89/+65
2022-09-07Fix crash with file descriptorGravatar Jarred Sumner 1-10/+6
2022-09-07Helper for seeing if a File Blob is seekableGravatar Jarred Sumner 1-0/+12
2022-09-07[Bun.write] clean up some error handlingGravatar Jarred Sumner 1-14/+32
2022-09-07Bun.write - only truncate if its a path stringGravatar Jarred Sumner 1-2/+2
2022-09-07Fast path for `Bun.write` with short-ish strings & typed arraysGravatar Jarred Sumner 1-11/+225
Helps with https://github.com/oven-sh/bun/issues/646 but does not fully fix
2022-09-07Mild perf improvement for bindingsGravatar Jarred Sumner 1-0/+1