aboutsummaryrefslogtreecommitdiff
path: root/src/http.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-07-18zig upgrade (#3667)Gravatar Dylan Conway 1-14/+14
* upgrade * more fixes * Bump Zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-16Add `--smol` flagGravatar Jarred Sumner 1-0/+1
2023-07-01Use `BunString` in `SystemError` (#3485)Gravatar Jarred Sumner 1-2/+3
* Use `BunString` in SystemError * Use Bun::toStringRef when we will de-ref strings * Move `napi_create_error` to C++ to support `code` being a Symbol potentially * Update blob.zig * Make this test less flaky --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-23[feat] fs.watch (#3249)Gravatar Ciro Spaciari 1-1/+6
* initial support * add types * fix comment * fix types * bigfix up * more fixes * fix some encoding support for watch * fix rename event * fixup * fix latin1 * add fs_events, still failing some tests * fixuup * remove unecesary check * readd tests ops * this is necessary? just testing CI/CD weird errors * just use dupe here * cleanup and fix deinit * fix zig upgrade
2023-06-21upgrade zig to `v0.11.0-dev.3737+9eb008717` (#3374)Gravatar Dylan Conway 1-22/+15
* progress * finish `@memset/@memcpy` update * Update build.zig * change `@enumToInt` to `@intFromEnum` and friends * update zig versions * it was 1 * add link to issue * add `compileError` reminder * fix merge * format * upgrade to llvm 16 * Revert "upgrade to llvm 16" This reverts commit cc930ceb1c5b4db9614a7638596948f704544ab8. --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-13Fix crash in CJS (#3294)bun-v0.6.9Gravatar Jarred Sumner 1-1/+1
* Fix crash in CJS * Add std.heap.ArenaAllocator * Use our arena allocator * Reduce JS parser memory usage and make HMR faster * Write some comments * fix test failure & clean up this code * Update javascript.zig * make arena usage safer --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-31`--no-macros` flag, disable macros in node_modulesGravatar Jarred Sumner 1-1/+10
2023-05-16fix asset naming output paths (#2904)Gravatar Dylan Conway 1-6/+6
* rename to `src_path` and `dest_path`, use `dest_path` for output * format * option for compile
2023-05-09Fix regression with `bun test` not recursively scanning the directory treeGravatar Jarred Sumner 1-0/+1
2023-04-27Implement `outdir` in `Bun.build`Gravatar Jarred Sumner 1-0/+2
2023-04-22Make `Bun.build` more reliable (#2718)Gravatar Jarred Sumner 1-4/+4
* One possible implementation to make `Bun.build` work better * Pass allocator in * Make our temporary buffers a little safer * rename * Fix memory corruption in symbol table * Add support for deferred idle events in ThreadPool * Free more memory * Use a global allocator FS cache * more `inline` * Make duping keys optional in StringMap * Close file handles more often * Update router.zig * wip possibly delete this commit * Fix memory issues and reduce memory usage * > 0.8 * Switch to AsyncIO.Waker and fix memory leak in JSBundleCompletionTask * We don't need to clone this actually * Fix error * Format * Fixup * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-20Symbol minification (#2695)Gravatar Dylan Conway 1-3/+1
* minify * Update renamer.zig * --minify-whitespace * Speed up minification a little * handle private names * 5% faster minification * use helper function * fix nested scope slots * `bun build --minify` gets another +8% faster * print semicolons afterwards * print semicolon after checking error * after all error checking * Delete code for generating legacy bundes * remove extra whitespace around if statements * print space before import identifier * Use `@constCast` * Make `S.Local#decls` use `BabyList(Decl)` * Add `fromSlice` helper to `BabyList` * Remove unnecessary optional chains * minify `undefined, true, false` * Another @constCast * Implement merge adjacent local var * Support --minify in `bun build --transform` * skip comments when counting character frequencies * Don't wrap commonjs with --transform on (unless targeting bun) * Support --minify in the runtime * Fix edgecase with import * as * don't infinite loop * --trnasform shouldn't mess with require * Only track comments when minifying --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-19Fix broken autocompleteGravatar Jarred Sumner 1-6/+6
2023-04-16Fix bugs with loading `jsxDEV` when it should be `jsx` or vice versaGravatar Jarred Sumner 1-1/+1
2023-02-28Expose JSC::Options via `BUN_JSC_` prefixGravatar Jarred Sumner 1-2/+2
Example usage: BUN_JSC_logGC=1 bun file.js
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-24prefer `bun.copy()` over `std.mem.copy()` (#2152)Gravatar Alex Lam S.L 1-8/+8
2023-02-23Upgrade Zig (#2151)Gravatar Dylan Conway 1-4/+4
* fixup * Upgrade Zig * Remove bad assertion * strings * bump * mode -> optimize * optimize * Linux build * Update bindgen.zig
2023-01-16Fix `getFdPath` when `/proc/fd` is not mountedGravatar Jarred Sumner 1-1/+1
2023-01-13move more thingsGravatar Jarred SUmner 1-3/+3
2023-01-13Split some things into more files and use bun namespace instead of import moreGravatar Jarred SUmner 1-1/+1
2023-01-10 use `strings.hasPrefixComptime()` (#1755)Gravatar Alex Lam S.L 1-23/+23
2023-01-03Remove usages of std.xGravatar Jarred Sumner 1-61/+60
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-32/+31
* @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-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-7/+7
2022-10-06Add simple Hot Module Reloading to bun's runtimeGravatar Jarred Sumner 1-5/+2
2022-08-18Fix `bun:wrap` not loadingGravatar Jarred Sumner 1-20/+28
2022-08-03Add `process.revision` and expose git sha to buildsGravatar Jarred Sumner 1-4/+4
2022-07-22[bun dev] Add flag to force hmrGravatar Jarred Sumner 1-3/+3
2022-07-10Remove unnecessary `Output.flush`s before `Global.exit` and `Global.crash` ↵Gravatar r00ster91 1-2/+0
(#535) * fix: add missing newline * refactor: std.process.exit -> Global.exit * fix: std.os.abort -> Global.exit I'm not sure about this one. Please verify. * cleanup: remove unnecessary `Output.flush`s
2022-07-09feat: update default favicon to new logoGravatar Snazzah 1-1/+1
2022-07-05mitigate HMR bugGravatar Jarred Sumner 1-3/+3
2022-07-02Rename `defaultErrorHandler` to `runErrorHandler`Gravatar Jarred Sumner 1-2/+2
2022-06-22change the directory structurejarred/renameGravatar Jarred Sumner 1-1/+1
2022-05-19[bun de] Fix crash when printing source mapsGravatar Jarred Sumner 1-11/+4
2022-05-19[wip] Solid.js support for Bun!Gravatar Jarred Sumner 1-0/+3
2022-04-18Fix wasm buildGravatar Jarred Sumner 1-3/+5
2022-04-11[bun.js] Add a `Server.stop` functionGravatar Jarred Sumner 1-2/+0
2022-04-11:scissors: dead codeGravatar Jarred Sumner 1-46/+12
2022-04-10make checking for bun modules a compile time stepGravatar Jarred Sumner 1-0/+2
2022-04-08Fix Next.js stylesheet bugGravatar Jarred Sumner 1-2/+10
2022-04-08remove some code bloatGravatar Jarred Sumner 1-19/+3
2022-04-05`[bun dev]` Fix segfaultsGravatar Jarred Sumner 1-30/+57
2022-03-31[bun dev] Re-create the shared buffer for each websocketGravatar Jarred Sumner 1-6/+5
2022-03-24Implement error page for HTTP serverGravatar Jarred Sumner 1-135/+32
2022-03-17Move `Bun` to JSC.APIGravatar Jarred Sumner 1-2/+2
2022-03-17query_string_map -> urlGravatar Jarred Sumner 1-1/+1
2022-03-14Fix a couple memory leaks in `bun dev`Gravatar Jarred Sumner 1-25/+88
2022-03-14[bun dev] Fix crash on macOSGravatar Jarred Sumner 1-0/+14
2022-03-11Source Maps for client-side errors & columnsGravatar Jarred Sumner 1-1/+12