npm / colyseus
colyseus
What changed in colyseus 0.17 to 0.18, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
2 breaking8 new APIs and options2 behavior and defaults4 tooling11 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initcolyseus 0.1812 changes
Breaking changes 1
Ctrl-C runs shutdown callbacks and caches room state for the next restart.
Behavior and default changes 1
Any 0.18 version of each @colyseus/* package works; @colyseus/core must be 0.18.10 or later.
Tooling 1
Press s + enter to share a game on a public URL through Colyseus Cloud and display a QR code; requires @colyseus/tunnel.
Fixes and other changes 9
Routes from the express option now reload with the rest of your server code in the Vite dev server, rather than using the startup version.
Matchmaking requests sent while the Vite dev server loads or reloads server code now wait for it instead of failing.
With vite build and serveClient enabled, GET requests now reach routes and middleware in the express option instead of always receiving the client's index.html.
require() now resolves to the same ESM build as import, preventing processes that use both from loading two copies.
No longer kicks clients that are still sending messages because inactivity was measured using a rate-limiter timestamp that only moves once per second.
The Vite plugin now works alongside Nitro in development and production; list colyseus() before nitro() so matchmaker requests reach Colyseus.
An HMR reload rebuilds the database, boots the new instance and closes the replaced one, preventing connection leaks on every save.
@colyseus/database, @colyseus/auth and beforeListen now work in vite dev; database-plugin rooms no longer throw on join, and /auth/* no longer answers 404.
The Vite plugin finds the server even when the entry does not export it under the name server, so defineServer entries can register rooms.
colyseus 0.1715 changes
Breaking changes 1
The Vite integration enables devMode automatically unless it is explicitly set to false in defineServer().
New APIs and options 8
A new plugin option lets you pass your own
http.Serverfor the WebSocket transport to attach to when Vite runs in middleware mode.Allows supplying a custom transport loader.
Sets the production server port; it defaults to 2567.
Suppresses per-reload log messages during development.
Enables serving built client files in production via express.static() with SPA fallback; defaults to false.
Specifies the required path to your server entry module in the Vite plugin configuration.
Builds the Vite app and produces client assets and a standalone Node.js server entry.
With serveClient enabled, the production server serves built client files via express.static() with SPA fallback, allowing a single-process deployment.
Behavior and default changes 1
Matchmaking endpoints are injected as middleware so the client SDK can connect to the same origin without a proxy or CORS.
Tooling 3
Room class edits take effect immediately; running rooms preserve state and connected clients auto-reconnect.
Runs the client and game server on the same port without a separate process.
The client and game server share Vite's dev HTTP server; room WebSocket upgrades are forwarded to the Colyseus transport.
Fixes and other changes 2
The dev-mode path awaits the async Express callback, so asynchronous setup resolves before any request is served.
The plugin accepts both default-exported and direct
expressmodule shapes in dev mode, avoiding an incorrect fallback that Express is unavailable.