# What changed in colyseus

> 27 changes in colyseus 0.17 to 0.18 from its official release notes, upgrade guides and advisories: 2 breaking, 8 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/colyseus/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## colyseus 0.18

### Breaking changes

- Ctrl-C runs shutdown callbacks and caches room state for the next restart. (0.18.4) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.18.4)

### Behavior and default changes

- Any 0.18 version of each @colyseus/* package works; @colyseus/core must be 0.18.10 or later. (0.18.10) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.18.10)

### Tooling

- Press s + enter to share a game on a public URL through Colyseus Cloud and display a QR code; requires @colyseus/tunnel. (0.18.12) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.18.12)

### Fixes and other changes

- 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.11) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.18.11)
- Matchmaking requests sent while the Vite dev server loads or reloads server code now wait for it instead of failing. (0.18.11) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.18.11)
- 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.9) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.18.9)
- require() now resolves to the same ESM build as import, preventing processes that use both from loading two copies. (0.18.8) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.18.8)
- 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.7) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.18.7)
- The Vite plugin now works alongside Nitro in development and production; list colyseus() before nitro() so matchmaker requests reach Colyseus. (0.18.6) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.18.6)
- An HMR reload rebuilds the database, boots the new instance and closes the replaced one, preventing connection leaks on every save. (0.18.5) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.18.5)
- @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.5) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.18.5)
- 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.4) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.18.4)

## colyseus 0.17

### Breaking changes

- The Vite integration enables devMode automatically unless it is explicitly set to false in defineServer(). (0.17.9) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.17.9)

### New APIs and options

- 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.10) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.17.10)
- Allows supplying a custom transport loader. (0.17.9) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.17.9)
- Sets the production server port; it defaults to 2567. (0.17.9) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.17.9)
- Suppresses per-reload log messages during development. (0.17.9) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.17.9)
- Enables serving built client files in production via express.static() with SPA fallback; defaults to false. (0.17.9) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.17.9)
- Specifies the required path to your server entry module in the Vite plugin configuration. (0.17.9) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.17.9)
- Builds the Vite app and produces client assets and a standalone Node.js server entry. (0.17.9) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.17.9)
- With serveClient enabled, the production server serves built client files via express.static() with SPA fallback, allowing a single-process deployment. (0.17.9) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.17.9)

### Behavior and default changes

- Matchmaking endpoints are injected as middleware so the client SDK can connect to the same origin without a proxy or CORS. (0.17.9) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.17.9)

### Tooling

- Room class edits take effect immediately; running rooms preserve state and connected clients auto-reconnect. (0.17.9) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.17.9)
- Runs the client and game server on the same port without a separate process. (0.17.9) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.17.9)
- The client and game server share Vite's dev HTTP server; room WebSocket upgrades are forwarded to the Colyseus transport. (0.17.9) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.17.9)

### Fixes and other changes

- The dev-mode path awaits the async Express callback, so asynchronous setup resolves before any request is served. (0.17.10) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.17.10)
- The plugin accepts both default-exported and direct `express` module shapes in dev mode, avoiding an incorrect fallback that Express is unavailable. (0.17.10) — [release notes](https://github.com/colyseus/colyseus/releases/tag/colyseus%400.17.10)
