Jarred Sumner
a9bdc0fd44
Add check in test
2023-01-29 22:35:32 -08:00
Jarred Sumner
703bee976b
[breaking] Add binaryType option to Bun.connect & Bun.listen
...
This is a breaking change because the default is `Buffer`, but previously the default was `Uint8Array`. While `Buffer` is a subclass of `Uint8Array`, it still technically is a breaking change because `slice` in `Uint8Array` is not semantically identical to `slice` in `Buffer`
cc @colinhacks, the .d.ts changes I made here aren't great.
2023-01-29 22:33:37 -08:00
Jarred Sumner
eb5105aa09
Update buffer.test.js
2023-01-29 21:27:52 -08:00
Jarred Sumner
98becc3538
Add another latin1 test
2023-01-29 21:23:10 -08:00
Jarred Sumner
8e52e36846
[buffer] Buffer.byteLength passes Node.js tests
2023-01-29 03:45:58 -08:00
Alex Lam S.L
d9c1a18776
[bun add] fix more corner cases ( #1930 )
2023-01-28 23:54:47 -08:00
Jarred Sumner
f087388ebc
Support running WASI (WebAssembly) files using bun run ( #1929 )
...
* another micro bench
* Support running WASI
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-01-28 23:23:26 -08:00
Alex Lam S.L
48eb0c12ab
parse git+ https://github.com/ as GitHub URLs ( #1926 )
...
fixes #1921
2023-01-28 22:14:07 -08:00
Alex Lam S.L
fe389ad5ab
normalise bun add package specifiers ( #1924 )
...
- fix invalid buffer references
fixes #1920
2023-01-28 21:30:46 -08:00
Alex Lam S.L
07258bd559
[WIP] append GitHub package after fully parsed ( #1911 )
2023-01-28 07:05:28 -08:00
Jarred Sumner
7db4b90837
commit failing tests
2023-01-28 04:03:45 -08:00
Jarred Sumner
6557df2912
Fixes #1913
2023-01-28 01:00:26 -08:00
Jarred Sumner
2757dc5e1b
prettier
2023-01-27 21:56:48 -08:00
Jarred Sumner
cd90342a76
Fix flakiness
2023-01-27 21:56:34 -08:00
Dylan Conway
ea55ef504b
ensure name is allocated with toSliceClone ( #1917 )
...
* ensure name is allocated with `toSliceClone`
* shorten toSliceClone
2023-01-27 19:38:40 -08:00
Jarred Sumner
ec010e4930
Update buffer.test.js
2023-01-27 14:47:13 -08:00
Dylan Conway
41af4b43e2
more websocket ref/deref tests
2023-01-27 14:22:03 -08:00
Jarred Sumner
b136125bb0
[[bun hot]] More reliability improvements to macOS watcher
2023-01-27 01:56:07 -08:00
Jarred SUmner
ed5bcfc76b
Another test
2023-01-26 23:21:10 -08:00
Jarred SUmner
421588d631
More reliable bun --hot on Linux
2023-01-26 23:04:37 -08:00
Jarred Sumner
7169bbbb9c
Fixes #1907
2023-01-26 19:18:35 -08:00
Ciro Spaciari
6d06606135
Implement all pending resolve methods in DNS ( #1903 )
...
* initial steps to create generic resolve
* add soa
* add naptr
* add naptr
* add mx and fix naptr
* add resolve caa
* fix Caa test
* fix toJS from caa
* add resolveNs
* add resolvePtr
* fix resolvePtr test
* add resolveCname
* add resolve rrtype options (still missing ANY)
* fix Naptr
* fix drainPendingCares
2023-01-26 18:36:53 -08:00
Dylan Conway
44c6ce11c4
fix websocket hang ( #1910 )
...
* ref and deref, and some tests
* subprocess file
* remove deref
* use flag in test
2023-01-26 18:26:05 -08:00
Alex Lam S.L
f8f989f667
parse package-spec from CLI correctly ( #1895 )
...
* parse package-spec from CLI correctly
fixes #861
* copy separately for `UpdateRequest.name`
fix GItHub URL reporting in results
update tests to reflect latest code changes
* better fix for GitHub URL display issue
2023-01-26 01:06:51 -08:00
Jarred Sumner
b767f9a99a
Add a test
2023-01-25 13:43:23 -08:00
Alex Lam S.L
f43b675200
support GitHub URLs as dependencies ( #1875 )
2023-01-24 11:57:25 -08:00
Alex Lam S.L
e47fe2ca00
support bun link of scoped packages ( #1892 )
2023-01-24 11:52:47 -08:00
Jarred Sumner
be79f6e893
Add failing test
2023-01-24 04:08:24 -08:00
Jarred Sumner
bb5119f7eb
Add simple test for bun --hot
2023-01-24 03:30:27 -08:00
Jarred Sumner
6c3842f67d
Update text-decoder.test.js
2023-01-24 02:31:53 -08:00
Jarred Sumner
63403741ff
flaky
2023-01-24 02:31:45 -08:00
Jarred Sumner
e2f709b2a5
Always allow importing ${package}/package.json
2023-01-24 02:21:43 -08:00
Jarred Sumner
2c31beda75
Fixes #1887
2023-01-24 00:14:59 -08:00
Jarred Sumner
90d62ecc24
Add DOMJIT test
2023-01-23 23:08:31 -08:00
Jarred Sumner
7420cb1d73
fix test failure in aarch64 and add test for simd code path
2023-01-23 18:03:48 -08:00
Dylan Conway
73961a1494
missing test
2023-01-23 17:39:40 -08:00
Jarred Sumner
efc024cfc4
clean up deps
2023-01-23 16:51:48 -08:00
Ciro Spaciari
b3533fb3a8
fix(Buffer) Fix arguments in buffer.write, fix size returned from buffer.write for utf16, fix size calc for base64, fix calc for hex byte size ( #1881 )
...
* fix buffer write when more than 2 args are passed
* fix encoding parameter
* better buffer write tests
* fix ucs2/utf8 len return
* fix base64 size in Buffer write
* fix hex encoding size
* actual fix base64
* actual fix base64
* fix segfault
* add fill parameter in Buffer.alloc
* use createUnitialized when alloc have fill parameter, use RETURN_IF_EXCEPTION when static casting
* fix utf16le, ucs2 copying in Buffer write
2023-01-23 16:48:52 -08:00
Dylan Conway
79c0b614ee
fix child process node test hang ( #1884 )
...
* fix test hang from skipped tests
* add error target
2023-01-23 15:59:45 -08:00
Dylan Conway
f5cda8ff18
fix constructor statement order ( #1883 )
...
* leave super alone
* more tests
2023-01-23 15:57:47 -08:00
Ciro Spaciari
efd33c398f
enhancement(fetch): Merge parameters from request parameter with the second parameter for fetch, move verbose and proxy options to second parameter, add non-TLS tests for fetch ( #1862 )
...
* initial steps for proxy-server
* added http_proxy in fetch, move 3rd argument to 3nd argument options, add some non-TLS proxy tests
* some changes
* use only 1 buffer for url+proxy, merge headers on fetch
* initial steps
* change back to override headers instead of merging in fetch
* fix build response.zig
* fix conditional in merged headers on fetch
* updated with main and make proxy disabled if null is passed
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-01-23 14:38:40 -08:00
Jarred Sumner
df999306c0
✂️ duplicate code
2023-01-23 05:05:54 -08:00
Jarred Sumner
45296570ce
Fix crash in DOMJIT call with empty input
2023-01-23 04:58:42 -08:00
Jarred Sumner
407088f6ab
Add tests for async failure
2023-01-22 20:49:21 -08:00
Jarred Sumner
2cce810190
Add a test for zlib (thanks @jiaz)
2023-01-22 19:54:42 -08:00
Jarred Sumner
eaea08ea45
Add one gc test for eventemitter
2023-01-22 19:53:59 -08:00
Jarred Sumner
4dfc09018f
[EventEmitter] Preserve this in event emitter callbacks
2023-01-22 19:52:51 -08:00
Jarred Sumner
3492248697
Fixes #1366
2023-01-22 19:09:52 -08:00
Ciro Spaciari
481dbf7c6e
feat(dns) resolveSrv ( #1870 )
...
* initial steps
* in-progress resolveSrv support
* fix memory leak and ZigGlobalObject
* promise.resolve + fix priority and weight mistake
* fix node dns export
* little better test
* add poll_ref to keep alive loop in callback for resolveSrv and lookup
* add test for error case in resolveSrc
* fix Bun.dns.resolveSrv type
2023-01-22 14:31:08 -08:00
Jarred Sumner
fefa4a1623
Add a test for require with a query string
2023-01-22 03:24:42 -08:00