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
Jarred Sumner
c01cba3ab5
Update types.zig
2022-09-20 23:57:45 -07:00
Jarred Sumner
ef1607c088
fixup
2022-09-20 23:57:07 -07:00
Jarred Sumner
123e8c8d2b
Update WebKit
2022-09-20 23:56:08 -07:00
Jarred Sumner
9667eec9de
Be more careful with process.argv
2022-09-20 23:56:08 -07:00
Jarred Sumner
e94e6d8d95
Allow .env files to define the same key multiple times
...
Fixes https://github.com/oven-sh/bun/issues/1262
2022-09-20 01:02:15 -07:00
Jarred Sumner
f0bc50eb71
meant to include this in the previous commit
2022-09-20 00:45:19 -07:00
Jarred Sumner
6163fb830e
Add navigator.userAgent , navigator.hardwareConcurrency
2022-09-20 00:44:59 -07:00
Jarred Sumner
167948f5c3
Fix incorrect hostname logic
...
Fixes https://github.com/oven-sh/bun/issues/1261
2022-09-20 00:07:01 -07:00
Jarred Sumner
37d191bc02
Update process.argv to more closely match node
2022-09-19 23:37:26 -07:00
Jarred Sumner
da7b648971
Pass through arguments unmodified after bun run <script> or bun <script>
...
Fixes https://github.com/oven-sh/bun/issues/231
2022-09-19 23:37:08 -07:00
Jarred Sumner
8b7f43f855
Handle nested files more correctly with "imports" in package.json
2022-09-19 21:02:26 -07:00
Jarred Sumner
21770eb0f3
Implement imports in package.json (#foo imports)
...
Fixes https://github.com/oven-sh/bun/issues/478
Fixes https://github.com/oven-sh/bun/issues/234
Fixes https://github.com/oven-sh/bun/issues/822
2022-09-19 20:03:02 -07:00
Jarred Sumner
17be8023d9
Fix broken destructors
2022-09-19 17:26:30 -07:00
Jarred Sumner
9754c5b32b
Fix larger bodies
2022-09-19 05:50:10 -07:00
Jarred Sumner
a16cb39423
Improve the perf of reading HTTP request body
2022-09-18 18:45:34 -07:00
Jarred Sumner
dfefb05b10
Fix occasional crash with .json()
2022-09-18 18:37:55 -07:00
Jarred Sumner
3a50ae92ec
Fix broken sending http body
2022-09-18 04:00:40 -07:00
Jarred Sumner
fe77f6a2f3
Update http_client_async.zig
2022-09-18 02:34:58 -07:00
Jarred Sumner
cd35218141
Add a way to disable timeout and keepalive
2022-09-18 02:30:52 -07:00
Jarred Sumner
daeef8d5b3
extremely minor perf nit
2022-09-17 22:14:38 -07:00
Kit PANG
184230058a
feat: env loader nested values with curly braces ( #1246 )
...
* [env loader] Add support for nested value with curly braces
does not support default values for nested values, e.g., ${undefined:default}, ${undefined:-default}, or ${undefined-default}
* fix: minor fix and add more test
* [env loader] Improve nested value parsing performance
remove unnecessary branching
Co-authored-by: Like <like@ekil.sh >
2022-09-17 22:11:16 -07:00
Jarred Sumner
a08b323e61
Fix napi module registration
...
Fixes https://github.com/oven-sh/bun/issues/1240
2022-09-17 21:56:30 -07:00
Jarred Sumner
745cc5c655
Handle missing 0\r\n chunk in HTTP client
2022-09-17 21:45:03 -07:00
Jarred Sumner
3719c3b736
Update & configure SSL a little
2022-09-17 21:45:03 -07:00
Jarred Sumner
0e424de684
Update WebKit
2022-09-17 21:45:03 -07:00
Jarred Sumner
285ef0ca01
Explicitly enable ShadowRealm
2022-09-17 21:45:03 -07:00
Jarred Sumner
e03204dccf
Avoid undefined memory
2022-09-17 17:41:13 -07:00
Jarred Sumner
0dea2d8515
Smaller stack
2022-09-17 17:40:50 -07:00
Jarred Sumner
31469bb05b
Prevent returning resolved promises
2022-09-17 04:39:59 -07:00
Jarred Sumner
b4f8e5cdb9
Fix default hostname
2022-09-17 04:31:29 -07:00
Jarred Sumner
cefec77646
Partially implement server.fetch() on Bun.serve
2022-09-17 04:28:32 -07:00
Jarred Sumner
af6609b0a3
[bun install] Add a package index via symlinks to ~/.bun/install/cache
2022-09-17 01:12:59 -07:00
Jarred Sumner
3ae950d829
Fix missing reason and code in CloseEvent
...
cc @paperdave
hardcoded right now but at least tells you why it closed
2022-09-17 00:42:20 -07:00
Jarred Sumner
c2f64d4da1
Fix crash when specifying same package name twice in bun add
...
Fixes https://github.com/oven-sh/bun/issues/1202
2022-09-17 00:21:10 -07:00
Jarred Sumner
4b9f6baf79
Make fetch throw a SystemError on reject
2022-09-16 22:50:46 -07:00