Jarred Sumner
9da7a1ff0a
💀 dead code
2022-01-04 22:20:01 -08:00
Jarred Sumner
6a28cfd2ba
[bun dev] Automatically set origin - improve support for proxying Bun
...
Previously, when running Bun behind a reverse proxy, you had to pass an explicit `--origin` arg and it could only run behind one proxy at a time.
Now, Bun automatically determines the origin from the request if possible. It reads `Forwarded`, `X-Forwarded-Proto`, `X-Forwarded-Host`, `Origin`, and lastly `Host`. If none are available, it falls back to the `--origin` CLI arg.
This change is important for usecases like Replit which shows multiple iframes in different origins.
2022-01-01 18:12:57 -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
58b196c583
rewrote most of the router
2021-10-20 04:18:29 -07:00
Jarred Sumner
1ada4a2c67
Fix bug in URL parser
2021-09-27 16:08:57 -07:00
Jarred Sumner
f12dd51c00
Update query_string_map.zig
2021-09-22 16:19:25 -07:00
Jarred Sumner
fc907e2f81
current
2021-09-09 23:33:34 -07:00
Jarred Sumner
8a02ad48a5
fetc h!!!
2021-09-09 05:40:07 -07:00
Jarred Sumner
bd9f137b1b
latest
...
Former-commit-id: 096ec1222ad723d006b0151f10cb0c1b95e2bfd3
2021-08-29 21:48:14 -07:00
Jarred Sumner
3ae0accbe3
Fix file loader, automatically support CSS imports when a framework isn't set
...
Former-commit-id: 94750e5987ea8f6e4c946bfc06715e09a48c0eec
2021-08-26 19:56:25 -07:00
Jarred Sumner
8c67007926
Use mimalloc for a 10% boost
...
Former-commit-id: 044e11d720bc6742dc53b30b4e88e8be7e76c419
2021-08-23 02:29:07 -07:00
Jarred Sumner
16c7674304
lots
...
Former-commit-id: 0b8128cb3b4db02f9d33331b4c2c1b595156e6c8
2021-08-14 02:39:44 -07:00
Jarred Sumner
de35ad995e
SSR!
...
Former-commit-id: bbc23b382c2eec15436fad632f5efe06e8e8360d
2021-08-07 18:57:41 -07:00
Jarred Sumner
8ce74beafa
Clean up logic for choosing when to use filesystem router or public dir
...
Former-commit-id: 84bb17d9e0dd6e31995afb7b2f49436187fc9f76
2021-08-07 15:24:37 -07:00
Jarred Sumner
7b48e206db
Dynamic routes resolve! Just gotta pass query params to the JS correctly
...
Former-commit-id: 2c4d3184a4f06ba9dd7d27d653834589796ebd0f
2021-08-07 02:28:53 -07:00
Jarred Sumner
4b1f89114e
Query String parser with JS integration
...
Former-commit-id: 8542778c30e9757fa87514f46ff5086d7c8f6bfa
2021-08-06 23:28:13 -07:00