Jarred Sumner
12bb5d03a2
Always propagate error in EventEmitter ( #11210 )
...
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
2024-05-22 16:39:42 -07:00
Ciro Spaciari
096cfeebc0
fix(fetch) allow Response to be GC'd before all the request body is received ( #10933 )
...
Co-authored-by: cirospaciari <cirospaciari@users.noreply.github.com >
2024-05-22 15:42:30 -07:00
Georgijs
6c77d5e882
bypass getaddrinfo for ip addresses ( #11238 )
...
Co-authored-by: Georgijs Vilums <=>
2024-05-21 15:51:10 -07:00
Jarred Sumner
bbaeeaeed2
Implement expect().toHaveReturned() && expect().toHaveReturnedTimes(n) ( #11231 )
2024-05-21 13:11:26 -07:00
Zack Radisic
adde0af7b4
fix which when bin or PATH is rlly long ( #11218 )
2024-05-21 11:21:29 -07:00
Jarred Sumner
40fcf25e01
Fixes "column must be greater than or equal to 0" error ( #11211 )
2024-05-21 11:19:18 -07:00
Georgijs
4df387d59f
happy eyeballs ( #11206 )
...
Co-authored-by: Georgijs Vilums <=>
Co-authored-by: gvilums <gvilums@users.noreply.github.com >
2024-05-20 22:12:14 -07:00
Zack Radisic
ff1db36aaa
shell: handle operators and delimiters better ( #11165 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-05-20 10:37:52 -07:00
Jarred Sumner
b15d47dfe8
Introduce bun.dns.prefetch API ( #11176 )
...
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Eric L. Goldstein <3359116+mangs@users.noreply.github.com >
2024-05-19 18:08:16 -07:00
Zack Radisic
38122a99b2
shell: Fix some cd returning the wrong exit code ( #11092 )
2024-05-17 18:12:57 -07:00
Jarred Sumner
16920a552f
Make unhandled exceptions in Bun.serve() within a test() or expect() call fail the test like any other exception ( #11141 )
2024-05-17 18:11:43 -07:00
Jarred Sumner
b220254df4
Fix failing test
2024-05-16 23:48:48 -07:00
Jarred Sumner
44891ee62d
Skip bun build of react-dom/server test when react-dom/server is unsupported
2024-05-16 21:47:58 -07:00
Meghan Denny
5caca9cd48
add .bytes() method to various readables ( #11104 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: nektro <nektro@users.noreply.github.com >
2024-05-16 19:10:50 -07:00
Meghan Denny
ac6eaac403
test: use resource disposal to ensure servers shutdown even if tests fail ( #11106 )
2024-05-16 17:26:13 -07:00
Jarred Sumner
013d7c2e9c
Fix flaky test
...
@zackradisic please don't use `^` in tests. It means a package updating in the future can cause the test to fail.
2024-05-16 15:44:28 -07:00
Meghan Denny
86bcc49bef
node:http: allow setting response.statusCode and statusMessage [v2] ( #11082 )
2024-05-15 00:27:55 -07:00
Meghan Denny
4efe026b5f
test: unify how all files create a temp directory ( #11057 )
...
Co-authored-by: nektro <nektro@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-14 20:19:35 -07:00
Zack Radisic
60482b6e42
Fix backtick escaping and add more tests ( #10980 )
...
Co-authored-by: zackradisic <zackradisic@users.noreply.github.com >
Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-14 14:23:12 -07:00
Zack Radisic
68cb85a61d
Tilde expansion ( #10981 )
2024-05-10 15:01:17 -07:00
Zack Radisic
4b581b011c
feat: Add cp builtin to shell for Windows ( #10174 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
Co-authored-by: zackradisic <zackradisic@users.noreply.github.com >
2024-05-08 17:01:00 -07:00
dave caruso
f1fbf54b0a
fix(win): do not allow exitcode==1 and signalCode to be set at once ( #10907 )
2024-05-08 16:00:35 -07:00
Zack Radisic
0d0fe75bec
Fix more glob pattern problems ( #10792 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-08 14:47:09 -07:00
dave caruso
f9be0bef45
add [Symbol.dispose] in some bun apis ( #10818 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-05-06 19:49:23 -07:00
Dylan Conway
5cbb1ba96a
console.table bugfix (#10876 )
2024-05-06 19:46:35 -07:00
Jarred Sumner
72bc2585e3
Fix passing stdout/stderr from Bun.spawn -> Bun.serve()'s Response ( #10840 )
2024-05-04 20:43:57 -07:00
Dylan Conway
94bf404c41
Print bun version on unhandled errors ( #10760 )
...
Co-authored-by: dave caruso <me@paperdave.net >
2024-05-02 15:06:14 -07:00
Ciro Spaciari
79c7abe595
fix(server) handle ignored body and node:http destroy ( #10268 )
2024-05-01 16:18:35 -07:00
Ashcon Partovi
23fb8ce07a
Rewrite some tests so they don't use GitHub annotations ( #10748 )
2024-05-01 16:13:20 -07:00
Zack Radisic
303f86af41
Glob support for workspace names in bun install ( #10462 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: zackradisic <zackradisic@users.noreply.github.com >
2024-05-01 11:01:55 -07:00
Dylan Conway
a5b5a2a725
fix requestCert and rejectUnauthorized option handling ( #10710 )
2024-04-30 17:29:03 -07:00
RanolP
93829420dc
fix: seq, dirname, basename should exit with 0 even when they don't have stdout ( #10590 )
2024-04-29 18:06:43 -07:00
Jarred Sumner
3970339483
Use error handling callback in more places, emit 1015 when WSS TLS handshaking fails, micro-optimize ServerWebSocket, fix bug in util.inspect exceptions ( #10633 )
2024-04-29 13:57:23 -07:00
Georgijs
603588ac8c
fix flaky udp test ( #10650 )
...
Co-authored-by: Georgijs Vilums <=>
2024-04-29 13:03:12 -07:00
Jarred Sumner
7af0ed164a
Fixes #10584 ( #10627 )
2024-04-29 10:43:59 -07:00
Keigo Ando
7062e89d2e
Support asymmetric matchers with equals in expect.extend ( #10602 )
2024-04-29 10:37:35 -07:00
Dylan Conway
697f37e21f
fix 10610 ( #10618 )
2024-04-28 16:55:20 -07:00
Jarred Sumner
e58d67b468
Fixes #10588 & upgrade WebKit ( #10596 )
2024-04-28 01:10:52 -07:00
Ashcon Partovi
589f941aea
UDP support ( #7271 )
...
Co-authored-by: Georgijs Vilums <georgijs@bun.sh >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: gvilums <gvilums@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com >
Co-authored-by: Georgijs Vilums <=>
2024-04-26 15:25:24 -07:00
Dylan Conway
d966fe6afd
fix flaky and broken test ( #10500 )
...
* add package
* fix test
2024-04-25 01:14:11 -07:00
Zack Radisic
528a84d29f
Fix absolute patterns with glob ( #10121 )
...
* Make it work with abs patterns
* add tests
* fixes
* Make all the ported fast-glob tests work for absolute path patterns, fix some stuff
* fix scan test
* remove TestBuilder in scan.test.ts
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-04-23 15:59:59 -07:00
Jarred Sumner
024c274a3d
Support type import attribute with "text", "json", "toml", and "file" ( #10456 )
...
* Fixes #3449
Fixes https://github.com/oven-sh/bun/issues/10206
Fixes https://github.com/oven-sh/bun/issues/5710
* Apply formatting changes
* Update loaders.md
* Update text-loader-fixture-import.ts
* Add guide
* Update bundler_loader.test.ts
* Address comment
---------
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-04-23 15:35:34 -07:00
Jarred Sumner
c405a4bd21
Fixes #10304 ( #10407 )
2024-04-22 13:03:36 -07:00
Jarred Sumner
291a39bd3f
Do not run shell tests outside test scope ( #10199 )
...
* Do not run tests outside test scope
* Fix tests
* Fix type errors and remove potentially precarious uses of unreachable
* yoops
* Remove all instances of "Ruh roh"
---------
Co-authored-by: Zack Radisic <56137411+zackradisic@users.noreply.github.com >
2024-04-16 14:03:02 -07:00
Georgijs
24a411f904
Correctly handle duplicate column names in sqlite joins ( #10285 )
...
* add tests
* working
* cleanup
* fix compile
* fix naming and comment
* fix lints in test
* apply suggested fixes
2024-04-15 14:02:28 -07:00
Jarred Sumner
3f10d5250a
[bun:sqlite] Support sqlite3_file_control, better closing behavior, implement Disposable ( #10262 )
...
* [bun:sqlite] Support `sqlite_file_control`, better closing behavior, support `using` statements
* docs+flaky test
* Simplify the implementation
2024-04-15 13:06:30 -07:00
Grigory
233624b6ff
fix(which/windows): ignore file extension case ( #10102 )
...
* fix(which/windows): ignore file extension case
* feat(which): add test for `endsWithExtension` fun
* Revert "feat(which): add test for `endsWithExtension` fun"
This reverts commit fb3ad51de7 .
* add test
---------
Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com >
2024-04-15 05:03:44 -07:00
Ciro Spaciari
f6b9c0c909
fix(socket) fix error in case of failure/returning a error in the open handler ( #10154 )
...
* fix socket
* one more test
* always clean callback on deinit
* Update src/bun.js/api/bun/socket.zig
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* make context close private
* keep old logic
* move clean step to SocketContext.close
* add comment
* wait for close on stop
* cleanup
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-04-12 20:58:45 -07:00
Zack Radisic
baf0d7c40f
shell: Fix escaped newlines and add more tests ( #10122 )
...
* Fix multiline args and add more tests
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-04-09 17:25:10 -07:00
Yoav Balasiano
9898e0a731
Improve bun shell docs examples ( #10052 )
2024-04-08 06:48:21 -07:00