@colyseus/sdk 0.17.34 → 0.17.35

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 (62) hide show
  1. package/LICENSE +1 -2
  2. package/build/3rd_party/discord.cjs +1 -1
  3. package/build/3rd_party/discord.mjs +1 -1
  4. package/build/Auth.cjs +1 -1
  5. package/build/Auth.mjs +1 -1
  6. package/build/Client.cjs +1 -1
  7. package/build/Client.mjs +1 -1
  8. package/build/Connection.cjs +1 -1
  9. package/build/Connection.mjs +1 -1
  10. package/build/HTTP.cjs +1 -1
  11. package/build/HTTP.mjs +1 -1
  12. package/build/Room.cjs +8 -3
  13. package/build/Room.cjs.map +1 -1
  14. package/build/Room.d.ts +6 -0
  15. package/build/Room.mjs +8 -3
  16. package/build/Room.mjs.map +1 -1
  17. package/build/Storage.cjs +1 -1
  18. package/build/Storage.mjs +1 -1
  19. package/build/core/nanoevents.cjs +1 -1
  20. package/build/core/nanoevents.mjs +1 -1
  21. package/build/core/signal.cjs +1 -1
  22. package/build/core/signal.mjs +1 -1
  23. package/build/core/utils.cjs +1 -1
  24. package/build/core/utils.mjs +1 -1
  25. package/build/debug.cjs +8 -8
  26. package/build/debug.cjs.map +1 -1
  27. package/build/debug.mjs +8 -8
  28. package/build/debug.mjs.map +1 -1
  29. package/build/errors/Errors.cjs +1 -1
  30. package/build/errors/Errors.mjs +1 -1
  31. package/build/index.cjs +1 -1
  32. package/build/index.mjs +1 -1
  33. package/build/legacy.cjs +1 -1
  34. package/build/legacy.mjs +1 -1
  35. package/build/serializer/NoneSerializer.cjs +1 -1
  36. package/build/serializer/NoneSerializer.mjs +1 -1
  37. package/build/serializer/SchemaSerializer.cjs +1 -1
  38. package/build/serializer/SchemaSerializer.mjs +1 -1
  39. package/build/serializer/Serializer.cjs +1 -1
  40. package/build/serializer/Serializer.mjs +1 -1
  41. package/build/transport/H3Transport.cjs +1 -1
  42. package/build/transport/H3Transport.mjs +1 -1
  43. package/build/transport/WebSocketTransport.cjs +1 -1
  44. package/build/transport/WebSocketTransport.mjs +1 -1
  45. package/dist/colyseus-cocos-creator.js +8 -3
  46. package/dist/colyseus-cocos-creator.js.map +1 -1
  47. package/dist/colyseus.js +8 -3
  48. package/dist/colyseus.js.map +1 -1
  49. package/dist/debug.js +8 -8
  50. package/dist/debug.js.map +1 -1
  51. package/package.json +2 -2
  52. package/src/Room.ts +15 -2
  53. package/src/debug.ts +7 -7
  54. package/README.md +0 -27
  55. package/build/HTTP.bkp.d.ts +0 -103
  56. package/build/HTTP_bkp.d.ts +0 -18
  57. package/build/Protocol.cjs +0 -34
  58. package/build/Protocol.cjs.map +0 -1
  59. package/build/Protocol.d.ts +0 -21
  60. package/build/Protocol.mjs +0 -34
  61. package/build/Protocol.mjs.map +0 -1
  62. package/dist/colyseus.d.ts +0 -4148
package/build/debug.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.34
6
+ // colyseus.js@0.17.35
7
7
  import { Client } from './Client.mjs';
8
8
  import { CloseCode } from '@colyseus/shared-types';
9
9
 
@@ -40,7 +40,7 @@ const preferences = {
40
40
  position: 'top-right' // 'bottom-right', 'bottom-left', 'top-left', 'top-right'
41
41
  }
42
42
  };
43
- // Load preferences from localStorage
43
+ // Load preferences from localStorage (hidden state from sessionStorage)
44
44
  function loadPreferences() {
45
45
  try {
46
46
  const savedPrefs = localStorage.getItem('colyseus-debug-preferences') || '{}';
@@ -57,26 +57,26 @@ function loadPreferences() {
57
57
  preferences.latencySimulation.enabled = latencyValue > 0;
58
58
  }
59
59
  }
60
- // Load hidden state
61
- if (prefs.hidden === true) {
60
+ // Load hidden state from sessionStorage
61
+ if (sessionStorage.getItem('colyseus-debug-hidden') === 'true') {
62
62
  panelsHidden = true;
63
63
  }
64
64
  }
65
65
  catch (e) {
66
- // localStorage might not be available or JSON parse failed, ignore
66
+ // Storage might not be available or JSON parse failed, ignore
67
67
  }
68
68
  }
69
- // Save preferences to localStorage
69
+ // Save preferences to localStorage (hidden state to sessionStorage)
70
70
  function savePreferences() {
71
71
  try {
72
72
  localStorage.setItem('colyseus-debug-preferences', JSON.stringify({
73
73
  position: preferences.panelPosition.position,
74
74
  latency: preferences.latencySimulation.delay,
75
- hidden: panelsHidden
76
75
  }));
76
+ sessionStorage.setItem('colyseus-debug-hidden', panelsHidden ? 'true' : 'false');
77
77
  }
78
78
  catch (e) {
79
- // localStorage might not be available, ignore
79
+ // Storage might not be available, ignore
80
80
  }
81
81
  }
82
82
  // Panel visibility state