Initial Commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/** Maximum length of a caller-supplied key. localStorage entries are
|
||||
* comparatively expensive so this cap is tighter than OPFS (1024). */
|
||||
export const MAX_KEY_LENGTH = 256;
|
||||
|
||||
/** Default namespace prefix applied to every wire key. */
|
||||
export const DEFAULT_NAMESPACE = "suaveplan:storage";
|
||||
|
||||
/** Current envelope schema version. Bumped on incompatible wire changes. */
|
||||
export const ENVELOPE_VERSION = 1;
|
||||
|
||||
/** Sentinel key written by `isLocalStorageAvailable()` to probe write access. */
|
||||
export const SENTINEL_KEY = "__suaveplan_localstorage_probe__";
|
||||
Reference in New Issue
Block a user