Dylan Conway
5058bd3913
handle bundle(d)Dependencies in bun install ( #16055 )
2024-12-31 13:40:55 -08:00
Dylan Conway
b55ca429c7
Implement text-based lockfile ( #15705 )
2024-12-11 05:05:49 -08:00
Meghan Denny
2d441d868b
zig: make throw use JSError ( #15444 )
2024-12-02 14:19:18 -08:00
Jarred Sumner
5bcaf32ba3
Fix lockfile print crash ( #15332 )
2024-11-22 02:07:11 -08:00
Jarred Sumner
a6a4ca1e49
fix(install): ensure aliases hash map is initialized ( #15280 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2024-11-20 18:52:34 -08:00
Meghan Denny
0e3e33072b
zig: rename CallFrame.arguments to .arguments_old to free up decl name ( #15296 )
2024-11-20 16:18:56 -08:00
Meghan Denny
c9d0fd51a9
zig: make throwTODO use JSError ( #15264 )
...
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2024-11-20 15:16:51 -08:00
Meghan Denny
befb269b2d
zig: align fromJS methods to using JSError ( #15165 )
2024-11-15 22:14:18 -08:00
Jarred Sumner
357581c61a
Shrink Bun's binary by 3.5 MB ( #15121 )
2024-11-14 06:02:15 -08:00
Meghan Denny
fdd8d35845
allow zig js host functions to return JSError ( #15120 )
2024-11-13 21:11:56 -08:00
Dylan Conway
f374ae6db1
add bun publish ( #14215 )
2024-10-02 20:47:22 -07:00
Jarred Sumner
5108e3e0d9
Add snapshot tests for dependency/version parsing ( #13658 )
2024-09-02 15:12:00 -07:00
Dylan Conway
fa2e00f109
fix freeing semver ranges ( #13399 )
2024-08-18 22:34:38 -07:00
Dylan Conway
da27f22622
fix(install): install binaries for packages installed multiple times ( #11886 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: dylan-conway <dylan-conway@users.noreply.github.com >
2024-06-28 03:24:39 -07:00
Dylan Conway
ff15281b49
fix(install): fix potential flakiness with git dependencies ( #12030 )
...
Co-authored-by: dylan-conway <dylan-conway@users.noreply.github.com >
2024-06-21 21:34:23 -07:00
Dylan Conway
3b199cde59
remove glibc memfd_create from required symbols ( #12050 )
...
Co-authored-by: dylan-conway <dylan-conway@users.noreply.github.com >
2024-06-21 19:02:27 -07:00
Eckhardt (Kaizen) Dreyer
087b83c56d
fix(install): use ssh keys for private git repos ( #11917 )
...
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2024-06-21 01:31:12 -07:00
Zack Radisic
7c27f3f9b4
Patch ( #11858 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: zackradisic <zackradisic@users.noreply.github.com >
2024-06-18 16:34:10 -07:00
Dylan Conway
8b4ec84fb1
fix(install): use correct lockfile when printing install summary ( #11930 )
2024-06-17 19:30:16 -07:00
Dylan Conway
4b8f89cb73
Allow bun update to edit package.json ( #11340 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-30 02:14:01 -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
Dylan Conway
159e8bc2a3
fix(install): workspaces without versions ( #10913 )
2024-05-09 03:55:15 -07:00
Dylan Conway
fdff887c0a
file protocol and abs path ( #10493 )
2024-04-24 18:55:13 -07:00
Jarred Sumner
688844b472
refactor: ban std.debug.assert ( #10168 )
...
* Ban `std.debug.assert`
* Create .clangd
* Update lint.yml
* Update linter.ts
* update
* lint
* Update linter.ts
* Update linter.ts
* update
* Update linter.ts
* update
* Update linter.ts
* more
* Update install.zig
* words
* Remove UB
2024-04-11 17:52:29 -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
Dylan Conway
bf0e5a82f7
fix(windows): install bugfixes for workspaces, tarballs, and relative paths ( #8813 )
...
* more tests
* update migration.zig
* fix up paths
* update tests
* update tests
* test
* test
* update registry tests
* comments
* early exit if stream is invalid
* dont pass invalid_fd to openFileAtWindows
* fix merge
* misc crash fix
* make this use optional pointers instead of 0xaa
* ensure absolute paths are propagated properly
* package.json expects forward slash
* this assert was invalid
* add panic checks
* pass bun-remove
* more panic checks
* test: pass bun-add
* querying these hangs outside bun too
* fix compile error from merge conflict resolution
* use compileError instead of comptime unreachable
* tidy
* bunx: check for the .exe bin extension
* bunx: another route to make cache path if it doesnt exist
* install: another case of FolderResolution.getOrPut expecting absolute path
* fix a bun install crash
* dont print zig stack trace if bun install fails
* test: pass bun-link
* test: bunx: add more expects
* test: bun-install-registry: pass
* test: bun-install: pass
* test: bun-pm: pass
* fix merge main error
* fix posix tests
* fix last failing test in bun-install.test.ts
symlink difference between platforms
* bun-install-registry.test.ts fix
* bun-run.test.ts: remove stray console log
---------
Co-authored-by: Meghan Denny <meghan@bun.sh >
Co-authored-by: Meghan Denny <hello@nektro.net >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-03-18 22:34:15 -07:00
Meghan Denny
8733748eb6
remove bun.assertDefined, comparing against undefined is UB ( #8137 )
2024-01-12 18:16:04 -08:00
Dylan Conway
ef0e96a2b2
fix(install): add warning and skip patched packages ( #8143 )
...
* add warning and skip patched packages
* also overrides
* comment
2024-01-12 18:03:30 -08:00
Dylan Conway
fef7920b17
Revert "split('||'), fix up tests"
...
This reverts commit 5fd09153cd .
2023-11-07 07:55:01 +01:00
Dylan Conway
b5a04827e1
split('||'), fix up tests
2023-11-07 07:55:01 +01:00
Dylan Conway
bb5d6fff77
count might be zero for alias
2023-11-07 07:55:01 +01:00
Dylan Conway
75aa963fef
test for invalid version
2023-11-07 07:55:01 +01:00
Dylan Conway
b0126b5962
remove &, mark skip tests as todo
2023-11-07 07:55:01 +01:00
Dylan Conway
2f301e8404
skip tags in version ranges
2023-11-07 07:55:01 +01:00
Dylan Conway
4b2cdc4fc1
respect optional peer dependencies and update docs ( #6615 )
...
* update docs
* optional peer dependencies
* rename offset variable name, cache invalidation time
* Update install.zig
* install more peer dependencies
2023-10-20 03:27:10 -07:00
Dylan Conway
d187563d36
use npm alias in dependencies ( #6545 )
...
* aliased package in dependencies
* other buf
* make sure version works
* make sure overrides don't override alias
* tests
* update
* comments
2023-10-17 16:34:03 -07:00
dave caruso
1bf28e0d77
feat(install): automatically migrate package-lock.json to bun.lockb ( #6352 )
...
* work so far
* stuff
* a
* basics work
* stuff
* yoo
* build lockfile
* correct
* f
* a
* install fixture havent tested
* i made it worse
* lol
* be more reasonable
* make the test easier to pass because bun install doesn't handle obscure lockfile edge cases :/
* a
* works now
* ok
* a
* a
* cool
* nah
* fix stuff
* l
* a
* idfk
* LAME
* prettier errors
* does this fix tests?
* Add more safety checks to Integrity
* Add another check
* More careful lifetime handling
* Fix linux debugger issue
* a
* tmp dir and snapshot test
---------
Co-authored-by: Jarred SUmner <jarred@jarredsumner.com >
2023-10-11 02:27:07 -07:00
Dylan Conway
05781dd91e
make peer dependencies install by default ( #6396 )
...
* peer dependencies
* default true
* add test
* cleanup
* some tests
* skip peer deps if they are non optional
* remove debug print, fix build
* iterate peer dependencies
2023-10-10 20:05:58 -07:00
Dylan Conway
4a2e1574e4
fix semver and repository host bugs ( #6312 )
...
* releases before prereleases
* handle different repo hosts
* remove log
* Update bun-install.test.ts
* test for `bun add`
* gitlab test
* use comptime hash map, another test case
* don't need length
* bump timeout, use tld
* infer git dependencies for https and ssh
2023-10-04 22:46:21 -07:00
Justin "J.R." Hill
1d6d639352
fix(bun install): Handle vercel and github tarball path dependencies ( #6122 )
...
* fix(bun install): Handle vercel and github tarball path dependencies
* test(bun install): test tarball path with when
* Simplify github tarball detection
---------
Co-authored-by: bun <noreply@oven.sh >
2023-09-27 19:22:50 -07:00
Dylan Conway
ee93f1b88c
[install] fix GitHub dependency bugs ( #5941 )
...
* handle branches with slashes
* handle empty repo string
2023-09-22 18:41:55 -07:00
Jarred Sumner
1490cdc4ff
Fix assertion failure and possible infinite loop when printing as yarn lock files
2023-07-28 17:40:05 -07:00
Dylan Conway
661355546a
zig upgrade ( #3667 )
...
* upgrade
* more fixes
* Bump Zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-18 01:20:20 -07:00
Dylan Conway
5fa13625a1
upgrade zig to v0.11.0-dev.3737+9eb008717 ( #3374 )
...
* progress
* finish `@memset/@memcpy` update
* Update build.zig
* change `@enumToInt` to `@intFromEnum` and friends
* update zig versions
* it was 1
* add link to issue
* add `compileError` reminder
* fix merge
* format
* upgrade to llvm 16
* Revert "upgrade to llvm 16"
This reverts commit cc930ceb1c .
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-21 23:38:18 -07:00
Jarred Sumner
ea47ed0ee5
Fix broken autocomplete
2023-04-19 00:01:27 -07:00
Jarred Sumner
7bd6a1f86d
Remove usages of void{} in favor of {}
...
See https://github.com/ziglang/zig/issues/15213
2023-04-09 05:39:05 -07:00
Alex Lam S.L
0a91490226
[install] support tarball URLs ( #2497 )
...
closes #2448
2023-03-28 13:45:00 -07:00
Dylan Conway
3f04f8d0a6
Upgrade Zig ( #2151 )
...
* fixup
* Upgrade Zig
* Remove bad assertion
* strings
* bump
* mode -> optimize
* optimize
* Linux build
* Update bindgen.zig
2023-02-23 23:57:19 -08:00
Alex Lam S.L
2dc85c4e45
[install] support SCP-style git dependencies ( #2124 )
...
- try HTTPS first before SSH
- improve package name resolution
- improve report messages
fixes #2119
2023-02-21 19:32:35 -08:00
Alex Lam S.L
c60d7db178
[install] support git dependencies ( #2094 )
2023-02-17 14:48:57 -08:00