axel escalada
0ca9a7889a
Fix bunx command for github package #5974 ( #6042 )
...
* fix bunx command for github package
* refactor fmt package to use it when the path is seted
* use labeled block to assign const instead of use 'undefined'
2023-10-03 11:49:24 -07:00
Dylan Conway
745b6b94ee
Store workspace package versions ( #6258 )
...
* Store workspace package versions in the lockfile
* more logging
* wip
* keep information from workspace name array and cache
* hash key
* remove cache, compare workspaces with initially loaded
* uncomment sort
* remove comments
* remove allocation
* package json
* test `bun add <package>` without workspace prefix
* Update test/cli/install/bun-install.test.ts
Co-authored-by: Markus Staab <maggus.staab@googlemail.com >
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Markus Staab <maggus.staab@googlemail.com >
2023-10-03 02:17:21 -07:00
Ashcon Partovi
15880308b7
Fix bun install reading Github API from wrong environment variable ( #6247 )
...
* Fix `bun install` reading Github API from wrong environment variable
* Update src/install/install.zig
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-10-02 18:00:17 -07:00
Jarred Sumner
ea956e58e9
more logging
2023-10-02 02:38:47 -07:00
Jarred Sumner
46b5069c40
Slightly reduce number of open file descriptors in bun install ( #6219 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-10-01 16:55:05 -07:00
Jarred Sumner
d65fdb6035
Fix hang in bun install ( #6192 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-29 20:45:51 -07:00
axel escalada
e1117c6ae5
Add local tarball install #5812 ( #6118 )
...
* check if the value passed for add command is a local tarball and install it, test for local tarball
* use bunExe()
* use absolute path to copy tarball
* fmt ts
2023-09-28 19:07:51 -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
0268807be2
fix workspace dependency install ( #6092 )
...
* handle `*`
* test
* always use the package name
* more tests
* install dependency in each
2023-09-26 21:53:14 -07:00
Jarred Sumner
3f463786a5
Correctly fix #5888 ( #6000 )
...
* Update our MultiArrayList
* More consistent CI
* Fix serialization issue
* Update bun.lockb
* Update bun.lockb
* fixup
* Fix `Bin{}`
* `bun update` should not cache the manifest
* Make bun install tests more consistent
* This differs by platform evidently
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-24 17:43:59 -07:00
Ai Hoshino
a5908e9f27
fix(lockfile): ensure all bytes of union are initialized before serialization. ( #5957 )
2023-09-23 20:09:45 -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
dave caruso
341c1c1804
disable child_process execArgv + fix crash in cli parsing ( #5843 )
...
* stuff
* stuff
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-21 20:37:32 -07:00
Jonah Snider
67defd95af
[bun install] Add -E as alias of --exact ( #5104 )
...
* [bun install] Add `-E` as alias of `--exact`
* Add test for -E flag
2023-09-20 11:14:55 -07:00
Jarred Sumner
edee1e3d04
Show when a newer version is available in the install screen ( #5780 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-19 23:03:11 -07:00
Jarred Sumner
8677ae9fb1
Get artifactory to work ( #5744 )
...
* Get artifactory to work
* Cleanup url normalization a ltitle more
* Clean up tests
* prettier
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-19 08:01:47 -07:00
Jarred Sumner
4b5dcc8a6a
Make bun install --verbose more verbose ( #5726 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-19 03:58:55 -07:00
Jarred Sumner
cc54b62fac
Encode slashes in package names in the registry manifest request ( #5716 )
...
* Encode slashes in package names in the registry manifest request
Co-Authored-By: Max Brosnahan <1177034+gingermusketeer@users.noreply.github.com >
* Update dummy.registry.ts
* Fix tests
* Add guide for Azure Artifacts
* Update azure-artifacts.md
* Update azure-artifacts.md
* Typo
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Max Brosnahan <1177034+gingermusketeer@users.noreply.github.com >
2023-09-18 23:27:02 -07:00
pan93412
25aa51dfc4
fix(install): Return NotSupported when errno == XDEV ( #5610 )
2023-09-17 09:09:57 -07:00
Nathan Hammond
8ae9aeea6b
Remove the ability to configure lockfile. ( #5335 )
2023-09-13 22:32:03 -07:00
Gareth Jones
ec6b75ff54
chore: make comment grammatically correct ( #5140 )
2023-09-13 01:56:19 -07:00
Jarred Sumner
b432006e43
Clean up some edgecases with posix_spawn usage ( #5079 )
...
* Check that the pid matches
* Fixup EINTR check
* Remove extra slashes
* fixup
* fixup
* != 0
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-12 06:34:20 -07:00
Ciro Spaciari
8615b8ad6b
add NODE_TLS_REJECT_UNAUTHORIZED ( #4829 )
2023-09-11 21:52:31 -07:00
Dylan Conway
ca461f9e83
fix loading env from .env.production and friends ( #4630 )
...
* reload conditional vars
* test
* change `get` and `put` methods
* dont clone empty env variables
2023-09-11 17:19:21 -07:00
dave caruso
1e998c1bf2
fix(install): ensure all lockfile structs do not have undefined padding ( #4401 )
...
* padding sucks
* this assertion is already done elsewhere
* remove test. will be covered alex's pr i believe?
* fix webkit submodule
* fix uws submodule
2023-09-05 14:25:19 -07:00
Julian
59edbe645c
bun install correctly join dependency URLs (#4421 )
...
* use WTF to join registry strings
* show dependency error messages, better join error
We actually report errors when enqueuing dependencies now. I also made
the join URLs error message read better. It'd be cleaner to handle it
all in one place, but there's currently no way to propagate the data up.
* starting on registry URL tests
* added more registry URL tests
* [install] prevent optional/peer deps from failing builds
Couldn't get the peer dependency test to work, but the code is there.
* ran prettier
* changed error note to use realname, updated tests
* ran prettier again...
2023-08-31 17:36:03 -07:00
Ai Hoshino
9334fbe9b4
fix(install): resolve semver matching with pre-release tags. ( #4412 )
...
Close : #4398
2023-08-30 18:49:09 -07:00
Dylan Conway
89f24e66ff
add life cycle scripts to lockfile metahash ( #4420 )
...
* add life cycle scripts to lockfile metahash
* Update lockfile.zig
2023-08-30 18:29:08 -07:00
Alex Lam S.L
037463fc48
[install] fix stale root life-cycle script in lockfile ( #4411 )
...
fixes #4319
2023-08-30 17:35:28 -07:00
Jarred Sumner
e2a17344dc
just kernel32 things ( #4354 )
...
* just kernel32 things
* more
* Update linux_c.zig
* Update windows_c.zig
* Add workaround
Workaround https://github.com/ziglang/zig/issues/16980
* Rename http.zig to bun_dev_http_server.zig
* Rename usages
* more
* more
* more
* thanks tigerbeetle
* Rename `JSC.Node.Syscall` -> `bun.sys`
* more
* woops
* more!
* hmm
* it says there are only 37 errors, but that's not true
* populate argv
* it says 32 errors!
* 24 errors
* fix regular build
* 12 left!
* Still 12 left!
* more
* 2 errors left...
* 1 more error
* Add link to Tigerbeetle
* Fix the remainign error
* Fix test timeout
* Update syscall.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-28 04:39:16 -07:00
Ai Hoshino
910daeff27
Fix the crash when importing a module that does not exist. ( #4348 )
...
Close : #4240
2023-08-26 01:14:40 -07:00
Dylan Conway
097ae4e982
fix build
2023-08-24 19:05:40 -07:00
Alex Lam S.L
213f5bef9d
[install] fix stale life-cycle scripts from lockfile ( #4307 )
...
fixes #4269
2023-08-24 17:18:51 -07:00
Alex Lam S.L
e115638cba
[install] fix crash when installing package that uses loose semver pre-release ( #4302 )
...
- also fix parsing of `1.2.3pre+build`
fixes #4266
2023-08-24 17:17:48 -07:00
Jarred Sumner
c60385716b
Bunch of streams fixes ( #4251 )
...
* Update WebKit
* Don't do async hooks things when async hooks are not enabled
* Smarter scheduling of event loop tasks with the http server
* less exciting approach
* Bump WebKit
* Another approach
* Fix body-stream tests
* Fixes #1886
* Fix UAF in fetch body streaming
* Missing from commit
* Fix leak
* Fix the other leak
* Fix test
* Fix crash
* missing duperef
* Make this code clearer
* Ignore empty chunks
* Fixes #3969
* Delete flaky test
* Update bun-linux-build.yml
* Fix memory issue
* fix result body, and .done status before the last callback, dont touch headers after sent once
* refactor HTTPClientResult
* less flasky corrupted test
* oops
* fix mutex invalid state
* fix onProgressUpdate deinit/unlock
* fix onProgressUpdate deinit/unlock
* oops
* remove verbose
* fix posible null use
* avoid http null
* metadata can still be used onReject after toResponse
* dont leak task.http
* fix flask tests
* less flask close tests
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: cirospaciari <ciro.spaciari@gmail.com >
2023-08-23 14:05:05 -07:00
Jarred Sumner
ca26780b27
Deprecate loading node_modules.bun ( #4131 )
...
* Deprecate loading `node_modules.bun`
* realpath
* regenerate schema
* More
* more
* Update cli.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-11 22:13:46 -07:00
Alex Lam S.L
a32097aa9f
implement bun update ( #4046 )
...
- analogous to `npm update`
- `bun update <name>` to refresh specified package under `package.json`
- `bun update` to refresh all package to latest versions
2023-08-07 20:11:32 -07:00
Alex Lam S.L
b93f304c06
[install] handle bun add of existing peerDependencies correctly ( #4028 )
2023-08-06 17:42:08 -07:00
Colin McDonnell
78081cbb40
Support --dev/-D and support more flags on bun install ( #3989 )
2023-08-04 20:41:16 -07:00
Alex Lam S.L
190ba6b743
[install] handle workspace:* correctly ( #3994 )
...
- parse as path so it works on unversioned workspaces
- fix missed storage of workspace version
fixes #3985
2023-08-04 18:21:13 -07:00
Alex Lam S.L
ff315a3bf2
[install] store resolved workspace path in lockfile ( #3974 )
...
- resolve cwd consistently
- speed up package diff
- update `test/bun.lockb`
fixes #3685
fixes #3958
2023-08-04 23:28:42 +03:00
Alex Lam S.L
9a2c3dea88
[install] fix stale bun.lockb on workspaces ( #3945 )
...
- handle workspaces under `--production` correctly
- fix `Makefile`
2023-08-03 12:37:29 -07:00
Jarred Sumner
a9dc5d51e3
Fixes #3884
2023-07-30 04:04:06 -07:00
Jarred Sumner
da7c1d84e9
Fix bug with /path/to/absolute/bun.lockb
2023-07-28 18:52:04 -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
Alex Lam S.L
06503663b1
[install] handle workspace:[alias@]range ( #3819 )
2023-07-26 15:35:47 -07:00
Alex Lam S.L
961312eab0
[install] fix workspace override of aliased npm dependency ( #3784 )
2023-07-24 17:01:43 -07:00
Alex Lam S.L
07e08b086a
[install] improve workspace substitution of npm dependencies ( #3754 )
...
- respect semver ranges
2023-07-22 20:05:24 -07:00
Jarred Sumner
636cec03e1
Use WebKit's URL parser in fetch() and bun install ( #3730 )
...
* Use WebKit's URL parser in fetch() and `bun install`
* Allocate less memory
* Fix test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-21 23:27:28 -07:00
Jarred Sumner
d74d95d9ab
Better error for workspace dependency not found ( #3678 )
2023-07-20 00:08:52 +03:00