@luvio/environments 0.138.9 → 0.138.11
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/dist/es/es2018/environments.js +3 -3
- package/dist/es/es2018/types/makeDurable/revive.d.ts +1 -1
- package/dist/umd/es2018/environments.js +3 -3
- package/dist/umd/es2018/types/makeDurable/revive.d.ts +1 -1
- package/dist/umd/es5/environments.js +3 -3
- package/dist/umd/es5/types/makeDurable/revive.d.ts +1 -1
- package/package.json +2 -2
|
@@ -80,7 +80,7 @@ function isStoreEntryError(storeRecord) {
|
|
|
80
80
|
* @param pendingWriter the PendingWriter (this is going away soon)
|
|
81
81
|
* @returns
|
|
82
82
|
*/
|
|
83
|
-
function publishDurableStoreEntries(durableRecords,
|
|
83
|
+
function publishDurableStoreEntries(durableRecords, put, publishMetadata) {
|
|
84
84
|
const revivedKeys = new StoreKeySet();
|
|
85
85
|
let hadUnexpectedShape = false;
|
|
86
86
|
if (durableRecords === undefined) {
|
|
@@ -118,7 +118,7 @@ function publishDurableStoreEntries(durableRecords, publish, publishMetadata) {
|
|
|
118
118
|
// freeze errors on way into L1
|
|
119
119
|
deepFreeze(data.error);
|
|
120
120
|
}
|
|
121
|
-
|
|
121
|
+
put(key, data);
|
|
122
122
|
revivedKeys.add(key);
|
|
123
123
|
}
|
|
124
124
|
return { revivedKeys, hadUnexpectedShape };
|
|
@@ -158,7 +158,7 @@ unavailableSnapshot, durableStoreErrorHandler, buildL1Snapshot, reviveMetrics =
|
|
|
158
158
|
// TODO [W-10072584]: instead of implicitly using L1 we should take in
|
|
159
159
|
// publish and publishMetadata funcs, so callers can decide where to
|
|
160
160
|
// revive to (like they pass in how to do the buildL1Snapshot)
|
|
161
|
-
baseEnvironment.
|
|
161
|
+
baseEnvironment.storePut.bind(baseEnvironment), baseEnvironment.publishStoreMetadata.bind(baseEnvironment));
|
|
162
162
|
// if the data coming back from DS had an unexpected shape then just
|
|
163
163
|
// return the L1 snapshot
|
|
164
164
|
if (hadUnexpectedShape === true) {
|
|
@@ -17,7 +17,7 @@ type ReviveResponse = {
|
|
|
17
17
|
* @param pendingWriter the PendingWriter (this is going away soon)
|
|
18
18
|
* @returns
|
|
19
19
|
*/
|
|
20
|
-
export declare function publishDurableStoreEntries(durableRecords: DurableStoreEntries<unknown> | undefined,
|
|
20
|
+
export declare function publishDurableStoreEntries(durableRecords: DurableStoreEntries<unknown> | undefined, put: (key: string | NormalizedKeyMetadata, record: unknown) => void, publishMetadata: (key: string, metadata: StoreMetadata) => void): ReviveResponse;
|
|
21
21
|
interface ReviveMetrics {
|
|
22
22
|
l2Trips: {
|
|
23
23
|
keysRequestedCount: number;
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
* @param pendingWriter the PendingWriter (this is going away soon)
|
|
85
85
|
* @returns
|
|
86
86
|
*/
|
|
87
|
-
function publishDurableStoreEntries(durableRecords,
|
|
87
|
+
function publishDurableStoreEntries(durableRecords, put, publishMetadata) {
|
|
88
88
|
const revivedKeys = new engine.StoreKeySet();
|
|
89
89
|
let hadUnexpectedShape = false;
|
|
90
90
|
if (durableRecords === undefined) {
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
// freeze errors on way into L1
|
|
123
123
|
deepFreeze(data.error);
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
put(key, data);
|
|
126
126
|
revivedKeys.add(key);
|
|
127
127
|
}
|
|
128
128
|
return { revivedKeys, hadUnexpectedShape };
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
// TODO [W-10072584]: instead of implicitly using L1 we should take in
|
|
163
163
|
// publish and publishMetadata funcs, so callers can decide where to
|
|
164
164
|
// revive to (like they pass in how to do the buildL1Snapshot)
|
|
165
|
-
baseEnvironment.
|
|
165
|
+
baseEnvironment.storePut.bind(baseEnvironment), baseEnvironment.publishStoreMetadata.bind(baseEnvironment));
|
|
166
166
|
// if the data coming back from DS had an unexpected shape then just
|
|
167
167
|
// return the L1 snapshot
|
|
168
168
|
if (hadUnexpectedShape === true) {
|
|
@@ -17,7 +17,7 @@ type ReviveResponse = {
|
|
|
17
17
|
* @param pendingWriter the PendingWriter (this is going away soon)
|
|
18
18
|
* @returns
|
|
19
19
|
*/
|
|
20
|
-
export declare function publishDurableStoreEntries(durableRecords: DurableStoreEntries<unknown> | undefined,
|
|
20
|
+
export declare function publishDurableStoreEntries(durableRecords: DurableStoreEntries<unknown> | undefined, put: (key: string | NormalizedKeyMetadata, record: unknown) => void, publishMetadata: (key: string, metadata: StoreMetadata) => void): ReviveResponse;
|
|
21
21
|
interface ReviveMetrics {
|
|
22
22
|
l2Trips: {
|
|
23
23
|
keysRequestedCount: number;
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
* @param pendingWriter the PendingWriter (this is going away soon)
|
|
150
150
|
* @returns
|
|
151
151
|
*/
|
|
152
|
-
function publishDurableStoreEntries(durableRecords,
|
|
152
|
+
function publishDurableStoreEntries(durableRecords, put, publishMetadata) {
|
|
153
153
|
var revivedKeys = new engine.StoreKeySet();
|
|
154
154
|
var hadUnexpectedShape = false;
|
|
155
155
|
if (durableRecords === undefined) {
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
// freeze errors on way into L1
|
|
188
188
|
deepFreeze(data.error);
|
|
189
189
|
}
|
|
190
|
-
|
|
190
|
+
put(key, data);
|
|
191
191
|
revivedKeys.add(key);
|
|
192
192
|
}
|
|
193
193
|
return { revivedKeys: revivedKeys, hadUnexpectedShape: hadUnexpectedShape };
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
// TODO [W-10072584]: instead of implicitly using L1 we should take in
|
|
231
231
|
// publish and publishMetadata funcs, so callers can decide where to
|
|
232
232
|
// revive to (like they pass in how to do the buildL1Snapshot)
|
|
233
|
-
baseEnvironment.
|
|
233
|
+
baseEnvironment.storePut.bind(baseEnvironment), baseEnvironment.publishStoreMetadata.bind(baseEnvironment)), revivedKeys = _a.revivedKeys, hadUnexpectedShape = _a.hadUnexpectedShape;
|
|
234
234
|
// if the data coming back from DS had an unexpected shape then just
|
|
235
235
|
// return the L1 snapshot
|
|
236
236
|
if (hadUnexpectedShape === true) {
|
|
@@ -17,7 +17,7 @@ type ReviveResponse = {
|
|
|
17
17
|
* @param pendingWriter the PendingWriter (this is going away soon)
|
|
18
18
|
* @returns
|
|
19
19
|
*/
|
|
20
|
-
export declare function publishDurableStoreEntries(durableRecords: DurableStoreEntries<unknown> | undefined,
|
|
20
|
+
export declare function publishDurableStoreEntries(durableRecords: DurableStoreEntries<unknown> | undefined, put: (key: string | NormalizedKeyMetadata, record: unknown) => void, publishMetadata: (key: string, metadata: StoreMetadata) => void): ReviveResponse;
|
|
21
21
|
interface ReviveMetrics {
|
|
22
22
|
l2Trips: {
|
|
23
23
|
keysRequestedCount: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luvio/environments",
|
|
3
|
-
"version": "0.138.
|
|
3
|
+
"version": "0.138.11",
|
|
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.138.
|
|
26
|
+
"@luvio/engine": "^0.138.11"
|
|
27
27
|
},
|
|
28
28
|
"volta": {
|
|
29
29
|
"extends": "../../../package.json"
|