@umituz/react-native-storage 2.4.1 → 2.4.3

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": "@umituz/react-native-storage",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "Zustand state management with AsyncStorage persistence and type-safe storage operations for React Native",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -53,7 +53,7 @@ export function parseCacheKey(key: string): { prefix: string; id: string } | nul
53
53
  if (parts.length < 3 || parts[0] !== 'cache') return null;
54
54
 
55
55
  return {
56
- prefix: parts[1],
56
+ prefix: parts[1] || '',
57
57
  id: parts.slice(2).join(':'),
58
58
  };
59
59
  }
@@ -43,7 +43,7 @@ export class CacheStorageOperations {
43
43
  */
44
44
  async loadFromStorage<T>(
45
45
  key: string,
46
- version?: number
46
+ _version?: number
47
47
  ): Promise<CachedValue<T> | null> {
48
48
  try {
49
49
  const result = await storageRepository.getString(key, '');
@@ -5,8 +5,6 @@
5
5
  */
6
6
 
7
7
  import { useState, useCallback, useMemo } from 'react';
8
- import type { CachedValue } from '../../domain/entities/CachedValue';
9
- import { createCachedValue, isCacheExpired } from '../../domain/entities/CachedValue';
10
8
 
11
9
  export interface CacheState<T> {
12
10
  data: T | null;