@rotorsoft/act 1.23.32 → 1.23.34

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.
@@ -1277,8 +1277,11 @@ var InMemoryStore = class {
1277
1277
  }
1278
1278
  }
1279
1279
  this._events = this._events.filter((e) => !stream_set.has(e.stream));
1280
+ const restarted = new Set(
1281
+ full.filter((t) => t.snapshot !== void 0).map((t) => t.stream)
1282
+ );
1280
1283
  for (const stream of stream_set) {
1281
- this._streams.delete(stream);
1284
+ if (!restarted.has(stream)) this._streams.delete(stream);
1282
1285
  this._stream_versions.delete(stream);
1283
1286
  this._max_event_id_by_stream.delete(stream);
1284
1287
  this._pii.delete(stream);