@@ -49,16 +49,7 @@ export class LocalStorageEngine implements IStringStorageEngine {
49
49
} ;
50
50
51
51
public getMetaJsonString = async ( ) : Promise < string | null > => {
52
- const stored = this . localStorage . getItem ( this . metaKey ) ;
53
- if ( ! stored ) return null ;
54
-
55
- try {
56
- return LZString . decompress ( stored ) || null ;
57
- } catch ( e ) {
58
- console . warn ( 'Failed to decompress meta, removing corrupted data' ) ;
59
- this . localStorage . removeItem ( this . metaKey ) ;
60
- return null ;
61
- }
52
+ return this . localStorage . getItem ( this . metaKey ) ;
62
53
} ;
63
54
64
55
public setContentsJsonString = async ( configurationJsonString : string ) : Promise < void > => {
@@ -67,8 +58,7 @@ export class LocalStorageEngine implements IStringStorageEngine {
67
58
} ;
68
59
69
60
public setMetaJsonString = async ( metaJsonString : string ) : Promise < void > => {
70
- const compressed = LZString . compress ( metaJsonString ) ;
71
- this . localStorage . setItem ( this . metaKey , compressed ) ;
61
+ this . localStorage . setItem ( this . metaKey , metaJsonString ) ;
72
62
} ;
73
63
74
64
private ensureCompressionMigration ( ) : void {
@@ -78,10 +68,6 @@ export class LocalStorageEngine implements IStringStorageEngine {
78
68
return ; // Already migrated
79
69
}
80
70
81
- console . log (
82
- `Running storage migration from v${ globalMeta . version } to v${ LocalStorageEngine . MIGRATION_VERSION } ` ,
83
- ) ;
84
-
85
71
try {
86
72
this . deleteAllConfigurations ( ) ;
87
73
@@ -90,9 +76,8 @@ export class LocalStorageEngine implements IStringStorageEngine {
90
76
version : LocalStorageEngine . MIGRATION_VERSION ,
91
77
} ) ;
92
78
93
- console . log ( 'Configuration cleanup completed - fresh configs will be compressed' ) ;
94
79
} catch ( e ) {
95
- console . warn ( ' Migration failed:' , e ) ;
80
+ // Migration failed, continue silently
96
81
}
97
82
}
98
83
@@ -112,7 +97,7 @@ export class LocalStorageEngine implements IStringStorageEngine {
112
97
this . localStorage . removeItem ( key ) ;
113
98
} ) ;
114
99
115
- console . log ( ` Deleted ${ keysToDelete . length } old configuration keys.` ) ;
100
+ // Deleted old configuration keys for compression migration
116
101
}
117
102
118
103
private getGlobalMeta ( ) : EppoGlobalMeta {
@@ -122,7 +107,7 @@ export class LocalStorageEngine implements IStringStorageEngine {
122
107
return JSON . parse ( stored ) ;
123
108
}
124
109
} catch ( e ) {
125
- console . warn ( ' Failed to parse global meta:' , e ) ;
110
+ // Failed to parse global meta, will use default
126
111
}
127
112
128
113
return { version : 0 } ; // Default to version 0
0 commit comments