Dylan Conway
d43922d3e1
follow up for #11387 ( #11393 )
2024-05-27 03:57:39 -07:00
Dylan Conway
470e523c52
fix(install): semver tag parsing bugfix ( #11387 )
2024-05-27 02:17:43 -07:00
Dylan Conway
df83028546
fix(install): npm lockfile migration bugfix ( #11311 )
2024-05-24 00:19:56 -07:00
Dylan Conway
d3fdb17321
add jest.setTimeout to bun test ( #10687 )
...
Co-authored-by: dylan-conway <dylan-conway@users.noreply.github.com >
2024-05-23 20:24:54 -07:00
Dylan Conway
d1ac51e442
fix bun-install-windowsshim.test.ts ( #11258 )
2024-05-23 19:55:53 -07:00
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
Meghan Denny
9399b70138
ci: make bun-install-registry.test.ts less flaky on windows ( #11253 )
2024-05-21 23:14:10 -07:00
Dylan Conway
cc0bce62e3
fix(install): adding packages in subdirectories of workspaces ( #11254 )
2024-05-21 22:46:26 -07:00
Dylan Conway
bb13798d98
fix(install): workspace version added to package.json ( #11241 )
2024-05-21 17:25:40 -07:00
Jarred Sumner
cabfca4039
Fix adding packages in workspaces ( #11177 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2024-05-20 21:24:37 -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
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
Dylan Conway
88468a2c2c
Snapshot lockfiles in some tests ( #10994 )
2024-05-12 17:27:48 -07:00
Dylan Conway
e2aa36f8a6
fix(install): bug with dist-tags and workspaces with versions ( #10959 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-09 17:22:25 -07:00
Dylan Conway
159e8bc2a3
fix(install): workspaces without versions ( #10913 )
2024-05-09 03:55:15 -07:00
Georgijs
c378febf5b
Implement process.on("uncaughtException", ...) ( #10902 )
...
Co-authored-by: Georgijs Vilums <=>
Co-authored-by: gvilums <gvilums@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-08 17:38:31 -07:00
Zack Radisic
656925ec97
Fix workspace packages not being found when they are moved ( #10899 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-08 14:46:05 -07:00
Meghan Denny
1da810adc1
node:zlib: Brotli ( #10722 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-06 22:00:04 -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
Ashcon Partovi
32bf5eb444
Support bunx --version ( #10701 )
2024-04-30 11:29:17 -07:00
Jarred Sumner
49fa21f6dc
Don't error on comments & trailing commas in package.json ( #10287 )
...
* Don't error on comments & trailing commas in package.json
* Fix windows tests
* Fixup
* Update lockfile.zig
* Woopsie
* Woopsie
* Fix workspace path stuff on Windows
* Always decode
* Always decode
* Revert some things
* Update lockfile.zig
2024-04-25 03:16:00 -07:00
Dylan Conway
d966fe6afd
fix flaky and broken test ( #10500 )
...
* add package
* fix test
2024-04-25 01:14:11 -07:00
Meghan Denny
685dc02142
windows: fix bun-create ci tests ( #10494 )
...
* windows: fix bun-create ci tests
* fix lint
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-04-24 21:51:05 -07:00
Dylan Conway
ebeae0ff1c
Revert "Fix issue #10376 ( #10421 )"
...
This reverts commit 7bc8456edf .
2024-04-24 19:33:23 -07:00
Uzini
7bc8456edf
Fix issue #10376 ( #10421 )
...
* add: prevent script install to be spawned if bun install is invoked
* add: test for infinite install loop
* add: error message
* fix: error message, exit code, test
---------
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2024-04-24 19:12:13 -07:00
Dylan Conway
fdff887c0a
file protocol and abs path ( #10493 )
2024-04-24 18:55:13 -07:00
Meghan Denny
2abe6e7c3f
node:child_process: allow passing stdin,stdout,stderr to spawn ( #10451 )
...
* node:child_process: allow passing stdin,stdout,stderr to spawn
* this doesnt actually need to be limited to 0,1,2
* Apply formatting changes
* fix stream guards
* undo process internals change
* wrap check in function for better clarity
* lazy load node:fs more
---------
Co-authored-by: nektro <nektro@users.noreply.github.com >
2024-04-23 17:03:11 -07:00
welfuture
83e4aca269
chore: remove repetitive words ( #10393 )
...
Signed-off-by: welfuture <wellfuture@qq.com >
2024-04-22 08:47:57 -07:00
Dylan Conway
ad44949621
fix upgrade crash ( #10387 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-04-20 16:14:09 -07:00
Dylan Conway
176af5cf58
reachable errors ( #10190 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-04-12 19:02:45 -07:00
Georgijs
ff5ef512c7
correctly handle --cwd flag ( #10187 )
...
* actually change cwd on posix
* add test
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-04-11 19:22:29 -07:00
Jarred Sumner
459bcdc5ac
Concurrent uninstalls ( #10111 )
...
* Concurrent uninstalls
* Try disabling concurrency
* Get `rm` tests to pass on Windows
* Fix more things
* Undisable concurrency
* handle error
* Deflake
* [autofix.ci] apply automated fixes
* Undo
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-04-10 05:09:14 -07:00
Jarred Sumner
9380e99e2b
Fixes #9952 ( #10069 )
...
* Fixes #9952
* Update CMakeLists.txt
* Update CMakeLists.txt
* linux
* isolate this test
2024-04-08 07:27:07 -07:00
Jarred Sumner
ee05bae2be
Make bun install 60% faster on Windows, improve reliability, reduce memory usage ( #10037 )
...
* [bundows] Make bun install 60% faster
* [autofix.ci] apply automated fixes
* Do not keep node_modules folder open between async tasks. Make sure we call runTasks on every event loop wakeup.
* Update install.zig
* Fix deadlock
* Make that deadlock impossible
* a little less repetitive
* Fix test failure with local tarball
* Get those tests to pass
* Normalize absolutely
* lets see how many times we call GetFinalPathNameByHandle
* Workaround https://github.com/ziglang/zig/issues/19586
https://github.com/ziglang/zig/issues/19586
* Is the dev-server-100 test failure a hash table collision?
* Give it its own cache dir
* We cannot change the git task ids
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-04-08 06:25:24 -07:00
Jarred Sumner
d615c11a57
Force non-zero exit code whenever bun install has any packages which failed to install ( #10041 )
...
* If any failed to install, always exit with non-zero
* [autofix.ci] apply automated fixes
* This test should fail
* Update bun-link.test.ts
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-04-07 16:12:16 -07:00
Dylan Conway
b29cf75a24
fix(install): allow installing without lockfile with --production ( #9923 )
...
* check for not_found lockfile load result
* Fix tests
* update tests
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-04-05 14:54:57 -07:00
Jarred Sumner
00f27fbeec
Get bunx tests to pass on Windows ( #9729 )
...
* Get bunx tests to pass on Windows
* wip
* WIP
* wip
* wip
* ads
* asdf
* makeOpenPath
* almost revert
* fix build
* enoent
* fix bun install git repos
* cleanup
* use custom zig stdlib from submodule
* update dockerfile to copy zig stdlib sources
* fix dockerfile, update gitmodules
* fix dockerfile
* fix build
* fix build
* fix symlinkat
* fix build
* fix build
* Remove usages of unreachable
* Fixup
* Fixup
* wip
* fixup
* Fix one of the bugs
* asd
* Normalize BUN_INSTALL_CACHE_DIR var
* Set iterable to false when we're about to delete
* Update bun.zig
* I still can't repro this outside CI
* i think that fixes it?
* fix posix compile
* factor out directory creation
* update all install methods to use InstallDirState
* move walker creation to init function
* fix error cleanup
* fix posix compile
* all install tests pass locally
* cleanup
* [autofix.ci] apply automated fixes
* Fix posix regressions
---------
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
Co-authored-by: Meghan Denny <hello@nektro.net >
Co-authored-by: Georgijs Vilums <georgijs.vilums@gmail.com >
Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com >
Co-authored-by: Georgijs Vilums <georgijs@bun.sh >
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-04-03 20:53:28 -07:00
Meghan Denny
bdfbcb1898
use bun shell for lifecycle scripts on windows [v3] ( #9771 )
...
* these comments were redundant
* better windows support here
* slightly better error message
* didnt realize this variable already existed
* fix node-gyp shim script
* move 'windows bin linking shim should work' to its own file
* run all lifecycle scripts on windows with bun shell
* tidy
* clean imports
* this seemed missing
* remove these comments
* fix the shim again
* fix posix release ensureTempNodeGypScript
* revert this change, it was correct before
2024-04-01 06:48:44 -07:00
dave caruso
9e6e8b0234
feat(runtime): align import.meta.resolve with node.js's implementation ( #5827 )
...
* works
* works
* a
* fix zig compiler error
* fix things
* [autofix.ci] apply automated fixes
* a
* not done
* finish this
* [autofix.ci] apply automated fixes
* self check
* delete committed generated file (#9717 )
* Fix bug with PipeWriter (#9714 )
* fix!: do not lookup cwd in which (#9691 )
* do not lookup cwd in which
* fix webkit submodule
* fix compilation on linux
* feedback
* default process.env.NODE_ENV to undefined (#9695 )
* small changes
* [autofix.ci] apply automated fixes
* fix(windows) fix node-stream tests/ windows file reader/writer (#9718 )
* fix canceled onFileRead
* report continue errors and fix closing
* also fix pipe writer
* avoid possible memory leaks
* Propagate errors in open
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* posix failures
* windows fixes
* avoid using c++ labels
* add a resolver
* fix compile test AGAIN
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Meghan Denny <hello@nektro.net >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
2024-04-01 02:21:34 -07:00
dave caruso
a01b01ae72
chore!: enable 1.1's breaking changes ( #9724 )
...
* root scripts in foreground
* ignore if silent
* test for breaking changes
* move back to installPackages
* [autofix.ci] apply automated fixes
* boolean variable, comptime, 1_1_0
* flip the 1.1 flag
* add for the next batch of breakings
* make it buidl
* enable breaking changes tests
* fix version fmt
* silent node-gyp
* comment change
---------
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2024-03-31 16:12:59 -07:00
Meghan Denny
62c8c97e24
add test.todoIf and fix bun-install-registry.test.ts on windows ( #9723 )
...
* bun:test: implement test.todoIf and describe.todoIf
* fix bun-install-registry.test.ts and mark some as todo
* add even more tests
* remove todoIf from this file
* [autofix.ci] apply automated fixes
* fix regression
* this extra expect was incorrect
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-03-30 21:25:05 -07:00
Jarred Sumner
31c4c59740
Make duplicate simultaneous bun install work better ( #9738 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-30 14:06:37 -07:00
Dylan Conway
7172013a72
fix(windows): use extended max path prefix for hardlinks during install ( #9721 )
...
* uncomment code
* use GetFinalPathNameByHandleW
* add packages with large names
* delete
* test large package name
2024-03-29 18:13:39 -07:00
dave caruso
5296c26dab
fix bunx-bins verdaccio package ( #9697 )
...
* fix bunx-bins verdaccio package
* env suck
* [autofix.ci] apply automated fixes
* ugh
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-29 17:55:06 -07:00
Meghan Denny
94b01b2f45
test: pm: don't delete temporary directories ( #9649 )
2024-03-29 12:29:50 -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
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
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