@luvio/environments 0.105.0 → 0.106.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/dist/es/es2018/DurableStore.d.ts +4 -6
- package/dist/es/es2018/environments.js +3 -8
- package/dist/umd/es2018/DurableStore.d.ts +4 -6
- package/dist/umd/es2018/environments.js +2 -7
- package/dist/umd/es5/DurableStore.d.ts +4 -6
- package/dist/umd/es5/environments.js +2 -7
- package/package.json +2 -2
|
@@ -27,19 +27,17 @@ export interface DeprecatedDurableStoreEntry1<T = unknown> {
|
|
|
27
27
|
export interface DurableStoreEntries<EntryTypes> {
|
|
28
28
|
[key: string]: DurableStoreEntry<Extract<EntryTypes, unknown>>;
|
|
29
29
|
}
|
|
30
|
-
export declare
|
|
31
|
-
SetEntries = "setEntries",
|
|
32
|
-
EvictEntries = "evictEntries"
|
|
33
|
-
}
|
|
30
|
+
export declare type DurableStoreOperationType = 'setEntries' | 'evictEntries';
|
|
34
31
|
export interface BaseOperation {
|
|
32
|
+
type: DurableStoreOperationType;
|
|
35
33
|
segment: string;
|
|
36
34
|
}
|
|
37
35
|
export interface DurableStoreSetOperation<T> extends BaseOperation {
|
|
38
|
-
type:
|
|
36
|
+
type: 'setEntries';
|
|
39
37
|
entries: DurableStoreEntries<T>;
|
|
40
38
|
}
|
|
41
39
|
export interface DurableStoreEvictOperation extends BaseOperation {
|
|
42
|
-
type:
|
|
40
|
+
type: 'evictEntries';
|
|
43
41
|
ids: string[];
|
|
44
42
|
}
|
|
45
43
|
export declare type DurableStoreOperation<T> = DurableStoreSetOperation<T> | DurableStoreEvictOperation;
|
|
@@ -7,11 +7,6 @@ function isDeprecatedDurableStoreEntry(durableRecord) {
|
|
|
7
7
|
// Add more deprecated shape checks here
|
|
8
8
|
return false;
|
|
9
9
|
}
|
|
10
|
-
var DurableStoreOperationType;
|
|
11
|
-
(function (DurableStoreOperationType) {
|
|
12
|
-
DurableStoreOperationType["SetEntries"] = "setEntries";
|
|
13
|
-
DurableStoreOperationType["EvictEntries"] = "evictEntries";
|
|
14
|
-
})(DurableStoreOperationType || (DurableStoreOperationType = {}));
|
|
15
10
|
const DefaultDurableSegment = 'DEFAULT';
|
|
16
11
|
|
|
17
12
|
const { keys, create, assign, freeze } = Object;
|
|
@@ -310,7 +305,7 @@ function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStor
|
|
|
310
305
|
const recordKeys = keys(durableRecords);
|
|
311
306
|
if (recordKeys.length > 0) {
|
|
312
307
|
durableStoreOperations.push({
|
|
313
|
-
type:
|
|
308
|
+
type: 'setEntries',
|
|
314
309
|
entries: durableRecords,
|
|
315
310
|
segment: DefaultDurableSegment,
|
|
316
311
|
});
|
|
@@ -319,7 +314,7 @@ function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStor
|
|
|
319
314
|
const evictedKeys = keys(evictedRecords);
|
|
320
315
|
if (evictedKeys.length > 0) {
|
|
321
316
|
durableStoreOperations.push({
|
|
322
|
-
type:
|
|
317
|
+
type: 'evictEntries',
|
|
323
318
|
ids: evictedKeys,
|
|
324
319
|
segment: DefaultDurableSegment,
|
|
325
320
|
});
|
|
@@ -778,4 +773,4 @@ function makeDurable(environment, { durableStore, instrumentation }) {
|
|
|
778
773
|
});
|
|
779
774
|
}
|
|
780
775
|
|
|
781
|
-
export { DefaultDurableSegment,
|
|
776
|
+
export { DefaultDurableSegment, isDurableEnvironmentEvent, makeDurable, publishDurableStoreEntries };
|
|
@@ -27,19 +27,17 @@ export interface DeprecatedDurableStoreEntry1<T = unknown> {
|
|
|
27
27
|
export interface DurableStoreEntries<EntryTypes> {
|
|
28
28
|
[key: string]: DurableStoreEntry<Extract<EntryTypes, unknown>>;
|
|
29
29
|
}
|
|
30
|
-
export declare
|
|
31
|
-
SetEntries = "setEntries",
|
|
32
|
-
EvictEntries = "evictEntries"
|
|
33
|
-
}
|
|
30
|
+
export declare type DurableStoreOperationType = 'setEntries' | 'evictEntries';
|
|
34
31
|
export interface BaseOperation {
|
|
32
|
+
type: DurableStoreOperationType;
|
|
35
33
|
segment: string;
|
|
36
34
|
}
|
|
37
35
|
export interface DurableStoreSetOperation<T> extends BaseOperation {
|
|
38
|
-
type:
|
|
36
|
+
type: 'setEntries';
|
|
39
37
|
entries: DurableStoreEntries<T>;
|
|
40
38
|
}
|
|
41
39
|
export interface DurableStoreEvictOperation extends BaseOperation {
|
|
42
|
-
type:
|
|
40
|
+
type: 'evictEntries';
|
|
43
41
|
ids: string[];
|
|
44
42
|
}
|
|
45
43
|
export declare type DurableStoreOperation<T> = DurableStoreSetOperation<T> | DurableStoreEvictOperation;
|
|
@@ -11,11 +11,6 @@
|
|
|
11
11
|
// Add more deprecated shape checks here
|
|
12
12
|
return false;
|
|
13
13
|
}
|
|
14
|
-
exports.DurableStoreOperationType = void 0;
|
|
15
|
-
(function (DurableStoreOperationType) {
|
|
16
|
-
DurableStoreOperationType["SetEntries"] = "setEntries";
|
|
17
|
-
DurableStoreOperationType["EvictEntries"] = "evictEntries";
|
|
18
|
-
})(exports.DurableStoreOperationType || (exports.DurableStoreOperationType = {}));
|
|
19
14
|
const DefaultDurableSegment = 'DEFAULT';
|
|
20
15
|
|
|
21
16
|
const { keys, create, assign, freeze } = Object;
|
|
@@ -314,7 +309,7 @@
|
|
|
314
309
|
const recordKeys = keys(durableRecords);
|
|
315
310
|
if (recordKeys.length > 0) {
|
|
316
311
|
durableStoreOperations.push({
|
|
317
|
-
type:
|
|
312
|
+
type: 'setEntries',
|
|
318
313
|
entries: durableRecords,
|
|
319
314
|
segment: DefaultDurableSegment,
|
|
320
315
|
});
|
|
@@ -323,7 +318,7 @@
|
|
|
323
318
|
const evictedKeys = keys(evictedRecords);
|
|
324
319
|
if (evictedKeys.length > 0) {
|
|
325
320
|
durableStoreOperations.push({
|
|
326
|
-
type:
|
|
321
|
+
type: 'evictEntries',
|
|
327
322
|
ids: evictedKeys,
|
|
328
323
|
segment: DefaultDurableSegment,
|
|
329
324
|
});
|
|
@@ -27,19 +27,17 @@ export interface DeprecatedDurableStoreEntry1<T = unknown> {
|
|
|
27
27
|
export interface DurableStoreEntries<EntryTypes> {
|
|
28
28
|
[key: string]: DurableStoreEntry<Extract<EntryTypes, unknown>>;
|
|
29
29
|
}
|
|
30
|
-
export declare
|
|
31
|
-
SetEntries = "setEntries",
|
|
32
|
-
EvictEntries = "evictEntries"
|
|
33
|
-
}
|
|
30
|
+
export declare type DurableStoreOperationType = 'setEntries' | 'evictEntries';
|
|
34
31
|
export interface BaseOperation {
|
|
32
|
+
type: DurableStoreOperationType;
|
|
35
33
|
segment: string;
|
|
36
34
|
}
|
|
37
35
|
export interface DurableStoreSetOperation<T> extends BaseOperation {
|
|
38
|
-
type:
|
|
36
|
+
type: 'setEntries';
|
|
39
37
|
entries: DurableStoreEntries<T>;
|
|
40
38
|
}
|
|
41
39
|
export interface DurableStoreEvictOperation extends BaseOperation {
|
|
42
|
-
type:
|
|
40
|
+
type: 'evictEntries';
|
|
43
41
|
ids: string[];
|
|
44
42
|
}
|
|
45
43
|
export declare type DurableStoreOperation<T> = DurableStoreSetOperation<T> | DurableStoreEvictOperation;
|
|
@@ -11,11 +11,6 @@
|
|
|
11
11
|
// Add more deprecated shape checks here
|
|
12
12
|
return false;
|
|
13
13
|
}
|
|
14
|
-
exports.DurableStoreOperationType = void 0;
|
|
15
|
-
(function (DurableStoreOperationType) {
|
|
16
|
-
DurableStoreOperationType["SetEntries"] = "setEntries";
|
|
17
|
-
DurableStoreOperationType["EvictEntries"] = "evictEntries";
|
|
18
|
-
})(exports.DurableStoreOperationType || (exports.DurableStoreOperationType = {}));
|
|
19
14
|
var DefaultDurableSegment = 'DEFAULT';
|
|
20
15
|
|
|
21
16
|
/*! *****************************************************************************
|
|
@@ -395,7 +390,7 @@
|
|
|
395
390
|
var recordKeys = keys(durableRecords);
|
|
396
391
|
if (recordKeys.length > 0) {
|
|
397
392
|
durableStoreOperations.push({
|
|
398
|
-
type:
|
|
393
|
+
type: 'setEntries',
|
|
399
394
|
entries: durableRecords,
|
|
400
395
|
segment: DefaultDurableSegment,
|
|
401
396
|
});
|
|
@@ -404,7 +399,7 @@
|
|
|
404
399
|
var evictedKeys = keys(evictedRecords);
|
|
405
400
|
if (evictedKeys.length > 0) {
|
|
406
401
|
durableStoreOperations.push({
|
|
407
|
-
type:
|
|
402
|
+
type: 'evictEntries',
|
|
408
403
|
ids: evictedKeys,
|
|
409
404
|
segment: DefaultDurableSegment,
|
|
410
405
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luvio/environments",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.106.0",
|
|
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.
|
|
26
|
+
"@luvio/engine": "0.106.0"
|
|
27
27
|
},
|
|
28
28
|
"bundlesize": [
|
|
29
29
|
{
|