@agoric/cache 0.3.3-dev-d7e3856.0.d7e3856 → 0.3.3-dev-cbcb2b4.0.cbcb2b4

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.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. package/src/store.js +6 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/cache",
3
- "version": "0.3.3-dev-d7e3856.0.d7e3856",
3
+ "version": "0.3.3-dev-cbcb2b4.0.cbcb2b4",
4
4
  "description": "Agoric's simple cache interface",
5
5
  "type": "module",
6
6
  "main": "src/main.js",
@@ -19,15 +19,15 @@
19
19
  "author": "Agoric",
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@agoric/internal": "0.3.3-dev-d7e3856.0.d7e3856",
23
- "@agoric/notifier": "0.6.3-dev-d7e3856.0.d7e3856",
24
- "@agoric/store": "0.9.3-dev-d7e3856.0.d7e3856",
25
- "@agoric/vat-data": "0.5.3-dev-d7e3856.0.d7e3856",
22
+ "@agoric/internal": "0.3.3-dev-cbcb2b4.0.cbcb2b4",
23
+ "@agoric/notifier": "0.6.3-dev-cbcb2b4.0.cbcb2b4",
24
+ "@agoric/store": "0.9.3-dev-cbcb2b4.0.cbcb2b4",
25
+ "@agoric/vat-data": "0.5.3-dev-cbcb2b4.0.cbcb2b4",
26
26
  "@endo/far": "^1.1.14",
27
27
  "@endo/marshal": "^1.8.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@agoric/zoe": "0.26.3-dev-d7e3856.0.d7e3856",
30
+ "@agoric/zoe": "0.26.3-dev-cbcb2b4.0.cbcb2b4",
31
31
  "ava": "^5.3.0",
32
32
  "c8": "^10.1.3"
33
33
  },
@@ -49,5 +49,5 @@
49
49
  "typeCoverage": {
50
50
  "atLeast": 94.13
51
51
  },
52
- "gitHead": "d7e38564101d310f8646d4dca377f518a75de579"
52
+ "gitHead": "cbcb2b45335dbc3e56238b85021ded728d402003"
53
53
  }
package/src/store.js CHANGED
@@ -6,6 +6,7 @@ import { untilTrue } from '@agoric/internal';
6
6
  import { withGroundState, makeState } from './state.js';
7
7
 
8
8
  /**
9
+ * @import {ERemote} from '@agoric/internal'
9
10
  * @import {Passable, RemotableObject} from '@endo/pass-style';
10
11
  * @import {Key, Pattern} from '@endo/patterns';
11
12
  */
@@ -112,7 +113,7 @@ const applyCacheTransaction = async (
112
113
 
113
114
  /**
114
115
  * @param {MapStore<string, import('./state.js').State>} stateStore
115
- * @param {ERef<Marshaller>} marshaller
116
+ * @param {ERemote<Marshaller>} marshaller
116
117
  * @returns {Promise<string>}
117
118
  */
118
119
  const stringifyStateStore = async (stateStore, marshaller) => {
@@ -176,8 +177,8 @@ export const makeScalarStoreCoordinator = (
176
177
  * Don't write any marshalled value that's older than what's already pushed
177
178
  *
178
179
  * @param {MapStore<string, import('./state.js').State>} stateStore
179
- * @param {ERef<Marshaller>} marshaller
180
- * @param {ERef<StorageNode>} storageNode
180
+ * @param {ERemote<Marshaller>} marshaller
181
+ * @param {ERemote<StorageNode>} storageNode
181
182
  * @returns {<T>(storedValue: T) => Promise<T>}
182
183
  */
183
184
  const makeLastWinsUpdater = (stateStore, marshaller, storageNode) => {
@@ -205,8 +206,8 @@ const makeLastWinsUpdater = (stateStore, marshaller, storageNode) => {
205
206
  * Make a cache coordinator backed by a MapStore. This coordinator doesn't
206
207
  * currently enforce any cache eviction, but that would be a useful feature.
207
208
  *
208
- * @param {ERef<StorageNode>} storageNode
209
- * @param {ERef<Marshaller>} marshaller
209
+ * @param {ERemote<StorageNode>} storageNode
210
+ * @param {ERemote<Marshaller>} marshaller
210
211
  */
211
212
  export const makeChainStorageCoordinator = (storageNode, marshaller) => {
212
213
  const stateStore = makeScalarBigMapStore('stateKey');