Skip to content

fix(transport-websocket): build against @types/bun 1.4 - #396

Merged
GraemeF merged 2 commits into
mainfrom
fix/bun-types-websocket
Sep 30, 2026
Merged

GraemeF merged 2 commits into
mainfrom
fix/bun-types-websocket

Conversation

@GraemeF

@GraemeF GraemeF commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Carries Renovate's type updates from #374 (@types/bun 1.3.1 to 1.4.2 and @types/node) with the fix that lets them build. Renovate should close #374 once this merges.

@types/bun 1.4 adds a mutable subscriptions: string[] to ServerWebSocket. The websocket server receives the socket as ReadonlyDeep and stored it in a field typed as the mutable socket, which now fails with TS2375 under exactOptionalPropertyTypes. The internal client state now stores the socket as ReadonlyDeep too. It only calls send and close on it, so nothing else changes.

The lockfile keeps the configVersion line that Renovate's Bun dropped, because the repo's pinned Bun writes it.

renovate Bot and others added 2 commits September 29, 2026 18:22
@types/bun 1.4 adds a mutable subscriptions array to ServerWebSocket, so
the deep-readonly socket Bun hands to the handlers no longer fits a
mutable field. The client state only sends on and closes the socket.

Keeps the lockfile's configVersion line, which the pinned Bun writes.
@sonarqubecloud

Copy link
Copy Markdown

@GraemeF
GraemeF marked this pull request as ready for review September 30, 2026 05:28
@GraemeF
GraemeF merged commit 9aea9a5 into main Sep 30, 2026
2 checks passed
@GraemeF
GraemeF deleted the fix/bun-types-websocket branch September 30, 2026 05:28
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