Jarred Sumner
eef0e8c6bf
Fix incorrect type
2023-01-16 12:56:16 -08:00
Colin McDonnell
b0702ce7b1
Publish bun-types@canary ( #1767 )
...
* Publish bun-types@canary
* Get version from bun cli
* Get version from bun cli
* Fixes
* Fixes
* Fixes
* Finalize
* Update names
* Add token
* Remove dryrun
* Switch setup-bun
* Test noncanary publish
* Fix path for GPR
* Use latest
* Remove testing code
* Remove dry run
* Fix paths
* Update bun-types links
* Verbose logging
* Ignore lockfile
* Run install in root
* Remove debug code
* Remove debug code
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
2023-01-16 11:58:57 -08:00
Alex Lam S.L
7fa023b8b5
support installation of NPM workspaces ( #1764 )
2023-01-14 07:14:48 -08:00
Jarred Sumner
734b5b89da
Add closeActiveConnections option to types
2023-01-12 19:38:27 -08:00
Jarred Sumner
126809f20c
Add missing type
2023-01-12 15:08:32 -08:00
Jarred Sumner
7970704222
end callback
2023-01-11 20:21:41 -08:00
Colin McDonnell
4969f068f6
Types update ( #1761 )
...
* Fix type tests
* Add dns types
* Add node:net types
* Make process.exit return never
* Make ArrayBufferView tighter
* Add types for node:dns
* Remove docs
* Use latest
* Fix CI
* Fix CI
* Stop double trigger
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
2023-01-11 14:56:41 -08:00
Jarred Sumner
e945be72b4
Add some missing types
2023-01-10 14:36:00 -08:00
Jarred Sumner
c18165b30f
Allow tls: true in Bun.connect
2023-01-10 11:55:42 -08:00
Jarred Sumner
a1b2c23671
[bun:test] Implement test.skip
2023-01-09 08:25:39 -08:00
Jarred Sumner
3c8701362b
Document connectError
2023-01-07 23:47:08 -08:00
Jarred Sumner
87983464d8
Implement DNS module ( #1691 )
...
* Boilerplate for DNS stuff
* Add c-ares
* lookup
* make
* Implement dns.lookup
* Create c-ares
* wip
* normalize
* repro
* Revert "repro"
This reverts commit 8b93e0c295b335b8882a9601da47720348549beb.
* Implement macOS `getaddrinfo_async_start`
* embiggen
* Update string_immutable.zig
* Update Makefile
* alright
* Update .gitignore
* Add types
* more ccache
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* Update bun.d.ts
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-01-07 07:09:48 -08:00
Alex Lam S.L
7f96f72d65
improve .toThrow() compatibility with Jest ( #1728 )
2023-01-05 00:15:04 -08:00
u9g
7550658fab
Fix Bun.serve typings ( #1714 )
2023-01-04 23:54:17 -08:00
Alex Lam S.L
80736043d6
implement expect().toThrow() ( #1727 )
...
- fix bugs in `JSBufferList`
- add tests
2023-01-04 22:37:14 -08:00
Jarred Sumner
8989a1883e
Support any ArrayBufferView in StringDecoder
2023-01-02 15:39:44 -08:00
Gabriel Wu
8a2729e75f
Update ffi.d.ts ( #1694 )
...
* Update ffi.d.ts
Add "usize" and "callback", which are used in `README` but not typed here.
* Update packages/bun-types/ffi.d.ts
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2022-12-31 23:03:45 -08:00
Alex Lam S.L
9b3db96308
[jest] fix and improve hooks ( #1689 )
...
- wait for async hooks to complete before running tests
- add support for `done(err)` callbacks in hooks
fixes #1688
2022-12-31 03:14:23 -08:00
Jarred Sumner
4cc9a43089
Update globals.d.ts
2022-12-29 06:18:38 -08:00
Jarred Sumner
85eda20587
Introduce Bun.CryptoHasher
2022-12-29 06:05:43 -08:00
Jarred Sumner
940ecd05a8
[node] Implement process.uptime and process.umask
2022-12-29 06:05:43 -08:00
Jarred Sumner
7c8a196c76
[bun-types] Add missing performance.timeOrigin type
2022-12-29 06:05:43 -08:00
Jarred Sumner
d726a17aca
Implement Bun.RIPEMD160
...
`RIPEMD160` is used by node:crypto.
2022-12-28 22:20:15 -08:00
Jarred Sumner
ba0b5baee4
[WebSocket] Implement headers support
...
Fixes https://github.com/oven-sh/bun/issues/1676
2022-12-28 18:39:19 -08:00
Jarred Sumner
24c4d92c0b
Update globals.d.ts
2022-12-17 16:18:01 -08:00
Jarred Sumner
184c56704b
Add warning in import.meta.require
2022-12-17 16:15:58 -08:00
Jarred Sumner
f9b573aa89
[bun-types] Add optional param to Bun.deepEquals
2022-12-17 12:26:19 -08:00
Ikko Ashimine
b06ca07eee
Fix typo in bun.d.ts ( #1619 )
...
occured -> occurred
2022-12-16 10:36:07 -08:00
Jarred Sumner
3495b7c1f8
[bun-types] Remove outdated comments
2022-12-15 21:48:50 -08:00
Jarred Sumner
3ea983578f
[node:process] Implement process.argv0, process.execPath
...
Fixes https://github.com/oven-sh/bun/issues/1599
2022-12-15 17:31:18 -08:00
Jarred Sumner
c1d7ec9564
[node:process] Implement process.abort()
2022-12-15 16:28:47 -08:00
Jarred Sumner
f61d9e340d
[bun:jsc] Introduce profile function
2022-12-13 20:47:51 -08:00
Jarred Sumner
007133d060
[Transpiler] Implement minifyWhitespace option
2022-12-11 23:28:53 -08:00
Jarred Sumner
8549134658
[Bun.Transpiler] Introduce inline flag
2022-12-11 16:38:52 -08:00
Jarred Sumner
e301fde96d
Include isTTY in types
2022-12-10 22:25:19 -08:00
Colin McDonnell
5ea8fe8c90
Update types ( #1581 )
...
* Fix TS types, improve child_process types
* Add prettier
* Add ArrayBuffer types
* Add namespace Bun, improve types for SharedArrayBuffer, add toStrictEqual
* Improve types, add test files for types
* Update type tests
* Fix typo
* Add stdio
* Stdio types
* Use latest setup-bun
* Update action
* Update action
* Update action
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
2022-12-06 18:48:02 -08:00
Jarred Sumner
81317a52ea
Fix glibc symbol version issues preventing bun install from being used in older glibc versions ( #1580 )
...
* Prevent integer overflow in connectError
* Add missing deepEquals() type to Bun
* fix missing glibc symbols
* Fix missing symbol issues
* Try this
* Update glibc-versions-hack.cpp
* Update glibc-versions-hack.cpp
* Update glibc-versions-hack.cpp
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-12-06 14:14:27 -08:00
Jarred Sumner
159ee8ddfc
indexOfLine type
2022-12-05 14:11:23 -08:00
Jarred Sumner
61bf957b99
Introduce console.write(text, or, arrayBufferLike)
2022-12-05 11:36:28 -08:00
Jarred Sumner
af0bc28c51
Update child_process
2022-12-04 08:15:02 -08:00
Jarred Sumner
bb5450fad0
[breaking] onExit callback in Bun.spawn sets the first property to be the Subprocess object
...
Sometimes Bun.spawn calls the onExit callback before the Bun.spawn() callback is called.
Instead of delaying a tick, we set the `Subprocess` to be the first argument to the `onExit` callback now.
2022-12-04 08:11:44 -08:00
Jarred Sumner
10b04fbd26
Add missing type
2022-12-03 08:26:53 -08:00
Dylan Conway
9cc03cd71a
matchers for less than and greater than ( #1573 )
...
* toBeGreaterThan with tests
* toBeGreaterThanOrEqual and tests
* toBeLessThan and toBeLessThanOrEqual with tests
* expect types
* switch expressions
2022-12-02 20:35:13 -08:00
Jarred Sumner
ba6908aed7
Remove getSetCookie() from types
2022-12-02 19:35:35 -08:00
Jarred Sumner
d84f79bcc1
[fetch] Implement Headers#getAll and Headers#getSetCookie()
...
This matches Deno's behavior (get() combines, iterator preserves the order, set and append combine), but implements both the Cloudflare Workers `getAll()` and the potential standard `getSetCookie` function. The rationale for choosing both is to better support libraries which check for `getAll` and also because `getSetCookie` seems a little confusing (names are hard)
This also makes `.toJSON` and JSON.stringify return an array for `Set-Cookie`
2022-12-02 07:42:44 -08:00
Dylan Conway
917cbc8d5d
incorrect name for matcher
2022-12-02 02:30:35 -08:00
Dylan Conway
1506a25198
formatting and remove comment
2022-11-30 16:40:54 -08:00
Jarred Sumner
d1a4f4fd69
Introduce FileSink.ref() and FileSink.unref()
2022-11-25 00:08:36 -08:00
Jarred Sumner
4a698ed52c
[FileSystemRouter] Start to add types
2022-11-24 00:05:57 -08:00
Jarred Sumner
17fa4211ac
Introduce Bun.unsafe.gcAggressionLevel API
2022-11-19 22:21:35 -08:00