@shaxpir/duiduidui-models 1.4.21 → 1.4.22

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.
@@ -282,7 +282,12 @@ class ShareSync {
282
282
  return [];
283
283
  }
284
284
  // Load all models first (this creates docs, wraps them, and caches them)
285
- const models = ids.map(id => this.load(kind, id));
285
+ // Filter out any null models (documents that don't exist)
286
+ const models = ids.map(id => this.load(kind, id)).filter(model => model !== null);
287
+ // If no valid models were loaded, return empty array
288
+ if (models.length === 0) {
289
+ return [];
290
+ }
286
291
  // Try bulk acquire if DurableStore supports it
287
292
  if (this._durableStore?.getDocsBulk) {
288
293
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shaxpir/duiduidui-models",
3
- "version": "1.4.21",
3
+ "version": "1.4.22",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/shaxpir/duiduidui-models"