@agoric/notifier 0.7.0-u18a.0 → 0.7.0-u19.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/package.json +15 -15
- package/src/publish-kit.d.ts +11 -13
- package/src/publish-kit.d.ts.map +1 -1
- package/src/publish-kit.js +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/notifier",
|
|
3
|
-
"version": "0.7.0-
|
|
3
|
+
"version": "0.7.0-u19.0",
|
|
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,21 +33,21 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/internal": "^0.4.0-
|
|
37
|
-
"@agoric/vat-data": "^0.5.3-
|
|
38
|
-
"@endo/errors": "^1.2.
|
|
39
|
-
"@endo/far": "^1.1.
|
|
40
|
-
"@endo/marshal": "^1.6.
|
|
41
|
-
"@endo/patterns": "^1.4.
|
|
42
|
-
"@endo/promise-kit": "^1.1.
|
|
36
|
+
"@agoric/internal": "^0.4.0-u19.0",
|
|
37
|
+
"@agoric/vat-data": "^0.5.3-u19.0",
|
|
38
|
+
"@endo/errors": "^1.2.9",
|
|
39
|
+
"@endo/far": "^1.1.10",
|
|
40
|
+
"@endo/marshal": "^1.6.3",
|
|
41
|
+
"@endo/patterns": "^1.4.8",
|
|
42
|
+
"@endo/promise-kit": "^1.1.9"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@agoric/kmarshal": "^0.1.1-
|
|
46
|
-
"@agoric/swing-store": "^0.10.0-
|
|
47
|
-
"@agoric/swingset-liveslots": "^0.10.3-
|
|
48
|
-
"@agoric/swingset-vat": "^0.33.0-
|
|
49
|
-
"@endo/init": "^1.1.
|
|
50
|
-
"@endo/ses-ava": "^1.2.
|
|
45
|
+
"@agoric/kmarshal": "^0.1.1-u19.0",
|
|
46
|
+
"@agoric/swing-store": "^0.10.0-u19.0",
|
|
47
|
+
"@agoric/swingset-liveslots": "^0.10.3-u19.0",
|
|
48
|
+
"@agoric/swingset-vat": "^0.33.0-u19.0",
|
|
49
|
+
"@endo/init": "^1.1.8",
|
|
50
|
+
"@endo/ses-ava": "^1.2.9",
|
|
51
51
|
"ava": "^5.3.0",
|
|
52
52
|
"c8": "^10.1.2"
|
|
53
53
|
},
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"typeCoverage": {
|
|
79
79
|
"atLeast": 90.77
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "29e9704c375a06bb617027093b30d2d25faa6471"
|
|
82
82
|
}
|
package/src/publish-kit.d.ts
CHANGED
|
@@ -26,19 +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): (options?:
|
|
30
|
-
valueDurability?: "mandatory" | undefined;
|
|
31
|
-
} | undefined) => import("@endo/exo").GuardedKit<{
|
|
32
|
-
publisher: {
|
|
33
|
-
publish(value: any): void;
|
|
34
|
-
finish(finalValue: any): void;
|
|
35
|
-
fail(reason: any): void;
|
|
36
|
-
};
|
|
37
|
-
subscriber: {
|
|
38
|
-
subscribeAfter(publishCount?: bigint): Promise<any>;
|
|
39
|
-
getUpdateSince(updateCount: any): any;
|
|
40
|
-
};
|
|
41
|
-
}>;
|
|
29
|
+
export function prepareDurablePublishKit(baggage: import("@agoric/swingset-liveslots").Baggage, kindName: string): <T>(options?: Parameters<typeof initDurablePublishKitState>[0]) => PublishKit<T>;
|
|
42
30
|
export const SubscriberShape: import("@endo/patterns").Matcher;
|
|
43
31
|
export type DurablePublishKitEphemeralKey = Publisher<any>;
|
|
44
32
|
export type DurablePublishKitEphemeralData = {
|
|
@@ -58,5 +46,15 @@ export type DurablePublishKitEphemeralData = {
|
|
|
58
46
|
tailR: ((value: any) => void) | undefined;
|
|
59
47
|
};
|
|
60
48
|
import type { PublishKit } from '../src/types.js';
|
|
49
|
+
/**
|
|
50
|
+
* @param {object} [options]
|
|
51
|
+
* @param {DurablePublishKitValueDurability & 'mandatory'} [options.valueDurability]
|
|
52
|
+
* @returns {DurablePublishKitState}
|
|
53
|
+
*/
|
|
54
|
+
declare function initDurablePublishKitState(options?: {
|
|
55
|
+
valueDurability?: "mandatory" | undefined;
|
|
56
|
+
}): DurablePublishKitState;
|
|
61
57
|
import type { Publisher } from '../src/types.js';
|
|
58
|
+
import type { DurablePublishKitState } from '../src/types.js';
|
|
59
|
+
export {};
|
|
62
60
|
//# sourceMappingURL=publish-kit.d.ts.map
|
package/src/publish-kit.d.ts.map
CHANGED
|
@@ -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;
|
|
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"}
|
package/src/publish-kit.js
CHANGED
|
@@ -402,15 +402,13 @@ const advanceDurablePublishKit = (context, value, targetStatus = 'live') => {
|
|
|
402
402
|
/**
|
|
403
403
|
* @param {import('@agoric/swingset-liveslots').Baggage} baggage
|
|
404
404
|
* @param {string} kindName
|
|
405
|
+
* @returns {<T>(options?: Parameters<typeof initDurablePublishKitState>[0]) => PublishKit<T>}
|
|
405
406
|
*/
|
|
406
407
|
export const prepareDurablePublishKit = (baggage, kindName) => {
|
|
407
408
|
// TODO: Once we unify with makePublishKit, we will use a Zone-compatible weak
|
|
408
409
|
// map for memoization.
|
|
409
410
|
const makeMemoizedUpdateRecord = makeUpdateRecordFromPublicationRecord;
|
|
410
411
|
|
|
411
|
-
/**
|
|
412
|
-
* @returns {() => PublishKit<*>}
|
|
413
|
-
*/
|
|
414
412
|
return prepareExoClassKit(
|
|
415
413
|
baggage,
|
|
416
414
|
kindName,
|