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
Alex Lam S.L
cdbc620104
[install] support git://github.com/ dependencies ( #2059 )
2023-02-12 14:44:39 -08:00
Alex Lam S.L
30e82c5df4
fix segfault during non-install script execution ( #2045 )
2023-02-11 20:40:18 -08:00
Alex Lam S.L
f31330d3e2
[install] pick latest tagged version by default ( #2016 )
...
* [install] pick `latest` tagged version by default
fixes #1993
* update `package.json` the same way as `npm
2023-02-08 16:28:29 -08:00
Alex Lam S.L
18807cef03
[install] assorted fixes & improvements ( #2011 )
...
- take `peerDependencies` into account during package placement
- do not recursively resolve `workspaces` (matches `npm`)
- link binaries to non-root packages correctly
- prune empty nodes during dependency tree construction
- support non-standard `workspace:` specifier
2023-02-08 14:37:14 -08:00
Alex Lam S.L
48eb0c12ab
parse git+ https://github.com/ as GitHub URLs ( #1926 )
...
fixes #1921
2023-01-28 22:14:07 -08:00
Alex Lam S.L
07258bd559
[WIP] append GitHub package after fully parsed ( #1911 )
2023-01-28 07:05:28 -08:00
Jarred Sumner
468226fc90
be more careful
2023-01-25 01:52:04 -08:00
Alex Lam S.L
f43b675200
support GitHub URLs as dependencies ( #1875 )
2023-01-24 11:57:25 -08:00
Jarred Sumner
17bde9bc86
Fix test failure due to UB
2023-01-21 15:36:51 -08:00
Alex Lam S.L
f0fa760479
[semver] parse ^ & ~ expressions correctly ( #1854 )
...
* [semver] parse `^` & `~` expressions correctly
* handle semver ranges correctly against build tags
2023-01-21 04:16:26 -08:00
Alex Lam S.L
bab7e63d7c
use String.from() ( #1850 )
2023-01-19 19:26:10 -08:00
Jarred Sumner
795cde6d62
Bugfixes to install ( #1848 )
2023-01-20 04:55:22 +02:00
Alex Lam S.L
cd5f2ab11f
parse dependency specifier correctly ( #1840 )
2023-01-19 06:39:01 -08:00
Alex Lam S.L
c0ec61cf16
support npm dependency aliasing ( #1837 )
...
* support npm dependency aliasing
* fix variable name
2023-01-18 20:11:52 -08:00
Jarred Sumner
274ae5de1b
[bun install] Make it print workspace: instead of workspace://
2023-01-16 18:57:04 -08:00
Alex Lam S.L
7fa023b8b5
support installation of NPM workspaces ( #1764 )
2023-01-14 07:14:48 -08:00
Alex Lam S.L
270b07e85e
use strings.hasPrefixComptime() ( #1755 )
2023-01-10 05:35:20 -08:00
Jarred Sumner
1ba95a65ee
Make the error message for unsupported dependency type a little clearer
2023-01-02 14:52:35 -08:00
Jarred Sumner
c0dd284136
Upgrade to latest Zig ( #1610 )
...
* @min and @max
* builtins and some trivial ones
* Most of them
* more
* more!
* More Progress
* wip
* Update tagged_pointer.zig
* Update http_client_async.zig
* Most of the iterable dir changes
* alright
* Remove usages of deprecated formatters
* 📷
* fmt
* Update shimmer.zig
* wip
* wip
* wip
* progress
* more
* Latest
* stuck on error
* latest
* workaround stage2
* wip
* Update string_immutable.zig
* wip
* Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings
* Fix build errors
* Fixup most of the test failures
* Fix `make headers`
* Fix "outside package path" error
* Fixup aligned alloc
* Add missing file
* linux
* More linux fixes
* use latest peechy
* Fix transpiler test failure
* Forgot about these
* Fixup test failure
* Update node-timers.test.ts
* [node:htt] Fix `undefined is not an object` error
Fixes https://github.com/oven-sh/bun/issues/1618
* Update http.exports.js
* Make this test less flaky
* fix hashes
* Fix hex formatting and zls issues
* Download zig version
* Update Dockerfile
* Update Dockerfile
* Update uws
* Update Dockerfile
* Set llvm version
* Update README.md
* Update uws
* Update Dockerfile
* Update io_linux.zig
* Update bun.zig
* Log output
* workaround strange @cInclude error
* Make ffi tests better
* Don't use cImport
* Update c.zig
* Update c-bindings.cpp
* call setOutputDir
* Update Dockerfile
* Use a longer name
* latest
* Update serve.test.ts
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Veikka Tuominen <git@vexu.eu >
2022-12-28 00:51:22 -08:00