@idealyst/storage 1.2.11 → 1.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idealyst/storage",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "description": "Cross-platform storage abstraction for React and React Native",
5
5
  "documentation": "https://github.com/IdealystIO/idealyst-framework/tree/main/packages/storage#readme",
6
6
  "readme": "README.md",
@@ -4,5 +4,6 @@ import NativeStorage from './storage.native';
4
4
  const storage = new BaseStorage(new NativeStorage());
5
5
 
6
6
  export default storage;
7
- export { storage, BaseStorage, NativeStorage };
7
+ // Export instance as both `storage` and `Storage` for convenience
8
+ export { storage, storage as Storage, BaseStorage, NativeStorage };
8
9
  export * from './types';
package/src/index.ts CHANGED
@@ -2,6 +2,6 @@ import BaseStorage from './storage';
2
2
 
3
3
  // For non-platform-specific imports, export the class (not an instance)
4
4
  // Platform-specific entry points (index.native.ts, index.web.ts) export instances
5
- export { BaseStorage as Storage };
5
+ export { BaseStorage };
6
6
  export default BaseStorage;
7
7
  export * from './types';
package/src/index.web.ts CHANGED
@@ -4,5 +4,6 @@ import WebStorage from './storage.web';
4
4
  const storage = new BaseStorage(new WebStorage());
5
5
 
6
6
  export default storage;
7
- export { storage, BaseStorage, WebStorage };
7
+ // Export instance as both `storage` and `Storage` for convenience
8
+ export { storage, storage as Storage, BaseStorage, WebStorage };
8
9
  export * from './types';