Jarred Sumner
3867431ed1
Add test that reads & writes stdin/stderr
2022-10-11 00:04:48 -07:00
Jarred Sumner
1f7f5646de
Update bun-write.test.js
2022-10-11 00:03:37 -07:00
Jarred Sumner
40623cf967
Implement fs.rm cross-platformly
2022-10-11 00:03:32 -07:00
Jarred Sumner
e4bf189e9d
Change behavior of Bun.write
2022-10-10 21:01:06 -07:00
Jarred Sumner
3cc61f8e30
Fix issue with exit callback in Bun.spawn() never firing
2022-10-10 20:57:38 -07:00
Jarred Sumner
5db06105ba
Add test for calling assert
2022-10-10 13:51:45 -07:00
Jarred Sumner
1afe2f05dc
Rename resposne.file.test.js -> bun-write.test.js + add some large file tests
2022-10-09 18:26:00 -07:00
Jarred Sumner
dffaeaca1e
Start to add tests for spawn
2022-10-09 02:02:47 -07:00
Jarred Sumner
88bdae8218
Add a test for server.reload()
2022-10-09 02:02:47 -07:00
Jarred Sumner
349ccf229b
Fix navigator.userAgent test
2022-10-09 02:02:47 -07:00
Jarred Sumner
85602b406a
Fix SQLite test
2022-10-09 02:02:47 -07:00
Jarred Sumner
57513f38d3
Add a test for Bun.version
2022-10-09 02:02:46 -07:00
Jarred Sumner
0b3abf2c78
Add a test for not logging .env
2022-10-09 02:02:46 -07:00
Jarred Sumner
c2c9173eff
Fix https://github.com/oven-sh/bun/issues/1263
...
What happened: when moving to uSockets for the http client, I forgot to call `SSL_set_tlsext_host_name` and uSockets apparently doesn't do that
2022-10-08 01:06:35 -07:00
zhiyuang
99e7856269
Fix nested modules bin executable issue ( #1299 )
2022-10-07 09:48:37 -07:00
Jarred Sumner
6970250b57
Fix Buffer.toJSON()
2022-10-06 14:18:12 -07:00
Jarred Sumner
9f10956ce1
We need to explicitly flush now
2022-10-05 18:07:41 -07:00
Jarred Sumner
c9a50b2f2d
Add a test for simultaneous requests
2022-10-05 18:07:41 -07:00
zhiyuang
050292229f
fix: console.log handle circular correctly ( #1293 )
2022-10-05 16:49:00 -07:00
Jarred Sumner
062c3948ba
Fix test failures
2022-10-02 01:56:55 -07:00
Jarred Sumner
3b4900193b
Fix setTimeout(0), improve test coverage slightly, reduce memory usage of timers
2022-10-01 16:02:29 -07:00
Jarred Sumner
bee72be733
Increase test coverage for request body streaming
...
There is still one memory issue to address
2022-10-01 01:13:27 -07:00
Jarred Sumner
ea159b6004
Make setTimeout/setInterval more reliable
2022-09-30 22:12:31 -07:00
Jarred Sumner
f70c83345a
Improve test coverage for Request body streaming!
2022-09-30 01:07:53 -07:00
Jarred Sumner
84af4f0133
more gc in fs test
2022-09-30 01:04:10 -07:00
Jarred Sumner
c30346cf5d
Create test_scope_debug.ts
2022-09-30 00:25:28 -07:00
Jarred Sumner
3d35fae890
Add some tests for request body streaming
...
Need to fix an off-by-one error with Blob it seems
2022-09-28 23:43:40 -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
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
9833841101
wip
2022-09-25 13:14:23 -07:00
Jarred Sumner
ffde9f7842
📷
2022-09-25 13:14:23 -07:00
Albert Putra Purnama
2819509786
test: Promisify basic tests ( #1018 )
...
* Promisify basic tests
* Add License header from node
* Add tests to complete existing promisify parity with node
* Update expected error message from nodejs test
2022-09-24 19:05:18 -07:00
Jarred Sumner
62e22b2995
Implement Bun.which
2022-09-23 03:10:56 -07:00
Jarred Sumner
2c1926993b
Faster Blob + begin to implement FileSink
2022-09-22 23:45:02 -07:00
Jarred Sumner
0968fd339f
Add epoll to list of syscalls that can fail
2022-09-22 03:06:48 -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
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
6163fb830e
Add navigator.userAgent , navigator.hardwareConcurrency
2022-09-20 00:44:59 -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
f55b9a8530
Fix origin missing protocol in URL
...
Fixes https://github.com/oven-sh/bun/issues/1244
2022-09-16 16:45:26 -07:00
Jarred Sumner
0ce709d96a
Make new HTTP client more stable
2022-09-16 00:53:03 -07:00
Jarred Sumner
a291c1676f
5x faster crypto.randomValues()
2022-09-14 18:23:22 -07:00
Jarred Sumner
7bfa302b75
Make crypto.getRandomValues() faster + fix > 1 byte/element typed arrays
...
Fix crypto.getRandomValues() with > 1 byte element typed arrays
Fixes https://github.com/oven-sh/bun/issues/1237
2022-09-14 04:12:32 -07:00
Jarred Sumner
9797b676b1
Add test
2022-09-11 17:11:23 -07:00
Jarred Sumner
c600196b1a
[node:fs] Fix readFileSync on non-regular files
...
Fixes https://github.com/oven-sh/bun/issues/1220
2022-09-09 19:26:02 -07:00
Jarred Sumner
f496740c19
[bun:ffi] Add f32, f64, i64, u64 to read`
2022-09-09 18:10:36 -07:00
Jarred Sumner
bcbe1b410a
Last commit was missing some code
2022-09-08 23:37:59 -07:00
Jarred Sumner
206820d27a
[bun:ffi] Implement read.{u8,i8,i16,i32,u16,u32,ptr,intptr}
...
`read` in `bun:ffi` lets you read data from a pointer without creating a new DataView/ArrayBufferView
```
import {read} from 'bun:ffi';
expect(read.i8(ptr_, i)).toBe(view.getInt8(i, true));
expect(read.i16(ptr_, i)).toBe(view.getInt16(i, true));
expect(read.i32(ptr_, i)).toBe(view.getInt32(i, true));
expect(read.u8(ptr_, i)).toBe(view.getUint8(i, true));
expect(read.u16(ptr_, i)).toBe(view.getUint16(i, true));
expect(read.u32(ptr_, i)).toBe(view.getUint32(i, true));
}
```
2022-09-08 23:29:30 -07:00
Jarred Sumner
a3cc9aaf6f
Make some more globals modifiable
2022-09-08 00:00:18 -07:00