aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-12-04content-range is inclusiveGravatar Jarred Sumner 1-1/+1
2022-12-04[Bun.serve] Implement `Content-Range` support with `Bun.file()`Gravatar Jarred Sumner 3-15/+111
2022-12-04[may revert later] Coerce Infinity to max int 64, -Infinity & NaN to min int64Gravatar Jarred Sumner 1-2/+22
2022-12-03[fetch] Fix bug where .arrayBuffer() on an empty Response body returned a ↵Gravatar Jarred Sumner 1-1/+1
`Uint8Array` instead of an `ArrayBuffer`
2022-12-03Don't invalidate previous file descriptro to avoid tripping assertionGravatar Jarred Sumner 1-5/+0
2022-12-03`process.stdout` and `process.stderr`Gravatar Jarred Sumner 14-563/+1536
2022-12-03make sure to not use incomplete characters (#1575)Gravatar Dylan Conway 1-1/+4
2022-12-02Run promise before callbackGravatar Jarred Sumner 1-13/+13
2022-12-02Add `AbortSignal.timeout`Gravatar Jarred Sumner 6-13/+48
2022-12-02matchers for less than and greater than (#1573)Gravatar Dylan Conway 5-6/+317
* toBeGreaterThan with tests * toBeGreaterThanOrEqual and tests * toBeLessThan and toBeLessThanOrEqual with tests * expect types * switch expressions
2022-12-02Propagate reason in AbortSignal and reuse in ReadableStream.pipeToGravatar Jarred Sumner 9-37/+38
Similar to https://github.com/WebKit/WebKit/pull/7013
2022-12-02Update TransformStream options getters to check for undefinedGravatar Jarred Sumner 1-4/+8
This is essentially copied from https://github.com/WebKit/WebKit/pull/7021
2022-12-02Add some code I forgot to commitGravatar Jarred Sumner 1-0/+4
2022-12-02Make cloning headers object fasterGravatar Jarred Sumner 3-38/+42
2022-12-02Add a userland way to hide stack framesGravatar Jarred Sumner 1-2/+6
2022-12-02Make constructing headers from an existing headears fasterGravatar Jarred Sumner 1-0/+1
2022-12-02Throw if passing a header not named "set-cookie" to `getAll`Gravatar Jarred Sumner 1-1/+1
2022-12-02Remove `getSetCookie`Gravatar Jarred Sumner 1-1/+1
2022-12-02[node:event] Add `captureRejectionSymbol`Gravatar Jarred Sumner 1-0/+4
2022-12-02feat(process): add process.{stdin, stdout, stderr} support (#1495)Gravatar Derrick Farris 4-304/+1713
* fix(stream): get Duplex working * feat(process): add stdin,stdout,stderr in a semi-broken state (pipes??) * test(NodeTestHelpers): fix test names * test(NodeTestHelpers): add test for createDoneDotAll done called w error * test(NodeTestHelpers): remove stray console.log * fix(stream): fix bug in Duplex, Readable * test(process.stdio): rename test * fix(process.stdio): change onData listener to onReadable * refactor(streams): add file-wide debug fn, destructure opts * fix(child_process): check isCallable on promise * fix: get stdio streams mostly working (mostly) * fix(child_process): wait until stream is drained before calling end? * fix(child_process): change to result?.then * debug(child_process,streams): add EE id tracking, add shim for stdio after handle is dead * test(child_process): fix double pipe test, temp fix for ChildProcess.kill() return val * fix(child_process): remove immediate emit of exit on kill * debug(streams): add more debug log * debug(streams): add more debug logs part 2 * feat(streams,fs): add NativeWritable, adapt fs.WriteStream and fs.ReadStream to native
2022-12-02[fetch] Implement `Headers#getAll` and `Headers#getSetCookie()`Gravatar Jarred Sumner 7-73/+389
This matches Deno's behavior (get() combines, iterator preserves the order, set and append combine), but implements both the Cloudflare Workers `getAll()` and the potential standard `getSetCookie` function. The rationale for choosing both is to better support libraries which check for `getAll` and also because `getSetCookie` seems a little confusing (names are hard) This also makes `.toJSON` and JSON.stringify return an array for `Set-Cookie`
2022-12-02Add generic way to block on a promiseGravatar Jarred Sumner 3-18/+19
2022-12-02Close stdin earlierGravatar Jarred Sumner 1-0/+9
2022-12-02Fix incorrect panic in spawnSyncGravatar Jarred Sumner 1-1/+1
2022-12-01Fix crash when macros return a PromiseGravatar Jarred Sumner 3-108/+145
2022-12-01Fix double free in .json() and optimize UTF16 -> json slightlyGravatar Jarred Sumner 2-30/+50
2022-12-01Remove file blob cachingGravatar Jarred Sumner 2-21/+1
2022-12-01[streams] Handle empty stateGravatar Jarred Sumner 1-0/+12
2022-12-01[bun bun] Fix crash in canaryGravatar Jarred Sumner 1-2/+2
2022-12-01[fetch] Implement `redirect: "manual"`Gravatar Jarred Sumner 1-0/+14
2022-12-01Fix timers keeping process alive unnecessarilyGravatar Jarred Sumner 1-6/+3
2022-12-01bun test `toStrictEqual` (#1568)Gravatar Dylan Conway 7-46/+152
* toStrictEqual and bug fix in deepEqual * rebase Remove some dead bindings code * remove debugging test * canGetIndexQuickly for array holes * isStrict template Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-01[`bun:sqlite`] ~15% perf improvement to all() and get()Gravatar Jarred Sumner 1-79/+157
2022-12-013x faster `TextEncoder.prototype.encodeInto`Gravatar Jarred Sumner 3-23/+22
thanks to @Constellation for the tip
2022-12-01Include size of ArrayBuffer and others in GC timer schedulingGravatar Jarred Sumner 1-1/+1
2022-12-01Increase sensitivity of GC timersGravatar Jarred Sumner 1-2/+3
2022-12-01Reduce memory usage in Bun.serve() by up to 3x (#1569)Gravatar Jarred Sumner 10-8/+174
* Update WebKit * Use 5x less memory in Bun.serve() * Update Dockerfile.devcontainer * Update async-overhead.mjs Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-30formatting and remove commentGravatar Dylan Conway 1-13/+0
2022-11-30Fix console.log regression with emojiGravatar Jarred Sumner 1-2/+2
2022-11-30Redirect imports to `"readable-stream"` -> `"node:stream"`Gravatar Jarred Sumner 1-1/+4
2022-11-30Accidentally deleted `prompt` as a result of the process.env changesGravatar Jarred Sumner 2-7/+1
2022-11-29:scissors:Gravatar Jarred Sumner 5-626/+7
2022-11-29Remove some dead bindings codeGravatar Jarred Sumner 6-1394/+64
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 42-288/+288
2022-11-28Make .toInt64 fasterGravatar Jarred Sumner 1-0/+8
2022-11-28Handle when the process already exited immediatelyGravatar Jarred Sumner 2-6/+7
2022-11-28toHaveProperty and tests (#1558)Gravatar Dylan Conway 7-5/+200
* toHaveProperty and tests * emoji tests
2022-11-28Fix failing spawn() and spawnSync() testsGravatar Jarred Sumner 4-45/+206
cc @ThatOneBro
2022-11-28Fix hanging in FIFO streamsGravatar Jarred Sumner 1-1/+2
2022-11-28[internal] Add debug timerGravatar Jarred Sumner 1-2/+3