@luvio/environments 0.138.8-244.0 → 0.138.8-244.1
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
|
@@ -81,7 +81,7 @@ function isStoreEntryError(storeRecord) {
|
|
|
81
81
|
* @param pendingWriter the PendingWriter (this is going away soon)
|
|
82
82
|
* @returns
|
|
83
83
|
*/
|
|
84
|
-
function publishDurableStoreEntries(durableRecords,
|
|
84
|
+
function publishDurableStoreEntries(durableRecords, put, publishMetadata) {
|
|
85
85
|
const revivedKeys = new StoreKeySet();
|
|
86
86
|
let hadUnexpectedShape = false;
|
|
87
87
|
if (durableRecords === undefined) {
|
|
@@ -119,7 +119,7 @@ function publishDurableStoreEntries(durableRecords, publish, publishMetadata) {
|
|
|
119
119
|
// freeze errors on way into L1
|
|
120
120
|
deepFreeze(data.error);
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
put(key, data);
|
|
123
123
|
revivedKeys.add(key);
|
|
124
124
|
}
|
|
125
125
|
return { revivedKeys, hadUnexpectedShape };
|
|
@@ -159,7 +159,7 @@ unavailableSnapshot, durableStoreErrorHandler, buildL1Snapshot, reviveMetrics =
|
|
|
159
159
|
// TODO [W-10072584]: instead of implicitly using L1 we should take in
|
|
160
160
|
// publish and publishMetadata funcs, so callers can decide where to
|
|
161
161
|
// revive to (like they pass in how to do the buildL1Snapshot)
|
|
162
|
-
baseEnvironment.
|
|
162
|
+
baseEnvironment.storePut.bind(baseEnvironment), baseEnvironment.publishStoreMetadata.bind(baseEnvironment));
|
|
163
163
|
// if the data coming back from DS had an unexpected shape then just
|
|
164
164
|
// return the L1 snapshot
|
|
165
165
|
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;
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
* @param pendingWriter the PendingWriter (this is going away soon)
|
|
86
86
|
* @returns
|
|
87
87
|
*/
|
|
88
|
-
function publishDurableStoreEntries(durableRecords,
|
|
88
|
+
function publishDurableStoreEntries(durableRecords, put, publishMetadata) {
|
|
89
89
|
const revivedKeys = new engine.StoreKeySet();
|
|
90
90
|
let hadUnexpectedShape = false;
|
|
91
91
|
if (durableRecords === undefined) {
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
// freeze errors on way into L1
|
|
124
124
|
deepFreeze(data.error);
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
put(key, data);
|
|
127
127
|
revivedKeys.add(key);
|
|
128
128
|
}
|
|
129
129
|
return { revivedKeys, hadUnexpectedShape };
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
// TODO [W-10072584]: instead of implicitly using L1 we should take in
|
|
164
164
|
// publish and publishMetadata funcs, so callers can decide where to
|
|
165
165
|
// revive to (like they pass in how to do the buildL1Snapshot)
|
|
166
|
-
baseEnvironment.
|
|
166
|
+
baseEnvironment.storePut.bind(baseEnvironment), baseEnvironment.publishStoreMetadata.bind(baseEnvironment));
|
|
167
167
|
// if the data coming back from DS had an unexpected shape then just
|
|
168
168
|
// return the L1 snapshot
|
|
169
169
|
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;
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
* @param pendingWriter the PendingWriter (this is going away soon)
|
|
161
161
|
* @returns
|
|
162
162
|
*/
|
|
163
|
-
function publishDurableStoreEntries(durableRecords,
|
|
163
|
+
function publishDurableStoreEntries(durableRecords, put, publishMetadata) {
|
|
164
164
|
var revivedKeys = new engine.StoreKeySet();
|
|
165
165
|
var hadUnexpectedShape = false;
|
|
166
166
|
if (durableRecords === undefined) {
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
// freeze errors on way into L1
|
|
199
199
|
deepFreeze(data.error);
|
|
200
200
|
}
|
|
201
|
-
|
|
201
|
+
put(key, data);
|
|
202
202
|
revivedKeys.add(key);
|
|
203
203
|
}
|
|
204
204
|
return { revivedKeys: revivedKeys, hadUnexpectedShape: hadUnexpectedShape };
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
// TODO [W-10072584]: instead of implicitly using L1 we should take in
|
|
242
242
|
// publish and publishMetadata funcs, so callers can decide where to
|
|
243
243
|
// revive to (like they pass in how to do the buildL1Snapshot)
|
|
244
|
-
baseEnvironment.
|
|
244
|
+
baseEnvironment.storePut.bind(baseEnvironment), baseEnvironment.publishStoreMetadata.bind(baseEnvironment)), revivedKeys = _a.revivedKeys, hadUnexpectedShape = _a.hadUnexpectedShape;
|
|
245
245
|
// if the data coming back from DS had an unexpected shape then just
|
|
246
246
|
// return the L1 snapshot
|
|
247
247
|
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.8-244.
|
|
3
|
+
"version": "0.138.8-244.1",
|
|
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.8-244.
|
|
26
|
+
"@luvio/engine": "0.138.8-244.1"
|
|
27
27
|
},
|
|
28
28
|
"volta": {
|
|
29
29
|
"extends": "../../../package.json"
|