@ai-matrx/records 0.99.19 → 0.99.20

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.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,19 @@
1
1
  # Changelog — @ai-matrx/records
2
2
 
3
- ## 0.99.19
3
+ ## 0.99.20
4
4
 
5
5
  UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
6
6
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records/src`.
7
7
 
8
+ ## 0.99.19
9
+
10
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
11
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
12
+ Diff: `git diff 29b26c132f b4d74a0e98 -- apps/shared/records/src`
13
+
14
+ Changed shipped source files (1):
15
+ - `apps/shared/records/src/core/client.ts`
16
+
8
17
  ## 0.99.18
9
18
  ### Unreleased
10
19
 
@@ -5788,6 +5788,10 @@ function takePrimedTablePageBundle(organizationId, tableId, viewId) {
5788
5788
  primed.delete(key);
5789
5789
  return Date.now() - held.at < PRIMED_TTL_MS ? held.answer : null;
5790
5790
  }
5791
+ function forgetPrimedTablePageBundlesOf(tableId) {
5792
+ const primed = registry();
5793
+ for (const key of [...primed.keys()]) if (tableId === null || key.split("|")[1] === tableId) primed.delete(key);
5794
+ }
5791
5795
  function forgetPrimedTablePageBundles() {
5792
5796
  registry().clear();
5793
5797
  }
@@ -7704,6 +7708,7 @@ function createRecordsClient(given) {
7704
7708
  if (isWritingDoor(door) || LOOK_WRITES[door]) {
7705
7709
  const tableId = args["p_table_id"];
7706
7710
  bundleDrop(typeof tableId === "string" ? tableId : null);
7711
+ forgetPrimedTablePageBundlesOf(typeof tableId === "string" ? tableId : null);
7707
7712
  dropPrimedDoorAnswers(LOOK_WRITES[door]);
7708
7713
  }
7709
7714
  return ok(response.data);