Claude Bot
c399c48610
Add --prefer-offline flag for bun install
...
This commit implements the --prefer-offline flag for `bun install` to support
offline development workflows by using locally cached package metadata even
when it has expired.
Changes:
- Add --prefer-offline CLI flag parsing in CommandLineArguments.zig
- Wire up ctx.debug.offline_mode_setting in PackageManagerOptions.zig
- Modify PackageManagerEnqueue.zig to respect prefer-offline for cache expiry
- Add logic to prevent network requests for uncached dependencies in offline mode
- Update all call sites to handle new function signatures
- Add comprehensive test suite with fake registry
The implementation follows standard package manager offline behavior:
- Uses expired cache when prefer-offline is set
- Fails gracefully when no cached data exists
- Works with both CLI flag and bunfig.toml configuration
- Integrates with existing Bun architecture patterns
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-07-19 01:43:25 +00:00
robobun
851fa7d3e6
Add support for AI agent environment variables to quiet test output ( #21135 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-07-17 21:20:50 -07:00
Michael H
be03a537df
make bun ci work as alias of --frozen-lockfile (like npm ci) ( #20590 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-07-17 05:41:06 -07:00
Jarred Sumner
804e76af22
Introduce bun update --interactive ( #20850 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-17 04:33:30 -07:00
Dylan Conway
0bb7132f61
[ENG-15045] add --linker and copyfile fallback for isolated installs ( #21122 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-16 23:02:52 -07:00
Michael H
0ee633663e
Implement bun why ( #20847 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-16 02:00:53 -07:00
Michael H
a717679fb3
support $variables in test.each ( #21061 )
2025-07-16 01:42:19 -07:00
Dylan Conway
2bc75a87f4
fix(install): fix resolving duplicate dependencies ( #21059 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-16 01:01:10 -07:00
Meghan Denny
875604a42b
safety: a lot more exception checker progress ( #20956 )
2025-07-16 00:11:19 -07:00
Jarred Sumner
b0a5728b37
Allow "catalog" and "catalogs" in top-level package.json if it wasn't provided in "workspaces" object ( #21009 )
2025-07-15 22:14:27 -07:00
Michael H
20db4b636e
implement bun pm pkg ( #21046 )
2025-07-15 22:14:00 -07:00
Michael H
f4444c0e4d
fix --tsconfig-override ( #21045 )
2025-07-15 22:00:17 -07:00
Dylan Conway
577b327fe5
[ENG-15008] fix #21086 ( #21093 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-07-15 21:59:41 -07:00
Jarred Sumner
c2fc69302b
Try to deflake bun-install-lifecycle-scripts test ( #21070 )
2025-07-15 16:27:56 -07:00
jarred-sumner-bot
803181ae7c
Add --quiet flag to bun pm pack command ( #21053 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: jarred-sumner-bot <220441119+jarred-sumner-bot@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-07-15 01:14:58 -07:00
jarred-sumner-bot
e9ccc81e03
Add --sql-preconnect CLI flag for PostgreSQL startup connections ( #21035 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: jarred-sumner-bot <220441119+jarred-sumner-bot@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-07-14 15:05:30 -07:00
jarred-sumner-bot
44a7e6279e
Make --console-depth=0 enable infinite depth instead of zero depth ( #21038 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-14 07:45:20 -07:00
Jarred Sumner
7bb9a94d68
Implement test.coveragePathIgnorePatterns ( #21013 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-07-14 05:08:32 -07:00
jarred-sumner-bot
3bba4e1446
Add --console-depth CLI flag and console.depth bunfig option ( #21016 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: jarred-sumner-bot <220441119+jarred-sumner-bot@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-07-14 04:58:41 -07:00
jarred-sumner-bot
a69a9b4ea1
Fix test output filtering for skipped and todo tests ( #21021 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: jarred-sumner-bot <220441119+jarred-sumner-bot@users.noreply.github.com >
2025-07-14 02:46:55 -07:00
Jarred Sumner
2e02d9de28
Use ReadableStream.prototype.* in tests instead of new Response(...).* ( #20937 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Alistair Smith <hi@alistair.sh >
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-14 00:47:53 -07:00
Michael H
8898c4c455
Vscode test runner support ( #20645 )
2025-07-13 21:57:44 -07:00
taylor.fish
0baf5b94e2
Fix bun add with multiple packages ( #20987 )
...
Co-authored-by: Meghan Denny <meghan@bun.sh >
2025-07-12 02:10:45 -07:00
Dylan Conway
f24e8cb98a
implement "nodeLinker": "isolated" in bun install ( #20440 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-07-09 00:19:57 -07:00
Michael H
0399ae0ee9
followup for bun pm version ( #20799 )
2025-07-07 11:21:36 -07:00
Adam
7ba4b1d01e
Fix: deprecated goo.gl links in snapshots raised in issue #20086 ( #20424 )
2025-07-05 00:58:42 -07:00
Michael H
764e20ee19
implement bun pm version ( #20706 )
2025-07-02 18:54:47 -07:00
190n
172aecb02e
[publish images] Upgrade self-reported Node.js version from 22.6.0 to 24.3.0 (v2) ( #20772 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Meghan Denny <meghan@bun.sh >
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
Co-authored-by: pfg <pfg@pfg.pw >
Co-authored-by: pfgithub <6010774+pfgithub@users.noreply.github.com >
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
2025-07-02 12:06:08 -07:00
Ben Grant
ea57037567
Revert "Upgrade self-reported Node.js version from 22.6.0 to 24.3.0 ( #20659 ) [publish images]"
...
This reverts commit 80309e4d59 . It breaks the Windows CI.
2025-07-02 09:40:32 -07:00
Jarred Sumner
80309e4d59
Upgrade self-reported Node.js version from 22.6.0 to 24.3.0 ( #20659 ) [publish images]
...
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Meghan Denny <meghan@bun.sh >
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
Co-authored-by: pfg <pfg@pfg.pw >
Co-authored-by: pfgithub <6010774+pfgithub@users.noreply.github.com >
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: Ben Grant <ben@bun.sh >
2025-07-02 00:03:05 -07:00
Jarred Sumner
fbe405fb89
Fail the test when no tests match the filter ( #20749 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-07-01 16:03:19 -07:00
Jarred Sumner
4cc61a1b8c
Fix NODE_PATH for bun build ( #20576 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-06-22 20:51:45 -07:00
Zack Radisic
2cbb196f29
Fix crash with garbage environment variables ( #20527 )
...
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Zack Radisic <zackradisic@users.noreply.github.com >
2025-06-21 23:44:59 -07:00
Michael H
770c1c8327
fix test-child-process-fork-exec-argv.js ( #19639 )
...
Co-authored-by: 190n <ben@bun.sh >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-06-20 11:53:36 -07:00
Jarred Sumner
162a9b66d8
bun pm view -> bun info (#20419 )
...
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-06-17 13:31:16 -07:00
Jarred Sumner
6ebad50543
Introduce ahead of time bundling for HTML imports with bun build ( #20265 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
Co-authored-by: dylan-conway <35280289+dylan-conway@users.noreply.github.com >
2025-06-10 21:26:00 -07:00
Jacob
b642e36da2
Add Support for LinkWorkspacePackages in Bunfig ( #20226 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-06-09 17:01:15 -07:00
nobkd
6edc3a9900
remove audit from bun pm help ( #20167 )
2025-06-03 14:37:03 -07:00
Jarred Sumner
300aedd9cc
Bump WebKit, libpas on Windows edition ( #20068 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-06-03 02:32:15 -07:00
Roman A
13ea970852
A couple grammar fixes ( #20096 )
2025-05-31 19:14:51 -07:00
Julie Saia
4d77cd53f1
Add support for catalogs in bun outdated ( #20090 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-05-30 17:23:59 -07:00
Dylan Conway
5910504aeb
bun pm audit -> bun audit (#19944 )
2025-05-27 19:52:18 -07:00
Jarred Sumner
ff8c2dcbc4
Bump WebKit again ( #19943 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-05-27 17:55:43 -07:00
Varun Narravula
fc92921a4a
fix: parse JSX namespace identifiers that have numbers in them ( #19912 )
...
Co-authored-by: Michael H <git@riskymh.dev >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-05-27 15:45:11 -07:00
Jarred Sumner
a8e4489e10
Add docs for bun pm audit ( #19885 )
...
Co-authored-by: Alistair Smith <hi@alistair.sh >
Co-authored-by: alii <25351731+alii@users.noreply.github.com >
2025-05-26 21:56:32 -07:00
Jarred Sumner
e58df65a75
Bump WebKit ( #19882 )
2025-05-26 18:56:32 -07:00
Jarred Sumner
7dc58e0ce4
Add BUN_OPTIONS env var ( #19766 )
...
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2025-05-24 13:36:51 -07:00
Alistair Smith
9e329ee605
bun pm audit (#19855 )
2025-05-23 22:31:12 -07:00
Jarred Sumner
50b938561a
Normalize versions in bun pm view <pkg> versions like npm view does ( #19870 )
...
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2025-05-23 18:10:56 -07:00
Jarred Sumner
9d1eace981
Add bun pm view command ( #19841 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-05-22 23:51:31 -07:00