@umituz/react-native-firebase 3.0.10 → 3.0.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": "@umituz/react-native-firebase",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12",
|
|
4
4
|
"description": "Unified Firebase package for React Native apps - Auth and Firestore services using Firebase JS SDK (no native modules).",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
package/src/domains/firestore/infrastructure/config/initializers/FirebaseFirestoreInitializer.ts
CHANGED
|
@@ -90,10 +90,8 @@ function createPersistentCacheConfig(config: Required<FirestoreCacheConfig>): Fi
|
|
|
90
90
|
* Uses memory cache for platforms without IndexedDB support
|
|
91
91
|
*/
|
|
92
92
|
function createMemoryCacheConfig(config: Required<FirestoreCacheConfig>): FirestoreSettings {
|
|
93
|
-
// Memory cache
|
|
94
|
-
const cacheConfig = memoryLocalCache(
|
|
95
|
-
cacheSizeBytes: config.cacheSizeBytes,
|
|
96
|
-
});
|
|
93
|
+
// Memory cache - Firebase SDK manages cache size automatically
|
|
94
|
+
const cacheConfig = memoryLocalCache();
|
|
97
95
|
|
|
98
96
|
return {
|
|
99
97
|
localCache: cacheConfig,
|
|
@@ -213,6 +211,8 @@ export class FirebaseFirestoreInitializer {
|
|
|
213
211
|
static async clearPersistentCache(app: FirebaseApp): Promise<void> {
|
|
214
212
|
try {
|
|
215
213
|
const db = getFirestore(app);
|
|
214
|
+
// clearPersistentCache exists in Firestore SDK but not in TypeScript definitions
|
|
215
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
216
216
|
await (db as any).clearPersistentCache();
|
|
217
217
|
if (__DEV__) {
|
|
218
218
|
console.log('[Firestore] Persistent cache cleared');
|