@colyseus/sdk 0.17.0 → 0.17.1
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/build/cjs/3rd_party/discord.js +1 -1
- package/build/cjs/Auth.js +1 -1
- package/build/cjs/Client.js +1 -1
- package/build/cjs/Connection.js +1 -1
- package/build/cjs/HTTP.js +1 -1
- package/build/cjs/Protocol.js +1 -1
- package/build/cjs/Room.js +1 -1
- package/build/cjs/Storage.js +1 -1
- package/build/cjs/core/nanoevents.js +1 -1
- package/build/cjs/core/signal.js +1 -1
- package/build/cjs/core/utils.js +1 -1
- package/build/cjs/errors/Errors.js +1 -1
- package/build/cjs/index.js +1 -1
- package/build/cjs/legacy.js +1 -1
- package/build/cjs/serializer/NoneSerializer.js +1 -1
- package/build/cjs/serializer/SchemaSerializer.js +1 -1
- package/build/cjs/serializer/Serializer.js +1 -1
- package/build/cjs/transport/H3Transport.js +1 -1
- package/build/cjs/transport/WebSocketTransport.js +1 -1
- package/build/esm/3rd_party/discord.mjs +1 -1
- package/build/esm/Auth.mjs +1 -1
- package/build/esm/Client.mjs +1 -1
- package/build/esm/Connection.mjs +1 -1
- package/build/esm/HTTP.mjs +1 -1
- package/build/esm/Protocol.mjs +1 -1
- package/build/esm/Room.mjs +1 -1
- package/build/esm/Storage.mjs +1 -1
- package/build/esm/core/nanoevents.mjs +1 -1
- package/build/esm/core/signal.mjs +1 -1
- package/build/esm/core/utils.mjs +1 -1
- package/build/esm/errors/Errors.mjs +1 -1
- package/build/esm/index.mjs +1 -1
- package/build/esm/legacy.mjs +1 -1
- package/build/esm/serializer/NoneSerializer.mjs +1 -1
- package/build/esm/serializer/SchemaSerializer.mjs +1 -1
- package/build/esm/serializer/Serializer.mjs +1 -1
- package/build/esm/transport/H3Transport.mjs +1 -1
- package/build/esm/transport/WebSocketTransport.mjs +1 -1
- package/dist/colyseus-cocos-creator.js +1 -1
- package/dist/colyseus.js +1 -1
- package/dist/debug.js +1 -1
- package/package.json +24 -21
package/build/cjs/Auth.js
CHANGED
package/build/cjs/Client.js
CHANGED
package/build/cjs/Connection.js
CHANGED
package/build/cjs/HTTP.js
CHANGED
package/build/cjs/Protocol.js
CHANGED
package/build/cjs/Room.js
CHANGED
package/build/cjs/Storage.js
CHANGED
package/build/cjs/core/signal.js
CHANGED
package/build/cjs/core/utils.js
CHANGED
package/build/cjs/index.js
CHANGED
package/build/cjs/legacy.js
CHANGED
package/build/esm/Auth.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This software is released under the MIT License.
|
|
4
4
|
// https://opensource.org/license/MIT
|
|
5
5
|
//
|
|
6
|
-
// colyseus.js@0.17.
|
|
6
|
+
// colyseus.js@0.17.1
|
|
7
7
|
import { getItem, removeItem, setItem } from './Storage.mjs';
|
|
8
8
|
import { createNanoEvents } from './core/nanoevents.mjs';
|
|
9
9
|
|
package/build/esm/Client.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This software is released under the MIT License.
|
|
4
4
|
// https://opensource.org/license/MIT
|
|
5
5
|
//
|
|
6
|
-
// colyseus.js@0.17.
|
|
6
|
+
// colyseus.js@0.17.1
|
|
7
7
|
import { ServerError, CloseCode } from './errors/Errors.mjs';
|
|
8
8
|
import { Room } from './Room.mjs';
|
|
9
9
|
import { HTTP } from './HTTP.mjs';
|
package/build/esm/Connection.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This software is released under the MIT License.
|
|
4
4
|
// https://opensource.org/license/MIT
|
|
5
5
|
//
|
|
6
|
-
// colyseus.js@0.17.
|
|
6
|
+
// colyseus.js@0.17.1
|
|
7
7
|
import { H3TransportTransport } from './transport/H3Transport.mjs';
|
|
8
8
|
import { WebSocketTransport } from './transport/WebSocketTransport.mjs';
|
|
9
9
|
|
package/build/esm/HTTP.mjs
CHANGED
package/build/esm/Protocol.mjs
CHANGED
package/build/esm/Room.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This software is released under the MIT License.
|
|
4
4
|
// https://opensource.org/license/MIT
|
|
5
5
|
//
|
|
6
|
-
// colyseus.js@0.17.
|
|
6
|
+
// colyseus.js@0.17.1
|
|
7
7
|
import { encode, decode } from '@colyseus/schema';
|
|
8
8
|
import { Packr, unpack } from '@colyseus/msgpackr';
|
|
9
9
|
import { Connection } from './Connection.mjs';
|
package/build/esm/Storage.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This software is released under the MIT License.
|
|
4
4
|
// https://opensource.org/license/MIT
|
|
5
5
|
//
|
|
6
|
-
// colyseus.js@0.17.
|
|
6
|
+
// colyseus.js@0.17.1
|
|
7
7
|
/// <reference path="../typings/cocos-creator.d.ts" />
|
|
8
8
|
/**
|
|
9
9
|
* We do not assign 'storage' to window.localStorage immediatelly for React
|
package/build/esm/core/utils.mjs
CHANGED
package/build/esm/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This software is released under the MIT License.
|
|
4
4
|
// https://opensource.org/license/MIT
|
|
5
5
|
//
|
|
6
|
-
// colyseus.js@0.17.
|
|
6
|
+
// colyseus.js@0.17.1
|
|
7
7
|
import './legacy.mjs';
|
|
8
8
|
export { Client, ColyseusSDK, MatchMakeError } from './Client.mjs';
|
|
9
9
|
export { ErrorCode, Protocol } from './Protocol.mjs';
|
package/build/esm/legacy.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This software is released under the MIT License.
|
|
4
4
|
// https://opensource.org/license/MIT
|
|
5
5
|
//
|
|
6
|
-
// colyseus.js@0.17.
|
|
6
|
+
// colyseus.js@0.17.1 - @colyseus/schema 4.0.1
|
|
7
7
|
// THIS VERSION USES "XMLHttpRequest" INSTEAD OF "fetch" FOR COMPATIBILITY WITH COCOS CREATOR
|
|
8
8
|
(function (global, factory) {
|
|
9
9
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
package/dist/colyseus.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This software is released under the MIT License.
|
|
4
4
|
// https://opensource.org/license/MIT
|
|
5
5
|
//
|
|
6
|
-
// colyseus.js@0.17.
|
|
6
|
+
// colyseus.js@0.17.1 - @colyseus/schema 4.0.1
|
|
7
7
|
(function (global, factory) {
|
|
8
8
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
9
9
|
typeof define === 'function' && define.amd ? define('@colyseus/sdk', ['exports'], factory) :
|
package/dist/debug.js
CHANGED
package/package.json
CHANGED
|
@@ -1,24 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colyseus/sdk",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"description": "Colyseus Multiplayer SDK for JavaScript/TypeScript",
|
|
5
5
|
"author": "Endel Dreyer",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"test": "vitest --dir test --reporter verbose",
|
|
10
|
-
"start": "vite --config example/vite.config.ts",
|
|
11
|
-
"build": "rollup -c rollup.config.mjs",
|
|
12
|
-
"build-dist-dts": "dts-bundle-generator --config dts-generator.json",
|
|
13
|
-
"build-ci": "tsc && npm run build && npm run build-dist-dts && npm run build-zip-dist",
|
|
14
|
-
"build-zip-dist": "zip --junk-paths colyseus-sdk dist/colyseus*",
|
|
15
|
-
"build-all": "tsc && npm run build && npm run build-dist-dts && npm run copy-cocos-creator-files && npm run copy-construct3-files",
|
|
16
|
-
"copy-construct3-files": "cp dist/colyseus.js ../colyseus-construct3/plugin/colyseus.js",
|
|
17
|
-
"copy-cocos-creator-files": "cp dist/colyseus-cocos-creator.js cocos-creator-3-extension/colyseus-sdk/runtime/colyseus.js && cp dist/colyseus.d.ts cocos-creator-3-extension/colyseus-sdk/runtime",
|
|
18
|
-
"watch": "tsc -w",
|
|
19
|
-
"tslint": "tslint --project .",
|
|
20
|
-
"prepublishOnly": "tsc && npm run build"
|
|
21
|
-
},
|
|
22
8
|
"funding": "https://github.com/sponsors/endel",
|
|
23
9
|
"files": [
|
|
24
10
|
"dist",
|
|
@@ -72,7 +58,6 @@
|
|
|
72
58
|
"ws": "^8.13.0"
|
|
73
59
|
},
|
|
74
60
|
"devDependencies": {
|
|
75
|
-
"@colyseus/core": "workspace:^",
|
|
76
61
|
"@rollup/plugin-alias": "^5.1.1",
|
|
77
62
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
78
63
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
@@ -95,14 +80,32 @@
|
|
|
95
80
|
"tslint": "^5.9.1",
|
|
96
81
|
"typescript": "^5.9.3",
|
|
97
82
|
"vite": "^5.0.11",
|
|
98
|
-
"vitest": "^2.1.1"
|
|
83
|
+
"vitest": "^2.1.1",
|
|
84
|
+
"@colyseus/core": "^0.17.0"
|
|
99
85
|
},
|
|
100
86
|
"peerDependencies": {
|
|
101
87
|
"@colyseus/core": "0.17.x",
|
|
102
|
-
"@colyseus/better-call": "
|
|
88
|
+
"@colyseus/better-call": "^1.0.26"
|
|
103
89
|
},
|
|
104
90
|
"peerDependenciesMeta": {
|
|
105
|
-
"@colyseus/core": {
|
|
106
|
-
|
|
91
|
+
"@colyseus/core": {
|
|
92
|
+
"optional": true
|
|
93
|
+
},
|
|
94
|
+
"@colyseus/better-call": {
|
|
95
|
+
"optional": true
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"scripts": {
|
|
99
|
+
"test": "vitest --dir test --reporter verbose",
|
|
100
|
+
"start": "vite --config example/vite.config.ts",
|
|
101
|
+
"build": "rollup -c rollup.config.mjs",
|
|
102
|
+
"build-dist-dts": "dts-bundle-generator --config dts-generator.json",
|
|
103
|
+
"build-ci": "tsc && npm run build && npm run build-dist-dts && npm run build-zip-dist",
|
|
104
|
+
"build-zip-dist": "zip --junk-paths colyseus-sdk dist/colyseus*",
|
|
105
|
+
"build-all": "tsc && npm run build && npm run build-dist-dts && npm run copy-cocos-creator-files && npm run copy-construct3-files",
|
|
106
|
+
"copy-construct3-files": "cp dist/colyseus.js ../colyseus-construct3/plugin/colyseus.js",
|
|
107
|
+
"copy-cocos-creator-files": "cp dist/colyseus-cocos-creator.js cocos-creator-3-extension/colyseus-sdk/runtime/colyseus.js && cp dist/colyseus.d.ts cocos-creator-3-extension/colyseus-sdk/runtime",
|
|
108
|
+
"watch": "tsc -w",
|
|
109
|
+
"tslint": "tslint --project ."
|
|
107
110
|
}
|
|
108
|
-
}
|
|
111
|
+
}
|