aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-03-01Update bindings.zigGravatar Jarred Sumner 1-1/+3
2023-03-01fix deinit behavior when connection is aborted using ResponseStream and ↵Gravatar Ciro Spaciari 2-34/+60
abort event behavior (#2252) * fix deinit behavior when connection is aborted using ResponseStream * fix abort handling on stream, and get better tests * avoid segfault by trying to deinit 2x when aborted * make tests more reliable * more reliable onResolveStream after aborted * add test case for not firing the abort signal
2023-03-01fix Bun.file.arrayBuffer() segmentation fault on empty file #2248 (#2249)Gravatar Ciro Spaciari 1-7/+15
* fix Bun.file.arrayBuffer() segmentation fault on empty file #2248 * cleanner this.iotask check
2023-02-28Make Bun.gc(true) more aggressiveGravatar Jarred Sumner 1-0/+3
2023-02-28Expose JSC::Options via `BUN_JSC_` prefixGravatar Jarred Sumner 6-8/+47
Example usage: BUN_JSC_logGC=1 bun file.js
2023-02-28fixupGravatar Jarred Sumner 1-1/+1
2023-02-28Add `-D`, `--dev` flags for bun install (#2240)Gravatar Justin Whear 1-9/+9
* remove vendored clap * Update to latest zig-clap Major changes: * Instead of vendoring zig-clap and adding changes, this uses Hejsil/zig-clap directly as a submodule * `cli.zig` and related files have been updated to use new API (no more `flag()` or `option()`) * A workaround for the Run and Auto commands has been implemented that allows us to use the official upstream Minor change: * `-i` now has the long option `--install-fallback`; I didn't spend much time thinking about this name, so suggestions weclome. * add --development and --optional to bun install * Add support for `-D`, `--dev` in bun install, fix `--save`
2023-02-28Update clap (#2238)Gravatar Justin Whear 13-1821/+268
* remove vendored clap * Update to latest zig-clap Major changes: * Instead of vendoring zig-clap and adding changes, this uses Hejsil/zig-clap directly as a submodule * `cli.zig` and related files have been updated to use new API (no more `flag()` or `option()`) * A workaround for the Run and Auto commands has been implemented that allows us to use the official upstream Minor change: * `-i` now has the long option `--install-fallback`; I didn't spend much time thinking about this name, so suggestions weclome. * deinit jsBundleArgs
2023-02-28Don't tick the event loop in spawnSyncGravatar Jarred Sumner 1-3/+1
2023-02-28Make response.body `null` only when user explicitly passes null/undefinedGravatar Jarred Sumner 3-2/+16
2023-02-28Add explicit Null tag to BodyGravatar Jarred Sumner 1-11/+11
This reverts commit e538bb31ad7a2c4b4ce2b1f7d6b18a3140939950.
2023-02-28Implement `preload` support (like `node -r ` except in a config file) (#2231)Gravatar Jarred Sumner 8-41/+220
* Update Makefile * Introduce `preload` * Add a test * Support entry points --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-02-27Add some more functions to sha benchGravatar Jarred Sumner 1-31/+110
2023-02-27fix(bun:sqlite): fix `sqliteDb.run(' ')` throwing `not an error` (#2226)Gravatar Derrick Farris 1-8/+8
2023-02-27use abort signal on http.ClientRequest (#2222)Gravatar Ciro Spaciari 1-18/+26
* use abort signal on http.ClientRequest * fix edge case and add test
2023-02-27add signal on http.Server.listen (#2223)Gravatar Ciro Spaciari 1-0/+6
* add signal on http.Server.listen * actual call close instead of just stopping the server
2023-02-27fix(fetch.signal) capture socket and shutdown on abort signal (#2143)Gravatar Ciro Spaciari 3-58/+86
* capture socket and shutdown on abort signal * queue shutdown tasks * little cleanup * change shutdown strategy * use fetchSwapRemove on fetch shutdown * use fetchSwapRemove on fetch shutdown * fix formatting, remove unused property
2023-02-27Bundler uses incorrect port when dev server is listening on non-default port ↵Gravatar Tamas Sule 1-3/+2
#1885 (#2191)
2023-02-27Feat/os.network interfaces (#2142)Gravatar Justin Whear 4-4/+305
2023-02-27resolve duplicated dependency correctly (#2213)Gravatar Alex Lam S.L 1-146/+123
2023-02-26Don't parse shasum twiceGravatar Jarred Sumner 1-6/+0
2023-02-26fix ANSI escape codes piped from `stdout` to file (#2202)Gravatar Alex Lam S.L 2-44/+13
2023-02-26Add callback to benchGravatar Jarred Sumner 1-0/+8
2023-02-25Update bun.zigGravatar Jarred Sumner 1-3/+5
2023-02-25Add more assertionsGravatar Jarred Sumner 1-3/+6
2023-02-25Use libc memmoveGravatar Jarred Sumner 2-66/+7
2023-02-25Faster `eqlCaseInsensitiveASCII`Gravatar Jarred Sumner 4-24/+26
2023-02-25Fixes #2194 (most likely)Gravatar Jarred Sumner 1-11/+8
2023-02-25improve `bun pm ls` (#2192)Gravatar Alex Lam S.L 1-42/+73
2023-02-25Call BoringSSL.load() in more placesGravatar Jarred Sumner 3-8/+16
2023-02-25Use mimalloc heap for BoringSSLGravatar Jarred Sumner 1-8/+6
2023-02-25Bump WebKitGravatar Jarred Sumner 1-0/+0
2023-02-25slight performance improvement to EventEmitterGravatar Jarred Sumner 4-41/+57
2023-02-25docs: consistent indentation for post install commands (#2175)Gravatar John Reilly 1-1/+1
2023-02-24wiptest -> testGravatar Dylan Conway 1-1/+1
2023-02-24Support macOS 10.15Gravatar Jarred Sumner 1-4/+75
Fixes #1266 Fixes #1323 Fixes #2154
2023-02-24fix `compiler_rt` linking failure on `x86_64` (#2163)Gravatar Alex Lam S.L 4-56/+34
- minor code tweaks
2023-02-24fix(dns) Fix resolve4 and resolve6 behavior (#2144)Gravatar Ciro Spaciari 1-30/+56
* fix https://github.com/oven-sh/bun/issues/2098 * fix last promisifyResolve call * avoid some functions alloc on dns.exports
2023-02-24Fix lol_html_rewriter_builder_add_document_content_handlers binding (#2161)Gravatar Justin Whear 2-11/+6
The `lol_html_rewriter_builder_add_document_content_handlers` does not return a status code and always succeeds; errors are reported on subsequent calls to `write` or `end`. Fixes #2024
2023-02-24formattingGravatar Dylan Conway 1-4/+1
2023-02-24Implement `os.cpus` for Darwin (OS X) (#2115)Gravatar Justin Whear 2-70/+173
* adding experimental Mac implementation os os.cpus * Simplify cpus interfaces * remove support for osx 10 * Refactor os.cpus implementation This commit substantially refactors how the Linux and Darwin implementations of `os.cpus`. The goal is to avoid unnecessary copying and allow broader latitude in responding to errors per implementation. * improved comments * ensure no buffer overrun * use PROCESSOR_CPU_LOAD_INFO_COUNT; not sure if this is correct * oh teh noes * use sliceTo instead of span * cpu_ticks are uints
2023-02-24fix(body) Make Request/Reponse empty body to be null (#2156)Gravatar Ciro Spaciari 1-2/+10
* make empty nullable * revert mistake change
2023-02-24prefer `bun.copy()` over `std.mem.copy()` (#2152)Gravatar Alex Lam S.L 52-565/+538
2023-02-24Update build-idGravatar Jarred Sumner 1-1/+1
2023-02-23Upgrade Zig (#2151)Gravatar Dylan Conway 101-526/+594
* fixup * Upgrade Zig * Remove bad assertion * strings * bump * mode -> optimize * optimize * Linux build * Update bindgen.zig
2023-02-23fix illegal memory reference in `bun link` (#2147)Gravatar Alex Lam S.L 1-14/+17
2023-02-23Update ZigGlobalObject.cppGravatar Jarred Sumner 1-1/+1
2023-02-22uninstallGravatar Dylan Conway 1-1/+1
2023-02-22feat(undici): add `undici.request` (#2136)Gravatar Derrick Farris 2-8/+219
* wip(undici): get basic requests working * wip(undici): implement most request params, add tests * fix(undici): get tests passing for `undici.request` * test(undici): test headers in `undici.request`
2023-02-22fix string diff extra newlineGravatar Dylan Conway 1-1/+1