One Bun version
One Bun version
packageManager in package.json ("bun@1.4.5") is the only place the Bun version is chosen. Everything else reads it or is checked against it by make check-bun-version, which make ci runs:
| Where Bun is picked | How it follows the pin |
|---|---|
CI (setup-bun in every workflow) | bun-version-file: package.json reads packageManager |
| The Docker image | FROM oven/bun:<pin>-alpine@sha256:..., checked |
A deploy config (deploy/*.json, buildConfig.runtimeVersion) | checked when present (RunMist) |
| Type definitions | @types/bun at the same version, checked |
| Your shell | fails on another minor or an older patch; a newer patch warns |
No engines.bun: Bun does not enforce it, and as a second pin it drifted (it said >=1.3.0, which admits 1.4.0 and its net.Server close() hang). opencode pins the same way (packageManager plus bun-version-file) and also fails a push from a Bun outside the pinned range; t3code pins its runtime exactly in engines.node and its package manager in packageManager.
Before the pin, CI installed the newest Bun on the day, one image was on 1.3.14 while CI ran 1.4.x, and a new Bun could change install and lockfile behavior before anyone chose it.
Bumping Bun
In one commit:
packageManagerinpackage.json.bun add -d --exact @types/bun@<version>(respects the 3-day release age, see dependency-release-age.md).- The Dockerfile
FROMlines: the new tag and its digest.curl -s https://hub.docker.com/v2/repositories/oven/bun/tags/<version>-alpineprints the digest. buildConfig.runtimeVersionin anydeploy/*.json.- Your own Bun:
mise use -g bun@<version>(ormise upgrade bunwithbun = "latest"), orcurl -fsSL https://bun.sh/install | bash -s bun-v<version>.
Renovate groups bun, oven/bun and @types/bun into one pull request; the digest and any deploy config still need a look. Then make ci, and mark the commit Template: yes: every repository moves together.