Jarred Sumner
016a9d6535
Update base.zig
2022-09-29 10:52:41 -07:00
Jarred Sumner
9f10c1a805
Fix Bun.serve not keeping process alive
2022-09-29 10:26:40 -07:00
Jarred Sumner
7631a47612
Fix console.log(ModuleNamespace)
2022-09-29 00:22:51 -07:00
Jarred Sumner
b8851143f9
Update streams.zig
2022-09-28 23:56:38 -07:00
Jarred Sumner
f3028ff6f3
Use uSockets for setTimeout and setInterval
2022-09-28 23:45:31 -07:00
Jarred Sumner
1636291b03
/s/c_int/i32
2022-09-28 23:39:10 -07:00
Jarred Sumner
e69e8d35b9
Fix unreachable
2022-09-28 23:38:54 -07:00
Jarred Sumner
9438540bf9
Fix a crash with fetch(url, {body: arrayBuffer}) introduced with the Blob changes
...
cc @bwasti
2022-09-28 23:38:42 -07:00
Jarred Sumner
d34179b9eb
Queue tests rather than run immediately
2022-09-28 23:38:04 -07:00
Jarred Sumner
90074ce98c
Clean up WebSocket never starting
2022-09-28 23:37:40 -07:00
Jarred Sumner
fd0054a800
Outer event loop tweaks
2022-09-28 23:37:09 -07:00
Jarred Sumner
0fb5f15673
Fix a crash in HTMLRewriter caused by blob changes
2022-09-28 23:34:12 -07:00
Jarred Sumner
16929129f0
Clean up some of the event loop code
2022-09-28 23:34:03 -07:00
Jarred Sumner
524e48a81d
make bun:test ~300x faster when using http server, websockets, etc
...
there was an event loop bug
2022-09-28 23:07:18 -07:00
Jarred Sumner
b74351e55f
Support a default object in CommonJS wrapper
...
Fixes https://github.com/oven-sh/bun/issues/1284
Related to https://github.com/oven-sh/bun/issues/1285
2022-09-28 14:37:35 -07:00
Jarred Sumner
a1b4dc42cb
Implement reportExtraMemoryVisited and reportExtraMemoryAllocated in bindings
2022-09-28 14:36:44 -07:00
Jarred Sumner
5ae5125919
size estimatoor
2022-09-28 11:10:20 -07:00
Jarred Sumner
82a68cd3da
fixup
2022-09-28 00:52:25 -07:00
Jarred Sumner
a41150836a
Add missing commit
2022-09-28 00:20:12 -07:00
Jarred Sumner
e637b43117
Add missing commit
2022-09-28 00:18:50 -07:00
Jarred Sumner
443ba0f396
Inline blobs in the HTTP server
2022-09-28 00:12:31 -07:00
Jarred Sumner
71ea4a2c9b
Fix several bugs with Request body streaming + store small response bodies without an extra memory allocation
2022-09-28 00:11:15 -07:00
Jarred Sumner
a8ab18bd50
Fix potential crash when TS code has an unexpected ")"
2022-09-27 09:40:29 -07:00
Jarred Sumner
ce91423a19
Update streams.zig
2022-09-26 20:49:44 -07:00
Jarred Sumner
5875d1419b
Make Bun.spawn, FileSink and FileBlobLoader a little more reliable
2022-09-26 20:35:26 -07:00
Jarred Sumner
24a9bc23b7
[Web Streams] Add body to Response and Request ( #1255 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-09-26 20:04:28 -07:00
Jarred Sumner
97c3688788
Make getting the body for fetch a little more reusable
2022-09-26 20:00:34 -07:00
Jarred Sumner
0b915b1dd2
Add missing ignoreUsage call
2022-09-26 19:59:38 -07:00
Jarred Sumner
a736010fdd
Fix crash when insufficient arguments
2022-09-26 10:30:33 -07:00
Jarred Sumner
b733125085
Fix console.log not printing an empty line
...
Depends on https://github.com/oven-sh/WebKit/actions/runs/3123884691/jobs/5066828848
Fixes https://github.com/oven-sh/bun/issues/1276
2022-09-25 15:49:35 -07:00
Jarred Sumner
5ef36f1b6f
Implement isatty in node:tty
2022-09-25 14:56:22 -07:00
Jarred Sumner
7cc772cd39
😪
2022-09-25 13:14:23 -07:00
Jarred SUmner
7ae73fad68
Make Linux implementation work
2022-09-25 13:14:23 -07:00
Jarred Sumner
96dcfd3cfe
Linux implementation
2022-09-25 13:14:23 -07:00
Jarred Sumner
9833841101
wip
2022-09-25 13:14:23 -07:00
Jarred Sumner
5b222996c8
Update bindings.zig
2022-09-23 03:21:38 -07:00
Jarred Sumner
62e22b2995
Implement Bun.which
2022-09-23 03:10:56 -07:00
Jarred Sumner
61d0c4042b
Use JSC heap for .arrayBuffer()
2022-09-23 00:26:23 -07:00
Jarred Sumner
de0b373c7c
Update streams.zig
2022-09-22 23:53:00 -07:00
Jarred Sumner
2c1926993b
Faster Blob + begin to implement FileSink
2022-09-22 23:45:02 -07:00
Jarred SUmner
e14a3af491
Fix linux build
2022-09-22 03:25:29 -07:00
Jarred Sumner
0968fd339f
Add epoll to list of syscalls that can fail
2022-09-22 03:06:48 -07:00
Jarred Sumner
2ca1861a54
Remove a mutex when enqueuing concurrent tasks
2022-09-22 02:38:36 -07:00
Jarred Sumner
ce9daa4857
1 event loop per thread. Instead of 3.
...
uWebSockets and uSockets will need to be upgraded to match the changes.
Previously:
- Bun had a separate kqueue/eventfd just for async wakeups.
- Bun had a separate kqueue/epoll just for reading files non-blocking in the same thread
This commit unifies it into one event loop per thread
2022-09-22 02:25:32 -07:00
Jarred Sumner
e15fb6b9b2
[breaking] Bun.serve().hostname should return the hostname instead of the baseURI
...
Previously Bun.serve().hostname was returning the baseURI, effectively the `origin`
That was incorrect.
Instead, it should be returning the hostname
2022-09-22 01:57:06 -07:00
Jarred Sumner
f1ffc72a62
Fix bun run foo -- by ignoring --
2022-09-22 01:56:07 -07:00
Jarred Sumner
37eee4235d
Fix preact & other "classic" jsx transforms, most likely
2022-09-21 20:00:12 -07:00
Jarred Sumner
871d530d6a
Fix crash with jsxFragment and jsxFactory in tsconfig.json
...
Fixes https://github.com/oven-sh/bun/issues/1269
2022-09-21 19:55:30 -07:00
Jarred Sumner
16b1e84138
Fix crash when creating an empty array
2022-09-21 18:52:24 -07:00
Jarred Sumner
100ce7b62f
Increase macro stack size
2022-09-21 00:00:46 -07:00