@procedures/store 0.3.0 → 0.4.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 CHANGED
@@ -1,5 +1,30 @@
1
1
  # @procedures/store
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 0abf2ec: The new test-only entry `@procedures/collections/testing` holds one contract suite for `CollectionStorage`: `describeCollectionStorageContract(name, { create, createWithMaxTombstones, copies, nullValues }, { describe, it })`. It tests the reads, the writes, the batches, the order of the entries, the JSON values, `getChangesSince` and its versions, `flush`, `getMetadata`, `close` and the errors. A random sequence of writes runs against a `Map`. The suite imports no test framework, so the runtime entries never load vitest. `InMemoryStorage`, `SqliteStorage`, `ApiStorage` and `HybridStorage` run it.
8
+
9
+ The suite found two differences, and the contract fixes them:
10
+
11
+ - An error of a `find` predicate of `InMemoryStorage` threw at once. Each method of a storage gives a promise, so each method of `InMemoryStorage` is now `async`, and an error is a rejected promise.
12
+ - `getMetadata().size` of `HybridStorage` was the size of the local copy, which `remote-only` keeps empty. It is now the result of `size()`. The new `stats.localSize` gives the size of the local copy.
13
+ - Updated dependencies [d919678]
14
+ - Updated dependencies [057d69a]
15
+ - Updated dependencies [b2a1a1e]
16
+ - Updated dependencies [057d69a]
17
+ - Updated dependencies [057d69a]
18
+ - Updated dependencies [057d69a]
19
+ - Updated dependencies [057d69a]
20
+ - Updated dependencies [057d69a]
21
+ - Updated dependencies [afd6a19]
22
+ - Updated dependencies [057d69a]
23
+ - Updated dependencies [0abf2ec]
24
+ - Updated dependencies [4e751da]
25
+ - @procedures/client@0.4.0
26
+ - @procedures/collections@0.4.0
27
+
3
28
  ## 0.3.0
4
29
 
5
30
  ### Minor Changes