damian-pastorini / reldens

Reldens - You can make it - Open Source MMORPG Platform
https://demo.reldens.com/
MIT License
449 stars 57 forks source link

Bump colyseus from 0.12.4 to 0.13.0 #79

Closed dependabot-preview[bot] closed 4 years ago

dependabot-preview[bot] commented 4 years ago

Bumps colyseus from 0.12.4 to 0.13.0.

Release notes

Sourced from colyseus's releases.

0.13.0

See how to migrate from 0.12 to 0.13

Breaking changes

  • onMessage now has a required "type" argument. (#315)
  • Matchmaking errors now are exposed with code and message in the client-side (317)

Reworked how to send and receive messages:

On previous versions, there was no concept of a "message type". All messages were just data being sent back and forth. Although this was simple to understand, the disadvantage is that you'd need to parse these messages and perform certain actions depending on its contents on your own.

Now every message has a type, that can be either a string or number. You can now listen for messages by type, directly tied to a callback for them.

This change is particularly useful for C#/Unity.

Error codes are exposed to the client-side during matchmaking:

Whenever you try to join into a room, many different errors can happen - the authentication may fail, the room may not exist anymore, or you may have an actual error in your "onJoin()" method in the server.

Previously, all these types of errors were returning just a "string", with the error message. Now, it returns an error object with both the error message and the proper "code" of the error. You can also throw your own custom codes if you'd like to.

New built-in room: LobbyRoom

Many people on Discord seem to be implementing their own version of a "realtime room listing lobby". The new built-in lobby room does exactly that. When rooms are created, updated, or destroyed - the lobby room is notified and sends the latest rooms for the clients in real-time. See docs for LobbyRoom.

New built-in room: RelayRoom

Ok, this built-in room was actually available on version 0.12 - but it seems it has more value now that you can send and listen to messages by type on version 0.13. See docs for RelayRoom.

The "client" on server-side has been reworked:

The "client" instance you see everywhere on the server-side used to be the raw WebSocket connection. Now, the WebSocket connection is wrapped in an internal structure from the framework. This was necessary to allow the new client.send() API, and it will be more useful in the future when we're going to implement new transport protocols, such as TCP while keeping the same APIs.

0.12.6

  • Add sismember function to presence (#321, thanks @carlosfusion)
  • Enhancement: auto-complete onCreate() argument type for gameServer.define()
  • Bug fix: keep client.auth after reconnection
  • Bug fix: spawning new rooms on processes with least amount of rooms
Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)
dependabot-preview[bot] commented 4 years ago

Superseded by #83.