Download Latest Version 0.16.4 source code.tar.gz (378.4 kB)
Email in envelope

Get an email when there's a new version of Colyseus

Home / 0.16.0
Name Modified Size InfoDownloads / 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 ✨

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
  • 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)
  • 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 as client.reconnectionToken
  • matchMaker.getRoomById() no longer returns a Room instance. It now returns the cached data on the driver.
  • matchMaker.getLocalRoomById() has been introduced to retrieve the Room instance instead.
  • client.getAvailableRooms() have been removed
  • Do not expose private Client properties to end-users (added a ClientPrivate 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 💖

Source: README.md, updated 2025-02-18