aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/ZigGlobalObject.cpp (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-05-04Add `UNLIKELY`Gravatar Jarred Sumner 1-2/+2
2023-05-04Throw error on non-file urlGravatar Jarred Sumner 1-1/+11
2023-04-25Implement `onResolve` plugins in `Bun.build()`, support multiple onLoad and ↵Gravatar Jarred Sumner 1-4/+0
onResolve plugins (#2739) * its 2023 * WIP `onResolve` plugins * more progress * it compiles * Lots of small fixes * Seems to work excluding entry points * Update BundlerPluginBuiltins.cpp --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-24Support plugins in `Bun.build` (#2720)Gravatar Jarred Sumner 1-0/+4
* wip * Implement `onLoad` plugins * Support exceptions and async `onLoad` plugins * Fix filtering * Handle empty files * Fix JSON loader --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-13Upgrade WebKit (#2643)Gravatar Jarred Sumner 1-3/+21
* Missing export * Regenerate builtins * Fix crash in require() * Various breaking JSC changes * hopefully speed up C++ compilation a little * Skip failing test fo rnow * Update WebKit * Add a comment * Fix error in postinstall * Update WebKit --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-03-22A couple bug fixes (#2458)Gravatar Dylan Conway 1-4/+2
* fix valid status code range * update path * highwatermark option * throw DOMException * remove extra transpiler output * more transpiler tests * comment * get index not quickly * replace with `getDirectIndex` * update abort test * throw out of range status code * promisify test fix * move stdio test instance files * working crypto tests * allow duplicate set-cookie headers * different formatting * revert, fix will be in different pr * it is called * use min buffer size * fix url tests * null origin for other protocols * remove overload * add very large file test * await * coerce to int64 * 64 * no cast * add todo blob url tests * use `tryConvertToInt52`
2023-02-28Expose JSC::Options via `BUN_JSC_` prefixGravatar Jarred Sumner 1-1/+17
Example usage: BUN_JSC_logGC=1 bun file.js
2023-02-26Add callback to benchGravatar Jarred Sumner 1-0/+8
2023-02-23Update ZigGlobalObject.cppGravatar Jarred Sumner 1-1/+1
2023-02-22[breaking] Return Node.js `Timeout` objects in `setTimeout`, `setInterval`, ↵Gravatar Jarred Sumner 1-53/+53
and `setImmediate` Fixes #2129 #880
2023-02-22Fixes #2121 in runtime, but not in testsGravatar Jarred Sumner 1-39/+47
2023-02-15feat(fetch) AbortSignal (#2019)Gravatar Ciro Spaciari 1-1/+1
* add fetch abort signal * get aborted (still segfaults) * bidings.zig u0 error * still GC/memory error * fix start crash * fix AbortSignal fromJS * change fromJS to obj.as * addAbortSignalEventListenner * handle abort types, and add tests * fix tests * add custom reason test * merge 2 substring methods, use MAKE_STATIC_STRING_IMPL * fix create AbortError and TimeoutError, move globalThis and exception creation to main thread * fix tests and rebuild headers * no need to check with substring reason is already an exception * no need to check with substring reason is already an exception * fix dumb error inverting conditions for check reason * fix custom reason behavior
2023-02-14Add workaround for `tls` and `worker_threads`Gravatar Jarred Sumner 1-0/+14
2023-02-13Implement `FormData` (#2051)Gravatar Jarred Sumner 1-0/+7
* Backport std::forward change * Implement `FormData` * Fix io_darwin headers issue * Implement `Blob` support in FormData * Add test for file upload * Fix bug with Blob not reading Content-Type * Finish implementing FormData * Add FormData to types --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-02-11Fixes https://github.com/oven-sh/bun/issues/2052Gravatar Jarred Sumner 1-4/+9
2023-02-10Enable https://github.com/tc39/proposal-set-methodsGravatar Jarred Sumner 1-0/+1
2023-02-03Support passing `Date` to `Bun.sleep`Gravatar Jarred Sumner 1-0/+8
2023-02-03Add test for propagating exceptionGravatar Jarred Sumner 1-4/+4
2023-02-03Introduce `await Bun.sleep(ms)`Gravatar Jarred Sumner 1-2/+47
2023-01-29[breaking] Add `binaryType` option to Bun.connect & Bun.listenGravatar Jarred Sumner 1-2/+5
This is a breaking change because the default is `Buffer`, but previously the default was `Uint8Array`. While `Buffer` is a subclass of `Uint8Array`, it still technically is a breaking change because `slice` in `Uint8Array` is not semantically identical to `slice` in `Buffer` cc @colinhacks, the .d.ts changes I made here aren't great.
2023-01-27`Buffer.from` doesn't need to be the Buffer constructorGravatar Jarred Sumner 1-1/+5
2023-01-27Make `Bun.dns` lazyGravatar Jarred Sumner 1-24/+37
2023-01-26Implement all pending resolve methods in DNS (#1903)Gravatar Ciro Spaciari 1-0/+27
* initial steps to create generic resolve * add soa * add naptr * add naptr * add mx and fix naptr * add resolve caa * fix Caa test * fix toJS from caa * add resolveNs * add resolvePtr * fix resolvePtr test * add resolveCname * add resolve rrtype options (still missing ANY) * fix Naptr * fix drainPendingCares
2023-01-22[EventEmitter] Preserve `this` in event emitter callbacksGravatar Jarred Sumner 1-20/+23
2023-01-22feat(dns) resolveSrv (#1870)Gravatar Ciro Spaciari 1-1/+4
* initial steps * in-progress resolveSrv support * fix memory leak and ZigGlobalObject * promise.resolve + fix priority and weight mistake * fix node dns export * little better test * add poll_ref to keep alive loop in callback for resolveSrv and lookup * add test for error case in resolveSrc * fix Bun.dns.resolveSrv type
2023-01-21Support query string parameters in module resolutionGravatar Jarred Sumner 1-3/+16
2023-01-18Fixes #1831Gravatar Jarred Sumner 1-0/+1
2023-01-17Fix lifetime issue in require.resolveGravatar Jarred Sumner 1-0/+13
2023-01-10attempt (unsuccessfully) to improve c++ build timeGravatar Jarred Sumner 1-0/+55
2023-01-07Implement DNS module (#1691)Gravatar Jarred Sumner 1-0/+10
* 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-0410x faster `new Buffer` (#1717)Gravatar Jarred Sumner 1-5/+33
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-20Update ZigGlobalObject.cppGravatar Jarred Sumner 1-3/+3
2022-12-20typoGravatar Jarred Sumner 1-3/+3
2022-12-20[web] Support multiple arguments in `setTimeout`, `setInterval`, and ↵Gravatar Jarred Sumner 1-3/+64
`setImmediate`
2022-12-17Delete Oniguruma (#1625)Gravatar Jarred Sumner 1-19/+0
* 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-17Add `strict` option to Bun.deepEqualsGravatar Jarred Sumner 1-5/+12
2022-12-12[crypto] Implement crypto.timingSafeEqualGravatar Jarred Sumner 1-0/+1
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-57/+42
2022-12-04Re-add missing globalGravatar Jarred Sumner 1-0/+1
2022-12-03`process.stdout` and `process.stderr`Gravatar Jarred Sumner 1-5/+1
2022-12-02Add `AbortSignal.timeout`Gravatar Jarred Sumner 1-0/+6
2022-12-01bun test `toStrictEqual` (#1568)Gravatar Dylan Conway 1-1/+1
* 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-013x faster `TextEncoder.prototype.encodeInto`Gravatar Jarred Sumner 1-9/+13
thanks to @Constellation for the tip
2022-11-30Accidentally deleted `prompt` as a result of the process.env changesGravatar Jarred Sumner 1-5/+1
2022-11-29:scissors:Gravatar Jarred Sumner 1-12/+1
2022-11-28Fix process.env and Bun.env object spreadGravatar Jarred Sumner 1-7/+11
Fixes https://github.com/oven-sh/bun/issues/1512
2022-11-25Enable Resizable ArrayBuffer proposalGravatar Jarred Sumner 1-0/+1
https://github.com/tc39/proposal-resizablearraybuffer
2022-11-23Bun.deepEquals and expect().toEqual() (#1548)Gravatar Dylan Conway 1-0/+31
* all of deepEquals * remove comment, tests, move inline function
2022-11-23possibly more reliable Bun.spawn (#1547)Gravatar Jarred Sumner 1-0/+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>