| 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 | 1 | |
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
SchemaSerializernow uses@colyseus/schema3.0 (https://github.com/colyseus/schema/pull/173 / https://github.com/colyseus/colyseus/issues/709)@colyseus/schemav3.0:- Introduce a
StateViewbuild block that allows to filter data per client (See docs) - Deprecate
@filter()and@filterChildren() - De-couple encode and decode methods from
Schemainstances - De-couple client-side callbacks from
Schemainstances- 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
onAddcallbacks 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
Schemaclass) - 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
onAuthnow receives "context" as third argument instead of "req". (See docs)- Experimental
WebTransportimplementation (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._reconnectionTokenasclient.reconnectionToken matchMaker.getRoomById()no longer returns aRoominstance. It now returns the cached data on the driver.matchMaker.getLocalRoomById()has been introduced to retrieve theRoominstance instead.client.getAvailableRooms()have been removed- Do not expose private
Clientproperties to end-users (added aClientPrivateinterface 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 💖