Ashcon Partovi
ee60a5c55c
Add runtime layer for Bun on AWS Lambda ( #2009 )
2023-02-22 10:34:16 -08:00
Alex Lam S.L
7285b9cf75
update bun.lockbs ( #2101 )
2023-02-17 22:07:02 -08:00
Jarred Sumner
e7cd45d0fa
Update globals.d.ts
2023-02-16 03:18:01 -08:00
Jarred Sumner
0e688d62f9
Add missing type definition
2023-02-16 03:11:40 -08:00
Jarred Sumner
aa0762e466
Implement FormData ( #2051 )
...
* Backport std::forward change
* Implement `FormData`
* Fix io_darwin headers issue
* Implement `Blob` support in FormData
* Add test for file upload
* Fix bug with Blob not reading Content-Type
* Finish implementing FormData
* Add FormData to types
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-02-13 00:50:15 -08:00
Ashcon Partovi
ed2e0e1617
Add bun-ecosystem for running tests on npm packages
2023-02-10 09:47:59 -08:00
Ashcon Partovi
a0b0cd6844
Fix bugs with release script
2023-02-07 04:47:36 -08:00
Colin McDonnell
08e33fbd42
Fix gaps in types ( #2003 )
...
* Add type for clearImmediate
* Expose Crypto class
* Add types for CustomEvent
* Add types for module and exports
* Add types for global
* Add types for DOMException
* Add types for WebAssembly
* Update formatting
* Fix clearTimeout
* Fix formatting
* Update formatting
* Remove log
---------
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
2023-02-06 21:36:36 -08:00
Colin McDonnell
e7f9ce47f4
Add types for node:console and node:perf_hooks ( #1982 )
...
* Add types for node:console and node:perf_hooks
* Add types for util/types
---------
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
2023-02-06 12:57:19 -08:00
Jarred Sumner
de613baf81
Support passing Date to Bun.sleep
2023-02-03 17:25:25 -08:00
Jarred Sumner
7d386bf1f1
Introduce await Bun.sleep(ms)
2023-02-03 16:39:16 -08:00
Ashcon Partovi
164cd774f7
Fix types for Array.fromAsync
2023-02-03 16:29:03 -08:00
Gaurish Sethia
6469649f64
Fix/Update Typescript types ( #1972 )
...
* Add filePath property on MatchedRoute
* Fix #1880 #851
* Fix #1972 as well
* FMC
---------
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
Co-authored-by: Colin McDonnell <colinmcd94@gmail.com >
2023-02-03 14:53:18 -08:00
Ashcon Partovi
3933ccab3b
Attempt to debug annotations 2
2023-02-03 11:35:24 -08:00
Ashcon Partovi
92255d56c8
Attempt to debug annotations
2023-02-03 11:32:01 -08:00
Ashcon Partovi
ba076b0a2b
Fix console output in bun wiptest
2023-02-03 11:23:55 -08:00
Ashcon Partovi
10600c4abd
Use GitHub action SDK
2023-02-03 11:18:44 -08:00
Colin McDonnell
742368f03a
Update/fix types ( #1955 )
...
* WIP
* Update types
* Spacing
---------
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
2023-02-02 17:29:10 -08:00
Ashcon Partovi
440a21eb1d
Add bun-test to run bun wiptest
2023-02-02 11:57:36 -08:00
Ashcon Partovi
69ee87d8e2
Add script to calculate semver for release
2023-02-01 14:53:57 -08:00
Ashcon Partovi
9c27b5d17f
Fix getting SHA for canary
2023-02-01 10:56:08 -08:00
Ashcon Partovi
9973df028b
Fix missing dependency from release script
2023-02-01 10:44:19 -08:00
Ashcon Partovi
73d6c888b9
Add bun-release package
2023-02-01 10:28:01 -08:00
Gaurish Sethia
661fca9cde
Add filePath property on MatchedRoute ( #1964 )
2023-02-01 05:10:48 -08:00
Jarred Sumner
b09896f06e
mostly fix node:timers
2023-01-31 17:51:36 -08:00
Devin Rhode
79b32f80fa
Use proper casing for tsconfig values ( #1644 )
...
See: https://share.cleanshot.com/gcB3gbXJz6RQk5tx559n
2023-01-31 12:22:50 -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
Ashcon Partovi
309b741aa1
Tweak release scripts
2023-01-27 20:53:09 -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
Jarred Sumner
9cb1ec2c58
Undo
2023-01-25 01:10:15 -08:00
Jarred Sumner
ed2a57fcc9
Add log
2023-01-25 01:09:05 -08:00
Ashcon Partovi
fb1902448e
Add bunx to bin for npm installer
2023-01-24 12:04:35 -08:00
Ashcon Partovi
2edbf4d0ec
Iterate on canary version again
2023-01-24 11:17:08 -08:00
Ashcon Partovi
645b7271f9
npm does not accept '+build' in releases :(
2023-01-24 10:31:04 -08:00
Ashcon Partovi
77c72b3193
Fix detection of canary
2023-01-24 10:06:58 -08:00
Ashcon Partovi
34f97be86a
Copy .npmrc to each package
2023-01-24 09:59:58 -08:00
Ashcon Partovi
2ffe77140e
Maybe fix .npmrc
2023-01-24 09:38:44 -08:00
Ashcon Partovi
cd684fdad0
Tweak semver for canary again
2023-01-23 23:38:38 -08:00
Ashcon Partovi
cab1f860e4
npm install bun (#1874 )
...
* Add bun-npm package to publish and install Bun via npm
* Add newlines to patchJson
* Update version to latest release
* Tweak semver for canary
* Use GITHUB_TOKEN
* Prevent bun from being run in slow mode
2023-01-23 23:06:13 -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
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
5ce2b8e604
Implement process.execArgv
2023-01-21 23:52:51 -08:00
Colin McDonnell
bba4054da3
Use canary in CI ( #1823 )
...
* Use canary in CI
* Only publish canary when types change
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
2023-01-17 23:06:26 -08:00
Ashcon Partovi
6fbf437f50
Fix Bun.dns examples to use array instead of single result
2023-01-17 18:12:49 -08:00
Jarred Sumner
9b260fb18b
Allow error instance in process.emitWarning
2023-01-17 17:11:08 -08:00
Colin McDonnell
b931c19ba3
Add types for readline, tls, net ( #1817 )
...
* Add readline, tls, net types
* Remove unimplemented methods
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
2023-01-17 16:49:18 -08:00
Jarred Sumner
f927567b9f
bun install tests shouldn't fail due to terminal colors
2023-01-17 16:00:21 -08:00
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