@firebase/firestore 4.7.5 → 4.7.6-canary.144bc3709

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.
@@ -320,7 +320,15 @@ declare abstract class BasePath<B extends BasePath<B>> {
320
320
  isImmediateParentOf(potentialChild: this): boolean;
321
321
  forEach(fn: (segment: string) => void): void;
322
322
  toArray(): string[];
323
+ /**
324
+ * Compare 2 paths segment by segment, prioritizing numeric IDs
325
+ * (e.g., "__id123__") in numeric ascending order, followed by string
326
+ * segments in lexicographical order.
327
+ */
323
328
  static comparator<T extends BasePath<T>>(p1: BasePath<T>, p2: BasePath<T>): number;
329
+ private static compareSegments;
330
+ private static isNumericId;
331
+ private static extractNumericId;
324
332
  }
325
333
 
326
334
  /**
@@ -286,7 +286,15 @@ declare abstract class BasePath<B extends BasePath<B>> {
286
286
  isImmediateParentOf(potentialChild: this): boolean;
287
287
  forEach(fn: (segment: string) => void): void;
288
288
  toArray(): string[];
289
+ /**
290
+ * Compare 2 paths segment by segment, prioritizing numeric IDs
291
+ * (e.g., "__id123__") in numeric ascending order, followed by string
292
+ * segments in lexicographical order.
293
+ */
289
294
  static comparator<T extends BasePath<T>>(p1: BasePath<T>, p2: BasePath<T>): number;
295
+ private static compareSegments;
296
+ private static isNumericId;
297
+ private static extractNumericId;
290
298
  }
291
299
 
292
300
  /**
@@ -50,7 +50,15 @@ declare abstract class BasePath<B extends BasePath<B>> {
50
50
  isImmediateParentOf(potentialChild: this): boolean;
51
51
  forEach(fn: (segment: string) => void): void;
52
52
  toArray(): string[];
53
+ /**
54
+ * Compare 2 paths segment by segment, prioritizing numeric IDs
55
+ * (e.g., "__id123__") in numeric ascending order, followed by string
56
+ * segments in lexicographical order.
57
+ */
53
58
  static comparator<T extends BasePath<T>>(p1: BasePath<T>, p2: BasePath<T>): number;
59
+ private static compareSegments;
60
+ private static isNumericId;
61
+ private static extractNumericId;
54
62
  }
55
63
  /**
56
64
  * A slash-separated path for navigating resources (documents and collections)
package/dist/private.d.ts CHANGED
@@ -280,7 +280,15 @@ declare abstract class BasePath<B extends BasePath<B>> {
280
280
  isImmediateParentOf(potentialChild: this): boolean;
281
281
  forEach(fn: (segment: string) => void): void;
282
282
  toArray(): string[];
283
+ /**
284
+ * Compare 2 paths segment by segment, prioritizing numeric IDs
285
+ * (e.g., "__id123__") in numeric ascending order, followed by string
286
+ * segments in lexicographical order.
287
+ */
283
288
  static comparator<T extends BasePath<T>>(p1: BasePath<T>, p2: BasePath<T>): number;
289
+ private static compareSegments;
290
+ private static isNumericId;
291
+ private static extractNumericId;
284
292
  }
285
293
 
286
294
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/firestore",
3
- "version": "4.7.5",
3
+ "version": "4.7.6-canary.144bc3709",
4
4
  "engines": {
5
5
  "node": ">=18.0.0"
6
6
  },
@@ -94,21 +94,21 @@
94
94
  "lite/package.json"
95
95
  ],
96
96
  "dependencies": {
97
- "@firebase/component": "0.6.11",
98
- "@firebase/logger": "0.4.4",
99
- "@firebase/util": "1.10.2",
100
- "@firebase/webchannel-wrapper": "1.0.3",
97
+ "@firebase/component": "0.6.12-canary.144bc3709",
98
+ "@firebase/logger": "0.4.4-canary.144bc3709",
99
+ "@firebase/util": "1.10.3-canary.144bc3709",
100
+ "@firebase/webchannel-wrapper": "1.0.3-canary.144bc3709",
101
101
  "@grpc/grpc-js": "~1.9.0",
102
102
  "@grpc/proto-loader": "^0.7.8",
103
103
  "tslib": "^2.1.0"
104
104
  },
105
105
  "peerDependencies": {
106
- "@firebase/app": "0.x"
106
+ "@firebase/app": "0.10.18-canary.144bc3709"
107
107
  },
108
108
  "devDependencies": {
109
- "@firebase/app": "0.10.16",
110
- "@firebase/app-compat": "0.2.46",
111
- "@firebase/auth": "1.8.1",
109
+ "@firebase/app": "0.10.18-canary.144bc3709",
110
+ "@firebase/app-compat": "0.2.48-canary.144bc3709",
111
+ "@firebase/auth": "1.8.2-canary.144bc3709",
112
112
  "@rollup/plugin-alias": "5.1.0",
113
113
  "@rollup/plugin-json": "4.1.0",
114
114
  "@types/eslint": "7.29.0",