Skip to content

build: raise the Bun runtime floor to 1.4.2 - #2898

Merged
flora131 merged 1 commit into
mainfrom
chore/bun-1.4.2
Sep 7, 2026
Merged

flora131 merged 1 commit into
mainfrom
chore/bun-1.4.2

Conversation

@flora131

@flora131 flora131 commented Sep 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Raise the active Bun runtime pins to 1.4.2 and existing minimum engine requirements to >=1.4.2. This is a focused mechanical upgrade, following the runtime/metadata/types approach in #2559.

Changes

  • Update all 11 Bun pins in the test and publish workflows, plus the root and six workspace engine contracts.
  • Regenerate npm lockfile and published shrinkwrap metadata without changing third-party engine requirements.
  • Update the Windows bytecode probe, benchmark identity validation, tests, installation errors and current documentation. Add a regression assertion rejecting 1.4.0 bytecode metadata.
  • Upgrade @types/bun from 1.3.14 to 1.4.1. @types/bun@1.4.2 returned registry E404 during validation. The published 1.4.1 package pins matching bun-types declarations and restores the Process listener overloads needed by the repository. Both typecheck passes succeed; the exception is documented in AGENTS.md.
  • Add an Unreleased minimum-runtime note to the natives changelog. Preserve released changelogs, historical benchmark/crash evidence and factual Bun 1.4.0 introduction/fix references.

Validation

Implementation and independent reviewer logs were inspected for signed commit 2e7bbb619184ed2e2313fcfbd734670479375034:

Check Result
Isolated npm ci --ignore-scripts and npm run build Passed in implementation validation
npm run check Passed, including Biome, both repository typechecks and shrinkwrap consistency. One pre-existing informational Biome diagnostic remains.
npm run test:ci-contracts 16 files, 88 tests passed
npm run test:unit -- test/unit/build-binaries-platform-packaging.test.ts test/unit/windows-startup-summary.test.ts 2 files, 16 tests passed
Bun 1.4.2 runtime and node:sqlite Query smoke passed again during PR preparation; reviewers also exercised shipped SQLite read/write/search
bun run scripts/probe-windows-bytecode.ts --outdir /tmp/bun-risk-windows-probe Produced x64 baseline PE 0x8664 and ARM64 PE 0xaa64
Metadata/history and runtime boundary probes Reviewers verified exact pins, owned metadata consistency, preserved history and version rejection behavior
git diff --check origin/main Passed during PR preparation

The goal ledger is complete with three independent approvals and no findings. Required suite results above come from the inspected implementation/reviewer logs, not a new full-suite run during PR preparation. The final-stage qlty check --upstream origin/main selected no modified files, so it adds no lint coverage.

Notes

  • Bun users should upgrade to at least 1.4.2. Node requirements are unchanged.
  • Windows evidence is macOS cross-compilation only, not Windows runtime validation. Windows-hosted archive compilation, --skip-windows, smoke jobs and all CI coverage remain intact. No Windows speedup or runtime compatibility claim is added.
  • No merge or release is part of this change.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Greptile Summary

The Bun runtime floor is consistently raised to 1.4.2 across CI and release workflows, workspace engine declarations, lock metadata, and Windows bytecode and benchmark contracts. No issues requiring changes were found.

Confidence Score: 5/5

Safe to merge.

The completed contract check confirmed the previous 1.4.0 floor and the updated 1.4.2 floor across all checked workflow, package, metadata, and Windows assertion paths. No actionable issues were identified.

Files Needing Attention: None.

T-Rex T-Rex Logs

What T-Rex did

  • Authored a read-only verifier for workflow setup pins, package engine metadata, lock and shrinkwrap metadata, and Windows version assertions.
  • Authored the verifier script trex-artifacts/bun-runtime-floor-contract-check.py.
  • Ran the verifier against the parent revision with a Bun floor of 1.4.0 and observed a complete pass.
  • Ran the verifier against this revision with a Bun floor of 1.4.2 and observed a complete pass across all 11 checked workflow setup steps and all checked metadata and Windows contract paths.
  • Captured before/after logs showing passes at floors 1.4.0 and 1.4.2.

View all artifacts

T-Rex Ran code and verified through T-Rex

Reviews (1): Last reviewed commit: "build: raise the Bun runtime floor to 1...." | Re-trigger Greptile

Upgrade compatible Bun types to 1.4.1; 1.4.2 types are not yet published. Keep historical evidence and Windows-hosted compilation safeguards intact.

Assistant-model: Grok 4.6
@mintlify

mintlify Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
bastani 🟢 Ready View Preview Sep 7, 2026, 2:00 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@flora131
flora131 merged commit 187de04 into main Sep 7, 2026
20 checks passed
@flora131
flora131 deleted the chore/bun-1.4.2 branch September 7, 2026 02:09

This branch was successfully deployed

1 active deployment
staging - packages/coding-agent/docs — 2e7bbb61 Deployed Sep 7, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant