@resolveio/server-lib 20.9.4 → 20.9.6
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/managers/mongo.manager.js +15 -0
- package/managers/mongo.manager.js.map +1 -1
- package/managers/subscription.manager.d.ts +10 -1
- package/managers/subscription.manager.js +311 -76
- package/managers/subscription.manager.js.map +1 -1
- package/models/subscription.model.d.ts +3 -0
- package/models/subscription.model.js.map +1 -1
- package/package.json +5 -3
- package/util/subscription-dependency-context.d.ts +13 -0
- package/util/subscription-dependency-context.js +674 -0
- package/util/subscription-dependency-context.js.map +1 -0
|
@@ -18,6 +18,7 @@ export declare class SubscriptionManager {
|
|
|
18
18
|
private serverConfig;
|
|
19
19
|
private _monitorManagerFunction;
|
|
20
20
|
private _enableDebug;
|
|
21
|
+
private _enableDependencyDebug;
|
|
21
22
|
private _debugOplogCollections;
|
|
22
23
|
private _debugOplogHits;
|
|
23
24
|
private _debugSubCollections;
|
|
@@ -40,7 +41,7 @@ export declare class SubscriptionManager {
|
|
|
40
41
|
static create(wss: WebSocket.Server, serverConfig: any, monitorManagerFunction: MonitorManagerFunction): SubscriptionManager;
|
|
41
42
|
private initialize;
|
|
42
43
|
private setCacheLimit;
|
|
43
|
-
invalidatePubsCache(collection: string, type: string): Promise<void>;
|
|
44
|
+
invalidatePubsCache(collection: string, type: string, documentId?: any): Promise<void>;
|
|
44
45
|
private _executeInvalidation;
|
|
45
46
|
private delay;
|
|
46
47
|
private sendDataToAllWithRetry;
|
|
@@ -59,6 +60,14 @@ export declare class SubscriptionManager {
|
|
|
59
60
|
private processSubscription;
|
|
60
61
|
private sendDataToOne;
|
|
61
62
|
private sendDataToAll;
|
|
63
|
+
private ensureDependencyContainers;
|
|
64
|
+
private updateSubscriptionDependencies;
|
|
65
|
+
private normalizeDocumentId;
|
|
66
|
+
private convertDocumentIdForQuery;
|
|
67
|
+
private documentMatchesFilter;
|
|
68
|
+
private shouldInvalidateSubscription;
|
|
62
69
|
private sendWS;
|
|
63
70
|
getEnableDebug(): boolean;
|
|
71
|
+
private dependencyDebug;
|
|
72
|
+
private logDependencySnapshot;
|
|
64
73
|
}
|