@luvio/environments 0.154.14 → 0.154.16
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/environments.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StoreKeySet, deepFreeze, serializeStructuredKey, emitAdapterEvent, StringKeyInMemoryStore, Reader } from '@luvio/engine';
|
|
1
|
+
import { StoreKeySet, deepFreeze, serializeStructuredKey, emitAdapterEvent, StringKeyInMemoryStore, setBypassDeepFreeze, Reader } from '@luvio/engine';
|
|
2
2
|
|
|
3
3
|
// the last version the metadata shape was altered
|
|
4
4
|
const DURABLE_METADATA_VERSION = '0.111.0';
|
|
@@ -510,7 +510,9 @@ function isUnfulfilledSnapshot(cachedSnapshotResult) {
|
|
|
510
510
|
* @param durableStore A DurableStore implementation
|
|
511
511
|
* @param instrumentation An instrumentation function implementation
|
|
512
512
|
*/
|
|
513
|
-
function makeDurable(environment, { durableStore, instrumentation, useRevivingStore, enableDurableMetadataRefresh = false, }) {
|
|
513
|
+
function makeDurable(environment, { durableStore, instrumentation, useRevivingStore, enableDurableMetadataRefresh = false, disableDeepFreeze = false, }) {
|
|
514
|
+
// runtimes can choose to disable deepFreeze, e.g. headless mobile runtime
|
|
515
|
+
setBypassDeepFreeze(disableDeepFreeze);
|
|
514
516
|
let stagingStore = null;
|
|
515
517
|
const durableTTLStore = new DurableTTLStore(durableStore);
|
|
516
518
|
const mergeKeysPromiseMap = new Map();
|
|
@@ -41,6 +41,7 @@ interface MakeDurableOptions {
|
|
|
41
41
|
instrumentation?: InstrumentationFunction;
|
|
42
42
|
enableDurableMetadataRefresh?: boolean;
|
|
43
43
|
useRevivingStore?: boolean;
|
|
44
|
+
disableDeepFreeze?: boolean;
|
|
44
45
|
}
|
|
45
46
|
/**
|
|
46
47
|
* Configures the environment to persist data into a durable store and attempt to resolve
|
|
@@ -51,5 +52,5 @@ interface MakeDurableOptions {
|
|
|
51
52
|
* @param durableStore A DurableStore implementation
|
|
52
53
|
* @param instrumentation An instrumentation function implementation
|
|
53
54
|
*/
|
|
54
|
-
export declare function makeDurable(environment: Environment, { durableStore, instrumentation, useRevivingStore, enableDurableMetadataRefresh, }: MakeDurableOptions): DurableEnvironment;
|
|
55
|
+
export declare function makeDurable(environment: Environment, { durableStore, instrumentation, useRevivingStore, enableDurableMetadataRefresh, disableDeepFreeze, }: MakeDurableOptions): DurableEnvironment;
|
|
55
56
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luvio/environments",
|
|
3
|
-
"version": "0.154.
|
|
3
|
+
"version": "0.154.16",
|
|
4
4
|
"description": "Luvio Environments",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"watch": "yarn build --watch"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@luvio/engine": "^0.154.
|
|
30
|
+
"@luvio/engine": "^0.154.16"
|
|
31
31
|
},
|
|
32
32
|
"volta": {
|
|
33
33
|
"extends": "../../../package.json"
|