Bun issue (Dec 2): Bun bun-types@1.4.5 Breaks bun:test toEqual on Typed SQL Queries
Is it fixed? Not yet.
Ongoing since Dec 2, 23:57 UTC. First reported Dec 2, 23:57 UTC.
What happened
The release of bun-types@1.4.5 causes bun:test assertions like toEqual and toStrictEqual to fail when run on typed SQL queries because SQL.Query<T> returns Promise<T & ResultMetadata>. Developers using typed SQL queries in their test suites are affected by this regression.
What caused it?
Under active investigation. No report has identified a root cause yet.
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Outage timeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
bun-types@1.4.5: SQL.Query<T> Promise<T & ResultMetadata> breaks bun:test toEqual/toStrictEqual on typed queries
Source
Reports of this outage
1 report · 1 GitHubShow
- [1]GitHub First reportbun-types@1.4.5: SQL.Query<T> Promise<T & ResultMetadata> breaks bun:test toEqual/toStrictEqual on typed queries(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.5 (@types/bun@1.4.5 / bun-types@1.4.5) What platform is your computer? Darwin arm64 What steps can reproduce the bug? Save the following minimal file and run both bun test and bun check (or tsc --noEmit) with @types/bun@1.4.5: import { SQL } from "bun"; import { expect, test } from "bun:test"; test("typed SQL result matches plain array literal", async () => { const sql = new SQL(":memory:"); try { const rows = await sql<{ a: number }[]>SELECT 1 AS a;…
by omardoma 0upvotes 1comments
Bun issue FAQ
What happened in the Bun issue, and why?
Ongoing since Dec 2, 23:57 UTC. No cause has been published yet; this page adds it once the vendor or a report explains it.
What is affected by the Bun issue?
Bun (versions: 1.4.5).
When did the Bun issue start and end?
It started Dec 2, 23:57 UTC and is still ongoing (17 h 29 min so far). This page updates as it develops.
How do I get alerts for Bun?
Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed
Where does this information come from?
WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.