FileLegacyMode
type FileLegacyMode = "ignore" | "warn" | "read-through";Defined in: src/storage/file.ts:53
How createFileStorage treats leaves in the legacy (pre-encoding, raw segment) layout:
"ignore"(default): they are invisible;"warn": invisible, andonLegacyis called once (by default aconsole.warnthat points at migrateFileStorage);"read-through":getItemfalls back to the legacy file when the encoded one is missing,getKeyslists legacy leaves too, and the next write or remove of that key deletes the legacy file.