Zone-safe memory-based storage for CanJS applications, version 1.0.1 (latest stable, no major updates). Designed for compatibility with Done-SSR (Server Side Rendering) to isolate state per zone. Lightweight, zero-dependency, part of the CanJS ecosystem. Differentiates from global storage by scoping data to asynchronous zones, preventing cross-request leaks.
npm install can-zone-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a zone-isolated storage instance, demonstrates set/get/remove/clear operations.
Use a global or explicit shared storage if cross-zone persistence is needed.
Consider IndexedDB or other persistent solutions for large/long-lived data.
Wrap code in a zone using can-zone before using can-zone-storage.
No action needed; consider checking for newer versions or alternatives if issues arise.
Use default import syntax: import canZoneStorage from 'can-zone-storage'
Run `npm install can-zone-storage` (v1.0.1) and ensure import is from 'can-zone-storage'.
Create an instance: const storage = canZoneStorage(); then use storage.setItem().
Wrap your code in a zone: require('can-zone').create().run(() => { ... });No dependency data recorded yet.