@agoric/notifier 0.6.3-dev-14b75b9.0.14b75b9 → 0.6.3-dev-64cee5a.0.64cee5a

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/notifier",
3
- "version": "0.6.3-dev-14b75b9.0.14b75b9",
3
+ "version": "0.6.3-dev-64cee5a.0.64cee5a",
4
4
  "description": "Notifier allows services to update clients about state changes using a stream of promises",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -33,8 +33,8 @@
33
33
  },
34
34
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
35
35
  "dependencies": {
36
- "@agoric/internal": "0.3.3-dev-14b75b9.0.14b75b9",
37
- "@agoric/vat-data": "0.5.3-dev-14b75b9.0.14b75b9",
36
+ "@agoric/internal": "0.3.3-dev-64cee5a.0.64cee5a",
37
+ "@agoric/vat-data": "0.5.3-dev-64cee5a.0.64cee5a",
38
38
  "@endo/errors": "^1.2.13",
39
39
  "@endo/far": "^1.1.14",
40
40
  "@endo/marshal": "^1.8.0",
@@ -42,10 +42,10 @@
42
42
  "@endo/promise-kit": "^1.1.13"
43
43
  },
44
44
  "devDependencies": {
45
- "@agoric/kmarshal": "0.1.1-dev-14b75b9.0.14b75b9",
46
- "@agoric/swing-store": "0.9.2-dev-14b75b9.0.14b75b9",
47
- "@agoric/swingset-liveslots": "0.10.3-dev-14b75b9.0.14b75b9",
48
- "@agoric/swingset-vat": "0.32.3-dev-14b75b9.0.14b75b9",
45
+ "@agoric/kmarshal": "0.1.1-dev-64cee5a.0.64cee5a",
46
+ "@agoric/swing-store": "0.9.2-dev-64cee5a.0.64cee5a",
47
+ "@agoric/swingset-liveslots": "0.10.3-dev-64cee5a.0.64cee5a",
48
+ "@agoric/swingset-vat": "0.32.3-dev-64cee5a.0.64cee5a",
49
49
  "@endo/init": "^1.1.12",
50
50
  "@endo/ses-ava": "^1.3.2",
51
51
  "ava": "^5.3.0",
@@ -78,5 +78,5 @@
78
78
  "typeCoverage": {
79
79
  "atLeast": 90.92
80
80
  },
81
- "gitHead": "14b75b95620bd25b9a0f8f4ace551bb44b1f52de"
81
+ "gitHead": "64cee5ae5d1a3488a30ce042d6f3f561ac2a6e82"
82
82
  }
@@ -26,7 +26,7 @@ export const IterableLatestTopicI: import("@endo/patterns").InterfaceGuard<{
26
26
  [Symbol.asyncIterator]: import("@endo/patterns").MethodGuard;
27
27
  }>;
28
28
  export function makePublishKit<T>(): PublishKit<T>;
29
- export function prepareDurablePublishKit(baggage: import("@agoric/swingset-liveslots").Baggage, kindName: string): <T>(options?: Parameters<typeof initDurablePublishKitState>[0]) => PublishKit<T>;
29
+ export function prepareDurablePublishKit(baggage: Baggage, kindName: string): <T>(options?: Parameters<typeof initDurablePublishKitState>[0]) => PublishKit<T>;
30
30
  export const SubscriberShape: import("@endo/patterns").Matcher;
31
31
  export type DurablePublishKitEphemeralKey = Publisher<any>;
32
32
  export type DurablePublishKitEphemeralData = {
@@ -46,6 +46,7 @@ export type DurablePublishKitEphemeralData = {
46
46
  tailR: ((value: any) => void) | undefined;
47
47
  };
48
48
  import type { PublishKit } from '../src/types.js';
49
+ import type { Baggage } from '@agoric/swingset-liveslots';
49
50
  /**
50
51
  * @param {object} [options]
51
52
  * @param {DurablePublishKitValueDurability & 'mandatory'} [options.valueDurability]
@@ -1 +1 @@
1
- {"version":3,"file":"publish-kit.d.ts","sourceRoot":"","sources":["publish-kit.js"],"names":[],"mappings":"AAuBA;;;;GAIG;AAGH,gEAA6D;AAC7D;;;GAGG;;;;;AAMH;;;;GAOE;AAEF;;;GAMG;AAEH;;;GAMG;AA+CI,+BA2CQ,CAAC,KA7CH,WAAW,CAAC,CAAC,CA4FzB;AA8MM,kDAJI,OAAO,4BAA4B,EAAE,OAAO,YAC5C,MAAM,GACJ,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC,CAwE5F;AAGD,+DAAyD;4CAhP3C,UAAU,GAAC,CAAC;;;;;;cASZ,OAAO,CAAC,GAAC,CAAC,GAAG,SAAS;;;;WAEtB,OAAO,CAAC,GAAC,CAAC;;;;;WACV,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS;;gCAjPsI,iBAAiB;AA2MvM;;;;GAIG;AACH,sDAHG;IAAiE,eAAe;CAChF,GAAU,sBAAsB,CAmBlC;+BAjOqL,iBAAiB;4CAAjB,iBAAiB"}
1
+ {"version":3,"file":"publish-kit.d.ts","sourceRoot":"","sources":["publish-kit.js"],"names":[],"mappings":"AAwBA;;;;GAIG;AAGH,gEAA6D;AAC7D;;;GAGG;;;;;AAMH;;;;GAOE;AAEF;;;GAMG;AAEH;;;GAMG;AA+CI,+BA2CQ,CAAC,KA7CH,WAAW,CAAC,CAAC,CA4FzB;AA8MM,kDAJI,OAAO,YACP,MAAM,GACJ,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC,CAwE5F;AAGD,+DAAyD;4CAhP3C,UAAU,GAAC,CAAC;;;;;;cASZ,OAAO,CAAC,GAAC,CAAC,GAAG,SAAS;;;;WAEtB,OAAO,CAAC,GAAC,CAAC;;;;;WACV,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS;;gCAlPsI,iBAAiB;6BAC7K,4BAA4B;AA2MtD;;;;GAIG;AACH,sDAHG;IAAiE,eAAe;CAChF,GAAU,sBAAsB,CAmBlC;+BAlOqL,iBAAiB;4CAAjB,iBAAiB"}
@@ -9,6 +9,7 @@ import { canBeDurable, prepareExoClassKit } from '@agoric/vat-data';
9
9
  /**
10
10
  * @import {ERef} from '@endo/far';
11
11
  * @import {DurablePublishKitState, DurablePublishKitValueDurability, LatestTopic, Notifier, NotifierRecord, PublicationRecord, Publisher, PublishKit, Subscriber, UpdateRecord} from '../src/types.js';
12
+ * @import {Baggage} from '@agoric/swingset-liveslots';
12
13
  */
13
14
 
14
15
  const sink = () => {};
@@ -400,7 +401,7 @@ const advanceDurablePublishKit = (context, value, targetStatus = 'live') => {
400
401
  };
401
402
 
402
403
  /**
403
- * @param {import('@agoric/swingset-liveslots').Baggage} baggage
404
+ * @param {Baggage} baggage
404
405
  * @param {string} kindName
405
406
  * @returns {<T>(options?: Parameters<typeof initDurablePublishKitState>[0]) => PublishKit<T>}
406
407
  */
package/src/storesub.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export function forEachPublicationRecord<T>(subscriber: Subscriber<T>, consumeValue: (v: T) => void): Promise<void>;
2
- export function makeStoredSubscriber<T extends import("@endo/marshal").PassableCap>(subscriber: Subscriber<T>, storageNode: ERemote<StorageNode>, marshaller: ERemote<EMarshaller>): StoredSubscriber<T>;
2
+ export function makeStoredSubscriber<T extends PassableCap>(subscriber: Subscriber<T>, storageNode: ERemote<StorageNode>, marshaller: ERemote<EMarshaller>): StoredSubscriber<T>;
3
3
  export function makeStoredSubscription<T>(subscription: Subscription<T>, storageNode?: ERemote<StorageNode> | null, marshaller?: ERemote<EMarshaller>): StoredSubscription<T>;
4
4
  export function makeStoredPublisherKit<T = unknown>(storageNode?: ERemote<StorageNode> | null, marshaller?: ERemote<EMarshaller>, childPath?: string): StoredPublisherKit<T>;
5
5
  export function makeStoredPublishKit<T = unknown>(storageNode: ERemote<StorageNode>, marshaller: ERemote<EMarshaller>): StoredPublishKit<T>;
@@ -8,6 +8,7 @@ export type StoredPublisherKit<T> = {
8
8
  publisher: IterationObserver<T>;
9
9
  };
10
10
  import type { Subscriber } from '../src/types.js';
11
+ import type { PassableCap } from '@endo/marshal';
11
12
  import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
12
13
  import type { ERemote } from '@agoric/internal';
13
14
  import type { EMarshaller } from '@agoric/internal/src/marshal/wrap-marshaller.js';
@@ -1 +1 @@
1
- {"version":3,"file":"storesub.d.ts","sourceRoot":"","sources":["storesub.js"],"names":[],"mappings":"AAyBO,yCAJM,CAAC,cACH,WAAW,CAAC,CAAC,gBACb,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,iBAcxB;AAiBM,qCAN4C,CAAC,SAAvC,OAAQ,eAAe,EAAE,WAAY,cACvC,WAAW,CAAC,CAAC,eACb,QAAQ,WAAW,CAAC,cACpB,QAAQ,WAAW,CAAC,GAClB,iBAAiB,CAAC,CAAC,CA6B/B;AAkBM,uCANM,CAAC,gBACH,aAAa,CAAC,CAAC,gBACf,QAAQ,WAAW,CAAC,GAAG,IAAI,eAC3B,QAAQ,WAAW,CAAC,GAClB,mBAAmB,CAAC,CAAC,CAqEjC;AAoBM,uCANO,CAAC,0BACJ,QAAQ,WAAW,CAAC,GAAG,IAAI,eAC3B,QAAQ,WAAW,CAAC,cACpB,MAAM,GACJ,kBAAkB,CAAC,CAAC,CAAC,CAoBjC;AAgBM,qCALO,CAAC,yBACJ,QAAQ,WAAW,CAAC,cACpB,QAAQ,WAAW,CAAC,GAClB,iBAAiB,CAAC,CAAC,CAU/B;+BAzDY,CAAC;gBAEA,mBAAmB,CAAC,CAAC;eACrB,kBAAkB,CAAC,CAAC;;gCAlKmL,iBAAiB;iCAC1L,0CAA0C;6BAH5D,kBAAkB;iCAId,iDAAiD;sCAFsI,iBAAiB;kCAAjB,iBAAiB;wCAAjB,iBAAiB;sCAAjB,iBAAiB;uCAAjB,iBAAiB"}
1
+ {"version":3,"file":"storesub.d.ts","sourceRoot":"","sources":["storesub.js"],"names":[],"mappings":"AA0BO,yCAJM,CAAC,cACH,WAAW,CAAC,CAAC,gBACb,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,iBAcxB;AAiBM,qCANoB,CAAC,SAAf,WAAa,cACf,WAAW,CAAC,CAAC,eACb,QAAQ,WAAW,CAAC,cACpB,QAAQ,WAAW,CAAC,GAClB,iBAAiB,CAAC,CAAC,CA6B/B;AAkBM,uCANM,CAAC,gBACH,aAAa,CAAC,CAAC,gBACf,QAAQ,WAAW,CAAC,GAAG,IAAI,eAC3B,QAAQ,WAAW,CAAC,GAClB,mBAAmB,CAAC,CAAC,CAqEjC;AAoBM,uCANO,CAAC,0BACJ,QAAQ,WAAW,CAAC,GAAG,IAAI,eAC3B,QAAQ,WAAW,CAAC,cACpB,MAAM,GACJ,kBAAkB,CAAC,CAAC,CAAC,CAoBjC;AAgBM,qCALO,CAAC,yBACJ,QAAQ,WAAW,CAAC,cACpB,QAAQ,WAAW,CAAC,GAClB,iBAAiB,CAAC,CAAC,CAU/B;+BAzDY,CAAC;gBAEA,mBAAmB,CAAC,CAAC;eACrB,kBAAkB,CAAC,CAAC;;gCAnKmL,iBAAiB;iCAGxM,eAAe;iCAFD,0CAA0C;6BAH5D,kBAAkB;iCAId,iDAAiD;sCAFsI,iBAAiB;kCAAjB,iBAAiB;wCAAjB,iBAAiB;sCAAjB,iBAAiB;uCAAjB,iBAAiB"}
package/src/storesub.js CHANGED
@@ -13,6 +13,7 @@ import { subscribeEach } from './subscribe.js';
13
13
  * @import {IterationObserver, LatestTopic, Notifier, NotifierRecord, PublicationRecord, Publisher, PublishKit, StoredPublishKit, StoredSubscription, StoredSubscriber, Subscriber, Subscription, UpdateRecord} from '../src/types.js';
14
14
  * @import {StorageNode, Unserializer} from '@agoric/internal/src/lib-chainStorage.js';
15
15
  * @import {EMarshaller} from '@agoric/internal/src/marshal/wrap-marshaller.js';
16
+ * @import {PassableCap} from '@endo/marshal';
16
17
  */
17
18
 
18
19
  /**
@@ -46,7 +47,7 @@ export const forEachPublicationRecord = async (subscriber, consumeValue) => {
46
47
  * the iteration themselves, or obtain information to subscribe to the stored
47
48
  * data out-of-band.
48
49
  *
49
- * @template {import('@endo/marshal').PassableCap} T
50
+ * @template {PassableCap} T
50
51
  * @param {Subscriber<T>} subscriber
51
52
  * @param {ERemote<StorageNode>} storageNode
52
53
  * @param {ERemote<EMarshaller>} marshaller