polfan-server-js-client 0.2.55 → 0.2.56

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.
@@ -4,9 +4,9 @@
4
4
  <option name="autoReloadType" value="SELECTIVE" />
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
- <list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="Fix websocket state error handling">
8
- <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/src/IndexedObjectCollection.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/IndexedObjectCollection.ts" afterDir="false" />
7
+ <list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="Collection integration with React JS rework">
8
+ <change beforePath="$PROJECT_DIR$/src/state-tracker/TopicHistoryWindow.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/state-tracker/TopicHistoryWindow.ts" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/tests/history-window.test.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/history-window.test.ts" afterDir="false" />
10
10
  </list>
11
11
  <option name="SHOW_DIALOG" value="false" />
12
12
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -138,15 +138,7 @@
138
138
  <workItem from="1759848250548" duration="413000" />
139
139
  <workItem from="1761857165939" duration="4293000" />
140
140
  <workItem from="1762715993044" duration="642000" />
141
- <workItem from="1762724230487" duration="4909000" />
142
- </task>
143
- <task id="LOCAL-00012" summary="Permission related changes in protocol types">
144
- <option name="closed" value="true" />
145
- <created>1739137397104</created>
146
- <option name="number" value="00012" />
147
- <option name="presentableId" value="LOCAL-00012" />
148
- <option name="project" value="LOCAL" />
149
- <updated>1739137397104</updated>
141
+ <workItem from="1762724230487" duration="7498000" />
150
142
  </task>
151
143
  <task id="LOCAL-00013" summary="Permission related changes in protocol types">
152
144
  <option name="closed" value="true" />
@@ -532,7 +524,15 @@
532
524
  <option name="project" value="LOCAL" />
533
525
  <updated>1761861305919</updated>
534
526
  </task>
535
- <option name="localTasksCounter" value="61" />
527
+ <task id="LOCAL-00061" summary="Collection integration with React JS rework">
528
+ <option name="closed" value="true" />
529
+ <created>1762773873854</created>
530
+ <option name="number" value="00061" />
531
+ <option name="presentableId" value="LOCAL-00061" />
532
+ <option name="project" value="LOCAL" />
533
+ <updated>1762773873854</updated>
534
+ </task>
535
+ <option name="localTasksCounter" value="62" />
536
536
  <servers />
537
537
  </component>
538
538
  <component name="TypeScriptGeneratedFilesManager">
@@ -550,7 +550,6 @@
550
550
  </option>
551
551
  </component>
552
552
  <component name="VcsManagerConfiguration">
553
- <MESSAGE value="Custom nicks support" />
554
553
  <MESSAGE value="CustomNickChange message type" />
555
554
  <MESSAGE value="Fix module exporting (node + browser)" />
556
555
  <MESSAGE value="Fix JoinRoom command response type" />
@@ -575,6 +574,7 @@
575
574
  <MESSAGE value="Protocol version support" />
576
575
  <MESSAGE value="Update room on recipient user change" />
577
576
  <MESSAGE value="Fix websocket state error handling" />
578
- <option name="LAST_COMMIT_MESSAGE" value="Fix websocket state error handling" />
577
+ <MESSAGE value="Collection integration with React JS rework" />
578
+ <option name="LAST_COMMIT_MESSAGE" value="Collection integration with React JS rework" />
579
579
  </component>
580
580
  </project>
@@ -428,9 +428,9 @@ class TraversableRemoteCollection extends ObservableIndexedObjectCollection {
428
428
  * Null for unlimited.
429
429
  */
430
430
  TopicHistoryWindow_defineProperty(this, "limit", 50);
431
+ TopicHistoryWindow_defineProperty(this, "oldestId", null);
431
432
  TopicHistoryWindow_defineProperty(this, "currentState", WindowState.LIVE);
432
433
  TopicHistoryWindow_defineProperty(this, "fetchingState", undefined);
433
- TopicHistoryWindow_defineProperty(this, "oldestId", null);
434
434
  }
435
435
  /**
436
436
  * Current mode od collection window. To change mode, call one of available fetch methods.
@@ -552,6 +552,15 @@ class TopicHistoryWindow extends TraversableRemoteCollection {
552
552
  this.tracker.client.on('Session', ev => this.handleSession(ev));
553
553
  this.tracker.client.on('NewMessage', ev => this.handleNewMessage(ev));
554
554
  }
555
+ shallowCopy() {
556
+ const copy = new TopicHistoryWindow(this.roomId, this.topicId, this.tracker);
557
+ copy._items = this._items;
558
+ copy.limit = this.limit;
559
+ copy.currentState = this.currentState;
560
+ copy.fetchingState = this.fetchingState;
561
+ copy.oldestId = this.oldestId;
562
+ return copy;
563
+ }
555
564
  get isTraverseLocked() {
556
565
  return this.traverseLock;
557
566
  }