Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jan 30, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

threepointone and others added 4 commits January 30, 2026 03:36
All test suites in the partysocket package have been marked as skipped using describe.skip. This change is likely for temporarily disabling tests, possibly for debugging, CI performance, or to address failing/flaky tests. Also, the 'all' script in package.json was updated to use 'npm i' instead of 'tsx i'.
Introduces an `enabled` option to both `usePartySocket` and `useWebSocket` hooks, allowing conditional control over socket connection state. Updates internal logic to handle connection, disconnection, and reconnection based on the `enabled` prop. Adds comprehensive tests to verify the new behavior.
…Event

React Native/Expo environments have both `process` and `document` polyfilled,
but not `process.versions.node`. This caused the library to incorrectly use
browser-style event cloning, which produces events that fail `instanceof Event`
checks in event-target-polyfill.

This fix adds explicit React Native detection using the standard
`navigator.product === "ReactNative"` check, and uses Node-style event
cloning which creates proper Event instances.

Fixes #257
@pull pull bot locked and limited conversation to collaborators Jan 30, 2026
@pull pull bot added the ⤵️ pull label Jan 30, 2026
@pull pull bot merged commit 8237982 into code:main Jan 30, 2026
0 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants