aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/headers.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-11`require.resolve` in the runtime should use CommonJS export conditionsGravatar Jarred Sumner 1-1/+1
2023-01-10attempt (unsuccessfully) to improve c++ build timeGravatar Jarred Sumner 1-1/+1
2023-01-08[internal] Fix checking for Error objectGravatar Jarred Sumner 1-5/+3
2023-01-07[Bun.connect] Fix bug where connect() Promise wouldn't reject on a ↵Gravatar Jarred Sumner 1-2/+2
connection error
2023-01-07Implement DNS module (#1691)Gravatar Jarred Sumner 1-1/+4
* Boilerplate for DNS stuff * Add c-ares * lookup * make * Implement dns.lookup * Create c-ares * wip * normalize * repro * Revert "repro" This reverts commit 8b93e0c295b335b8882a9601da47720348549beb. * Implement macOS `getaddrinfo_async_start` * embiggen * Update string_immutable.zig * Update Makefile * alright * Update .gitignore * Add types * more ccache * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update bun.d.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-01[internal] Add more bindingsGravatar Jarred Sumner 1-1/+3
2022-12-30Upgrade WebKitGravatar Jarred Sumner 1-1/+1
2022-12-28[WebSocket] Implement `headers` supportGravatar Jarred Sumner 1-3/+3
Fixes https://github.com/oven-sh/bun/issues/1676
2022-12-28Move some code upGravatar Jarred Sumner 1-1/+1
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-10/+10
* @min and @max * builtins and some trivial ones * Most of them * more * more! * More Progress * wip * Update tagged_pointer.zig * Update http_client_async.zig * Most of the iterable dir changes * alright * Remove usages of deprecated formatters * :camera: * fmt * Update shimmer.zig * wip * wip * wip * progress * more * Latest * stuck on error * latest * workaround stage2 * wip * Update string_immutable.zig * wip * Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings * Fix build errors * Fixup most of the test failures * Fix `make headers` * Fix "outside package path" error * Fixup aligned alloc * Add missing file * linux * More linux fixes * use latest peechy * Fix transpiler test failure * Forgot about these * Fixup test failure * Update node-timers.test.ts * [node:htt] Fix `undefined is not an object` error Fixes https://github.com/oven-sh/bun/issues/1618 * Update http.exports.js * Make this test less flaky * fix hashes * Fix hex formatting and zls issues * Download zig version * Update Dockerfile * Update Dockerfile * Update uws * Update Dockerfile * Set llvm version * Update README.md * Update uws * Update Dockerfile * Update io_linux.zig * Update bun.zig * Log output * workaround strange @cInclude error * Make ffi tests better * Don't use cImport * Update c.zig * Update c-bindings.cpp * call setOutputDir * Update Dockerfile * Use a longer name * latest * Update serve.test.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-12-20[web] Support multiple arguments in `setTimeout`, `setInterval`, and ↵Gravatar Jarred Sumner 1-3/+3
`setImmediate`
2022-12-17Delete Oniguruma (#1625)Gravatar Jarred Sumner 1-1/+1
* Update .gitmodules * Delete oniguruma * Delete Oniguruma * Make this test less flaky * :scissors: Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-15[node:process] Implement `process.argv0`, `process.execPath`Gravatar Jarred Sumner 1-1/+3
Fixes https://github.com/oven-sh/bun/issues/1599
2022-12-12[crypto] Implement crypto.timingSafeEqualGravatar Jarred Sumner 1-1/+9
This uses BoringSSL's memcmp function Fixes https://github.com/oven-sh/bun/issues/1308
2022-12-11Update WebKitGravatar Jarred Sumner 1-1/+1
cc @cirospaciari you will need to re-download the precompiled WebKit build from the releases page https://github.com/oven-sh/WebKit/releases/tag/dec11 because there is one small WebKit API change. LMK if you have any trouble with that
2022-12-05Make `console` an `AsyncIterable`Gravatar Jarred Sumner 1-1/+2
2022-12-02matchers for less than and greater than (#1573)Gravatar Dylan Conway 1-1/+2
* toBeGreaterThan with tests * toBeGreaterThanOrEqual and tests * toBeLessThan and toBeLessThanOrEqual with tests * expect types * switch expressions
2022-12-01bun test `toStrictEqual` (#1568)Gravatar Dylan Conway 1-1/+2
* 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-01Reduce memory usage in Bun.serve() by up to 3x (#1569)Gravatar Jarred Sumner 1-1/+3
* 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-29Remove some dead bindings codeGravatar Jarred Sumner 1-324/+36
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-1/+1
2022-11-28toHaveProperty and tests (#1558)Gravatar Dylan Conway 1-1/+2
* toHaveProperty and tests * emoji tests
2022-11-27[console.log] Fix printing latin1 supplement characters at runtimeGravatar Jarred Sumner 1-1/+2
Fixes https://github.com/oven-sh/bun/issues/1031#issuecomment-1236092120
2022-11-25Introduce `FileSink.ref()` and `FileSink.unref()`Gravatar Jarred Sumner 1-4/+8
2022-11-23Bun.deepEquals and expect().toEqual() (#1548)Gravatar Dylan Conway 1-1/+2
* all of deepEquals * remove comment, tests, move inline function
2022-11-23possibly more reliable Bun.spawn (#1547)Gravatar Jarred Sumner 1-1/+1
* wip * wip * Fix bug with stdin * zig fmt * seems to work! * Update streams.test.js Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-20Fix spurious rejected promise handler callsGravatar Jarred Sumner 1-2/+2
2022-11-18bun test matchers and tests (#1526)Gravatar Dylan Conway 1-2/+3
* ignore webkit for cherry-pick * toContain and toBeTruthy * toBe null, undefined, falsy, toHaveProperty, .not * markBindings * remove toHaveProperty, undo ignore webkit, more tests * undo ignore webkit * remove bad tests * check if length property exists for toHaveLength() * fix call signature * handle argument that is not an integer * getLengthOfArray returns u64 * switch to truncate * toHaveLength() edge cases * add toBooleanSlow() * infinity, nan, negative
2022-11-13Make node streams faster (#1502)Gravatar Jarred Sumner 1-1/+1
* Make node streams faster * Fix for macOS, improve performance, handle ref and unref Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-06Add way to explicitly coercion object to int32Gravatar Jarred Sumner 1-1/+2
2022-10-28Upgrade WebKitGravatar Jarred Sumner 1-1/+1
2022-10-25TCP & TLS Socket API (#1374)Gravatar Jarred Sumner 1-1/+1
* TCP Socket API * Wip * Add snippet for StringDecoder * Rename `close` to `stop`, replace `close` with `end` * Add a tcp echo server test * Some docs * Update README.md * Fix build * Update README.md Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-10-20Fix Bun.serve error handler error param (#1359)Gravatar zhiyuan 1-1/+2
2022-10-17add oniguruma for regex with variable length lookbehinds (#1329)Gravatar Dylan Conway 1-1/+1
* added pcre2 submodule * pcre2 regex boilerplate * tests for pcre2 regex * flag validation, getters, construct and compile mostly working * string escaping for source and toString(), exec, more tests * flag sorting, match, matchAll, search, split, replace * remove lib link * add destructor to PCRE2RegExp * header include * removed ternary * switched to oniguruma for regex library * revert sql changes * fix indices flag, add tests * revert settings * working error messages * more tests for lastIndex, fix logic for compile and lastIndex * move oniguruma lib to deps out dir
2022-10-17Implement `sendText`, `sendBinary`, `publishText`, `publishBinary`Gravatar Jarred Sumner 1-1/+2
2022-10-15WebSocket Server supportGravatar Jarred Sumner 1-1/+1
2022-10-09Update WebKitGravatar Jarred Sumner 1-2/+2
2022-10-06Add simple Hot Module Reloading to bun's runtimeGravatar Jarred Sumner 1-1/+2
2022-10-05Add abstraction for ticking async event loopGravatar Jarred Sumner 1-1/+2
2022-10-01Increase test coverage for request body streamingGravatar Jarred Sumner 1-2/+2
There is still one memory issue to address
2022-09-28Clean up some of the event loop codeGravatar Jarred Sumner 1-1/+8
2022-09-28Fix several bugs with Request body streaming + store small response bodies ↵Gravatar Jarred Sumner 1-1/+3
without an extra memory allocation
2022-09-26[Web Streams] Add `body` to `Response` and `Request` (#1255)Gravatar Jarred Sumner 1-1/+7
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-09-22Faster `Blob` + begin to implement `FileSink`Gravatar Jarred Sumner 1-1/+20
2022-09-14Make `crypto.getRandomValues()` faster + fix > 1 byte/element typed arraysGravatar Jarred Sumner 1-1/+17
Fix crypto.getRandomValues() with > 1 byte element typed arrays Fixes https://github.com/oven-sh/bun/issues/1237
2022-09-09[bun:ffi] Add `f32`, `f64`, `i64`, u64` to `read`Gravatar Jarred Sumner 1-1/+33
2022-09-09[breaking][bun:ffi] Change the pointer representation to be a 52-bit integerGravatar Jarred Sumner 1-1/+1
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-08[bun:ffi] Implement `read.{u8,i8,i16,i32,u16,u32,ptr,intptr}`Gravatar Jarred Sumner 1-1/+65
`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-08-27Update WebKit (#1165)Gravatar Jarred Sumner 1-11/+19
* Update WebKit * Fix `DataView` and non-8 bit sized typed arrays with TextDecoder * New WebKit Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-08-27Fix ffi uint64_t parameter (#1158)Gravatar Zilin Zhu 1-1/+1