You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added a utility function to efficiently convert Blob, File, Response,
or Request objects into buffers.
* Introduced a helper to standardize server peer message handling across
adapters.
* Added a utility to detect event stream headers.
* **Improvements**
* Broadened supported message types to include Uint8Array for encoded
messages and message ports.
* Unified and simplified message handling logic in server adapters,
delegating processing to a shared utility.
* Enhanced body and header serialization/deserialization for messages,
improving consistency.
* Updated buffer handling in client and server WebSocket adapters for
better compatibility.
* **Bug Fixes**
* Improved compatibility for buffer extraction from Blobs and similar
objects.
* **Documentation**
* Expanded test coverage for new utilities and updated tests to reflect
changes in buffer types and message handling.
* **Chores**
* Updated ESLint rules to discourage unsupported `.bytes` property usage
and recommend the new utility.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
* Message port can support [The structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm)
0 commit comments