@luvio/environments 0.138.3 → 0.138.5
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/types/DurableStore.d.ts +4 -4
- package/dist/es/es2018/types/events.d.ts +1 -1
- package/dist/es/es2018/types/makeDurable/error.d.ts +2 -2
- package/dist/es/es2018/types/makeDurable/revive.d.ts +1 -1
- package/dist/es/es2018/types/utils/language.d.ts +7 -5
- package/dist/umd/es2018/types/DurableStore.d.ts +4 -4
- package/dist/umd/es2018/types/events.d.ts +1 -1
- package/dist/umd/es2018/types/makeDurable/error.d.ts +2 -2
- package/dist/umd/es2018/types/makeDurable/revive.d.ts +1 -1
- package/dist/umd/es2018/types/utils/language.d.ts +7 -5
- package/dist/umd/es5/types/DurableStore.d.ts +4 -4
- package/dist/umd/es5/types/events.d.ts +1 -1
- package/dist/umd/es5/types/makeDurable/error.d.ts +2 -2
- package/dist/umd/es5/types/makeDurable/revive.d.ts +1 -1
- package/dist/umd/es5/types/utils/language.d.ts +7 -5
- package/package.json +2 -2
|
@@ -27,7 +27,7 @@ export interface DeprecatedDurableStoreEntry1<T = unknown> {
|
|
|
27
27
|
export interface DurableStoreEntries<EntryTypes> {
|
|
28
28
|
[key: string]: DurableStoreEntry<Extract<EntryTypes, unknown>>;
|
|
29
29
|
}
|
|
30
|
-
export
|
|
30
|
+
export type DurableStoreOperationType = 'setEntries' | 'evictEntries';
|
|
31
31
|
export interface BaseOperation {
|
|
32
32
|
type: DurableStoreOperationType;
|
|
33
33
|
segment: string;
|
|
@@ -40,8 +40,8 @@ export interface DurableStoreEvictOperation extends BaseOperation {
|
|
|
40
40
|
type: 'evictEntries';
|
|
41
41
|
ids: string[];
|
|
42
42
|
}
|
|
43
|
-
export
|
|
44
|
-
export
|
|
43
|
+
export type DurableStoreOperation<T> = DurableStoreSetOperation<T> | DurableStoreEvictOperation;
|
|
44
|
+
export type DefaultDurableSegmentName = 'DEFAULT';
|
|
45
45
|
export declare const DefaultDurableSegment: DefaultDurableSegmentName;
|
|
46
46
|
export interface DurableStoreChange {
|
|
47
47
|
/** The entry IDs of the entries that have changed */
|
|
@@ -58,7 +58,7 @@ export interface DurableStoreChange {
|
|
|
58
58
|
*/
|
|
59
59
|
isExternalChange?: boolean;
|
|
60
60
|
}
|
|
61
|
-
export
|
|
61
|
+
export type OnDurableStoreChangedListener = (changes: DurableStoreChange[]) => Promise<void>;
|
|
62
62
|
/**
|
|
63
63
|
* The DurableStore implementation must have the following behaviors:
|
|
64
64
|
* - It must handle read/write synchronization (ie: reads should wait for any
|
|
@@ -12,7 +12,7 @@ interface ReviveEndEvent {
|
|
|
12
12
|
keysRequestedCount: number;
|
|
13
13
|
}[];
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type DurableEnvironmentAdapterEventData = ReviveStartEvent | ReviveEndEvent;
|
|
16
16
|
export declare function isDurableEnvironmentEvent(event: EnvironmentAdapterEvent<unknown>): event is EnvironmentAdapterEvent<DurableEnvironmentAdapterEventData>;
|
|
17
17
|
export declare function emitDurableEnvironmentAdapterEvent(eventData: DurableEnvironmentAdapterEventData, observers: LuvioAdapterEventObserver[] | undefined): void;
|
|
18
18
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Luvio } from '@luvio/engine';
|
|
2
2
|
export declare const DURABLE_STORE_ERROR = "durable-store-error";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type InstrumentationFunction = Luvio['instrument'];
|
|
4
|
+
export type DurableStoreRejectionHandler = (e: any) => void;
|
|
5
5
|
/**
|
|
6
6
|
* Returns a function that processes errors from durable store promise rejections.
|
|
7
7
|
* If running in a non-production environment, the error is rethrown.
|
|
@@ -2,7 +2,7 @@ import type { Environment, Snapshot, UnAvailableSnapshot, StoreMetadata, Normali
|
|
|
2
2
|
import type { DurableStore, DurableStoreEntries } from '../DurableStore';
|
|
3
3
|
import type { DurableStoreRejectionHandler } from './error';
|
|
4
4
|
import { StoreKeySet } from '@luvio/engine';
|
|
5
|
-
|
|
5
|
+
type ReviveResponse = {
|
|
6
6
|
revivedKeys: StoreKeySet<string | NormalizedKeyMetadata>;
|
|
7
7
|
hadUnexpectedShape: boolean;
|
|
8
8
|
};
|
|
@@ -5,13 +5,15 @@ declare const keys: {
|
|
|
5
5
|
(o: object | null): any;
|
|
6
6
|
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
7
7
|
}, assign: {
|
|
8
|
-
<T, U>(target: T, source: U): T & U;
|
|
9
|
-
<T_1, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
|
|
10
|
-
<T_2, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
|
|
8
|
+
<T extends {}, U>(target: T, source: U): T & U;
|
|
9
|
+
<T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
|
|
10
|
+
<T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
|
|
11
11
|
(target: object, ...sources: any[]): any;
|
|
12
12
|
}, freeze: {
|
|
13
|
-
<T>(
|
|
14
|
-
<T_1 extends
|
|
13
|
+
<T extends Function>(f: T): T;
|
|
14
|
+
<T_1 extends {
|
|
15
|
+
[idx: string]: object | U | null | undefined;
|
|
16
|
+
}, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
|
|
15
17
|
<T_2>(o: T_2): Readonly<T_2>;
|
|
16
18
|
};
|
|
17
19
|
declare const hasOwnProperty: (v: PropertyKey) => boolean;
|
|
@@ -27,7 +27,7 @@ export interface DeprecatedDurableStoreEntry1<T = unknown> {
|
|
|
27
27
|
export interface DurableStoreEntries<EntryTypes> {
|
|
28
28
|
[key: string]: DurableStoreEntry<Extract<EntryTypes, unknown>>;
|
|
29
29
|
}
|
|
30
|
-
export
|
|
30
|
+
export type DurableStoreOperationType = 'setEntries' | 'evictEntries';
|
|
31
31
|
export interface BaseOperation {
|
|
32
32
|
type: DurableStoreOperationType;
|
|
33
33
|
segment: string;
|
|
@@ -40,8 +40,8 @@ export interface DurableStoreEvictOperation extends BaseOperation {
|
|
|
40
40
|
type: 'evictEntries';
|
|
41
41
|
ids: string[];
|
|
42
42
|
}
|
|
43
|
-
export
|
|
44
|
-
export
|
|
43
|
+
export type DurableStoreOperation<T> = DurableStoreSetOperation<T> | DurableStoreEvictOperation;
|
|
44
|
+
export type DefaultDurableSegmentName = 'DEFAULT';
|
|
45
45
|
export declare const DefaultDurableSegment: DefaultDurableSegmentName;
|
|
46
46
|
export interface DurableStoreChange {
|
|
47
47
|
/** The entry IDs of the entries that have changed */
|
|
@@ -58,7 +58,7 @@ export interface DurableStoreChange {
|
|
|
58
58
|
*/
|
|
59
59
|
isExternalChange?: boolean;
|
|
60
60
|
}
|
|
61
|
-
export
|
|
61
|
+
export type OnDurableStoreChangedListener = (changes: DurableStoreChange[]) => Promise<void>;
|
|
62
62
|
/**
|
|
63
63
|
* The DurableStore implementation must have the following behaviors:
|
|
64
64
|
* - It must handle read/write synchronization (ie: reads should wait for any
|
|
@@ -12,7 +12,7 @@ interface ReviveEndEvent {
|
|
|
12
12
|
keysRequestedCount: number;
|
|
13
13
|
}[];
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type DurableEnvironmentAdapterEventData = ReviveStartEvent | ReviveEndEvent;
|
|
16
16
|
export declare function isDurableEnvironmentEvent(event: EnvironmentAdapterEvent<unknown>): event is EnvironmentAdapterEvent<DurableEnvironmentAdapterEventData>;
|
|
17
17
|
export declare function emitDurableEnvironmentAdapterEvent(eventData: DurableEnvironmentAdapterEventData, observers: LuvioAdapterEventObserver[] | undefined): void;
|
|
18
18
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Luvio } from '@luvio/engine';
|
|
2
2
|
export declare const DURABLE_STORE_ERROR = "durable-store-error";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type InstrumentationFunction = Luvio['instrument'];
|
|
4
|
+
export type DurableStoreRejectionHandler = (e: any) => void;
|
|
5
5
|
/**
|
|
6
6
|
* Returns a function that processes errors from durable store promise rejections.
|
|
7
7
|
* If running in a non-production environment, the error is rethrown.
|
|
@@ -2,7 +2,7 @@ import type { Environment, Snapshot, UnAvailableSnapshot, StoreMetadata, Normali
|
|
|
2
2
|
import type { DurableStore, DurableStoreEntries } from '../DurableStore';
|
|
3
3
|
import type { DurableStoreRejectionHandler } from './error';
|
|
4
4
|
import { StoreKeySet } from '@luvio/engine';
|
|
5
|
-
|
|
5
|
+
type ReviveResponse = {
|
|
6
6
|
revivedKeys: StoreKeySet<string | NormalizedKeyMetadata>;
|
|
7
7
|
hadUnexpectedShape: boolean;
|
|
8
8
|
};
|
|
@@ -5,13 +5,15 @@ declare const keys: {
|
|
|
5
5
|
(o: object | null): any;
|
|
6
6
|
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
7
7
|
}, assign: {
|
|
8
|
-
<T, U>(target: T, source: U): T & U;
|
|
9
|
-
<T_1, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
|
|
10
|
-
<T_2, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
|
|
8
|
+
<T extends {}, U>(target: T, source: U): T & U;
|
|
9
|
+
<T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
|
|
10
|
+
<T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
|
|
11
11
|
(target: object, ...sources: any[]): any;
|
|
12
12
|
}, freeze: {
|
|
13
|
-
<T>(
|
|
14
|
-
<T_1 extends
|
|
13
|
+
<T extends Function>(f: T): T;
|
|
14
|
+
<T_1 extends {
|
|
15
|
+
[idx: string]: object | U | null | undefined;
|
|
16
|
+
}, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
|
|
15
17
|
<T_2>(o: T_2): Readonly<T_2>;
|
|
16
18
|
};
|
|
17
19
|
declare const hasOwnProperty: (v: PropertyKey) => boolean;
|
|
@@ -27,7 +27,7 @@ export interface DeprecatedDurableStoreEntry1<T = unknown> {
|
|
|
27
27
|
export interface DurableStoreEntries<EntryTypes> {
|
|
28
28
|
[key: string]: DurableStoreEntry<Extract<EntryTypes, unknown>>;
|
|
29
29
|
}
|
|
30
|
-
export
|
|
30
|
+
export type DurableStoreOperationType = 'setEntries' | 'evictEntries';
|
|
31
31
|
export interface BaseOperation {
|
|
32
32
|
type: DurableStoreOperationType;
|
|
33
33
|
segment: string;
|
|
@@ -40,8 +40,8 @@ export interface DurableStoreEvictOperation extends BaseOperation {
|
|
|
40
40
|
type: 'evictEntries';
|
|
41
41
|
ids: string[];
|
|
42
42
|
}
|
|
43
|
-
export
|
|
44
|
-
export
|
|
43
|
+
export type DurableStoreOperation<T> = DurableStoreSetOperation<T> | DurableStoreEvictOperation;
|
|
44
|
+
export type DefaultDurableSegmentName = 'DEFAULT';
|
|
45
45
|
export declare const DefaultDurableSegment: DefaultDurableSegmentName;
|
|
46
46
|
export interface DurableStoreChange {
|
|
47
47
|
/** The entry IDs of the entries that have changed */
|
|
@@ -58,7 +58,7 @@ export interface DurableStoreChange {
|
|
|
58
58
|
*/
|
|
59
59
|
isExternalChange?: boolean;
|
|
60
60
|
}
|
|
61
|
-
export
|
|
61
|
+
export type OnDurableStoreChangedListener = (changes: DurableStoreChange[]) => Promise<void>;
|
|
62
62
|
/**
|
|
63
63
|
* The DurableStore implementation must have the following behaviors:
|
|
64
64
|
* - It must handle read/write synchronization (ie: reads should wait for any
|
|
@@ -12,7 +12,7 @@ interface ReviveEndEvent {
|
|
|
12
12
|
keysRequestedCount: number;
|
|
13
13
|
}[];
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type DurableEnvironmentAdapterEventData = ReviveStartEvent | ReviveEndEvent;
|
|
16
16
|
export declare function isDurableEnvironmentEvent(event: EnvironmentAdapterEvent<unknown>): event is EnvironmentAdapterEvent<DurableEnvironmentAdapterEventData>;
|
|
17
17
|
export declare function emitDurableEnvironmentAdapterEvent(eventData: DurableEnvironmentAdapterEventData, observers: LuvioAdapterEventObserver[] | undefined): void;
|
|
18
18
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Luvio } from '@luvio/engine';
|
|
2
2
|
export declare const DURABLE_STORE_ERROR = "durable-store-error";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type InstrumentationFunction = Luvio['instrument'];
|
|
4
|
+
export type DurableStoreRejectionHandler = (e: any) => void;
|
|
5
5
|
/**
|
|
6
6
|
* Returns a function that processes errors from durable store promise rejections.
|
|
7
7
|
* If running in a non-production environment, the error is rethrown.
|
|
@@ -2,7 +2,7 @@ import type { Environment, Snapshot, UnAvailableSnapshot, StoreMetadata, Normali
|
|
|
2
2
|
import type { DurableStore, DurableStoreEntries } from '../DurableStore';
|
|
3
3
|
import type { DurableStoreRejectionHandler } from './error';
|
|
4
4
|
import { StoreKeySet } from '@luvio/engine';
|
|
5
|
-
|
|
5
|
+
type ReviveResponse = {
|
|
6
6
|
revivedKeys: StoreKeySet<string | NormalizedKeyMetadata>;
|
|
7
7
|
hadUnexpectedShape: boolean;
|
|
8
8
|
};
|
|
@@ -5,13 +5,15 @@ declare const keys: {
|
|
|
5
5
|
(o: object | null): any;
|
|
6
6
|
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
7
7
|
}, assign: {
|
|
8
|
-
<T, U>(target: T, source: U): T & U;
|
|
9
|
-
<T_1, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
|
|
10
|
-
<T_2, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
|
|
8
|
+
<T extends {}, U>(target: T, source: U): T & U;
|
|
9
|
+
<T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
|
|
10
|
+
<T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
|
|
11
11
|
(target: object, ...sources: any[]): any;
|
|
12
12
|
}, freeze: {
|
|
13
|
-
<T>(
|
|
14
|
-
<T_1 extends
|
|
13
|
+
<T extends Function>(f: T): T;
|
|
14
|
+
<T_1 extends {
|
|
15
|
+
[idx: string]: object | U | null | undefined;
|
|
16
|
+
}, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
|
|
15
17
|
<T_2>(o: T_2): Readonly<T_2>;
|
|
16
18
|
};
|
|
17
19
|
declare const hasOwnProperty: (v: PropertyKey) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luvio/environments",
|
|
3
|
-
"version": "0.138.
|
|
3
|
+
"version": "0.138.5",
|
|
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.5"
|
|
27
27
|
},
|
|
28
28
|
"volta": {
|
|
29
29
|
"extends": "../../../package.json"
|