Dylan Conway
242dcea2fe
match formatting
2023-02-02 16:15:12 -08:00
Derrick Farris
8361513acf
feat: add http.request ( #1959 )
...
* fix(node-test-helpers): make sure to call done with any Errors thrown from wrapped fn
* feat(node:http): add http.request, patch some missing apis for IncomingRequest, etc.
* fix(node:http): FakeSocket -> Socket
* refactor(node:http): only save type from IncomingMessage.options for now
* fix(node:http): remove unnecessary check for UInt8Array
* perf(node:http): globalThis.fetch -> var fetch = Bun.fetch
* todo(node:http): add notes about handling abort/timeout w/ AbortSignal
* refactor(node:http): standardize on FakeSocket and this.#fakeSocket
* fix(node:http): fix headers getter
* fix(node:http): remove _headers
* perf(node:http): make http headers lazy
* fix(node:http): return bool from keepSocketAlive
2023-02-01 19:22:29 -08:00
Dylan Conway
19eca76498
change file extension
2023-02-01 19:06:56 -08:00
Dylan Conway
3c23f9ad57
fix text encoding for utf8 ( #1967 )
...
* use character
* replacement character
* also test encoding decoded points
* increase length by 1
2023-02-01 18:48:09 -08:00
Jarred Sumner
cc4326cd82
Re-run prettier after changes
2023-01-31 17:55:16 -08:00
Jarred Sumner
b09896f06e
mostly fix node:timers
2023-01-31 17:51:36 -08:00
Jarred Sumner
b7816f3175
Fixes fs.constants
2023-01-31 17:20:48 -08:00
Alex Lam S.L
9598868b57
[bun add] various fixes ( #1953 )
2023-01-31 13:05:41 -08:00
Jarred Sumner
4bfdad2981
Fix missing *ms getters in Stat
...
Related to #1949
2023-01-31 03:04:59 -08:00
Jarred Sumner
ad3295668f
Fix crash in bun install <package-name> ( #1947 )
...
* Fix crash in `bun install <package-name>` when <package-name> already exists
* Prettier
* Add test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-01-30 23:12:41 -08:00
Alex Lam S.L
ec2c16fefa
fix assert() crash ( #1941 )
2023-01-30 12:20:29 -08:00
Alex Lam S.L
c11bb93552
report invalid input file as test failure ( #1938 )
...
fixes #1935
2023-01-30 01:55:32 -08:00
Alex Lam S.L
5c30983d5d
[bunx] fix version parsing ( #1937 )
2023-01-30 00:33:13 -08:00
Jarred Sumner
9cd9df698a
Update child_process-node.test.js
2023-01-29 22:42:03 -08:00
Jarred Sumner
57edf3d91f
Skip flaky test
2023-01-29 22:36:29 -08:00
Jarred Sumner
f9b14dc87b
Fix flaky websocket test
...
cc @dylan-conway, the tests should be able to run when cwd is not the test folder
2023-01-29 22:36:24 -08:00
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