@procedures/mongo 0.48.2 → 0.49.1

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,5 +1,40 @@
1
1
  # @procedures/mongo
2
2
 
3
+ ## 0.49.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a11008a]
8
+ - @procedures/client@0.49.1
9
+ - @procedures/collections@0.49.1
10
+
11
+ ## 0.49.0
12
+
13
+ ### Breaking changes
14
+
15
+ - `watchDatabaseChanges()` (CLI-107) stops after 5 errors with one code at one resume token. It gives `onError` an error with `code`, `resumeToken` and `cause`. Before, it opened the stream again with no limit. To migrate, start a new watcher from `onError` when the watcher must go on. Start it without the `resumeToken` of the error, and read the changes of the gap again.
16
+
17
+ ### Minor Changes
18
+
19
+ - 7e9d55d: A change event over the BSON limit of 16 MiB no longer stops the change watchers in a loop (CLI-107).
20
+
21
+ - `watchDatabaseChanges()` and `watchStorageChanges()` end the pipeline of each stream with the stage `$changeStreamSplitLargeEvent`, and join the fragments of a large event into one event. The new option `splitLargeEvents` (default `true`) turns the stage off.
22
+ - A server before 6.0.9 does not know the stage (code 40324). The watchers then open the stream again without it.
23
+ - An error with one code at one resume token, 5 times in a row, does not go away. `watchDatabaseChanges()` then stops and gives `onError` an error that has the fields `code`, `resumeToken` and `cause`. `watchStorageChanges()` opens the stream again without the token, and the subscribers get a gap. A network error and an error that the driver resumes do not count.
24
+ - `watchStorageChanges()` no longer starts its backoff again when a stream opens again at the same token.
25
+ - The hints stream of `watchStorageChanges()` no longer loses the error of a failed read behind the close of the stream. So the bound of 5 errors counts it.
26
+ - The streams of `ViewMaterializer` log the error of a failed read, not the close that comes before it.
27
+
28
+ Breaking change: `watchDatabaseChanges()` no longer opens the stream again after each error. After 5 errors with one code at one resume token, it stops and gives the error to `onError`. To migrate, start a new watcher from `onError` when the watcher must go on. Do not give it the `resumeToken` of the error, because the same fault comes again at that token. Start it without a token, and read the changes of the gap again, as `watchStorageChanges()` does.
29
+
30
+ ### Patch Changes
31
+
32
+ - cad93ac: `MongoDocumentStorage.getChangesSince()` writes only the first counter of a collection, and one command reads the counter and the floor. A delta read with no change sends one command. Change reads of a collection go next to each other, within one twelfth of the pool (8 reads at the default pool of 100). A larger pool gives more reads at one time. A read and a write keep the order of their calls.
33
+ - Updated dependencies [bf0aa79]
34
+ - Updated dependencies [a1aedc5]
35
+ - @procedures/client@0.49.0
36
+ - @procedures/collections@0.49.0
37
+
3
38
  ## 0.48.2
4
39
 
5
40
  ### Patch Changes