react-query-firebase 2.13.0 → 2.13.1

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
@@ -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.1",
25
- "@react-native-firebase/analytics": "^23.0.1",
26
- "@react-native-firebase/app": "23.4.0",
27
- "@react-native-firebase/auth": "^23.0.1",
28
- "@react-native-firebase/crashlytics": "^23.0.1",
29
- "@react-native-firebase/firestore": "^23.0.1",
30
- "@react-native-firebase/installations": "^23.0.1",
31
- "@react-native-firebase/remote-config": "^23.0.1",
32
- "@tanstack/react-query": "^5.85.3",
33
- "@types/react": "^19.1.10",
34
- "firebase": "^12.1.0",
24
+ "@laverve/eslint-utils": "^5.3.7",
25
+ "@react-native-firebase/analytics": "^23.4.1",
26
+ "@react-native-firebase/app": "^23.4.1",
27
+ "@react-native-firebase/auth": "^23.4.1",
28
+ "@react-native-firebase/crashlytics": "^23.4.1",
29
+ "@react-native-firebase/firestore": "^23.4.1",
30
+ "@react-native-firebase/installations": "^23.4.1",
31
+ "@react-native-firebase/remote-config": "^23.4.1",
32
+ "@tanstack/react-query": "^5.90.5",
33
+ "@types/react": "^19.2.2",
34
+ "firebase": "^12.4.0",
35
35
  "husky": "^9.1.7",
36
- "lint-staged": "^16.1.5",
36
+ "lint-staged": "^16.2.6",
37
37
  "prettier": "^3.6.2",
38
- "react": "^19.1.1",
39
- "typedoc": "^0.28.10",
40
- "typedoc-plugin-markdown": "^4.8.1",
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.2",
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.0"
78
+ "version": "2.13.1"
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.value, constraint.key);
31
+ return endAt(...constraint.arguments);
32
32
  case "endBefore":
33
- return endBefore(constraint.value, constraint.key);
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.value, constraint.key);
44
+ return endAt(...constraint.arguments);
45
45
  case "endBefore":
46
- return endBefore(constraint.value, constraint.key);
46
+ return endBefore(...constraint.arguments);
47
47
  case "limit":
48
48
  return limit(constraint.limit);
49
49
  case "limitToLast":
@@ -31,8 +31,7 @@ export type StartConstraint = {
31
31
  */
32
32
  export type EndConstraint = {
33
33
  type: "endAt" | "endBefore";
34
- value: number | string | boolean | null;
35
- key?: string;
34
+ arguments: unknown[];
36
35
  };
37
36
  /**
38
37
  * Limit constraint
@@ -34,8 +34,7 @@ export type StartConstraint = {
34
34
  */
35
35
  export type EndConstraint = {
36
36
  type: "endAt" | "endBefore";
37
- value: number | string | boolean | null;
38
- key?: string;
37
+ arguments: unknown[];
39
38
  };
40
39
 
41
40
  /**
@@ -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.value, constraint.key);
31
+ return endAt(...constraint.arguments);
32
32
  case "endBefore":
33
- return endBefore(constraint.value, constraint.key);
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.value, constraint.key);
45
+ return endAt(...constraint.arguments);
46
46
  case "endBefore":
47
- return endBefore(constraint.value, constraint.key);
47
+ return endBefore(...constraint.arguments);
48
48
  case "limit":
49
49
  return limit(constraint.limit);
50
50
  case "limitToLast":