Jarred Sumner
7bd6a1f86d
Remove usages of void{} in favor of {}
...
See https://github.com/ziglang/zig/issues/15213
2023-04-09 05:39:05 -07:00
Ciro Spaciari
6baedd27bc
feat(tls.Server) basic support (cert, key, rejectUnauthorized, requestCert, 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-04-07 04:02:05 -07:00
Jarred Sumner
6bc075e377
Revert "Update clap ( #2238 )"
...
This reverts commit 7b9a17f9d7 .
2023-03-01 16:17:47 -08:00
Justin Whear
7b9a17f9d7
Update clap ( #2238 )
...
* 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-28 13:49:05 -08:00
Alex Lam S.L
e887a064fb
prefer bun.copy() over std.mem.copy() ( #2152 )
2023-02-24 05:53:26 -08:00
Dylan Conway
3f04f8d0a6
Upgrade Zig ( #2151 )
...
* fixup
* Upgrade Zig
* Remove bad assertion
* strings
* bump
* mode -> optimize
* optimize
* Linux build
* Update bindgen.zig
2023-02-23 23:57:19 -08:00
Ciro Spaciari
c00fadab9e
feat(cli): Support HTTPS_PROXY, HTTP_PROXY, and NO_PROXY #1440 ( #1814 )
...
* 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-17 17:47:01 -08:00
Jarred SUmner
168bb1427f
move more things
2023-01-13 11:38:16 -08:00
Jarred SUmner
996ef44c02
Split some things into more files and use bun namespace instead of import more
2023-01-13 11:27:16 -08:00
Jarred Sumner
c0dd284136
Upgrade to latest Zig ( #1610 )
...
* @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
* 📷
* 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-28 00:51:22 -08:00
Jarred Sumner
81317a52ea
Fix glibc symbol version issues preventing bun install from being used in 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-06 14:14:27 -08:00
Jarred Sumner
714ce7619d
[internal] Make string comparisons faster
2022-12-04 06:53:53 -08:00
Jarred Sumner
b631ea7d72
import everything from "bun" where possible
2022-11-29 02:42:56 -08:00
Jarred Sumner
0ce709d96a
Make new HTTP client more stable
2022-09-16 00:53:03 -07:00
Jarred Sumner
9a5aa059f9
New HTTP client ( #1231 )
...
* 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-09-11 13:37:17 -07:00
Jarred SUmner
0815c83974
Improve event loop reliability on Linux
2022-08-13 06:07:18 -07:00
Jarred Sumner
7ba61bc983
[bun create] Allow custom start commands
2022-08-04 21:41:12 -07:00
Jarred Sumner
bd547ace80
[misc] Replace reference to old repo
2022-07-27 21:20:45 -07:00
Michell Brito
5a8b3b8ad7
Merge pull request #464 from dkarter/main
...
fix: remove unnecessary quotes in commit message
2022-07-10 23:42:44 -04:00
r00ster91
16452c16da
Remove unnecessary Output.flushs before Global.exit and Global.crash ( #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-10 06:44:57 -07:00
sno2
f5d896542a
fix: update build files to latest Zig version
2022-07-09 18:25:25 -07:00
Dorian Karter
b0760bbab5
fix: remove unnecessary quotes in commit message
...
These quotes are not necessary and appear literally in the commit
2022-07-08 18:46:53 -05:00
Jarred Sumner
0d54275314
[create] Don't print timestamp because it formats weird
2022-07-05 10:29:03 -07:00
Koka Easwarendra
7907de58be
update cli comment to match the create next app instructions
2022-07-01 19:12:01 -07:00
Jarred Sumner
729d445b68
change the directory structure
2022-06-22 23:21:48 -07:00
Jarred Sumner
d629cfafd6
E.String gets a Rope
2022-05-05 21:32:19 -07:00
Jarred Sumner
47a9a452d8
Bump target next version to 12.1.3
2022-03-30 18:58:07 -07:00
Jarred Sumner
74f4c8bcab
query_string_map -> url
2022-03-17 01:27:35 -07:00
Jarred Sumner
2d1538e698
fix crash in bun create
2022-03-14 21:10:25 -07:00
Jarred Sumner
701d6ec45d
rename _global -> bun
2022-03-08 18:54:54 -08:00
Jarred Sumner
51fbbea1d3
upgrade zig
2022-03-04 00:20:22 -08:00
Jarred Sumner
50560e169c
WASM
2022-02-27 23:20:10 -08:00
Jarred Sumner
608b906bd5
[JSON] Use UTF-8 JSON parser when it's not for JavaScript
2022-02-27 04:55:20 -08:00
Jarred Sumner
f90ea81d58
bump target nextjs version
2022-02-25 02:18:07 -08:00
Jarred Sumner
293a9bc811
[bun install] Add metadata hash
2022-02-25 00:48:36 -08:00
Jarred Sumner
3d057950b9
std.os.exit -> Global.exit so stderr is always flushed
2022-02-11 14:56:28 -08:00
Jarred Sumner
97d17904d3
Update AST layout to store capacity for items
...
We want to be able to push to the list
2022-01-28 19:26:03 -08:00
Jarred Sumner
4b717fe554
Fix crash that sometimes happens after 30 seconds
2022-01-05 16:41:58 -08:00
Jarred Sumner
0ac9c4276f
Improve how we detect if terminal colors are supported
2022-01-04 19:57:14 -08:00
luke miles
7f33846005
copy: replace Bun with bun ( #99 )
...
Most CLI tools have the style convention of referring to themselves in
lowercase. It is, after all, the name that users type in when using
the tool. This PR maintains that convention in bun.
"Drop the uppercase B, it's cleaner"
2022-01-02 03:09:51 -08:00
Jarred Sumner
b1c3fce49b
[internal] Move network_thread into http package
2021-12-30 21:27:27 -08:00
Jarred Sumner
e75c711c68
Upgrade to latest Zig, remove dependency on patched version of Zig ( #96 )
...
* Prepare to upgrade zig
* zig fmt
* AllocGate
* Update data_url.zig
* wip
* few files
* just headers now?
* I think everything works?
* Update mimalloc
* Update hash_map.zig
* Perf improvements to compensate for Allocgate
* Bump
* 📷
* Update bun.lockb
* Less branching
* [js parser] Slightly reduce memory usage
* Update js_parser.zig
* WIP remove unused
* [JS parser] WIP support for `with` keyword
* Remove more dead code
* Fix all the build errors!
* cleanup
* Move `network_thread` up
* Bump peechy
* Update README.md
2021-12-30 21:12:32 -08:00
Jarred Sumner
fb34ebc674
Update create_command.zig
2021-12-28 03:16:29 -08:00
Jarred Sumner
6c867c34d7
Fix edgecase in bun create tasks
2021-12-28 03:15:53 -08:00
Jarred Sumner
336a4b6ac2
Prepare to run unit tests & remove some dead code ( #92 )
...
* Remove some dead code
* 💀 code
* Fix the zig tests
* [JS Printer] Print integers faster & less scientific notation on decimals
* 💀 dead code
* skip
* Run all the unit tests
2021-12-27 18:06:31 -08:00
Jarred Sumner
143973e031
Fix rare crash when new thread is created, possibly only on musl
2021-12-24 20:44:25 -08:00
Jarred Sumner
a94bbd8f3c
[bun create] Run with bun run
2021-12-24 06:15:44 +00:00
Jarred Sumner
430fe09d6d
Delete synchronous HTTP client!
2021-12-18 20:23:10 -08:00
Jarred Sumner
501fab0bef
2x - 5x faster bun create
2021-12-18 20:02:33 -08:00
Jarred Sumner
b126392a8e
Fix missing symbol error for pre-macOS 11
2021-11-09 14:13:58 -08:00