@dabble/patches 0.2.6 → 0.2.7

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.
@@ -60,8 +60,6 @@ export class Patches {
60
60
  const existing = this.docs.get(docId);
61
61
  if (existing)
62
62
  return existing.doc;
63
- // Ensure the doc is tracked before proceeding
64
- await this.trackDocs([docId]);
65
63
  // Load initial state from store
66
64
  const snapshot = await this.store.getDoc(docId);
67
65
  const initialState = (snapshot?.state ?? {});
@@ -81,9 +79,6 @@ export class Patches {
81
79
  if (managed) {
82
80
  managed.onChangeUnsubscriber();
83
81
  this.docs.delete(docId);
84
- // Note: We do NOT call untrackDocs here automatically.
85
- // Closing a doc just removes it from memory; it remains tracked
86
- // for background sync unless explicitly untracked.
87
82
  }
88
83
  }
89
84
  async deleteDoc(docId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dabble/patches",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Immutable JSON Patch implementation based on RFC 6902 supporting operational transformation and last-writer-wins",
5
5
  "author": "Jacob Wright <jacwright@gmail.com>",
6
6
  "bugs": {