aboutsummaryrefslogtreecommitdiff
path: root/src/cli/create_command.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-09-22Remove bun dev stuff from create_command (#5939)Gravatar Colin McDonnell 1-329/+330
2023-09-11add NODE_TLS_REJECT_UNAUTHORIZED (#4829)Gravatar Ciro Spaciari 1-0/+6
2023-09-07Progress for Next.js (#4468)Gravatar dave caruso 1-1/+1
* L * ipc * asdfghjkl * dfghjk * it works! * types * patches for next.js * sdfghj * wsdfgn,./ * this * yolo * okay loser * asdfghjk * add some more APIs * MESS * sdfghjkl * remove native events from streams * stuff * remove lazy(primordials) test * debugging * okay * less fake extensions object * fix `Buffer.toString()` args logic * fix deserialize * make tests work * add test for `Buffer.toString` args * Update server.zig * remove test * update test * Update spawn-streaming-stdin.test.ts * fix linux build * Update fs.test.ts * cli message improvements * dfshaj * Fix fs.watch bug maybe? * remove --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2023-08-28just kernel32 things (#4354)Gravatar Jarred Sumner 1-25/+38
* just kernel32 things * more * Update linux_c.zig * Update windows_c.zig * Add workaround Workaround https://github.com/ziglang/zig/issues/16980 * Rename http.zig to bun_dev_http_server.zig * Rename usages * more * more * more * thanks tigerbeetle * Rename `JSC.Node.Syscall` -> `bun.sys` * more * woops * more! * hmm * it says there are only 37 errors, but that's not true * populate argv * it says 32 errors! * 24 errors * fix regular build * 12 left! * Still 12 left! * more * 2 errors left... * 1 more error * Add link to Tigerbeetle * Fix the remainign error * Fix test timeout * Update syscall.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-21fetch(stream) add stream support for compressed and uncompressed data (#4127)Gravatar Ciro Spaciari 1-4/+52
* streams non compressed data in 64kb chunks (at least) * fmt * wip remove pause * fix default streaming and buffering * fix atomic lags * fix size * make chunked encoding work again (WIP streaming chunked) * WIP: chunked encoding streaming * fix end of streamings * working streaming + compression * add fixes + tests * fmt + fix proxy * fix oopsies * codegen after merge * fmt + fixes * more fixes * more fixes and logs * avoid double free * check empty before pop * check empty on pop * fix copy to real when complete * remove unnecessary logs * better has_schedule_callback swap, body locked size helper, remove isEmpty from unbounded_queue pop * fix response ref, fix body_size * add deflate support, fix error throw, add more tests * codegen after merge * remove logs, add connection close test * fix macOS build * fix redirect error option * make body_size more clear * support new Reponse(response) * toString DOMWrapper objects properly instead of supporting response in Response constructor * ignore headers with no name, add more tests * oops * handle transform with fetch * add gz image stream test * remove duplicate test * fix missing chunk on macOS under pressure * oops include all OS * some fixes * compare buffers instead of sizes * refactor err.err and protect it
2023-08-11Deprecate loading `node_modules.bun` (#4131)Gravatar Jarred Sumner 1-1/+1
* Deprecate loading `node_modules.bun` * realpath * regenerate schema * More * more * Update cli.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-18zig upgrade (#3667)Gravatar Dylan Conway 1-13/+13
* upgrade * more fixes * Bump Zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-21upgrade zig to `v0.11.0-dev.3737+9eb008717` (#3374)Gravatar Dylan Conway 1-16/+16
* 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-05-10feat(fetch) add redirect: 'error' support (#2845)Gravatar Ciro Spaciari 1-4/+4
* add redirect: 'error' support * fix typo * fix typo * refactor FetchRedirect enum * fix FetchRedirect * updated
2023-04-22Make `Bun.build` more reliable (#2718)Gravatar Jarred Sumner 1-2/+2
* 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-19Fix broken autocompleteGravatar Jarred Sumner 1-6/+6
2023-04-09Remove usages of `void{}` in favor of `{}`Gravatar Jarred Sumner 1-10/+10
See https://github.com/ziglang/zig/issues/15213
2023-04-07feat(tls.Server) basic support (cert, key, rejectUnauthorized, requestCert, ↵Gravatar Ciro Spaciari 1-4/+4
ca) #2412 (#2552) * cherry picked * add StringOrBuffer parameter * Format and adds types * update uws * fix tests * more types * fix typing * add timeouts, clean some stuff * move tests to describe * fixes SSL hostname when Host is provided * cleanup on tests * change 127.0.0.1 to 0.0.0.0 * try another listening parameter * test timings and update uws * remove unnecessary comment * move listening event around * always await Bun.connect * do not fail if the tests already passed when using Bun.connect * regenerate classes * undo generated classes * generate classes * fix merge --------- Co-authored-by: cirospaciari <cirospaciari@MiWiFi-RA82-srv.cirospaciari>
2023-03-01Revert "Update clap (#2238)"Gravatar Jarred Sumner 1-22/+22
This reverts commit 7b9a17f9d7106ffd8e553a5192aba60d14ea5e9c.
2023-02-28Update clap (#2238)Gravatar Justin Whear 1-22/+22
* 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-24prefer `bun.copy()` over `std.mem.copy()` (#2152)Gravatar Alex Lam S.L 1-4/+4
2023-02-23Upgrade Zig (#2151)Gravatar Dylan Conway 1-8/+8
* fixup * Upgrade Zig * Remove bad assertion * strings * bump * mode -> optimize * optimize * Linux build * Update bindgen.zig
2023-01-17feat(cli): Support `HTTPS_PROXY`, `HTTP_PROXY`, and `NO_PROXY` #1440 (#1814)Gravatar Ciro Spaciari 1-44/+17
* WIP: http_proxy implemented, first steps for https_proxy #1440 * add HTTP_PROXY support to upgrade_command and WIP: tunneling * WIP async handshake, stuck on WANT_READ, try to defer + check * create and upgrade with proxy working, TLS and non-TLS to proxy TLS working * bun install/upgrade/create working with http(s)_proxy #1440 * add NO_PROXY support #1440 * remove commented code and add TODO * fix getHttpProxy no_proxy * fix formatting * refactor catch and getHttpProxy, fix empty strngs in env for proxy * allow optimization for handleResponseBody
2023-01-13move more thingsGravatar Jarred SUmner 1-4/+4
2023-01-13Split some things into more files and use bun namespace instead of import moreGravatar Jarred SUmner 1-1/+1
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-12/+22
* @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-06Fix glibc symbol version issues preventing `bun install` from being used in ↵Gravatar Jarred Sumner 1-9/+3
older glibc versions (#1580) * Prevent integer overflow in connectError * Add missing deepEquals() type to Bun * fix missing glibc symbols * Fix missing symbol issues * Try this * Update glibc-versions-hack.cpp * Update glibc-versions-hack.cpp * Update glibc-versions-hack.cpp Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-04[internal] Make string comparisons fasterGravatar Jarred Sumner 1-1/+1
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-7/+7
2022-09-16Make new HTTP client more stableGravatar Jarred Sumner 1-8/+22
2022-09-11New HTTP client (#1231)Gravatar Jarred Sumner 1-5/+23
* wip * It mostly works! * Support `bun install` * Support `bun create` * Support chunked transfer encoding * Handle Keep Alive when redirecting to a different domain Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-08-13Improve event loop reliability on LinuxGravatar Jarred SUmner 1-1/+1
2022-08-04[bun create] Allow custom `start` commandsGravatar Jarred Sumner 1-3/+14
2022-07-27[misc] Replace reference to old repoGravatar Jarred Sumner 1-3/+3
2022-07-10Merge pull request #464 from dkarter/mainGravatar Michell Brito 1-1/+1
fix: remove unnecessary quotes in commit message
2022-07-10Remove unnecessary `Output.flush`s before `Global.exit` and `Global.crash` ↵Gravatar r00ster91 1-22/+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-09fix: update build files to latest Zig versionGravatar sno2 1-8/+5
2022-07-08fix: remove unnecessary quotes in commit messageGravatar Dorian Karter 1-1/+1
These quotes are not necessary and appear literally in the commit
2022-07-05[create] Don't print timestamp because it formats weirdGravatar Jarred Sumner 1-3/+0
2022-07-01update cli comment to match the create next app instructionsGravatar Koka Easwarendra 1-1/+1
2022-06-22change the directory structurejarred/renameGravatar Jarred Sumner 1-1/+1
2022-05-05E.String gets a RopeGravatar Jarred Sumner 1-26/+26
2022-03-30Bump target next version to 12.1.3Gravatar Jarred Sumner 1-1/+1
2022-03-17query_string_map -> urlGravatar Jarred Sumner 1-1/+1
2022-03-14fix crash in `bun create`Gravatar Jarred Sumner 1-3/+4
2022-03-08rename _global -> bunGravatar Jarred Sumner 1-18/+18
2022-03-04upgrade zigjarred/upgrade-zig-2Gravatar Jarred Sumner 1-9/+8
2022-02-27WASMGravatar Jarred Sumner 1-2/+2
2022-02-27[JSON] Use UTF-8 JSON parser when it's not for JavaScriptGravatar Jarred Sumner 1-1/+1
2022-02-25bump target nextjs versionGravatar Jarred Sumner 1-1/+1
2022-02-25[bun install] Add metadata hashGravatar Jarred Sumner 1-0/+2
2022-02-11`std.os.`exit -> `Global.exit` so stderr is always flushedGravatar Jarred Sumner 1-20/+20
2022-01-28Update AST layout to store capacity for itemsGravatar Jarred Sumner 1-33/+32
We want to be able to push to the list
2022-01-05Fix crash that sometimes happens after 30 secondsGravatar Jarred Sumner 1-4/+4
2022-01-04Improve how we detect if terminal colors are supportedGravatar Jarred Sumner 1-1/+2