| 1 | "@effect/platform/Socket#CloseEventTypeId": |
| 2 | replacement: "Socket.CloseEvent" |
| 3 | note: "The close-event marker is internal in v4; use the CloseEvent class or Socket.isCloseEvent." |
| 4 | "@effect/platform/Socket#currentSendQueueCapacity": |
| 5 | replacement: none |
| 6 | note: "The send queue was removed. The v4 Socket is pull-based: acquire socket.reader in a scope and pull frame batches; writes apply the transport's native backpressure." |
| 7 | "@effect/platform/Socket#layerWebSocket": |
| 8 | replacement: "Socket.layerWebSocket" |
| 9 | note: "The constructor remains in effect/socket/Socket; its URL may now also be an Effect." |
| 10 | "@effect/platform/Socket#SocketError": |
| 11 | replacement: "Socket.SocketError" |
| 12 | note: "The old union became a tagged wrapper around SocketReadError, SocketWriteError, SocketOpenError, or SocketCloseError." |
| 13 | "@effect/platform/Socket#SocketErrorTypeId": |
| 14 | replacement: "Socket.SocketErrorTypeId" |
| 15 | note: "The error marker remains in effect/socket/Socket." |
| 16 | "@effect/platform/Socket#SocketGenericError": |
| 17 | replacement: "Socket.SocketReadError | Socket.SocketWriteError | Socket.SocketOpenError" |
| 18 | note: "The generic reason discriminator was replaced by dedicated read, write, and open error classes." |
| 19 | "@effect/platform/Socket#TypeId": |
| 20 | replacement: "typeof Socket.TypeId" |
| 21 | note: "The socket marker remains exported, but the separate type alias was removed." |
| 22 | "@effect/platform/Socket#WebSocket": |
| 23 | replacement: "Socket.WebSocket" |
| 24 | note: "The opaque service moved to effect/socket/Socket and is now a Context.Service class for globalThis.WebSocket." |
| 25 | "@effect/platform/Socket#WebSocketConstructor": |
| 26 | replacement: "Socket.WebSocketConstructor" |
| 27 | note: "The service moved to effect/socket/Socket and is now a Context.Service class." |
| 28 | "@effect/platform/Socket#defaultCloseCodeIsError": |
| 29 | replacement: none |
| 30 | note: "Sockets no longer classify close codes; every close fails the reader's pull with a SocketError wrapping SocketCloseError. Consumers that treat a close as normal catch the error." |
| 31 | "@effect/platform/Socket#fromTransformStream": |
| 32 | replacement: "Socket.fromTransformStream" |
| 33 | note: "The constructor remains in effect/socket/Socket but drops closeCodeIsError; every close fails the reader's pull with a SocketError wrapping SocketCloseError." |
| 34 | "@effect/platform/Socket#toChannelMap": |
| 35 | replacement: none |
| 36 | note: "The v4 Socket read side is an Effect that never completes via Cause.Done; map frames by acquiring Socket.readerBytes or Socket.readerString, or Effect.map the reader from socket.reader, and use Socket.toChannel or Socket.toChannelString for duplex channels." |