applesauce-core 0.0.0-next-20250213170222 → 0.0.0-next-20250213173056

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.
@@ -1,4 +1,4 @@
1
- import { filter, shareReplay } from "rxjs";
1
+ import { filter, ReplaySubject, share, timer } from "rxjs";
2
2
  import { LRU } from "../helpers/lru.js";
3
3
  import * as Queries from "../queries/index.js";
4
4
  import { getObservableValue } from "../observable/get-observable-value.js";
@@ -24,7 +24,7 @@ export class QueryStore {
24
24
  if (!this.observables.has(query)) {
25
25
  const observable = query
26
26
  .run(this.store, this)
27
- .pipe(shareReplay({ refCount: true, bufferSize: 1 }));
27
+ .pipe(share({ connector: () => new ReplaySubject(1), resetOnComplete: () => timer(60_000) }));
28
28
  this.observables.set(query, observable);
29
29
  return observable;
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "applesauce-core",
3
- "version": "0.0.0-next-20250213170222",
3
+ "version": "0.0.0-next-20250213173056",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",