Jarred Sumner
cfa21dc9d0
Update run-test-manually.yml
2023-03-04 17:18:15 -08:00
Jarred Sumner
7dde3d4974
Update run-test-manually.yml
2023-03-04 17:17:18 -08:00
Jarred Sumner
5c6cbb0283
Update run-test-manually.yml
2023-03-04 17:16:30 -08:00
Jarred Sumner
6a1667a5f4
Add a manual test running action
2023-03-04 17:15:54 -08:00
Jarred Sumner
d77bd35556
Delete broken CI action
2023-03-04 17:01:36 -08:00
aab
ddb6624ad1
docs: Fix invalid default port on bun-types docs ( #2300 )
2023-03-04 06:01:39 -08:00
aab
0eeac32ef4
docs(websocket): change server port on example to default port ( #2301 )
...
Current example will fail without explicitly configure the server to use port 8080. Hence, replacing it with default port (3000).
2023-03-04 06:01:04 -08:00
Alex Lam S.L
31447fdc19
[install] use latest tagged version if in range ( #2302 )
2023-03-04 06:00:38 -08:00
Fran Zekan
8e1d2a5af9
fix(bunx): can't resolve executable for scoped packages ( #2293 )
...
Fixes #2292
2023-03-04 14:56:25 +02:00
Derrick Farris
3626845051
fix(node:http): match Node headers casing (lowercase only) ( #2288 )
...
* fix(node:http): match Node headers casing (lowercase only)
* fix(JSFetchHeaders): `WTFMove` the ascii string
2023-03-03 21:08:26 -08:00
Jarred Sumner
d8d23f2594
Update Dockerfile
2023-03-03 19:03:47 -08:00
Jarred Sumner
122e6a8860
Update bindings.zig
2023-03-03 18:59:20 -08:00
Jarred Sumner
9f132ea241
BigInt64Array and BigUint64Array are typed arrays too
...
Fixes #2296
2023-03-03 18:51:52 -08:00
Fran Zekan
7c367ff687
fix(bunx): Show usage when calling bunx without arguments ( #2295 )
...
* Make sure to return a helpful error message if no args are passed to bunx
* Add tests for bunx without args
2023-03-03 17:49:32 -08:00
Colin McDonnell
0f8f484e21
Improve types for node:http ( #2284 )
...
* Document node:http
* Fix test
* Fix default
* Fix default
2023-03-03 14:24:12 -08:00
Hannes Käufler
7e5dddd2fa
Fix broken async test example ( #2291 )
2023-03-03 12:41:36 -08:00
Jarred Sumner
838b37eed0
Update react-dom-render.bun.js
2023-03-03 04:45:33 -08:00
Jarred Sumner
1f10e25bd9
react-dom/server@next
2023-03-03 04:26:30 -08:00
zhiyuan
18178b4e48
Fix http server req url ( #2285 )
...
* fix: http url add search query
* fix: add tests
2023-03-03 02:45:34 -08:00
aab
3456831b82
docs: Fix variable name in transpiler API docs ( #2281 )
2023-03-02 21:49:12 -08:00
zhiyuan
6a1701fedd
Fix update zls version in devcontainer ( #2280 )
...
* fix: update zls version for new zig
* fix: rm outdated vscode extension
---------
Co-authored-by: Zhiyuan Guo <zhiyuan.guo@shopee.com >
2023-03-02 19:53:37 -08:00
Jarred Sumner
3318ccfb4a
Update Makefile
2023-03-02 19:11:41 -08:00
Jarred Sumner
9388b3f825
Add a zig fmt action ( #2277 )
...
* Add a zig fmt action
* add failing file
* Setup prettier better
* Update prettier-fmt.yml
* Fail on error
* Update prettier-fmt.yml
* boop
* boop2
* tar.gz
* Update zig-fmt.yml
* Update zig-fmt.yml
* Update zig-fmt.yml
* Update zig-fmt.yml
* Update zig-fmt.yml
* boop
* Update prettier-fmt.yml
* tag
* newlines
* multiline
* fixup
* Update zig-fmt.yml
* update it
* fixup
* both
* w
* Update prettier-fmt.yml
* prettier all the things
* Update package.json
* zig fmt
* ❌ ✅
* bump
* .
* quotes
* fix prettier ignore
* once more
* Update prettier-fmt.yml
* Update fallback.ts
* consistentcy
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-03-02 19:02:10 -08:00
Colin McDonnell
b469e50351
Add fs/promises tests and migrate fs.test.js to TypeScript ( #2279 )
2023-03-02 17:36:47 -08:00
Ciro Spaciari
27c3579118
fix(os.tmpdir()) strip trailing slash on *unix machines ( #2276 )
...
* fix(os.tmpdir()) strip trailing slash on *unix machines
* make use of strings.withoutTrailingSlash(dir);
2023-03-02 17:33:25 -08:00
Colin McDonnell
3852a52601
Add separate bun-types release CI ( #2275 )
...
* Release on every commit
* Remove bun-types publish from bun-release-canary
* Undo formatting changes
2023-03-02 15:34:36 -08:00
Jarred Sumner
1ba007831d
Ensure prettier knows where to look
2023-03-02 15:12:00 -08:00
Alex Lam S.L
c0a49e405e
add tests for scoped dependency aliasing ( #2271 )
2023-03-02 13:30:20 -08:00
Ciro Spaciari
78762e8305
fix tmp dir in fetch.tests.js ( #2270 )
2023-03-02 12:54:59 -08:00
u9g
57fcf8f9ba
Remake typings for FFI dlopen/linkSymbols + introduce Pointer type ( #2227 )
...
* Give dlopen & linkSymbols typings for exported functions
* Fix lookup table
* Fully change over to Pointer + fix examples
* add back header for typings
* Fix tsc errors
* Run formatter on ffi.d.ts
* Revert args/return type change
* Add type tests for ffi
---------
Co-authored-by: Colin McDonnell <colinmcd94@gmail.com >
2023-03-02 12:24:43 -08:00
Ciro Spaciari
c81043bf5e
put AbortSignal in WebCore namespace ( #2267 )
2023-03-02 11:49:32 -08:00
Ciro Spaciari
156c1d4bec
only free sink after promises solves ( #2268 )
2023-03-02 11:48:11 -08:00
Justin Whear
20930849ce
Fix Bun.sleepSync to actually use milliseconds ( #2242 )
...
* Fix Bun.sleep/sleepSync to actually use milliseconds
`Bun.sleepSync` was accidentally treating its argument as seconds rather than milliseconds as the docs stated. This is a breaking change in that the function now behaves as documented. Fixed relevant tests.
* sleepSync: add more argument checking, tests
2023-03-02 09:00:20 -08:00
Derrick Farris
efdf647460
fix(bindings): mark JSCInitialize ( #2265 )
2023-03-01 22:41:20 -08:00
Colin McDonnell
167de9091a
Add page descriptions ( #2260 )
...
* Add page descriptions
* Update bun install
* Description tweaks
* Tweaks
2023-03-01 21:45:49 -08:00
Ciro Spaciari
1be834b073
fix bun server segfault with abortsignal ( #2261 )
...
* removed redundant tests, fixed server segfault
* fix onRejectStream, safer unassign signal
* fix abort Bun.serve signal.addEventListener on async
* move ctx.signal null check up
* keep original behavior of streams onAborted
2023-03-01 21:40:11 -08:00
Derrick Farris
b9137dbdc8
fix(node:http): match Node http.request() GET/HEAD w/ body ( #2262 )
2023-03-01 21:28:21 -08:00
Jarred Sumner
706a3e8169
Add a test for https request in node:http
2023-03-01 19:31:16 -08:00
Derrick Farris
7c81d97684
fix(node:http/https): fix passing URL objs to http.request( #2253 ) ( #2258 )
...
* fix(node:http/https): fix passing `URL` objs to `http.request`(#2253 )
* fix(node:http): hoist debug env var
* fix(node:http): make body `undefined` when falsy
2023-03-01 18:11:38 -08:00
Jarred Sumner
6bc075e377
Revert "Update clap ( #2238 )"
...
This reverts commit 7b9a17f9d7 .
2023-03-01 16:17:47 -08:00
Jarred Sumner
ba0706939d
Revert "Add -D, --dev flags for bun install ( #2240 )"
...
This reverts commit ec20fae57f .
2023-03-01 16:15:55 -08:00
Ashcon Partovi
6e512eda0d
Use GitHub action ID instead of SHA for test workflow
2023-03-01 16:07:27 -08:00
Ciro Spaciari
1227a7b995
avoids segfault after aborted onReject in Bun.serve streams ( #2256 )
...
* avoids segfault after aborted on reject
* silence err on handleRejectStream after aborted
2023-03-01 15:47:04 -08:00
Ashcon Partovi
ef56961007
Run tests in CI for bun-linux-aarch64
2023-03-01 14:31:56 -08:00
Jarred Sumner
ff51a253e2
Revert spawnSync change
...
cc @FireTheFox
2023-03-01 14:12:59 -08:00
Jarred Sumner
ee6f54180a
Update bindings.zig
2023-03-01 14:12:59 -08:00
Ciro Spaciari
cf8568ccff
fix deinit behavior when connection is aborted using ResponseStream and abort event behavior ( #2252 )
...
* fix deinit behavior when connection is aborted using ResponseStream
* fix abort handling on stream, and get better tests
* avoid segfault by trying to deinit 2x when aborted
* make tests more reliable
* more reliable onResolveStream after aborted
* add test case for not firing the abort signal
2023-03-01 13:15:52 -08:00
Ciro Spaciari
56ca48ece8
fix Bun.file.arrayBuffer() segmentation fault on empty file #2248 ( #2249 )
...
* fix Bun.file.arrayBuffer() segmentation fault on empty file #2248
* cleanner this.iotask check
2023-03-01 13:07:21 -08:00
Colin McDonnell
530cf4caf8
Fix async in sqlite
2023-03-01 12:27:14 -08:00
Justin Whear
9a7333dd5e
Forces a specific libdir for c-ares ( #2241 )
...
The c-ares build expects lib/libcares.a to exist after cmake, but on my system it was being generated in lib64. This simply sets the cmake variable so that the target ends up where we expect.
2023-02-28 23:35:04 -08:00