@stonyx/orm 0.3.2-beta.100 → 0.3.2-beta.102

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/dist/store.d.ts CHANGED
@@ -49,9 +49,9 @@ export default class Store {
49
49
  _skipAutoPersist?: boolean;
50
50
  }): void;
51
51
  /**
52
- * Evict a record from the store with full relationship registry cleanup,
53
- * WITHOUT calling record.clean(). This preserves the caller's reference
54
- * to the returned record (used by memory:false post-persist eviction).
52
+ * Evict a record from the store with full relationship registry cleanup.
53
+ * The caller retains its reference to the returned record, which is the
54
+ * contract memory:false post-persist eviction relies on.
55
55
  *
56
56
  * @param registryId - The ID used when the record's relationships were
57
57
  * registered. For SQL models with pending IDs, this is the original
package/dist/store.js CHANGED
@@ -129,9 +129,9 @@ export default class Store {
129
129
  this.unloadAllRecords(key);
130
130
  }
131
131
  /**
132
- * Evict a record from the store with full relationship registry cleanup,
133
- * WITHOUT calling record.clean(). This preserves the caller's reference
134
- * to the returned record (used by memory:false post-persist eviction).
132
+ * Evict a record from the store with full relationship registry cleanup.
133
+ * The caller retains its reference to the returned record, which is the
134
+ * contract memory:false post-persist eviction relies on.
135
135
  *
136
136
  * @param registryId - The ID used when the record's relationships were
137
137
  * registered. For SQL models with pending IDs, this is the original
@@ -184,7 +184,6 @@ export default class Store {
184
184
  this._removeFromHasManyArrays(modelName, recordId, visited);
185
185
  this._nullifyBelongsToReferences(modelName, recordId, visited);
186
186
  this._cleanupRelationshipRegistries(modelName, recordId);
187
- recordToUnload.clean();
188
187
  this.data.get(modelName)?.delete(recordId);
189
188
  }
190
189
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "stonyx-async",
5
5
  "stonyx-module"
6
6
  ],
7
- "version": "0.3.2-beta.100",
7
+ "version": "0.3.2-beta.102",
8
8
  "description": "",
9
9
  "main": "dist/index.js",
10
10
  "type": "module",
@@ -64,7 +64,7 @@
64
64
  "@stonyx/cron": "0.2.1-beta.72",
65
65
  "@stonyx/events": "0.1.1-beta.52",
66
66
  "@stonyx/utils": "0.2.3-beta.26",
67
- "stonyx": "0.2.3-beta.69"
67
+ "stonyx": "0.2.3-beta.70"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "@aws-sdk/client-dynamodb": "^3.0.0",
package/src/store.ts CHANGED
@@ -195,9 +195,9 @@ export default class Store {
195
195
  }
196
196
 
197
197
  /**
198
- * Evict a record from the store with full relationship registry cleanup,
199
- * WITHOUT calling record.clean(). This preserves the caller's reference
200
- * to the returned record (used by memory:false post-persist eviction).
198
+ * Evict a record from the store with full relationship registry cleanup.
199
+ * The caller retains its reference to the returned record, which is the
200
+ * contract memory:false post-persist eviction relies on.
201
201
  *
202
202
  * @param registryId - The ID used when the record's relationships were
203
203
  * registered. For SQL models with pending IDs, this is the original
@@ -258,7 +258,6 @@ export default class Store {
258
258
  this._removeFromHasManyArrays(modelName, recordId, visited);
259
259
  this._nullifyBelongsToReferences(modelName, recordId, visited);
260
260
  this._cleanupRelationshipRegistries(modelName, recordId);
261
- recordToUnload.clean();
262
261
 
263
262
  this.data.get(modelName)?.delete(recordId as string | number);
264
263
  }