This changelog follows the patterns described here: https://keepachangelog.com/en/1.0.0/.
Subheadings to categorize changes are added, changed, deprecated, removed, fixed, security
.
- Client and server plugins now require an encoding. By default, JSON is available, but you may opt-in to a compressed binary format with the cargo feature
binary
. This encoding affects how all packets will be transported. Json is typically useful for debugging, while binary is compact and obfuscated for production.
- A panic that would occur for ro/wo protocols.
- A
prelude
module.
- To fix name conflicts with
AddProtocolExt
, the respective types have changed names.- The
client
feature trait has changed toAddClientProtocolExt
- The
server
feature trait has changed toAddServerProtocolExt
- The
- Method names have changed:
add_sendonly_protocol
has changed toadd_client_wo_protocol
andadd_server_wo_protocol
add_readonly_bounded_protocol
has changed toadd_client_ro_protocol
andadd_server_ro_protocol
add_readonly_unbounded_protocol
has changed toadd_client_ro_unbounded_protocol
andadd_server_ro_unbounded_protocol
add_bounded_protocol
has changed toadd_client_rw_protocol
andadd_server_rw_protocol
add_unbounded_protocol
has changed toadd_client_rw_unbounded_protocol
andadd_server_rw_unbounded_protocol
- The
ConnectionRequest
event under theclient
feature has been renamed toRtcClientRequestEvent
- The
Payload
derive was renamed toProtocol
- Fields on
RtcClientState
andRtcServerState
are now private, with accessor methods, e.g..id()
instead of.id
- The
RtcClient
andRtcServer
system parameters (prev.NetworkReader
/NetworkWriter
) have new methods:clear()
to clear all incoming messages in the buffer.
- To fix name conflicts with the
server
andclient
feature, the respective types have changed names.RtcState
has changed toRtcClientState
orRtcServerState
, depending on the feature.RtcStatus
has changed toRtcClientStatus
orRtcServerStatus
, depending on the feature.NetworkReader
/NetworkWriter
have been both merged and changed toRtcClient
orRtcServer
respectively.RtcClient.read()
(previouslyNetworkReader
) now returns aVec<_>
rather than aDrain<'_, _>
.
- Fixed blank README on crates.io
- Initial release. Crate was renamed to
bevy_rtc
frombevy-rtc
and republished.