colyseus 0.15.0-preview.4 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -57,6 +57,13 @@ npm init colyseus-app my-colyseus-server
57
57
  cd my-colyseus-server
58
58
  npm start
59
59
  ```
60
+ # 🏟 Colyseus Arena: Fast & Scalable Cloud Hosting
61
+
62
+ - Looking for a fully managed solution for your Colyseus game server?
63
+ - Want to focus on game development and not on the hosting and infrastructure?
64
+ - Launching a production title and need a solution for 1,000 to 100,000+ CCUs?
65
+
66
+ If so [Colyseus Arena](https://www.colyseus.io/arena) cloud hosting is the solution you are looking for. Easily upload your existing Colyseus Server code and get started today for Free!
60
67
 
61
68
  # đŸ•šī¸ Official Client Integration
62
69
 
@@ -103,30 +110,31 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
103
110
  <!-- markdownlint-disable -->
104
111
  <table>
105
112
  <tr>
106
- <td align="center"><a href="https://twitter.com/endel"><img src="https://avatars3.githubusercontent.com/u/130494?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Endel Dreyer</b></sub></a><br /><a href="https://github.com/gamestdio/colyseus/commits?author=endel" title="Code">đŸ’ģ</a> <a href="https://github.com/gamestdio/colyseus/commits?author=endel" title="Documentation">📖</a> <a href="#example-endel" title="Examples">💡</a></td>
107
- <td align="center"><a href="https://github.com/fazriz"><img src="https://avatars0.githubusercontent.com/u/2628698?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Fazri Zubair</b></sub></a><br /><a href="#question-fazriz" title="Answering Questions">đŸ’Ŧ</a> <a href="https://github.com/gamestdio/colyseus/commits?author=fazriz" title="Code">đŸ’ģ</a> <a href="#ideas-fazriz" title="Ideas, Planning, & Feedback">🤔</a> <a href="#business-fazriz" title="Business development">đŸ’ŧ</a></td>
108
- <td align="center"><a href="http://seiyria.com"><img src="https://avatars0.githubusercontent.com/u/763609?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kyle J. Kemp</b></sub></a><br /><a href="#question-seiyria" title="Answering Questions">đŸ’Ŧ</a> <a href="https://github.com/gamestdio/colyseus/issues?q=author%3Aseiyria" title="Bug reports">🐛</a> <a href="https://github.com/gamestdio/colyseus/commits?author=seiyria" title="Code">đŸ’ģ</a> <a href="#ideas-seiyria" title="Ideas, Planning, & Feedback">🤔</a></td>
109
- <td align="center"><a href="https://github.com/mobyjames/"><img src="https://avatars0.githubusercontent.com/u/1327007?v=4?s=100" width="100px;" alt=""/><br /><sub><b>James Jacoby</b></sub></a><br /><a href="#question-mobyjames" title="Answering Questions">đŸ’Ŧ</a> <a href="#example-mobyjames" title="Examples">💡</a> <a href="#content-mobyjames" title="Content">🖋</a></td>
110
113
  <td align="center"><a href="https://github.com/halftheopposite/"><img src="https://avatars0.githubusercontent.com/u/5473864?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aymeric Chauvin</b></sub></a><br /><a href="#question-halftheopposite" title="Answering Questions">đŸ’Ŧ</a> <a href="#example-halftheopposite" title="Examples">💡</a></td>
111
- <td align="center"><a href="http://wenish.github.io/portfolio/"><img src="https://avatars0.githubusercontent.com/u/18367963?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jonas Voland</b></sub></a><br /><a href="#question-Wenish" title="Answering Questions">đŸ’Ŧ</a> <a href="https://github.com/gamestdio/colyseus/issues?q=author%3AWenish" title="Bug reports">🐛</a> <a href="https://github.com/gamestdio/colyseus/commits?author=Wenish" title="Code">đŸ’ģ</a> <a href="#ideas-Wenish" title="Ideas, Planning, & Feedback">🤔</a> <a href="#example-Wenish" title="Examples">💡</a></td>
114
+ <td align="center"><a href="https://github.com/brian-hay"><img src="https://avatars2.githubusercontent.com/u/1428000?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Brian Hay</b></sub></a><br /><a href="#content-brian-hay" title="Content">🖋</a></td>
115
+ <td align="center"><a href="https://github.com/damian-pastorini"><img src="https://avatars2.githubusercontent.com/u/1211779?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Damian A. Pastorini</b></sub></a><br /><a href="#question-damian-pastorini" title="Answering Questions">đŸ’Ŧ</a> <a href="https://github.com/colyseus/colyseus/commits?author=damian-pastorini" title="Documentation">📖</a> <a href="https://github.com/colyseus/colyseus/issues?q=author%3Adamian-pastorini" title="Bug reports">🐛</a></td>
116
+ <td align="center"><a href="https://github.com/Zielak"><img src="https://avatars0.githubusercontent.com/u/625693?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Darek Greenly</b></sub></a><br /><a href="#question-Zielak" title="Answering Questions">đŸ’Ŧ</a> <a href="https://github.com/colyseus/colyseus/issues?q=author%3AZielak" title="Bug reports">🐛</a> <a href="https://github.com/colyseus/colyseus/commits?author=Zielak" title="Code">đŸ’ģ</a></td>
117
+ <td align="center"><a href="https://github.com/Vidski"><img src="https://avatars.githubusercontent.com/u/36316706?v=4?s=100" width="100px;" alt=""/><br /><sub><b>David Rydwanski</b></sub></a><br /><a href="#question-Vidski" title="Answering Questions">đŸ’Ŧ</a> <a href="https://github.com/colyseus/colyseus/commits?author=Vidski" title="Code">đŸ’ģ</a></td>
112
118
  <td align="center"><a href="https://github.com/drburton"><img src="https://avatars0.githubusercontent.com/u/625595?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dr. Burton</b></sub></a><br /><a href="#mentoring-drburton" title="Mentoring">🧑‍đŸĢ</a></td>
119
+ <td align="center"><a href="https://twitter.com/endel"><img src="https://avatars3.githubusercontent.com/u/130494?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Endel Dreyer</b></sub></a><br /><a href="https://github.com/colyseus/colyseus/commits?author=endel" title="Code">đŸ’ģ</a> <a href="https://github.com/colyseus/colyseus/commits?author=endel" title="Documentation">📖</a> <a href="#example-endel" title="Examples">💡</a></td>
113
120
  </tr>
114
121
  <tr>
115
- <td align="center"><a href="https://github.com/supertommy"><img src="https://avatars0.githubusercontent.com/u/2236153?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tommy Leung</b></sub></a><br /><a href="#mentoring-supertommy" title="Mentoring">🧑‍đŸĢ</a></td>
116
- <td align="center"><a href="https://github.com/damian-pastorini"><img src="https://avatars2.githubusercontent.com/u/1211779?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Damian A. Pastorini</b></sub></a><br /><a href="#question-damian-pastorini" title="Answering Questions">đŸ’Ŧ</a> <a href="https://github.com/gamestdio/colyseus/commits?author=damian-pastorini" title="Documentation">📖</a> <a href="https://github.com/gamestdio/colyseus/issues?q=author%3Adamian-pastorini" title="Bug reports">🐛</a></td>
117
- <td align="center"><a href="https://github.com/LukeWood/"><img src="https://avatars0.githubusercontent.com/u/12191303?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Luke Wood</b></sub></a><br /><a href="#question-LukeWood" title="Answering Questions">đŸ’Ŧ</a> <a href="https://github.com/gamestdio/colyseus/issues?q=author%3ALukeWood" title="Bug reports">🐛</a> <a href="https://github.com/gamestdio/colyseus/commits?author=LukeWood" title="Code">đŸ’ģ</a></td>
118
- <td align="center"><a href="https://github.com/doorbash"><img src="https://avatars2.githubusercontent.com/u/5982526?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Milad Doorbash</b></sub></a><br /><a href="https://github.com/gamestdio/colyseus/issues?q=author%3Adoorbash" title="Bug reports">🐛</a> <a href="https://github.com/gamestdio/colyseus/commits?author=doorbash" title="Code">đŸ’ģ</a></td>
119
- <td align="center"><a href="https://github.com/serjek"><img src="https://avatars2.githubusercontent.com/u/18265157?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sergey</b></sub></a><br /><a href="https://github.com/gamestdio/colyseus/issues?q=author%3Aserjek" title="Bug reports">🐛</a> <a href="https://github.com/gamestdio/colyseus/commits?author=serjek" title="Code">đŸ’ģ</a></td>
120
- <td align="center"><a href="https://github.com/Zielak"><img src="https://avatars0.githubusercontent.com/u/625693?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Darek Greenly</b></sub></a><br /><a href="#question-Zielak" title="Answering Questions">đŸ’Ŧ</a> <a href="https://github.com/gamestdio/colyseus/issues?q=author%3AZielak" title="Bug reports">🐛</a> <a href="https://github.com/gamestdio/colyseus/commits?author=Zielak" title="Code">đŸ’ģ</a></td>
121
- <td align="center"><a href="https://github.com/TinyDobbins"><img src="https://avatars2.githubusercontent.com/u/20824844?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nikita Borisov</b></sub></a><br /><a href="https://github.com/gamestdio/colyseus/issues?q=author%3ATinyDobbins" title="Bug reports">🐛</a> <a href="https://github.com/gamestdio/colyseus/commits?author=TinyDobbins" title="Code">đŸ’ģ</a> <a href="#business-TinyDobbins" title="Business development">đŸ’ŧ</a> <a href="#ideas-TinyDobbins" title="Ideas, Planning, & Feedback">🤔</a></td>
122
+ <td align="center"><a href="https://github.com/enriqueto"><img src="https://avatars2.githubusercontent.com/u/5557196?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Enriqueto</b></sub></a><br /><a href="#business-enriqueto" title="Business development">đŸ’ŧ</a></td>
123
+ <td align="center"><a href="https://github.com/fazriz"><img src="https://avatars0.githubusercontent.com/u/2628698?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Fazri Zubair</b></sub></a><br /><a href="#question-fazriz" title="Answering Questions">đŸ’Ŧ</a> <a href="https://github.com/colyseus/colyseus/commits?author=fazriz" title="Code">đŸ’ģ</a> <a href="#ideas-fazriz" title="Ideas, Planning, & Feedback">🤔</a> <a href="#business-fazriz" title="Business development">đŸ’ŧ</a></td>
124
+ <td align="center"><a href="https://twitter.com/Federkun"><img src="https://avatars2.githubusercontent.com/u/21344385?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Federico</b></sub></a><br /><a href="https://github.com/colyseus/colyseus/issues?q=author%3AFederkun" title="Bug reports">🐛</a> <a href="https://github.com/colyseus/colyseus/commits?author=Federkun" title="Code">đŸ’ģ</a></td>
125
+ <td align="center"><a href="https://github.com/mobyjames/"><img src="https://avatars0.githubusercontent.com/u/1327007?v=4?s=100" width="100px;" alt=""/><br /><sub><b>James Jacoby</b></sub></a><br /><a href="#question-mobyjames" title="Answering Questions">đŸ’Ŧ</a> <a href="#example-mobyjames" title="Examples">💡</a> <a href="#content-mobyjames" title="Content">🖋</a></td>
126
+ <td align="center"><a href="http://wenish.github.io/portfolio/"><img src="https://avatars0.githubusercontent.com/u/18367963?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jonas Voland</b></sub></a><br /><a href="#question-Wenish" title="Answering Questions">đŸ’Ŧ</a> <a href="https://github.com/colyseus/colyseus/issues?q=author%3AWenish" title="Bug reports">🐛</a> <a href="https://github.com/colyseus/colyseus/commits?author=Wenish" title="Code">đŸ’ģ</a> <a href="#ideas-Wenish" title="Ideas, Planning, & Feedback">🤔</a> <a href="#example-Wenish" title="Examples">💡</a></td>
127
+ <td align="center"><a href="http://seiyria.com"><img src="https://avatars0.githubusercontent.com/u/763609?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kyle J. Kemp</b></sub></a><br /><a href="#question-seiyria" title="Answering Questions">đŸ’Ŧ</a> <a href="https://github.com/colyseus/colyseus/issues?q=author%3Aseiyria" title="Bug reports">🐛</a> <a href="https://github.com/colyseus/colyseus/commits?author=seiyria" title="Code">đŸ’ģ</a> <a href="#ideas-seiyria" title="Ideas, Planning, & Feedback">🤔</a></td>
128
+ <td align="center"><a href="https://github.com/LukeWood/"><img src="https://avatars0.githubusercontent.com/u/12191303?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Luke Wood</b></sub></a><br /><a href="#question-LukeWood" title="Answering Questions">đŸ’Ŧ</a> <a href="https://github.com/colyseus/colyseus/issues?q=author%3ALukeWood" title="Bug reports">🐛</a> <a href="https://github.com/colyseus/colyseus/commits?author=LukeWood" title="Code">đŸ’ģ</a></td>
122
129
  </tr>
123
130
  <tr>
124
- <td align="center"><a href="https://acemobe.com/"><img src="https://avatars2.githubusercontent.com/u/232101?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Phil Harvey</b></sub></a><br /><a href="https://github.com/gamestdio/colyseus/commits?author=filharvey" title="Documentation">📖</a></td>
125
- <td align="center"><a href="https://github.com/brian-hay"><img src="https://avatars2.githubusercontent.com/u/1428000?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Brian Hay</b></sub></a><br /><a href="#content-brian-hay" title="Content">🖋</a></td>
126
- <td align="center"><a href="https://github.com/enriqueto"><img src="https://avatars2.githubusercontent.com/u/5557196?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Enriqueto</b></sub></a><br /><a href="#business-enriqueto" title="Business development">đŸ’ŧ</a></td>
127
- <td align="center"><a href="https://github.com/digimbyte"><img src="https://avatars2.githubusercontent.com/u/6645396?v=4?s=100" width="100px;" alt=""/><br /><sub><b>digimbyte</b></sub></a><br /><a href="https://github.com/gamestdio/colyseus/commits?author=digimbyte" title="Documentation">📖</a></td>
128
- <td align="center"><a href="https://oyed.io"><img src="https://avatars0.githubusercontent.com/u/853683?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tom</b></sub></a><br /><a href="#question-oyed" title="Answering Questions">đŸ’Ŧ</a> <a href="https://github.com/gamestdio/colyseus/issues?q=author%3Aoyed" title="Bug reports">🐛</a> <a href="#ideas-oyed" title="Ideas, Planning, & Feedback">🤔</a></td>
129
- <td align="center"><a href="https://twitter.com/Federkun"><img src="https://avatars2.githubusercontent.com/u/21344385?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Federico</b></sub></a><br /><a href="https://github.com/gamestdio/colyseus/issues?q=author%3AFederkun" title="Bug reports">🐛</a> <a href="https://github.com/gamestdio/colyseus/commits?author=Federkun" title="Code">đŸ’ģ</a></td>
131
+ <td align="center"><a href="https://github.com/doorbash"><img src="https://avatars2.githubusercontent.com/u/5982526?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Milad Doorbash</b></sub></a><br /><a href="https://github.com/colyseus/colyseus/issues?q=author%3Adoorbash" title="Bug reports">🐛</a> <a href="https://github.com/colyseus/colyseus/commits?author=doorbash" title="Code">đŸ’ģ</a></td>
132
+ <td align="center"><a href="https://github.com/TinyDobbins"><img src="https://avatars2.githubusercontent.com/u/20824844?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nikita Borisov</b></sub></a><br /><a href="https://github.com/colyseus/colyseus/issues?q=author%3ATinyDobbins" title="Bug reports">🐛</a> <a href="https://github.com/colyseus/colyseus/commits?author=TinyDobbins" title="Code">đŸ’ģ</a> <a href="#business-TinyDobbins" title="Business development">đŸ’ŧ</a> <a href="#ideas-TinyDobbins" title="Ideas, Planning, & Feedback">🤔</a></td>
133
+ <td align="center"><a href="https://acemobe.com/"><img src="https://avatars2.githubusercontent.com/u/232101?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Phil Harvey</b></sub></a><br /><a href="https://github.com/colyseus/colyseus/commits?author=filharvey" title="Documentation">📖</a></td>
134
+ <td align="center"><a href="https://github.com/serjek"><img src="https://avatars2.githubusercontent.com/u/18265157?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sergey</b></sub></a><br /><a href="https://github.com/colyseus/colyseus/issues?q=author%3Aserjek" title="Bug reports">🐛</a> <a href="https://github.com/colyseus/colyseus/commits?author=serjek" title="Code">đŸ’ģ</a></td>
135
+ <td align="center"><a href="https://oyed.io"><img src="https://avatars0.githubusercontent.com/u/853683?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tom</b></sub></a><br /><a href="#question-oyed" title="Answering Questions">đŸ’Ŧ</a> <a href="https://github.com/colyseus/colyseus/issues?q=author%3Aoyed" title="Bug reports">🐛</a> <a href="#ideas-oyed" title="Ideas, Planning, & Feedback">🤔</a></td>
136
+ <td align="center"><a href="https://github.com/supertommy"><img src="https://avatars0.githubusercontent.com/u/2236153?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tommy Leung</b></sub></a><br /><a href="#mentoring-supertommy" title="Mentoring">🧑‍đŸĢ</a></td>
137
+ <td align="center"><a href="https://github.com/digimbyte"><img src="https://avatars2.githubusercontent.com/u/6645396?v=4?s=100" width="100px;" alt=""/><br /><sub><b>digimbyte</b></sub></a><br /><a href="https://github.com/colyseus/colyseus/commits?author=digimbyte" title="Documentation">📖</a></td>
130
138
  </tr>
131
139
  </table>
132
140
 
package/build/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from "@colyseus/core";
2
2
  export { RedisPresence } from '@colyseus/redis-presence';
3
- export { MongooseDriver } from '@colyseus/mongoose-driver';
3
+ export { RedisDriver } from '@colyseus/redis-driver';
package/build/index.js CHANGED
@@ -1,34 +1,37 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var core = require('@colyseus/core');
6
- var wsTransport = require('@colyseus/ws-transport');
7
- var redisPresence = require('@colyseus/redis-presence');
8
- var mongooseDriver = require('@colyseus/mongoose-driver');
9
-
10
- core.Server.prototype['getDefaultTransport'] = function (options) {
11
- return new wsTransport.WebSocketTransport(options);
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
12
8
  };
13
-
14
- Object.defineProperty(exports, 'RedisPresence', {
15
- enumerable: true,
16
- get: function () {
17
- return redisPresence.RedisPresence;
18
- }
19
- });
20
- Object.defineProperty(exports, 'MongooseDriver', {
21
- enumerable: true,
22
- get: function () {
23
- return mongooseDriver.MongooseDriver;
24
- }
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var src_exports = {};
20
+ __export(src_exports, {
21
+ RedisDriver: () => import_redis_driver.RedisDriver,
22
+ RedisPresence: () => import_redis_presence.RedisPresence
25
23
  });
26
- Object.keys(core).forEach(function (k) {
27
- if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
28
- enumerable: true,
29
- get: function () {
30
- return core[k];
31
- }
32
- });
24
+ module.exports = __toCommonJS(src_exports);
25
+ __reExport(src_exports, require("@colyseus/core"), module.exports);
26
+ var import_core = require("@colyseus/core");
27
+ var import_ws_transport = require("@colyseus/ws-transport");
28
+ var import_redis_presence = require("@colyseus/redis-presence");
29
+ var import_redis_driver = require("@colyseus/redis-driver");
30
+ import_core.Server.prototype["getDefaultTransport"] = function(options) {
31
+ return new import_ws_transport.WebSocketTransport(options);
32
+ };
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ RedisDriver,
36
+ RedisPresence
33
37
  });
34
- //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["export * from \"@colyseus/core\";\n\n//\n// 0.14.x compatibility:\n// each \"presence\", \"transport\", and \"driver\" implementation have been extracted from the core.\n//\nimport { Server } from '@colyseus/core';\nimport { WebSocketTransport } from '@colyseus/ws-transport';\nServer.prototype['getDefaultTransport'] = function(options: any) {\n return new WebSocketTransport(options);\n}\nexport { RedisPresence } from '@colyseus/redis-presence';\nexport { MongooseDriver } from '@colyseus/mongoose-driver';"],"names":["Server","WebSocketTransport"],"mappings":";;;;;;;;;AAQAA,WAAM,CAAC,SAAS,CAAC,qBAAqB,CAAC,GAAG,UAAS,OAAY;IAC3D,OAAO,IAAIC,8BAAkB,CAAC,OAAO,CAAC,CAAC;AAC3C,CAAC;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "sourcesContent": ["export * from \"@colyseus/core\";\n\n//\n// 0.14.x compatibility:\n// each \"presence\", \"transport\", and \"driver\" implementation have been extracted from the core.\n//\nimport { Server } from '@colyseus/core';\nimport { WebSocketTransport } from '@colyseus/ws-transport';\nServer.prototype['getDefaultTransport'] = function(options: any) {\n return new WebSocketTransport(options);\n}\nexport { RedisPresence } from '@colyseus/redis-presence';\nexport { RedisDriver } from '@colyseus/redis-driver';\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,2BAAd;AAMA,kBAAuB;AACvB,0BAAmC;AAInC,4BAA8B;AAC9B,0BAA4B;AAJ5B,mBAAO,UAAU,yBAAyB,SAAS,SAAc;AAC7D,SAAO,IAAI,uCAAmB,OAAO;AACzC;",
6
+ "names": []
7
+ }
package/build/index.mjs CHANGED
@@ -1,10 +1,12 @@
1
- import { Server } from '@colyseus/core';
2
- export * from '@colyseus/core';
3
- import { WebSocketTransport } from '@colyseus/ws-transport';
4
- export { RedisPresence } from '@colyseus/redis-presence';
5
- export { MongooseDriver } from '@colyseus/mongoose-driver';
6
-
7
- Server.prototype['getDefaultTransport'] = function (options) {
8
- return new WebSocketTransport(options);
1
+ export * from "@colyseus/core";
2
+ import { Server } from "@colyseus/core";
3
+ import { WebSocketTransport } from "@colyseus/ws-transport";
4
+ Server.prototype["getDefaultTransport"] = function(options) {
5
+ return new WebSocketTransport(options);
6
+ };
7
+ import { RedisPresence } from "@colyseus/redis-presence";
8
+ import { RedisDriver } from "@colyseus/redis-driver";
9
+ export {
10
+ RedisDriver,
11
+ RedisPresence
9
12
  };
10
- //# sourceMappingURL=index.mjs.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["export * from \"@colyseus/core\";\n\n//\n// 0.14.x compatibility:\n// each \"presence\", \"transport\", and \"driver\" implementation have been extracted from the core.\n//\nimport { Server } from '@colyseus/core';\nimport { WebSocketTransport } from '@colyseus/ws-transport';\nServer.prototype['getDefaultTransport'] = function(options: any) {\n return new WebSocketTransport(options);\n}\nexport { RedisPresence } from '@colyseus/redis-presence';\nexport { MongooseDriver } from '@colyseus/mongoose-driver';"],"names":[],"mappings":";;;;;;AAQA,MAAM,CAAC,SAAS,CAAC,qBAAqB,CAAC,GAAG,UAAS,OAAY;IAC3D,OAAO,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAC3C,CAAC"}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "sourcesContent": ["export * from \"@colyseus/core\";\n\n//\n// 0.14.x compatibility:\n// each \"presence\", \"transport\", and \"driver\" implementation have been extracted from the core.\n//\nimport { Server } from '@colyseus/core';\nimport { WebSocketTransport } from '@colyseus/ws-transport';\nServer.prototype['getDefaultTransport'] = function(options: any) {\n return new WebSocketTransport(options);\n}\nexport { RedisPresence } from '@colyseus/redis-presence';\nexport { RedisDriver } from '@colyseus/redis-driver';\n"],
5
+ "mappings": "AAAA,cAAc;AAMd,SAAS,cAAc;AACvB,SAAS,0BAA0B;AACnC,OAAO,UAAU,yBAAyB,SAAS,SAAc;AAC7D,SAAO,IAAI,mBAAmB,OAAO;AACzC;AACA,SAAS,qBAAqB;AAC9B,SAAS,mBAAmB;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "colyseus",
3
- "version": "0.15.0-preview.4",
3
+ "version": "0.15.0",
4
4
  "description": "Multiplayer Framework for Node.js.",
5
5
  "input": "./src/index.ts",
6
6
  "main": "./build/index.js",
@@ -31,10 +31,10 @@
31
31
  "node": ">= 14.x"
32
32
  },
33
33
  "dependencies": {
34
- "@colyseus/core": "^0.15.0-preview.2",
35
- "@colyseus/mongoose-driver": "^0.15.0-preview.0",
36
- "@colyseus/redis-presence": "^0.15.0-preview.0",
37
- "@colyseus/ws-transport": "^0.15.0-preview.0"
34
+ "@colyseus/core": "^0.15.0",
35
+ "@colyseus/redis-driver": "^0.15.0",
36
+ "@colyseus/redis-presence": "^0.15.0",
37
+ "@colyseus/ws-transport": "^0.15.0"
38
38
  },
39
- "gitHead": "720000eeab268994e936d1d582347e1eb0edb56d"
39
+ "gitHead": "0ec5c17379936d74f4fa18ba68d16cbb7ed2c298"
40
40
  }