aboutsummaryrefslogtreecommitdiff
path: root/src/install (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-08-31`bun install` correctly join dependency URLs (#4421)Gravatar Julian 1-53/+38
* 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-30fix(install): resolve semver matching with pre-release tags. (#4412)Gravatar Ai Hoshino 1-6/+37
Close: #4398
2023-08-30add life cycle scripts to lockfile metahash (#4420)Gravatar Dylan Conway 1-0/+32
* add life cycle scripts to lockfile metahash * Update lockfile.zig
2023-08-30[install] fix stale root life-cycle script in lockfile (#4411)Gravatar Alex Lam S.L 1-7/+18
fixes #4319
2023-08-28just kernel32 things (#4354)Gravatar Jarred Sumner 5-93/+143
* 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-26Fix the crash when importing a module that does not exist. (#4348)Gravatar Ai Hoshino 1-0/+6
Close: #4240
2023-08-24fix buildGravatar Dylan Conway 2-4/+4
2023-08-24[install] fix stale life-cycle scripts from lockfile (#4307)Gravatar Alex Lam S.L 3-6/+17
fixes #4269
2023-08-24[install] fix crash when installing package that uses loose semver ↵Gravatar Alex Lam S.L 4-34/+42
pre-release (#4302) - also fix parsing of `1.2.3pre+build` fixes #4266
2023-08-23Bunch of streams fixes (#4251)Gravatar Jarred Sumner 1-2/+2
* 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-11Deprecate loading `node_modules.bun` (#4131)Gravatar Jarred Sumner 2-2/+2
* 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-07implement `bun update` (#4046)Gravatar Alex Lam S.L 2-84/+103
- 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-06[install] handle `bun add` of existing `peerDependencies` correctly (#4028)Gravatar Alex Lam S.L 1-16/+8
2023-08-04Support --dev/-D and support more flags on bun install (#3989)Gravatar Colin McDonnell 1-3/+8
2023-08-04[install] handle `workspace:*` correctly (#3994)Gravatar Alex Lam S.L 1-54/+56
- parse as path so it works on unversioned workspaces - fix missed storage of workspace version fixes #3985
2023-08-04[install] store resolved workspace path in lockfile (#3974)Gravatar Alex Lam S.L 2-56/+45
- resolve cwd consistently - speed up package diff - update `test/bun.lockb` fixes #3685 fixes #3958
2023-08-03[install] fix stale `bun.lockb` on workspaces (#3945)Gravatar Alex Lam S.L 2-15/+62
- handle workspaces under `--production` correctly - fix `Makefile`
2023-07-30Fixes #3884Gravatar Jarred Sumner 2-42/+7
2023-07-28Fix bug with `/path/to/absolute/bun.lockb`Gravatar Jarred Sumner 1-10/+13
2023-07-28Fix assertion failure and possible infinite loop when printing as yarn lock ↵Gravatar Jarred Sumner 2-3/+16
files
2023-07-26[install] handle `workspace:[alias@]range` (#3819)Gravatar Alex Lam S.L 1-1/+21
2023-07-24[install] fix workspace override of aliased npm dependency (#3784)Gravatar Alex Lam S.L 1-21/+26
2023-07-22[install] improve workspace substitution of npm dependencies (#3754)Gravatar Alex Lam S.L 2-61/+172
- respect semver ranges
2023-07-21Use WebKit's URL parser in fetch() and `bun install` (#3730)Gravatar Jarred Sumner 2-9/+42
* 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-20Better error for workspace dependency not found (#3678)Gravatar Jarred Sumner 2-21/+85
2023-07-18zig upgrade (#3667)Gravatar Dylan Conway 8-178/+192
* upgrade * more fixes * Bump Zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-17[install] handle duplicated workspace declarations gracefully (#3662)Gravatar Alex Lam S.L 1-6/+25
fixes #3644
2023-07-11typo (#3610)Gravatar dave caruso 1-1/+1
2023-07-04[install] fix run-time module loading (#3510)Gravatar Alex Lam S.L 1-44/+40
- fix version buffer confusion - improve workaround to handle cached modules fixes #3507
2023-06-30[install] handle `workspace:` specifier correctly (#3474)Gravatar Alex Lam S.L 1-3/+4
fixes #3430
2023-06-28[install] workaround run-time module loading issue (#3432)Gravatar Alex Lam S.L 1-7/+33
2023-06-26[bun install] Implement `--exact` flag (#3409)Gravatar Jarred Sumner 2-15/+70
* [bun install] Implement `--exact` flag * Rename to --save-exact * Rename --exact to --save-exact * Update bun-add.test.ts * We're going with --exact as the flag name --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-26[install] support trustedDependencies (#3288)Gravatar Alex Lam S.L 7-249/+263
* [install] support trustedDependencies closes #2073 * use `strings.indexOfChar()` * use hashes instead of strings * utilise `inline else`
2023-06-25Add support for install with --frozen-lockfile (#3365)Gravatar Tiago Teixeira 1-0/+13
* Add support for install with --frozen-lockfile * Add test * Add test for frozenLockfile in config file
2023-06-26[install] fix hang in `bun install --production` (#3406)Gravatar Alex Lam S.L 1-6/+7
2023-06-25Speculative fix for regression causing a hang with `install --production` ↵Gravatar Jarred Sumner 1-26/+26
(#3400) Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-21upgrade zig to `v0.11.0-dev.3737+9eb008717` (#3374)Gravatar Dylan Conway 9-160/+159
* 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 cc930ceb1c5b4db9614a7638596948f704544ab8. --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-20Improve error message for `error.DependencyLoop` (#3368)Gravatar Jarred Sumner 2-3/+47
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-13Fix crash in CJS (#3294)bun-v0.6.9Gravatar Jarred Sumner 2-2/+2
* Fix crash in CJS * Add std.heap.ArenaAllocator * Use our arena allocator * Reduce JS parser memory usage and make HMR faster * Write some comments * fix test failure & clean up this code * Update javascript.zig * make arena usage safer --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-11add --save argument to install (#3277)Gravatar Keyhan Vakil 1-53/+68
2023-06-10Make cold `bun install` use 2x less memory (#3271)Gravatar Jarred Sumner 2-43/+62
* Make cold `bun install` use 2x less memory In this benchmark: https://github.com/orogene/orogene/blob/main/BENCHMARKS.md This brings us from around 2.7 GB to 1.2 GB of memory * Address comments --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-09[install] fix lockfile fallback for life cycle scripts (#3265)bun-v0.6.8Gravatar Alex Lam S.L 1-1/+7
2023-06-10[install] fix life cycle scripts execution (#3235)Gravatar Alex Lam S.L 2-136/+266
[install] fix life cycle scripts execution - scripts from dependencies did not run during re-installation - `bun.lockb` now contains data on life cycle scripts - handle prior lockfile format by reading missing info from every `package.json` - suppress spurious log output from tests
2023-06-09Fix to retain a newline after removing a package (#3231)Gravatar ytakhs 1-0/+1
2023-05-25[install] fix `.bin` linking (#3067)Gravatar Alex Lam S.L 1-3/+3
- causes intermittent `bun install` failures on `bun-types`
2023-05-24Load `.env.test`, set NODE_ENV=test in `bun test`, load ↵Gravatar Jarred Sumner 2-2/+2
`.env.{test,production,development}.local` (#3037) * Support `.env.test` & `.env.{test,production,development}.local` * Fix bug preventing inlining of process.env.NODE_ENV by default * Update env_loader.zig * add env tests --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: dave caruso <me@paperdave.net>
2023-05-10feat(fetch) add redirect: 'error' support (#2845)Gravatar Ciro Spaciari 1-0/+2
* add redirect: 'error' support * fix typo * fix typo * refactor FetchRedirect enum * fix FetchRedirect * updated
2023-05-10`bun add` from root folder when call within workspaces (#2841)Gravatar Alex Lam S.L 1-94/+86
- ignore invalid `package.json` from parent directories - `echo` new lines from `make` targets correctly
2023-05-10[install] operator on root package of workspaces (#2834)Gravatar Alex Lam S.L 2-90/+122
- parse `bunfig.toml` from same directory as `package.json` - handle `--cwd` correctly fixes #2592
2023-05-08Fix bug in Bun.build() where it wouldn't pick up changes to directories on ↵Gravatar Jarred Sumner 2-3/+7
rebuilds (#2824) Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>