Repository navigation
Conversation
Pin the runtime, CI action, Docker images, Vercel, EAS and docs to 1.4.4. Bump @types/bun to 1.4.3 in render-farm and media-server, and regenerate both lockfiles with 1.4.4.
|
@Addin is attempting to deploy a commit to the Cap Software Inc Team on Vercel. A member of the Team first needs to authorize it. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Both Bun workspaces declared @types/bun but listed bun-types (its transitive dependency) in compilerOptions.types. Bun's docs use "types": ["bun"], and @types/bun is a one-line reference to bun-types, so the resolved declarations are the same.
|
Thanks @Addin, this is a really thorough upgrade. I checked every place we pin Bun (package.json packageManager/engines, .github/actions/setup-js, status.yml, apps/web/vercel.json, apps/mobile/eas.json, the media-server, render-farm and web Dockerfiles) and they are all covered, and the regenerated bun.lock passes |
Summary
Bun 1.4.0 → 1.4.4, to pick up the security fixes in 1.4.3 and 1.4.4. That includes the TLS hostname-matching fix (CVE-2026-48618), HTTP/2 stream-reset limits (CVE-2023-44487, CVE-2025-8671), and hardening in
bun installagainst malformed registry and tarball URLs,binfields and tar archives. Every place the runtime is declared is pinned to 1.4.4,@types/bunmoves to the latest published version, and both lockfiles are regenerated by 1.4.4.Closes
Closes #2920
Changes
package.json(packageManager,engines.bun),.github/actions/setup-js(version and cache keys),.github/workflows/status.yml,apps/web/vercel.json,apps/mobile/eas.json.apps/media-server/Dockerfile,Dockerfile.standalone,apps/render-farm/Dockerfile,apps/web/Dockerfile(image tag and install cache id).@types/bun1.4.0 andlatest→1.4.3inapps/render-farmandapps/media-server, and both workspaces now list"bun"incompilerOptions.types, matching Bun's documented entry for@types/buninstead of its transitivebun-types.bun.lockregenerated (482 lines: workspace-qualified resolutions; 173 stale entries pruned);apps/media-server/bun.lockregenerated (12 lines, stilllockfileVersion: 1).README.md,CONTRIBUTING.md,AGENTS.md,apps/status/README.md,apps/web/public/llms-full.txt,capcodec/CAP_BASELINES.md.Decisions
@types/bun@1.4.4is not published (npmlatestis1.4.3), so the types lag one patch behind the runtime.@types/bun/bun-typeschange version. It also fixes a real mis-hoist:eslint-config-nextwas previously one hoisted16.3.0, ignoringpackages/config's exact13.3.0; it is now recorded per workspace.@types/bunbut pointedcompilerOptions.typesat its transitive dependency,bun-types. Since@types/bun@1.4.3is a one-line/// <reference types="bun-types" />,"types": ["bun"]resolves the same declarations and matches the package Bun's docs install.Verification
bun install --frozen-lockfilebun run check:buntsc-rs -bbun run --cwd apps/web buildbun run --filter=@cap/render-farm buildbun run --cwd apps/render-farm typecheckbun test scripts/bun-scripts.test.mjsturbo run build --concurrency=2sdk-recorderfails (pre-existing, #2915)Benchmarks
Same machine throughout: 8 cores, 15.7 GiB RAM, load average 7–11 (not idle). Install figures are medians of 3 alternating runs per version against a warm cache; other figures are single runs of the listed command.
bun install --frozen-lockfilenode_modules, 2,878 packagesrm -rf node_modules && bun install --frozen-lockfileTooling measurements that informed what is not changed here:
tsc-rs -b.tsbuildinfopresent)tsc-rs -bbun check -bbun check -b --no-prettybiome ci . --linter-enabled=falsebun fmt --checkNEXT_PUBLIC_WEB_URL=http://localhost:3000 bun run --cwd apps/web build--concurrency=2turbo run build --concurrency=2The warm typecheck result (12.2 s → 4.1 s) is why caching
*.tsbuildinfoin CI, rather than switching tobun check, is the proposed speed-up (#2913).bun fmtis rejected: it would reformat 2,591 files because it targets Prettier config, notbiome.json.No UI surface changes, so there are no before/after screenshots.
Out of scope
@cap/sdk-recorder's DTS type error is pre-existing and tracked in build:bun run buildfails on@cap/sdk-recorderDTS — package is outside the typecheck graph #2915.bun run buildcrashes at turbo's default concurrency on a 16 GiB machine, under Node as well; tracked in build:bun run builddies with SIGSEGV/SIGBUS at turbo's default concurrency on a 16 GiB machine #2916.tsc-rswithbun checkis blocked on TypeScript 7.1 and the Effect language-service diagnostics; tracked in Tooling:bun checkis not a drop-in typecheck gate yet (TS 7.0.2 vs tsc-rs 7.1.0-dev, no language-service plugins) #2913.bun.lockv2 (upstream feature request, Unsupported bun lockfile version: 2 (Bun 1.4.0/canary) vercel/turborepo#13117).Test plan
bun install --frozen-lockfile→ exit 0bun run check:bun→ 505 deps match, native bindings passtsc-rs -b→ 0 errorsbun run --cwd apps/web build→ exit 0bun run --filter=@cap/render-farm build→ exit 0bun test scripts/bun-scripts.test.mjs→ 3/3docker build -f apps/media-server/Dockerfile .→ Expected: in-image test suite passesdocker build -f apps/web/Dockerfile .→ Expected: Next build completes