@agoric/notifier 0.6.3-dev-aa68d8f.0 → 0.6.3-dev-651b051.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 +16 -16
- package/src/asyncIterableAdaptor.d.ts +1 -1
- package/src/stored-notifier.d.ts +8 -6
- package/src/stored-notifier.d.ts.map +1 -1
- package/src/stored-notifier.js +2 -1
- package/src/storesub.d.ts +17 -17
- package/src/storesub.js +1 -1
- package/src/subscribe.d.ts +9 -9
- package/src/types.d.ts +2 -2
- package/src/types.d.ts.map +1 -1
- package/src/types.js +2 -2
- package/tools/testSupports.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/notifier",
|
|
3
|
-
"version": "0.6.3-dev-
|
|
3
|
+
"version": "0.6.3-dev-651b051.0+651b051",
|
|
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/assert": "0.6.1-dev-
|
|
37
|
-
"@agoric/internal": "0.3.3-dev-
|
|
38
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
39
|
-
"@endo/far": "^1.1.
|
|
40
|
-
"@endo/marshal": "^1.
|
|
41
|
-
"@endo/patterns": "^1.
|
|
42
|
-
"@endo/promise-kit": "^1.1.
|
|
36
|
+
"@agoric/assert": "0.6.1-dev-651b051.0+651b051",
|
|
37
|
+
"@agoric/internal": "0.3.3-dev-651b051.0+651b051",
|
|
38
|
+
"@agoric/vat-data": "0.5.3-dev-651b051.0+651b051",
|
|
39
|
+
"@endo/far": "^1.1.2",
|
|
40
|
+
"@endo/marshal": "^1.5.0",
|
|
41
|
+
"@endo/patterns": "^1.4.0",
|
|
42
|
+
"@endo/promise-kit": "^1.1.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
46
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
47
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
48
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
49
|
-
"@endo/init": "^1.1.
|
|
50
|
-
"@endo/ses-ava": "^1.2.
|
|
45
|
+
"@agoric/kmarshal": "0.1.1-dev-651b051.0+651b051",
|
|
46
|
+
"@agoric/swing-store": "0.9.2-dev-651b051.0+651b051",
|
|
47
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-651b051.0+651b051",
|
|
48
|
+
"@agoric/swingset-vat": "0.32.3-dev-651b051.0+651b051",
|
|
49
|
+
"@endo/init": "^1.1.2",
|
|
50
|
+
"@endo/ses-ava": "^1.2.2",
|
|
51
51
|
"ava": "^5.3.0",
|
|
52
52
|
"c8": "^9.1.0"
|
|
53
53
|
},
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"timeout": "2m"
|
|
77
77
|
},
|
|
78
78
|
"typeCoverage": {
|
|
79
|
-
"atLeast":
|
|
79
|
+
"atLeast": 90.34
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "651b05136f236230c67c8b40224540c585beaa54"
|
|
82
82
|
}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
*/
|
|
36
36
|
export const makeAsyncIterableFromNotifier: <T_1>(topic: ERef<LatestTopic<T_1>>) => {
|
|
37
37
|
[Symbol.asyncIterator]: () => import("../src/types.js").ForkableAsyncIterableIterator<T_1, T_1>;
|
|
38
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
38
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
39
39
|
[Symbol.asyncIterator]: () => import("../src/types.js").ForkableAsyncIterableIterator<T_1, T_1>;
|
|
40
40
|
}>;
|
|
41
41
|
export function observeIterator<T_1>(asyncIteratorP: ERef<AsyncIterator<T_1, any, undefined>>, iterationObserver: Partial<IterationObserver<T_1>>): Promise<undefined>;
|
package/src/stored-notifier.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export function makeStoredNotifier<T>(notifier: ERef<Notifier<T>>, storageNode: ERef<StorageNode>, marshaller: ERef<{
|
|
1
|
+
export function makeStoredNotifier<T extends PassableCap>(notifier: ERef<Notifier<T>>, storageNode: ERef<StorageNode>, marshaller: ERef<{
|
|
2
2
|
/**
|
|
3
3
|
* @import {ERef} from '@endo/far';
|
|
4
4
|
* @import {BaseNotifier, Notifier} from './types.js';
|
|
5
5
|
* @import {Marshaller, StoredFacet, StorageNode, Unserializer} from '@agoric/internal/src/lib-chainStorage.js';
|
|
6
|
+
* @import {PassableCap, RemotableObject} from '@endo/pass-style';
|
|
6
7
|
*/
|
|
7
8
|
/**
|
|
8
9
|
* @template T
|
|
@@ -17,18 +18,19 @@ export function makeStoredNotifier<T>(notifier: ERef<Notifier<T>>, storageNode:
|
|
|
17
18
|
* the iteration themselves, or obtain information to subscribe to the stored
|
|
18
19
|
* data out-of-band.
|
|
19
20
|
*
|
|
20
|
-
* @template T
|
|
21
|
+
* @template {PassableCap} T
|
|
21
22
|
* @param {ERef<Notifier<T>>} notifier
|
|
22
23
|
* @param {ERef<StorageNode>} storageNode
|
|
23
24
|
* @param {ERef<Marshaller>} marshaller
|
|
24
25
|
* @returns {StoredNotifier<T>}
|
|
25
26
|
*/
|
|
26
|
-
toCapData: import("
|
|
27
|
-
fromCapData: import("
|
|
28
|
-
serialize: import("
|
|
29
|
-
unserialize: import("
|
|
27
|
+
toCapData: import("@endo/marshal").ToCapData<unknown>;
|
|
28
|
+
fromCapData: import("@endo/marshal").FromCapData<unknown>;
|
|
29
|
+
serialize: import("@endo/marshal").ToCapData<unknown>;
|
|
30
|
+
unserialize: import("@endo/marshal").FromCapData<unknown>;
|
|
30
31
|
}>): StoredNotifier<T>;
|
|
31
32
|
export type StoredNotifier<T> = BaseNotifier<T> & Omit<StoredFacet, "getStoreKey">;
|
|
33
|
+
import type { PassableCap } from '@endo/pass-style';
|
|
32
34
|
import type { Notifier } from './types.js';
|
|
33
35
|
import type { ERef } from '@endo/far';
|
|
34
36
|
import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stored-notifier.d.ts","sourceRoot":"","sources":["stored-notifier.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stored-notifier.d.ts","sourceRoot":"","sources":["stored-notifier.js"],"names":[],"mappings":"AAkCO,mCAFqB,CAAC;IAzB7B;;;;;OAKG;IAEH;;;OAGG;IAEH;;;;;;;;;;;;;;OAcG;;;;;KADU,cAAc,CAAC,CAAC,CAAC,CAiC7B;2BAjDyB,CAAC;iCALoB,kBAAkB;8BAFxB,YAAY;0BAD9B,WAAW;iCAEmC,0CAA0C;kCADtE,YAAY;iCACgB,0CAA0C"}
|
package/src/stored-notifier.js
CHANGED
|
@@ -9,6 +9,7 @@ import { observeNotifier } from './asyncIterableAdaptor.js';
|
|
|
9
9
|
* @import {ERef} from '@endo/far';
|
|
10
10
|
* @import {BaseNotifier, Notifier} from './types.js';
|
|
11
11
|
* @import {Marshaller, StoredFacet, StorageNode, Unserializer} from '@agoric/internal/src/lib-chainStorage.js';
|
|
12
|
+
* @import {PassableCap, RemotableObject} from '@endo/pass-style';
|
|
12
13
|
*/
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -25,7 +26,7 @@ import { observeNotifier } from './asyncIterableAdaptor.js';
|
|
|
25
26
|
* the iteration themselves, or obtain information to subscribe to the stored
|
|
26
27
|
* data out-of-band.
|
|
27
28
|
*
|
|
28
|
-
* @template T
|
|
29
|
+
* @template {PassableCap} T
|
|
29
30
|
* @param {ERef<Notifier<T>>} notifier
|
|
30
31
|
* @param {ERef<StorageNode>} storageNode
|
|
31
32
|
* @param {ERef<Marshaller>} marshaller
|
package/src/storesub.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
export function forEachPublicationRecord<T>(subscriber: Subscriber<T>, consumeValue: (v: T) => void): Promise<void>;
|
|
2
|
-
export function makeStoredSubscriber<T>(subscriber: Subscriber<T>, storageNode: ERef<StorageNode>, marshaller: ERef<{
|
|
3
|
-
toCapData: import("
|
|
4
|
-
fromCapData: import("
|
|
5
|
-
serialize: import("
|
|
6
|
-
unserialize: import("
|
|
2
|
+
export function makeStoredSubscriber<T extends import("@endo/marshal").PassableCap>(subscriber: Subscriber<T>, storageNode: ERef<StorageNode>, marshaller: ERef<{
|
|
3
|
+
toCapData: import("@endo/marshal").ToCapData<unknown>;
|
|
4
|
+
fromCapData: import("@endo/marshal").FromCapData<unknown>;
|
|
5
|
+
serialize: import("@endo/marshal").ToCapData<unknown>;
|
|
6
|
+
unserialize: import("@endo/marshal").FromCapData<unknown>;
|
|
7
7
|
}>): StoredSubscriber<T>;
|
|
8
8
|
export function makeStoredSubscription<T>(subscription: Subscription<T>, storageNode?: ERef<StorageNode> | undefined, marshaller?: ERef<{
|
|
9
|
-
toCapData: import("
|
|
10
|
-
fromCapData: import("
|
|
11
|
-
serialize: import("
|
|
12
|
-
unserialize: import("
|
|
9
|
+
toCapData: import("@endo/marshal").ToCapData<unknown>;
|
|
10
|
+
fromCapData: import("@endo/marshal").FromCapData<unknown>;
|
|
11
|
+
serialize: import("@endo/marshal").ToCapData<unknown>;
|
|
12
|
+
unserialize: import("@endo/marshal").FromCapData<unknown>;
|
|
13
13
|
}> | undefined): StoredSubscription<T>;
|
|
14
14
|
export function makeStoredPublisherKit<T = unknown>(storageNode?: ERef<StorageNode> | undefined, marshaller?: ERef<{
|
|
15
|
-
toCapData: import("
|
|
16
|
-
fromCapData: import("
|
|
17
|
-
serialize: import("
|
|
18
|
-
unserialize: import("
|
|
15
|
+
toCapData: import("@endo/marshal").ToCapData<unknown>;
|
|
16
|
+
fromCapData: import("@endo/marshal").FromCapData<unknown>;
|
|
17
|
+
serialize: import("@endo/marshal").ToCapData<unknown>;
|
|
18
|
+
unserialize: import("@endo/marshal").FromCapData<unknown>;
|
|
19
19
|
}> | undefined, childPath?: string | undefined): StoredPublisherKit<T>;
|
|
20
20
|
export function makeStoredPublishKit<T = unknown>(storageNode: ERef<StorageNode>, marshaller: ERef<{
|
|
21
|
-
toCapData: import("
|
|
22
|
-
fromCapData: import("
|
|
23
|
-
serialize: import("
|
|
24
|
-
unserialize: import("
|
|
21
|
+
toCapData: import("@endo/marshal").ToCapData<unknown>;
|
|
22
|
+
fromCapData: import("@endo/marshal").FromCapData<unknown>;
|
|
23
|
+
serialize: import("@endo/marshal").ToCapData<unknown>;
|
|
24
|
+
unserialize: import("@endo/marshal").FromCapData<unknown>;
|
|
25
25
|
}>): StoredPublishKit<T>;
|
|
26
26
|
export type StoredPublisherKit<T> = {
|
|
27
27
|
subscriber: StoredSubscription<T>;
|
package/src/storesub.js
CHANGED
|
@@ -44,7 +44,7 @@ export const forEachPublicationRecord = async (subscriber, consumeValue) => {
|
|
|
44
44
|
* the iteration themselves, or obtain information to subscribe to the stored
|
|
45
45
|
* data out-of-band.
|
|
46
46
|
*
|
|
47
|
-
* @template T
|
|
47
|
+
* @template {import('@endo/marshal').PassableCap} T
|
|
48
48
|
* @param {Subscriber<T>} subscriber
|
|
49
49
|
* @param {ERef<StorageNode>} storageNode
|
|
50
50
|
* @param {ERef<ReturnType<typeof makeMarshal>>} marshaller
|
package/src/subscribe.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
export function subscribe<T>(itP: ERef<AsyncIterableIterator<T>>): {
|
|
2
2
|
[Symbol.asyncIterator]: () => {
|
|
3
|
-
[Symbol.asyncIterator]: () => any & import("@endo/eventual-send").RemotableBrand<{}, any>;
|
|
3
|
+
[Symbol.asyncIterator]: () => any & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, any>;
|
|
4
4
|
next: () => Promise<IteratorResult<T, any>>;
|
|
5
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
6
|
-
[Symbol.asyncIterator]: () => any & import("@endo/eventual-send").RemotableBrand<{}, any>;
|
|
5
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
6
|
+
[Symbol.asyncIterator]: () => any & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, any>;
|
|
7
7
|
next: () => Promise<IteratorResult<T, any>>;
|
|
8
8
|
}>;
|
|
9
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
9
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
10
10
|
[Symbol.asyncIterator]: () => {
|
|
11
|
-
[Symbol.asyncIterator]: () => any & import("@endo/eventual-send").RemotableBrand<{}, any>;
|
|
11
|
+
[Symbol.asyncIterator]: () => any & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, any>;
|
|
12
12
|
next: () => Promise<IteratorResult<T, any>>;
|
|
13
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
14
|
-
[Symbol.asyncIterator]: () => any & import("@endo/eventual-send").RemotableBrand<{}, any>;
|
|
13
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
14
|
+
[Symbol.asyncIterator]: () => any & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, any>;
|
|
15
15
|
next: () => Promise<IteratorResult<T, any>>;
|
|
16
16
|
}>;
|
|
17
17
|
}>;
|
|
18
18
|
export function subscribeEach<T>(topic: ERef<EachTopic<T>>): {
|
|
19
19
|
[Symbol.asyncIterator]: () => ForkableAsyncIterableIterator<T, T>;
|
|
20
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
20
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
21
21
|
[Symbol.asyncIterator]: () => ForkableAsyncIterableIterator<T, T>;
|
|
22
22
|
}>;
|
|
23
23
|
export function subscribeLatest<T>(topic: ERef<LatestTopic<T>>): {
|
|
24
24
|
[Symbol.asyncIterator]: () => ForkableAsyncIterableIterator<T, T>;
|
|
25
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
25
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
26
26
|
[Symbol.asyncIterator]: () => ForkableAsyncIterableIterator<T, T>;
|
|
27
27
|
}>;
|
|
28
28
|
import type { ERef } from '@endo/far';
|
package/src/types.d.ts
CHANGED
|
@@ -172,7 +172,7 @@ export type NotifierInternals<T> = BaseNotifier<T>;
|
|
|
172
172
|
/**
|
|
173
173
|
* an object that can be used to get the current state or updates
|
|
174
174
|
*/
|
|
175
|
-
export type Notifier<T> = NotifierInternals<T> & ForkableAsyncIterable<T, T> & SharableNotifier<T>;
|
|
175
|
+
export type Notifier<T> = import("@endo/marshal").RemotableObject & NotifierInternals<T> & ForkableAsyncIterable<T, T> & SharableNotifier<T>;
|
|
176
176
|
export type SharableNotifier<T> = {
|
|
177
177
|
/**
|
|
178
178
|
* Used to replicate the multicast values at other sites. To manually create a
|
|
@@ -193,7 +193,7 @@ export type NotifierRecord<T> = {
|
|
|
193
193
|
/**
|
|
194
194
|
* the (closely-held) notifier producer
|
|
195
195
|
*/
|
|
196
|
-
updater: IterationObserver<T>;
|
|
196
|
+
updater: import("@endo/marshal").RemotableObject & IterationObserver<T>;
|
|
197
197
|
/**
|
|
198
198
|
* the (widely-held) notifier consumer
|
|
199
199
|
*/
|
package/src/types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,IAFV,OAAO,eAAe,EAAE,eAAe,GAAG,iBAAiB,CAElD,CAAC,AAFmD,CAAC,GAC1E,qBAAyB,CACJ,CAAC,AADK,EACN,CAAC,AADQ,CAAC,GAC/B,gBAAoB,CAAC,CAAC,CAAC;6BAOsB,CAAC;;;;;;;;;;;kCAAjC,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;;;;;2BAe1B,CAAC;;;;aADV,OAAO,eAAe,EAAE,eAAe,GAAG,iBAAiB,CAClD,CAAC,AADmD,CAAC;;;;cAC9D,QAAQ,CAAC,CAAC,CAAC;;;;;yBAQC,CAAC,IADd,iBAAiB,CACJ,CAAC,AADK,CAAC,GAAG,SAAS,CACnB,CAAC,AADoB,CAAC,GAC/C,oBAAwB,CAAC,CAAC,CAAC;iCAOU,CAAC;;;;;;;;;;;sCAAzB,MAAM,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;;+BAed,CAAC;iBADd,iBAAiB,CACJ,CAAC,AADK,CAAC;kBACpB,YAAY,CAAC,CAAC,CAAC;;+BAS8C,CAAC;iBAA1D,MAAM,OAAO,CAAC,WAAW,GAAG;QAAE,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,CAAA;KAAE,CAAC;;;6BAOxD,CAAC;kCAvSmB,0CAA0C;iCAA1C,0CAA0C"}
|
package/src/types.js
CHANGED
|
@@ -226,7 +226,7 @@ export {};
|
|
|
226
226
|
|
|
227
227
|
/**
|
|
228
228
|
* @template T
|
|
229
|
-
* @typedef {NotifierInternals<T> &
|
|
229
|
+
* @typedef {import('@endo/marshal').RemotableObject & NotifierInternals<T> &
|
|
230
230
|
* ForkableAsyncIterable<T, T> &
|
|
231
231
|
* SharableNotifier<T>
|
|
232
232
|
* } Notifier an object that can be used to get the current state or updates
|
|
@@ -249,7 +249,7 @@ export {};
|
|
|
249
249
|
/**
|
|
250
250
|
* @template T
|
|
251
251
|
* @typedef {object} NotifierRecord the produced notifier/updater pair
|
|
252
|
-
* @property {IterationObserver<T>} updater the (closely-held) notifier producer
|
|
252
|
+
* @property {import('@endo/marshal').RemotableObject & IterationObserver<T>} updater the (closely-held) notifier producer
|
|
253
253
|
* @property {Notifier<T>} notifier the (widely-held) notifier consumer
|
|
254
254
|
*/
|
|
255
255
|
|
package/tools/testSupports.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ export function makeFakeStorage(path: string, publication?: IterationObserver<un
|
|
|
3
3
|
countSetValueCalls: () => number;
|
|
4
4
|
};
|
|
5
5
|
export function makeFakeMarshaller(): {
|
|
6
|
-
toCapData: import("
|
|
7
|
-
fromCapData: import("
|
|
8
|
-
serialize: import("
|
|
9
|
-
unserialize: import("
|
|
6
|
+
toCapData: import("@endo/marshal").ToCapData<any>;
|
|
7
|
+
fromCapData: import("@endo/marshal").FromCapData<any>;
|
|
8
|
+
serialize: import("@endo/marshal").ToCapData<any>;
|
|
9
|
+
unserialize: import("@endo/marshal").FromCapData<any>;
|
|
10
10
|
};
|
|
11
11
|
import type { IterationObserver } from '../src/types.js';
|
|
12
12
|
import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
|