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
kunoka
32174a2a44
fix: added awaits in Bun.connect calls ( #9574 )
2024-03-22 20:46:50 -07:00
Xin Chen
71113182c2
fix(init): cannot find console in blank project ( #9462 )
...
* Fix cannot find console in default project
* Update src/cli/tsconfig-for-init.json
---------
Co-authored-by: dave caruso <me@paperdave.net >
2024-03-22 10:23:06 -07:00
Jarred Sumner
940448d6b6
add regression test
bun-v1.0.35
2024-03-22 07:58:27 -07:00
Jarred Sumner
be4b47d49d
Fixes #9563 ( #9566 )
...
* Remove flag in a test
* Get this test file to run in jest again
* Fixes #9563
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-22 07:50:00 -07:00
Meghan Denny
f90bb7719b
windows: test\js\bun\test\test-test.test.ts passes ( #9554 )
bun-v1.0.34
2024-03-22 00:34:53 -07:00
Jarred Sumner
7276ff9935
Make .decode(a, {stream :true}) slightly faster in TextDecoder
2024-03-22 00:30:50 -07:00
Jarred Sumner
2d61c865fc
Replace some of std.ChildProcess with bun.spawnSync ( #9513 )
...
* Replace some of std.ChildProcess with bun.spawnSync
* Update process.zig
* Fix some build errors
* Fix linux build
* Keep error
* Don't print a mesasge in this case
* Update spawn.test.ts
* Make `bun install` faster on Linux
* Comments + edgecases
* Fix the tests
* Add bun install launch.json
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Zack Radisic <zack@theradisic.com >
2024-03-21 23:50:48 -07:00
Dylan Conway
7e3e7d2ed4
enable autoinstall, fixup tests ( #9539 )
2024-03-21 21:12:54 -07:00
Jarred Sumner
b24d3ba5be
Fix build
2024-03-21 11:05:52 -07:00
Jarred Sumner
c6f22de360
Make the version number bigger
2024-03-21 10:44:18 -07:00
Jarred Sumner
e124f08caf
A few fixes related to CommonJS module loading ( #9540 )
...
* Ensure we always deref the source code
* Move more work to concurrent transpiler
* Update NodeModuleModule.h
* Update string.zig
* Make `Bun.gc()` more effective
* Update text-loader-fixture-dynamic-import-stress.ts
* Update ZigSourceProvider.cpp
* Fixes #6946
* Update ModuleLoader.cpp
* Update ModuleLoader.cpp
* Fixes #8965
* Fixups
* Update ModuleLoader.cpp
* Update ModuleLoader.cpp
* Load it
* Update module_loader.zig
* Update module_loader.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-21 10:42:57 -07:00
Jarred Sumner
0948727243
Fixes #9521 ( #9530 )
...
* Fixes #9521
* Another test
* Update load-file-loader-a-lot.test.ts
* Update module_loader.zig
* comments
* Rename variable
* Update module_loader.zig
* Update exports.zig
* small cleanup
* bundows
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-21 00:06:24 -07:00
Paul Eboselume
650dc552d4
fixed typo ( #9535 )
2024-03-20 20:04:05 -07:00
Dylan Conway
3e86b38f32
fix(windows): waiter thread tests ( #9538 )
...
* use Bun.sleepSync
* argv0
2024-03-20 20:03:17 -07:00
Ashcon Partovi
cc4479096a
Update lockfiles
2024-03-20 09:16:01 -07:00
Ashcon Partovi
d14c99510c
Change macOS version check to be a warning, instead of error
2024-03-20 09:09:29 -07:00