Bun bun-types Missing FdSocketOptions Overload in Bun.connect
Is it fixed? Not yet.
Ongoing since Nov 13, 15:37 UTC. First reported Nov 13, 15:37 UTC.
What happened
bun-types@1.4.4 lacks an overload for Bun.connect accepting FdSocketOptions, preventing callers from adopting an already-connected socket file descriptor without bypassing the type checker.
What caused it?
Bun.connect only declares overloads for TCPSocketConnectOptions and UnixSocketOptions in bun.d.ts, omitting FdSocketOptions.
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Timeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
bun-types: Bun.connect is missing the FdSocketOptions overload
Source
Evidence
1 report · 1 GitHubShow
- [1]GitHub First reportbun-types: Bun.connect is missing the FdSocketOptions overload(opens GitHub issue in a new tab)
What version is affected? bun-types@1.4.4. What is the problem? Bun.FdSocketOptions is declared in packages/bun-types/bun.d.ts, but Bun.connect only declares overloads for TCPSocketConnectOptions and UnixSocketOptions. There is no overload accepting FdSocketOptions for adopting an already-connected socket file descriptor. This prevents a caller from using the existing fd form without patching the declarations or bypassing the type checker. Minimal TypeScript reproduction import type {…
by IgnisDa 0upvotes 0comments
FAQ
What happened in the Bun issue?
bun-types@1.4.4 lacks an overload for Bun.connect accepting FdSocketOptions, preventing callers from adopting an already-connected socket file descriptor without bypassing the type checker.
What is affected by the Bun issue?
Bun (versions: 1.4.4).
When did the Bun issue start and end?
It started Nov 13, 15:37 UTC and is still ongoing (5 d 13 h 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.