Jarred Sumner
cbfe17d95a
Update runner.node.mjs
2023-03-04 18:18:15 -08:00
Jarred Sumner
571ba8ef3f
Add node runner
2023-03-04 18:11:54 -08:00
Jarred Sumner
9963e1c3d8
Update runner.ts
2023-03-04 17:52:13 -08:00
Jarred Sumner
9e2f6ef1be
chdir
2023-03-04 17:45:50 -08:00
Jarred Sumner
ffdc8a19d1
fixup
2023-03-04 17:31:59 -08:00
Jarred Sumner
dcc46b2862
Rename packages/bun-test to packages/bun-internal-test
2023-03-04 17:21:25 -08:00
aab
ddb6624ad1
docs: Fix invalid default port on bun-types docs ( #2300 )
2023-03-04 06:01:39 -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
Colin McDonnell
b469e50351
Add fs/promises tests and migrate fs.test.js to TypeScript ( #2279 )
2023-03-02 17:36:47 -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
Ashcon Partovi
ef56961007
Run tests in CI for bun-linux-aarch64
2023-03-01 14:31:56 -08:00
Ciro Spaciari
e512be8c18
just some comments fix ( #2237 )
2023-02-28 16:56:12 -08:00
Ashcon Partovi
2c795e6a3c
bun-lambda: Fix 502 when handler name was 'fetch'
2023-02-23 09:54:22 -08:00
Ciro Spaciari
24d624b176
feat(Request.signal) Initial support for signal in Request + fetch and Request + Bun.serve ( #2097 )
...
* add fetch abort signal
* get aborted (still segfaults)
* bidings.zig u0 error
* still GC/memory error
* fix start crash
* fix AbortSignal fromJS
* change fromJS to obj.as
* addAbortSignalEventListenner
* handle abort types, and add tests
* fix tests
* add custom reason test
* merge 2 substring methods, use MAKE_STATIC_STRING_IMPL
* fix create AbortError and TimeoutError, move globalThis and exception creation to main thread
* fix tests and rebuild headers
* no need to check with substring reason is already an exception
* no need to check with substring reason is already an exception
* fix dumb error inverting conditions for check reason
* fix custom reason behavior
* Request signal
* remove package-lock.json
* Remove JSC.Strong from Request signal
* fix globals for fetch abort signal
* more tests, clone signal crashs
* fix AbortSignal.toJS
* fix toJS bidings for AbortSignal
* add streaming tests
* fix abortion before connecting
* fix tests and segfault
* add fetch testing abort after finish
* fix signal handler cleanup
* support signal event Bun.serve
* pull tests (failing)
* remove unsupported test
* formating
* fix server Request.signal, fix cleanNativeBindings
* add direct tests
* more pull tests
* fix stream tests
* fix fetch, pending onAborted fix in HTTPServerWritable
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-02-22 19:27:25 -08:00
Jarred Sumner
2a1558e4d6
[breaking] Return Node.js Timeout objects in setTimeout, setInterval, and setImmediate
...
Fixes #2129 #880
2023-02-22 19:07:27 -08:00
Colin McDonnell
9f53a2210c
Various type fixes ( #2135 )
...
* Simplify serve() types
* Remove baseURI
* Add Bun.serve type tests
* Number env vars
* Make loader optional
* FSRouter doesn't support URL
* Update sqlite types
* Bench
---------
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
2023-02-22 17:45:22 -08:00
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