@procedures/mongo 0.50.0 → 0.52.0
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 +27 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/storage/document-storage.d.ts +13 -1
- package/dist/storage/document-storage.d.ts.map +1 -1
- package/dist/storage/document-storage.js +68 -43
- package/dist/storage/document-storage.js.map +1 -1
- package/package.json +7 -6
- package/src/storage/document-storage.ts +67 -56
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @procedures/mongo
|
|
2
2
|
|
|
3
|
+
## 0.52.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @procedures/client@0.52.0
|
|
8
|
+
- @procedures/collections@0.52.0
|
|
9
|
+
|
|
10
|
+
## 0.51.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 63e607a: **Breaking.** `MongoDocumentStorage.getChangesSince()` does not wait for a write of the same process. A change read goes next to the writes of a collection. So a burst of writes with a subscriber keeps its replies.
|
|
15
|
+
|
|
16
|
+
A write that has ended is in each later read, as before. A write that has not ended is in this read or in the next read. The mark of a read stops below each write in flight. A full answer takes its version after it lists the items, so the value of an id does not go back at a subscriber.
|
|
17
|
+
|
|
18
|
+
A full answer beside a write can hold that write above its version, and the next delta gives it again. A second time has the same value or a later value, so apply a change by its id. A full answer has one more `aggregate`, and two more `find` commands when the mark moved.
|
|
19
|
+
|
|
20
|
+
Before this change, a `getChangesSince()` in the same tick as a `set()` with no `await` waited for that write and had it. At this time, that read can leave the write to the next read. To migrate: find each `set()` with no `await` before `getChangesSince()` in the same tick. If the read must have the write, `await` the write before the read. A caller that follows a cursor changes nothing.
|
|
21
|
+
|
|
22
|
+
The contract of `StorageChanges` stays as it was: "A result gives each write at least one time." The contract states nothing about a write that has not resolved. This change moves no export. It changes when a write in flight comes in a read, so decision D13 counts it as a break.
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [0c3bfa3]
|
|
27
|
+
- @procedures/client@0.51.0
|
|
28
|
+
- @procedures/collections@0.51.0
|
|
29
|
+
|
|
3
30
|
## 0.50.0
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|