unstale

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 init

@unstale/cli on npm

colyseus 0.1812 changes

Breaking changes 1

  • Ctrl-C runs shutdown callbacks and caches room state for the next restart.

    0.18.4release notes

Behavior and default changes 1

  • Any 0.18 version of each @colyseus/* package works; @colyseus/core must be 0.18.10 or later.

    0.18.10release notes

Tooling 1

  • Press s + enter to share a game on a public URL through Colyseus Cloud and display a QR code; requires @colyseus/tunnel.

    0.18.12release notes

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.

    0.18.11release notes

  • Matchmaking requests sent while the Vite dev server loads or reloads server code now wait for it instead of failing.

    0.18.11release notes

  • 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.

    0.18.9release notes

  • require() now resolves to the same ESM build as import, preventing processes that use both from loading two copies.

    0.18.8release notes

  • No longer kicks clients that are still sending messages because inactivity was measured using a rate-limiter timestamp that only moves once per second.

    0.18.7release notes

  • The Vite plugin now works alongside Nitro in development and production; list colyseus() before nitro() so matchmaker requests reach Colyseus.

    0.18.6release notes

  • An HMR reload rebuilds the database, boots the new instance and closes the replaced one, preventing connection leaks on every save.

    0.18.5release notes

  • @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.

    0.18.5release notes

  • The Vite plugin finds the server even when the entry does not export it under the name server, so defineServer entries can register rooms.

    0.18.4release notes

colyseus 0.1715 changes

Breaking changes 1

  • The Vite integration enables devMode automatically unless it is explicitly set to false in defineServer().

    0.17.9release notes

New APIs and options 8

  • A new plugin option lets you pass your own http.Server for the WebSocket transport to attach to when Vite runs in middleware mode.

    0.17.10release notes

  • Allows supplying a custom transport loader.

    0.17.9release notes

  • Sets the production server port; it defaults to 2567.

    0.17.9release notes

  • Suppresses per-reload log messages during development.

    0.17.9release notes

  • Enables serving built client files in production via express.static() with SPA fallback; defaults to false.

    0.17.9release notes

  • Specifies the required path to your server entry module in the Vite plugin configuration.

    0.17.9release notes

  • Builds the Vite app and produces client assets and a standalone Node.js server entry.

    0.17.9release notes

  • With serveClient enabled, the production server serves built client files via express.static() with SPA fallback, allowing a single-process deployment.

    0.17.9release notes

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.

    0.17.9release notes

Tooling 3

  • Room class edits take effect immediately; running rooms preserve state and connected clients auto-reconnect.

    0.17.9release notes

  • Runs the client and game server on the same port without a separate process.

    0.17.9release notes

  • The client and game server share Vite's dev HTTP server; room WebSocket upgrades are forwarded to the Colyseus transport.

    0.17.9release notes

Fixes and other changes 2

  • The dev-mode path awaits the async Express callback, so asynchronous setup resolves before any request is served.

    0.17.10release notes

  • The plugin accepts both default-exported and direct express module shapes in dev mode, avoiding an incorrect fallback that Express is unavailable.

    0.17.10release notes