Jarred Sumner
e035084e49
Fix mimetype value
2022-04-01 19:50:38 -07:00
Jarred Sumner
e3fb88b06a
[bun.js] configuration and error handling for HTTP server
2022-03-25 07:12:02 -07:00
Jarred Sumner
be5789fe01
Auto-detect MimeType based on file extension
2022-03-24 22:29:05 -07:00
Jarred Sumner
7dc76bf709
Set charset=utf-8 for better consistentcy
2022-03-18 20:18:58 -07:00
Jarred Sumner
74f4c8bcab
query_string_map -> url
2022-03-17 01:27:35 -07:00
Jarred Sumner
701d6ec45d
rename _global -> bun
2022-03-08 18:54:54 -08:00
Jarred Sumner
7c5c6cd519
source maps work for app code in bun dev!
2022-03-06 07:35:16 -08:00
Jarred Sumner
51fbbea1d3
upgrade zig
2022-03-04 00:20:22 -08:00
Jarred Sumner
871780fd28
Make http requests a little faster
2022-03-02 21:17:50 -08:00
Jarred Sumner
a9d99dc0e5
DELETE header
2022-03-02 17:49:55 -08:00
Jarred Sumner
78cae049d2
cleanup code that checks if it should send an HTTP body
2022-03-01 22:19:15 -08:00
Jarred Sumner
50560e169c
WASM
2022-02-27 23:20:10 -08:00
Jarred Sumner
931670b7cb
Wrap some usages of assert in a conditional
...
See https://github.com/ziglang/zig/issues/10942
2022-02-21 16:27:44 -08:00
Jarred Sumner
1ecd66e55d
Update mime_type.zig
2022-02-20 16:23:41 -08:00
Jarred Sumner
79974e4d81
[bun dev] Errors with file names can be opened in editor now
2022-02-18 20:46:55 -08:00
Jarred Sumner
8325db48ab
MimeType from string
2022-02-14 04:28:13 -08:00
Jarred Sumner
d67c95d8eb
[bun install] Implement bunfig.toml config
2022-02-11 19:01:00 -08:00
Jarred Sumner
6cf3a08780
Further reliability improvements to http client
2022-02-05 00:30:28 -08:00
Jarred SUmner
dabcac2e96
Several reliability improvements to HTTP
2022-02-04 20:50:21 -08:00
Jarred Sumner
a9577c9ba8
[http] fix segfault
2022-02-04 00:57:30 -08:00
Jarred Sumner
baffe26dd1
Fix bug with http client
2022-02-03 21:01:14 -08:00
Jarred Sumner
1a4ccd3f5c
[http] Fixes to chunked transfer encoding reader
2022-02-02 18:07:05 -08:00
Jarred Sumner
213960a04a
Limit the number of pooled objects
2022-02-01 20:47:35 -08:00
Jarred Sumner
170e58a99d
Fix biggest issue with HTTPS client!
2022-02-01 18:51:25 -08:00
Jarred Sumner
fa971895a8
partial read
2022-02-01 17:19:29 -08:00
Jarred Sumner
5d7c34093f
new boringSSL integration almost works with TLS 1.3
2022-02-01 14:45:47 -08:00
Jarred Sumner
9322cec8f2
WIP
2022-02-01 14:45:47 -08:00
Jarred Sumner
14301284af
cleanup
2022-01-29 23:50:38 -08:00
Jarred Sumner
9db4d195a7
Split http into files
2022-01-25 20:00:23 -08:00
Jarred Sumner
5311219de7
dead code
2022-01-03 22:26:24 -08:00
Jarred SUmner
a17088363f
[bun dev] Improve filesystem watcher & HMR reliability (Linux + a little macOS)
...
Text editors like Replit save through atomic file updates. In an inotify filesystem watcher (Linux), that appears to be a delete followed by moving the file to the directory. Now when known files are moved into a directory, the watcher sends the file change notification to the browser(s). From there, the browser looks at it's files to determine whether or not
Additionally, if an existing HMR connection does not know about a file ID passed to it, it asks the browser to reply with the file path and then starts watching that file. This improves HMR reliabiality if Bun had been restarted but the page hadn't been restarted.
2022-01-01 01:53:50 -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
8d031f13c0
zig fmt
2021-12-29 02:49:25 -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
e1505d88b1
Prevent crash due to SIGPIPE
2021-12-23 00:43:34 -08:00
Jarred Sumner
d39cc1fb5f
Keep it at 1024, but should be okay since we now reduce it
2021-12-22 19:16:47 -08:00
Jarred Sumner
2cfdf29364
Fix error from requesting too much from io_uring
2021-12-22 19:05:39 -08:00
Jarred Sumner
8dcaaa9e09
packaging
2021-12-17 02:43:43 -08:00
Jarred Sumner
49d8ea4886
[bun install] Fix case when lockfile exists
2021-12-16 19:18:51 -08:00
Jarred Sumner
5844166047
[bun install] Load lockfile. Generate diffs
2021-12-16 19:18:51 -08:00
Jarred Sumner
b5744e5da4
save and load manifest
2021-12-16 19:18:51 -08:00
Jarred Sumner
809c1e46d8
[npm install] starting to look good!
2021-12-16 19:18:51 -08:00
Jarred Sumner
c056093125
WIP
2021-12-16 19:18:51 -08:00
Jarred Sumner
88ea1de80f
📻
2021-12-16 19:18:51 -08:00
Jarred Sumner
c6317888da
Fix redirects
2021-12-16 19:18:51 -08:00
Jarred Sumner
9f1946ce70
[npm install] Use BoringSSL for https:// requests
2021-12-16 19:18:51 -08:00
Jarred Sumner
32be2866f6
Replace S2N with BoringSSL (wip)
2021-12-16 19:18:51 -08:00
Jarred SUmner
e331ebbf7d
[bun install] Linux async http
2021-12-16 19:18:51 -08:00
Jarred Sumner
b1660fa468
[bun install] async http request works I think?
2021-12-16 19:18:51 -08:00
Jarred Sumner
88a5e2d34d
Add TLS 1.3 support, improve fetch() HTTPS performance
2021-10-13 00:27:35 -07:00