Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
0.16.0 source code.tar.gz | 2025-02-18 | 369.1 kB | |
0.16.0 source code.zip | 2025-02-18 | 445.8 kB | |
README.md | 2025-02-18 | 2.9 kB | |
Totals: 3 Items | 817.8 kB | 0 |
Colyseus 0.16 is here ✨
- Announcement Post: https://colyseus.io/blog/colyseus-016-is-here/
- Migration guide: https://docs.colyseus.io/upgrading/0.16
Changelog
SchemaSerializer
now uses@colyseus/schema
3.0 (https://github.com/colyseus/schema/pull/173 / https://github.com/colyseus/colyseus/issues/709)@colyseus/schema
v3.0:- Introduce a
StateView
build block that allows to filter data per client (See docs) - Deprecate
@filter()
and@filterChildren()
- De-couple encode and decode methods from
Schema
instances - De-couple client-side callbacks from
Schema
instances- Client SDKs: New API for attaching client-side schema callbacks (See docs)
- Fix re-using schema instances on many places & missing callbacks (https://github.com/colyseus/schema/issues/151)
- Fix triggering
onAdd
callbacks twice when nested (https://github.com/colyseus/schema/issues/147)
- Fix known issues from ArraySchema (https://github.com/colyseus/colyseus/issues/641)
- Avoid global type Context (https://github.com/colyseus/colyseus-unity-sdk/issues/131)
- Expose APIs to:
- Allow to encode/decode arbitrary structures (no need to inherit from
Schema
class) - Allow to customize the change tracking, encoding and decoding at the byte level
- (See Advanced Usage)
- Allow to encode/decode arbitrary structures (no need to inherit from
onAuth
now receives "context" as third argument instead of "req". (See docs)- Experimental
WebTransport
implementation (See docs) - Improve buffer / memory allocation for sending messages
- Allow to set state from class definition (
state = new MyState()
) - Deprecate sending schema-encoded messages
- Expose previously undocumented
client._reconnectionToken
asclient.reconnectionToken
matchMaker.getRoomById()
no longer returns aRoom
instance. It now returns the cached data on the driver.matchMaker.getLocalRoomById()
has been introduced to retrieve theRoom
instance instead.client.getAvailableRooms()
have been removed- Do not expose private
Client
properties to end-users (added aClientPrivate
interface for internal use)
A huge thank you to our vibrant community, sponsors, and Colyseus Cloud users for making this journey possible!
💖 Special shoutout to Poki, Pixels.xyz, Bloxd, 0x&, and all our supporters 💖