Skip to content

Version Packages#375

Merged
threepointone merged 1 commit into
mainfrom
changeset-release/main
Apr 20, 2026
Merged

Version Packages#375
threepointone merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

partysocket@1.1.18

Patch Changes

  • #374 c05d86a Thanks @threepointone! - Narrow the exported Message type from ArrayBufferView to ArrayBufferView<ArrayBuffer> so it matches the DOM WebSocket.send() overloads under newer @cloudflare/workers-types / lib.dom.d.ts, where the default ArrayBufferView<ArrayBufferLike> includes SharedArrayBuffer-backed views that send() does not accept. Runtime behaviour is unchanged — WebSocket.send() already rejected shared-buffer views at runtime.

partysync@2.0.3

Patch Changes

  • #374 c05d86a Thanks @threepointone! - Rename Agent#connect(namespace, room) to Agent#connectTo(namespace, room). The base DurableObject class in @cloudflare/workers-types now declares connect?(socket: Socket): void | Promise<void> for TCP socket bindings, which collided with our override and produced a TS2416 "not assignable to the same property in base type" error. The rename also better reflects the method's intent — connecting to another PartyServer by namespace + room, not accepting a TCP socket.

partytracks@0.0.56

Patch Changes

  • #374 c05d86a Thanks @threepointone! - Fix type errors under newer @cloudflare/workers-types and TypeScript lib typings:

    • Avoid typeof fetch in internal signatures — CF workers-types merges fetch with the Fetcher interface (which has fetch() and connect() methods), which doesn't match a plain fetch function. Internal helpers now use an explicit (input, init?) => Promise<Response> signature.
    • Rename the internal fetcher option on fromFetch to fetchImpl to avoid colliding with CF's built-in RequestInit.fetcher?: Fetcher | null, which was intersected in and made the property uncallable.
    • Cast Response#json() results (which are now typed unknown) before destructuring { sessionId } / { iceServers }.

    All changes are internal; no public API changes.

@threepointone threepointone merged commit 7ba9997 into main Apr 20, 2026
3 checks passed
@threepointone threepointone deleted the changeset-release/main branch April 20, 2026 20:33
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