react-query-firebase 2.13.0 → 2.13.2
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 +17 -17
- package/react-native/firestore/utils/buildQueryConstraint.js +2 -2
- package/react-native/firestore/utils/buildQueryConstraint.ts +2 -2
- package/types/QueryConstraints.d.ts +1 -2
- package/types/QueryConstraints.ts +1 -2
- package/web/firestore/useCompositeFilter.d.ts +1 -1
- package/web/firestore/useDocReferences.d.ts +1 -1
- package/web/firestore/useFirestore.d.ts +1 -1
- package/web/firestore/utils/buildQueryConstraint.js +2 -2
- package/web/firestore/utils/buildQueryConstraint.ts +2 -2
- package/web/firestore/utils/getDocSnap.d.ts +1 -1
- package/web/remoteConfig/useGetValue.d.ts +1 -1
- package/web/remoteConfig/useRemoteConfig.d.ts +1 -1
package/package.json
CHANGED
|
@@ -21,25 +21,25 @@
|
|
|
21
21
|
},
|
|
22
22
|
"description": "This module offers react hooks to work with Firebase on react-native and web platforms",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@laverve/eslint-utils": "^5.3.
|
|
25
|
-
"@react-native-firebase/analytics": "^23.0
|
|
26
|
-
"@react-native-firebase/app": "23.
|
|
27
|
-
"@react-native-firebase/auth": "^23.0
|
|
28
|
-
"@react-native-firebase/crashlytics": "^23.0
|
|
29
|
-
"@react-native-firebase/firestore": "^23.0
|
|
30
|
-
"@react-native-firebase/installations": "^23.0
|
|
31
|
-
"@react-native-firebase/remote-config": "^23.0
|
|
32
|
-
"@tanstack/react-query": "^5.
|
|
33
|
-
"@types/react": "^19.
|
|
34
|
-
"firebase": "^12.
|
|
24
|
+
"@laverve/eslint-utils": "^5.3.7",
|
|
25
|
+
"@react-native-firebase/analytics": "^23.5.0",
|
|
26
|
+
"@react-native-firebase/app": "^23.5.0",
|
|
27
|
+
"@react-native-firebase/auth": "^23.5.0",
|
|
28
|
+
"@react-native-firebase/crashlytics": "^23.5.0",
|
|
29
|
+
"@react-native-firebase/firestore": "^23.5.0",
|
|
30
|
+
"@react-native-firebase/installations": "^23.5.0",
|
|
31
|
+
"@react-native-firebase/remote-config": "^23.5.0",
|
|
32
|
+
"@tanstack/react-query": "^5.90.6",
|
|
33
|
+
"@types/react": "^19.2.2",
|
|
34
|
+
"firebase": "^12.5.0",
|
|
35
35
|
"husky": "^9.1.7",
|
|
36
|
-
"lint-staged": "^16.
|
|
36
|
+
"lint-staged": "^16.2.6",
|
|
37
37
|
"prettier": "^3.6.2",
|
|
38
|
-
"react": "^19.
|
|
39
|
-
"typedoc": "^0.28.
|
|
40
|
-
"typedoc-plugin-markdown": "^4.
|
|
38
|
+
"react": "^19.2.0",
|
|
39
|
+
"typedoc": "^0.28.14",
|
|
40
|
+
"typedoc-plugin-markdown": "^4.9.0",
|
|
41
41
|
"typedoc-vitepress-theme": "^1.1.2",
|
|
42
|
-
"typescript": "^5.9.
|
|
42
|
+
"typescript": "^5.9.3",
|
|
43
43
|
"vitepress": "^1.6.4"
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://github.com/vpishuk/react-query-firebase",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"docs:build": "vitepress build docs",
|
|
76
76
|
"docs:preview": "vitepress preview docs"
|
|
77
77
|
},
|
|
78
|
-
"version": "2.13.
|
|
78
|
+
"version": "2.13.2"
|
|
79
79
|
}
|
|
@@ -28,9 +28,9 @@ export const buildQueryConstraint = (constraint) => {
|
|
|
28
28
|
case "startAfter":
|
|
29
29
|
return startAfter(...constraint.arguments);
|
|
30
30
|
case "endAt":
|
|
31
|
-
return endAt(constraint.
|
|
31
|
+
return endAt(...constraint.arguments);
|
|
32
32
|
case "endBefore":
|
|
33
|
-
return endBefore(constraint.
|
|
33
|
+
return endBefore(...constraint.arguments);
|
|
34
34
|
case "limit":
|
|
35
35
|
return limit(constraint.limit);
|
|
36
36
|
case "limitToLast":
|
|
@@ -41,9 +41,9 @@ export const buildQueryConstraint = <AppModelType extends AppModel = AppModel>(
|
|
|
41
41
|
case "startAfter":
|
|
42
42
|
return startAfter(...constraint.arguments);
|
|
43
43
|
case "endAt":
|
|
44
|
-
return endAt(constraint.
|
|
44
|
+
return endAt(...constraint.arguments);
|
|
45
45
|
case "endBefore":
|
|
46
|
-
return endBefore(constraint.
|
|
46
|
+
return endBefore(...constraint.arguments);
|
|
47
47
|
case "limit":
|
|
48
48
|
return limit(constraint.limit);
|
|
49
49
|
case "limitToLast":
|
|
@@ -34,4 +34,4 @@ export type UseCompositeFilter<AppModelType extends AppModel = AppModel> = {
|
|
|
34
34
|
* };
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
export declare const useCompositeFilter: <AppModelType extends AppModel = AppModel>({ query }: UseCompositeFilter<AppModelType>) => import("firebase/firestore").QueryCompositeFilterConstraint | undefined;
|
|
37
|
+
export declare const useCompositeFilter: <AppModelType extends AppModel = AppModel>({ query }: UseCompositeFilter<AppModelType>) => import("@firebase/firestore").QueryCompositeFilterConstraint | undefined;
|
|
@@ -25,4 +25,4 @@ export type UseDocReferencesOptions<AppModelType extends AppModel = AppModel> =
|
|
|
25
25
|
* };
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
export declare const useDocReferences: <AppModelType extends AppModel = AppModel>({ references }: UseDocReferencesOptions<AppModelType>) => (import("firebase/firestore").DocumentReference<AppModelType, AppModelType> | null)[];
|
|
28
|
+
export declare const useDocReferences: <AppModelType extends AppModel = AppModel>({ references }: UseDocReferencesOptions<AppModelType>) => (import("@firebase/firestore").DocumentReference<AppModelType, AppModelType> | null)[];
|
|
@@ -28,9 +28,9 @@ export const buildQueryConstraint = (constraint) => {
|
|
|
28
28
|
case "startAfter":
|
|
29
29
|
return startAfter(...constraint.arguments);
|
|
30
30
|
case "endAt":
|
|
31
|
-
return endAt(constraint.
|
|
31
|
+
return endAt(...constraint.arguments);
|
|
32
32
|
case "endBefore":
|
|
33
|
-
return endBefore(constraint.
|
|
33
|
+
return endBefore(...constraint.arguments);
|
|
34
34
|
case "limit":
|
|
35
35
|
return limit(constraint.limit);
|
|
36
36
|
case "limitToLast":
|
|
@@ -42,9 +42,9 @@ export const buildQueryConstraint = <AppModelType extends AppModel = AppModel>(
|
|
|
42
42
|
case "startAfter":
|
|
43
43
|
return startAfter(...constraint.arguments);
|
|
44
44
|
case "endAt":
|
|
45
|
-
return endAt(constraint.
|
|
45
|
+
return endAt(...constraint.arguments);
|
|
46
46
|
case "endBefore":
|
|
47
|
-
return endBefore(constraint.
|
|
47
|
+
return endBefore(...constraint.arguments);
|
|
48
48
|
case "limit":
|
|
49
49
|
return limit(constraint.limit);
|
|
50
50
|
case "limitToLast":
|
|
@@ -15,4 +15,4 @@ export type GetDocSnapOptions<AppModelType extends AppModel = AppModel> = GetDoc
|
|
|
15
15
|
*
|
|
16
16
|
* @returns {Promise<DocumentSnapshot<AppModelType, AppModelType> | null>} Returns a document reference
|
|
17
17
|
*/
|
|
18
|
-
export declare const getDocSnap: <AppModelType extends AppModel = AppModel>({ db, reference, path, pathSegments }: GetDocSnapOptions<AppModelType>) => Promise<import("firebase/firestore").DocumentSnapshot<AppModelType, AppModelType> | null>;
|
|
18
|
+
export declare const getDocSnap: <AppModelType extends AppModel = AppModel>({ db, reference, path, pathSegments }: GetDocSnapOptions<AppModelType>) => Promise<import("@firebase/firestore").DocumentSnapshot<AppModelType, AppModelType> | null>;
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* @param {string} key - The key for which the corresponding value is to be fetched from the remote configuration.
|
|
5
5
|
* @returns {any | null} The value associated with the specified key if available, otherwise null.
|
|
6
6
|
*/
|
|
7
|
-
export declare const useGetValue: (key: string) => import("firebase/remote-config").Value | null;
|
|
7
|
+
export declare const useGetValue: (key: string) => import("@firebase/remote-config").Value | null;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Hook to access the Firebase Remote Config instance from the context.
|
|
3
3
|
* @returns {RemoteConfig} The remoteConfig object from the Firebase context.
|
|
4
4
|
*/
|
|
5
|
-
export declare const useRemoteConfig: () => import("firebase/remote-config").RemoteConfig;
|
|
5
|
+
export declare const useRemoteConfig: () => import("@firebase/remote-config").RemoteConfig;
|