dave caruso
db2fedbb40
bump libarchive
2024-03-29 13:53:46 -07:00
Meghan Denny
e3bf906127
memoize all calls to selfExePath ( #9703 )
...
* memoize all calls to selfExePath
* Fix threadsafety issue
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-29 13:29:42 -07:00
Walter
4e7ed173ef
fix!: remove worker from default conditions ( #9256 )
...
Co-authored-by: Walter Blacke <walter.blacke@vegabyte.studio >
2024-03-29 13:22:42 -07:00
Jarred Sumner
31befad163
Workaround for #9041 ( #9580 )
...
* Workaround for #9041
* Fix crash with auto install
* Fixup this test
* Update 09041.test.ts
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-29 13:17:12 -07:00
Meghan Denny
94b01b2f45
test: pm: don't delete temporary directories ( #9649 )
2024-03-29 12:29:50 -07:00
PondWader
9ecb691380
Fix URL.canParse.length ( #9710 )
...
* Fix URL.canParse.length
* Add URL.canParse.length test
---------
Co-authored-by: John-David Dalton <john.david.dalton@gmail.com >
2024-03-29 12:21:49 -07:00
Meghan Denny
fb8a299765
shell: windows: make EnvMap case-insensitive ( #9704 )
...
* shell: windows: make EnvMap case-insensitive
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-29 12:21:09 -07:00
dave caruso
40f61ebb91
fix: EnvStr.initSlice handles zero length strings more reliably. ( #9698 )
...
* fix intcast on ptr value of zero-length strings
* Make this better
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
bun-v1.0.36
2024-03-28 22:17:20 -07:00
Jarred Sumner
4512a04820
Add missing code to TextDecoder "Invalid byte sequence" error ( #9700 )
...
* Fix missing `ERR_ENCODING_INVALID_ENCODED_DATA` code in TextDecoder
* Update text-decoder.test.js
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-28 22:06:40 -07:00
Dylan Conway
1ad6a3dfb9
fix(http2): fix crash in http2 tests ( #9676 )
...
* add the settings
* dont crash on unsupported settings
* add missing property
* less flaky tests
* comment
* Update test/js/node/http2/node-echo-server.fixture.js
* Update test/js/node/http2/node-http2-memory-leak.js
* Update test/js/node/http2/node-http2-memory-leak.js
---------
Co-authored-by: cirospaciari <ciro.spaciari@gmail.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-03-28 21:39:40 -07:00
dave caruso
1ae9f998f4
alternate approach to env fix ( #9689 )
...
* alternate approach to env fix
* rename variable
* Revert "rename variable"
This reverts commit 2374bcd487 .
* a
* we pass on window
* [autofix.ci] apply automated fixes
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-28 21:30:49 -07:00
dave caruso
d113803777
add server ws.terminate ( #9693 )
...
* add server ws.terminate
* [autofix.ci] apply automated fixes
* it has to be blazing fast
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-03-28 18:17:55 -07:00
Jarred Sumner
aaef6d350a
Fix unlikely edgecase in WebSocket client ( #9694 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-28 17:45:39 -07:00
dave caruso
0751581e86
bump: Bun v1.0.36
2024-03-28 17:42:06 -07:00
Zack Radisic
c510daac55
Fix shell regressions part 2 ( #9684 )
...
* Fix undefined memory on subprocess exit immediately and fix crash when writing a lot of data
* format
* Test for #9458
* Document
* Lazily create iowriters (i think this solves fdleak tests?)
* Fix `big_data` test hanging
* I think this make leak tests more stable
* accidentally had deinit in another thread
* oops
* Fixes
* shell `big_data` test redirect to file
* stuff
* Fix windows /dev/null
* Increase timeout
* Resolve comments and better input test
2024-03-28 17:31:43 -07:00
Jarred Sumner
ec66b07720
Make bun meta more helpful ( #9690 )
...
* Make `bun meta` more helpful
* More tweaks
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-28 15:55:47 -07:00
dave caruso
b53147ad97
docs: update contributing page
2024-03-28 13:15:56 -07:00
Jarred Sumner
dea877f19b
Revert "Fix some shell regressions ( #9630 )" ( #9670 )
...
This reverts commit aee8eeaf45 .
2024-03-27 20:56:54 -07:00
Jarred Sumner
d66ace959d
Use &= ~ instead of ^=
2024-03-27 20:27:16 -07:00
Jarred Sumner
db1283e982
Fixes #9669
2024-03-27 20:09:31 -07:00
Jarred Sumner
79ced2767a
Let's try calling close_range CLOSE_RANGE_CLOEXEC starting on 4 instead of 0
2024-03-27 19:16:23 -07:00
Ashcon Partovi
081c7fff00
Add missing aliases to expect() types
2024-03-27 18:28:48 -07:00
Dylan Conway
8a12c2992b
fix(windows): fix prompts.test.ts ( #9650 )
...
* remove comment
* fix prompt test
* more time like leaky case
* remove comments
* fixed
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-03-27 16:49:33 -07:00
Dylan Conway
306b87e929
fix(test): fix crash in expect.toHaveProperty ( #9653 )
...
* make sure string doesnt unref
* use String and assign to variable
2024-03-27 16:48:44 -07:00
Stefan Buhrmester
fcd7b01dba
add await to Bun.plugin(...) ( #9665 )
2024-03-27 16:47:40 -07:00
Eduard
9f20d40678
Fix docs for dynamic linking of libatomic ( #9646 )
2024-03-27 15:01:41 -07:00
Ciro Spaciari
d030cce8bb
fix(windows) socket and timers/performance tests ( #9651 )
...
* WIP missing keepalive
* cleanup
* is a Bun.sleep bug?
* no bun sleep
* fix exception
* revert
* fix setTimeout/Bun.sleep
* add Bun.sleep keepalive test
* fixes
* one more bonus fix
* fix early firing of timers
* use localhost and pass the server.hostname
* opsie
2024-03-27 10:31:12 -07:00
Zack Radisic
aee8eeaf45
Fix some shell regressions ( #9630 )
...
* Fix undefined memory on subprocess exit immediately and fix crash when writing a lot of data
* format
* Test for #9458
* Document
* Lazily create iowriters (i think this solves fdleak tests?)
* Fix `big_data` test hanging
* I think this make leak tests more stable
* accidentally had deinit in another thread
* oops
* Fixes
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-03-27 09:33:38 -07:00
Jarred Sumner
a9ad303fe2
Add test for fs.writev & fs.readv ( #9632 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-27 09:00:39 -07:00
dave caruso
e808cdb725
windows: fix argument handling in bin shim ( #9622 )
...
* awa
* update v5
* a
* [autofix.ci] apply automated fixes
* tarball
* a
* a
* blah
* [autofix.ci] apply automated fixes
* bump
* wah
* [autofix.ci] apply automated fixes
* farther
* a
* [autofix.ci] apply automated fixes
* im confused
* [autofix.ci] apply automated fixes
* Fix typo (#9623 )
* Fix crash in Bun.escapeHTML (#9619 )
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
* Fixes #9610
* Implement `fs.openAsBlob` (#9628 )
* Implement `fs.openAsBlob`
* Use a function
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
* Fix `bun install -g` not working on Docker
Closes #8753
* Revert "Fix `bun install -g` not working on Docker"
This reverts commit 20fce1a1be .
* what happens if nonblocking tty (#9608 )
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
* merge
* a
* blah
---------
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: sequencerr <45060278+sequencerr@users.noreply.github.com >
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
2024-03-26 22:38:01 -07:00
Jarred Sumner
1675349667
what happens if nonblocking tty ( #9608 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-26 13:53:58 -07:00
Ashcon Partovi
264b4be44a
Revert "Fix bun install -g not working on Docker"
...
This reverts commit 20fce1a1be .
2024-03-26 10:41:28 -07:00
Ashcon Partovi
20fce1a1be
Fix bun install -g not working on Docker
...
Closes #8753
2024-03-26 10:39:40 -07:00
Jarred Sumner
fa145b2218
Implement fs.openAsBlob ( #9628 )
...
* Implement `fs.openAsBlob`
* Use a function
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-25 17:21:11 -07:00
Jarred Sumner
c8cc134edb
Fixes #9610
2024-03-25 15:17:45 -07:00
Jarred Sumner
d9b7b45080
Fix crash in Bun.escapeHTML ( #9619 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-25 14:37:20 -07:00
sequencerr
43ab5313da
Fix typo ( #9623 )
2024-03-25 14:26:47 -07:00
Dylan Conway
c7289b2cd6
fix(windows): fix a few more tests ( #9550 )
...
* fix napi tests
* only windows, update passing tests
* remove closing remainder
* fix child_process-node.test.js
* might fail in ci
* oops
* fix dns tests
* remove comment
* sometimes it is slow
* update test
* maybe fix timeout error
* one more try
* off by one, valid npm package name
* update test
* fix hot tests
* revert
* remove close
2024-03-25 13:34:08 -07:00
Dylan Conway
e39a7851c8
fix(install): package binary map bugfix ( #9621 )
2024-03-25 12:49:52 -07:00
Jarred Sumner
ccaacdc56c
Fix incorrect GETFD and O_NONBLOCK setting ( #9607 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-24 20:26:08 -07:00
Jarred Sumner
c57cd5b6cd
Update shell.md
2024-03-24 18:44:06 -07:00
Jarred Sumner
c71325b52e
Fix regression with console.log in --watch on linux ( #9601 )
...
* Fix regression with console.log in --watch on linux
* Unset CLOEXEC
* more
* Enable inheritance on windows
* Don't forget to close the handles...
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-24 18:38:41 -07:00
Jarred Sumner
2765347b65
Enable more C++ warnings ( #9602 )
...
* Enable more C++ warnings
* Only enable these ones in release builds
* Update MessagePortChannel.cpp
* Update BunProcess.cpp
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-24 17:28:58 -07:00
Jarred Sumner
39d1287f03
Port #9278 ( #9596 )
...
* Port #9278
Co-Authored-By: argosphil <argosphil@murena.io >
* Fix incorrect type
Co-Authored-By: argosphil <argosphil@murena.io >
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: argosphil <argosphil@murena.io >
2024-03-24 12:21:11 -07:00
Jarred Sumner
d8a09d8517
Remove known-failing-on-windows
2024-03-24 12:13:24 -07:00
Jarred Sumner
e8bb3389ef
Tweak how we handle bun's process initialization ( #9588 )
...
* Tweak how we handle bun's process initialization
* Update panic_handler.zig
* Update output.zig
* Update __global.zig
* Update __global.zig
* Delete WindowsSpawnWorkaround, fix tests
* Fix bug in Bun.spawn on Linux when O_CLOEXEC is set on stdin stdout or stderr
* More errors
* tweak
* Bounds check
* Update install.zig
* Update dependency.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Zack Radisic <zack@theradisic.com >
2024-03-24 12:09:16 -07:00
David Legrand
73fc225c4c
docs: bun shell .sh loader fix ( #9592 )
...
`.sh` file loader is working with `.bun.sh` files, not `.sh` files as stated in the documentation
2024-03-24 11:17:00 -07:00
HT
0eb638c899
Update executables.md ( #9593 )
...
Bun build with `--compile` flag supports `--external` flag. Tested on bun `1.0.33` and it works
2024-03-24 11:15:19 -07:00
pfg
ee5fd51e88
Fix bundling for bun not using ascii_only ( #9571 )
...
* Fix bundling not using ascii_only
* add utf8 test to bundler_compile & make test source ascii
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-23 00:04:36 -07:00
dave caruso
73a55cf075
windows: make more windows tests pass ( #9370 )
...
* run-eval.test.ts
* transpiler-cache.test.ts
* node net
* some open things
* a
* a
* yikes
* incredible
* run it back
* a
* this code is what i like to call, incorrect
* ok its all worng
* remove an assertion that is wrong again
* update test things and rebase
* performance test
* mark filesink with mkfifo as todo. see #8166
* hehe
* not done
* awa
* fs test pass
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-03-22 23:40:45 -07:00