@colyseus/sdk 0.17.35 → 0.17.36

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.
Files changed (46) hide show
  1. package/build/3rd_party/discord.cjs +1 -1
  2. package/build/3rd_party/discord.mjs +1 -1
  3. package/build/Auth.cjs +1 -1
  4. package/build/Auth.mjs +1 -1
  5. package/build/Client.cjs +1 -1
  6. package/build/Client.mjs +1 -1
  7. package/build/Connection.cjs +1 -1
  8. package/build/Connection.mjs +1 -1
  9. package/build/HTTP.cjs +1 -1
  10. package/build/HTTP.mjs +1 -1
  11. package/build/Room.cjs +1 -1
  12. package/build/Room.mjs +1 -1
  13. package/build/Storage.cjs +1 -1
  14. package/build/Storage.mjs +1 -1
  15. package/build/core/nanoevents.cjs +1 -1
  16. package/build/core/nanoevents.mjs +1 -1
  17. package/build/core/signal.cjs +1 -1
  18. package/build/core/signal.mjs +1 -1
  19. package/build/core/utils.cjs +1 -1
  20. package/build/core/utils.mjs +1 -1
  21. package/build/debug.cjs +5 -4
  22. package/build/debug.cjs.map +1 -1
  23. package/build/debug.mjs +5 -4
  24. package/build/debug.mjs.map +1 -1
  25. package/build/errors/Errors.cjs +1 -1
  26. package/build/errors/Errors.mjs +1 -1
  27. package/build/index.cjs +1 -1
  28. package/build/index.mjs +1 -1
  29. package/build/legacy.cjs +1 -1
  30. package/build/legacy.mjs +1 -1
  31. package/build/serializer/NoneSerializer.cjs +1 -1
  32. package/build/serializer/NoneSerializer.mjs +1 -1
  33. package/build/serializer/SchemaSerializer.cjs +1 -1
  34. package/build/serializer/SchemaSerializer.mjs +1 -1
  35. package/build/serializer/Serializer.cjs +1 -1
  36. package/build/serializer/Serializer.mjs +1 -1
  37. package/build/transport/H3Transport.cjs +1 -1
  38. package/build/transport/H3Transport.mjs +1 -1
  39. package/build/transport/WebSocketTransport.cjs +1 -1
  40. package/build/transport/WebSocketTransport.mjs +1 -1
  41. package/dist/colyseus-cocos-creator.js +1 -1
  42. package/dist/colyseus.js +1 -1
  43. package/dist/debug.js +5 -4
  44. package/dist/debug.js.map +1 -1
  45. package/package.json +1 -1
  46. package/src/debug.ts +4 -3
@@ -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.35
6
+ // colyseus.js@0.17.36
7
7
  'use strict';
8
8
 
9
9
  /**
@@ -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.35
6
+ // colyseus.js@0.17.36
7
7
  /**
8
8
  * Discord Embedded App SDK
9
9
  * https://github.com/colyseus/colyseus/issues/707
package/build/Auth.cjs 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.35
6
+ // colyseus.js@0.17.36
7
7
  'use strict';
8
8
 
9
9
  var tslib = require('tslib');
package/build/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.35
6
+ // colyseus.js@0.17.36
7
7
  import { getItem, removeItem, setItem } from './Storage.mjs';
8
8
  import { createNanoEvents } from './core/nanoevents.mjs';
9
9
 
package/build/Client.cjs 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.35
6
+ // colyseus.js@0.17.36
7
7
  'use strict';
8
8
 
9
9
  var tslib = require('tslib');
package/build/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.35
6
+ // colyseus.js@0.17.36
7
7
  import { Protocol, CloseCode } from '@colyseus/shared-types';
8
8
  import { ServerError, MatchMakeError } from './errors/Errors.mjs';
9
9
  import { Room } from './Room.mjs';
@@ -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.35
6
+ // colyseus.js@0.17.36
7
7
  'use strict';
8
8
 
9
9
  var tslib = require('tslib');
@@ -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.35
6
+ // colyseus.js@0.17.36
7
7
  import { H3TransportTransport } from './transport/H3Transport.mjs';
8
8
  import { WebSocketTransport } from './transport/WebSocketTransport.mjs';
9
9
  import { CloseCode } from '@colyseus/shared-types';
package/build/HTTP.cjs 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.35
6
+ // colyseus.js@0.17.36
7
7
  'use strict';
8
8
 
9
9
  var tslib = require('tslib');
package/build/HTTP.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.35
6
+ // colyseus.js@0.17.36
7
7
  import { ServerError } from './errors/Errors.mjs';
8
8
 
9
9
  function isJSONSerializable(value) {
package/build/Room.cjs 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.35
6
+ // colyseus.js@0.17.36
7
7
  'use strict';
8
8
 
9
9
  var tslib = require('tslib');
package/build/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.35
6
+ // colyseus.js@0.17.36
7
7
  import { CloseCode, Protocol } from '@colyseus/shared-types';
8
8
  import { Decoder, encode, decode } from '@colyseus/schema';
9
9
  import { Packr, unpack } from '@colyseus/msgpackr';
package/build/Storage.cjs 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.35
6
+ // colyseus.js@0.17.36
7
7
  'use strict';
8
8
 
9
9
  var tslib = require('tslib');
package/build/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.35
6
+ // colyseus.js@0.17.36
7
7
  /// <reference path="../typings/cocos-creator.d.ts" />
8
8
  /**
9
9
  * We do not assign 'storage' to window.localStorage immediatelly for React
@@ -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.35
6
+ // colyseus.js@0.17.36
7
7
  'use strict';
8
8
 
9
9
  /**
@@ -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.35
6
+ // colyseus.js@0.17.36
7
7
  /**
8
8
  * The MIT License (MIT)
9
9
  *
@@ -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.35
6
+ // colyseus.js@0.17.36
7
7
  'use strict';
8
8
 
9
9
  class EventEmitter {
@@ -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.35
6
+ // colyseus.js@0.17.36
7
7
  class EventEmitter {
8
8
  handlers = [];
9
9
  register(cb, once = false) {
@@ -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.35
6
+ // colyseus.js@0.17.36
7
7
  'use strict';
8
8
 
9
9
  function now() {
@@ -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.35
6
+ // colyseus.js@0.17.36
7
7
  function now() {
8
8
  return typeof (performance) !== 'undefined' ? performance.now() : Date.now();
9
9
  }
package/build/debug.cjs 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.35
6
+ // colyseus.js@0.17.36
7
7
  'use strict';
8
8
 
9
9
  var Client = require('./Client.cjs');
@@ -2354,10 +2354,11 @@ function applyMonkeyPatches() {
2354
2354
  // Generate a consistent room ID
2355
2355
  const roomId = room.roomId;
2356
2356
  const sessionId = room.sessionId;
2357
- // Generate unique panel ID: use sessionId if available, otherwise use roomId + timestamp
2358
- const uniquePanelId = sessionId && sessionId !== 'N/A' && sessionId !== ''
2357
+ // Generate unique panel ID: use roomId + sessionId to avoid collisions
2358
+ // when the same sessionId is reused across rooms (e.g. QueueRoom handoff)
2359
+ const uniquePanelId = roomId + '_' + (sessionId && sessionId !== 'N/A' && sessionId !== ''
2359
2360
  ? sessionId
2360
- : roomId + '-' + Date.now() + '-' + Math.random().toString(36).substring(2, 9);
2361
+ : Date.now() + '-' + Math.random().toString(36).substring(2, 9));
2361
2362
  const transport = (_a = room.connection) === null || _a === void 0 ? void 0 : _a.transport;
2362
2363
  const endpoint = ((_b = transport.ws) === null || _b === void 0 ? void 0 : _b.url) || 'N/A';
2363
2364
  const debugInfo = {