mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove all manual uses of v8 serialization (#5548)
* Remove all manual uses of v8 serialization - Seems that sometimes the is a versioning mismatch within the binary format causes cluster screen the go grey Signed-off-by: Sebastian Malton <sebastian@malton.name> * handle ping Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
327978dbc8
commit
fae6bff6fb
8 files changed
+58
-50
No files matched your search
@@ -4,7 +4,6 @@
|
||||
*/
|
||||
|
||||
import fs from "fs";
|
||||
import v8 from "v8";
|
||||
import * as yaml from "js-yaml";
|
||||
import type { HelmRepo } from "./helm-repo-manager";
|
||||
import logger from "../logger";
|
||||
@@ -15,7 +14,7 @@ import type { SetRequired } from "type-fest";
|
||||
import { assert } from "console";
|
||||
|
||||
interface ChartCacheEntry {
|
||||
data: Buffer;
|
||||
data: string; // serialized JSON
|
||||
mtimeMs: number;
|
||||
}
|
||||
|
||||
@@ -88,7 +87,7 @@ export class HelmChartManager {
|
||||
HelmChartManager.#cache,
|
||||
this.repo.name,
|
||||
{
|
||||
data: v8.serialize(normalized),
|
||||
data: JSON.stringify(normalized),
|
||||
mtimeMs: cacheFileStats.mtimeMs,
|
||||
},
|
||||
);
|
||||
@@ -107,7 +106,7 @@ export class HelmChartManager {
|
||||
}
|
||||
}
|
||||
|
||||
return v8.deserialize(cacheEntry.data);
|
||||
return JSON.parse(cacheEntry.data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user