JSON-stringifies and LZ-compresses a value, returning an LzEnvelope.
When useStorageCompression is false in config.json, the value is stored
as-is (no compression). If serialization fails (e.g. circular structures)
the original value is returned untouched and an error is logged.
JSON-stringifies and LZ-compresses a value, returning an LzEnvelope. When
useStorageCompressionisfalsein config.json, the value is stored as-is (no compression). If serialization fails (e.g. circular structures) the original value is returned untouched and an error is logged.