@luvio/environments 0.121.1-242.2 → 0.121.1-242.4
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.
|
@@ -741,7 +741,8 @@ function makeDurable(environment, { durableStore, instrumentation }) {
|
|
|
741
741
|
for (const cacheKeySetKey of cacheKeySetKeys) {
|
|
742
742
|
const cacheKey = cacheKeySet[cacheKeySetKey];
|
|
743
743
|
if (cacheKey.mergeable === true) {
|
|
744
|
-
|
|
744
|
+
const canonical = environment.storeGetCanonicalKey(cacheKeySetKey);
|
|
745
|
+
keysToRevive[canonical] = true;
|
|
745
746
|
}
|
|
746
747
|
}
|
|
747
748
|
let snapshotFromMemoryIngest = undefined;
|
|
@@ -769,9 +770,9 @@ function makeDurable(environment, { durableStore, instrumentation }) {
|
|
|
769
770
|
ingestStagingStore = buildIngestStagingStore(environment);
|
|
770
771
|
publishDurableStoreEntries(entries, (key, record) => {
|
|
771
772
|
ingestStagingStore.records[key] = record;
|
|
772
|
-
},
|
|
773
|
-
|
|
774
|
-
|
|
773
|
+
}, (key, metadata) => {
|
|
774
|
+
ingestStagingStore.metadata[key] = metadata;
|
|
775
|
+
});
|
|
775
776
|
snapshotFromMemoryIngest = ingestAndBroadcastFunc();
|
|
776
777
|
await publishChangesToDurableStore();
|
|
777
778
|
})();
|
|
@@ -745,7 +745,8 @@
|
|
|
745
745
|
for (const cacheKeySetKey of cacheKeySetKeys) {
|
|
746
746
|
const cacheKey = cacheKeySet[cacheKeySetKey];
|
|
747
747
|
if (cacheKey.mergeable === true) {
|
|
748
|
-
|
|
748
|
+
const canonical = environment.storeGetCanonicalKey(cacheKeySetKey);
|
|
749
|
+
keysToRevive[canonical] = true;
|
|
749
750
|
}
|
|
750
751
|
}
|
|
751
752
|
let snapshotFromMemoryIngest = undefined;
|
|
@@ -773,9 +774,9 @@
|
|
|
773
774
|
ingestStagingStore = buildIngestStagingStore(environment);
|
|
774
775
|
publishDurableStoreEntries(entries, (key, record) => {
|
|
775
776
|
ingestStagingStore.records[key] = record;
|
|
776
|
-
},
|
|
777
|
-
|
|
778
|
-
|
|
777
|
+
}, (key, metadata) => {
|
|
778
|
+
ingestStagingStore.metadata[key] = metadata;
|
|
779
|
+
});
|
|
779
780
|
snapshotFromMemoryIngest = ingestAndBroadcastFunc();
|
|
780
781
|
await publishChangesToDurableStore();
|
|
781
782
|
})();
|
|
@@ -848,7 +848,7 @@
|
|
|
848
848
|
};
|
|
849
849
|
var handleSuccessResponse = function (ingestAndBroadcastFunc, getResponseCacheKeysFunc) {
|
|
850
850
|
return __awaiter(this, void 0, void 0, function () {
|
|
851
|
-
var cacheKeySet, cacheKeySetKeys, keysToRevive, _i, cacheKeySetKeys_1, cacheKeySetKey, cacheKey, snapshotFromMemoryIngest, keysAsArray, readWritePromise, _a, keysAsArray_1, key, _b, keysAsArray_2, key, pendingPromise, _c, select, refresh, result;
|
|
851
|
+
var cacheKeySet, cacheKeySetKeys, keysToRevive, _i, cacheKeySetKeys_1, cacheKeySetKey, cacheKey, canonical, snapshotFromMemoryIngest, keysAsArray, readWritePromise, _a, keysAsArray_1, key, _b, keysAsArray_2, key, pendingPromise, _c, select, refresh, result;
|
|
852
852
|
var _this = this;
|
|
853
853
|
return __generator(this, function (_d) {
|
|
854
854
|
switch (_d.label) {
|
|
@@ -861,7 +861,8 @@
|
|
|
861
861
|
cacheKeySetKey = cacheKeySetKeys_1[_i];
|
|
862
862
|
cacheKey = cacheKeySet[cacheKeySetKey];
|
|
863
863
|
if (cacheKey.mergeable === true) {
|
|
864
|
-
|
|
864
|
+
canonical = environment.storeGetCanonicalKey(cacheKeySetKey);
|
|
865
|
+
keysToRevive[canonical] = true;
|
|
865
866
|
}
|
|
866
867
|
}
|
|
867
868
|
snapshotFromMemoryIngest = undefined;
|
|
@@ -895,9 +896,9 @@
|
|
|
895
896
|
ingestStagingStore = buildIngestStagingStore(environment);
|
|
896
897
|
publishDurableStoreEntries(entries, function (key, record) {
|
|
897
898
|
ingestStagingStore.records[key] = record;
|
|
898
|
-
},
|
|
899
|
-
|
|
900
|
-
|
|
899
|
+
}, function (key, metadata) {
|
|
900
|
+
ingestStagingStore.metadata[key] = metadata;
|
|
901
|
+
});
|
|
901
902
|
snapshotFromMemoryIngest = ingestAndBroadcastFunc();
|
|
902
903
|
return [4 /*yield*/, publishChangesToDurableStore()];
|
|
903
904
|
case 3:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luvio/environments",
|
|
3
|
-
"version": "0.121.1-242.
|
|
3
|
+
"version": "0.121.1-242.4",
|
|
4
4
|
"description": "Luvio Environments",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"watch": "yarn build --watch"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@luvio/engine": "0.121.1-242.
|
|
26
|
+
"@luvio/engine": "0.121.1-242.4"
|
|
27
27
|
},
|
|
28
28
|
"bundlesize": [
|
|
29
29
|
{
|
|
@@ -40,6 +40,5 @@
|
|
|
40
40
|
]
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
}
|
|
44
|
-
"gitHead": "32c5de04652b54ddb3f663f91245cf189863598d"
|
|
43
|
+
}
|
|
45
44
|
}
|