@firebase/firestore 3.4.8-canary.aa41fd662 → 3.4.8-canary.d8be8bf1c

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.
Files changed (35) hide show
  1. package/dist/firestore/src/core/target.d.ts +4 -4
  2. package/dist/firestore/src/local/indexeddb_index_manager.d.ts +0 -5
  3. package/dist/firestore/src/model/values.d.ts +14 -2
  4. package/dist/index.esm2017.js +1278 -1261
  5. package/dist/index.esm2017.js.map +1 -1
  6. package/dist/index.esm5.js +2298 -2282
  7. package/dist/index.esm5.js.map +1 -1
  8. package/dist/index.node.cjs.js +46 -55
  9. package/dist/index.node.cjs.js.map +1 -1
  10. package/dist/index.node.mjs +46 -55
  11. package/dist/index.node.mjs.map +1 -1
  12. package/dist/index.rn.js +1315 -1298
  13. package/dist/index.rn.js.map +1 -1
  14. package/dist/lite/firestore/src/core/target.d.ts +4 -4
  15. package/dist/lite/firestore/src/local/indexeddb_index_manager.d.ts +0 -5
  16. package/dist/lite/firestore/src/model/values.d.ts +14 -2
  17. package/dist/lite/index.browser.esm2017.js +509 -499
  18. package/dist/lite/index.browser.esm2017.js.map +1 -1
  19. package/dist/lite/index.browser.esm5.js +547 -537
  20. package/dist/lite/index.browser.esm5.js.map +1 -1
  21. package/dist/lite/index.node.cjs.js +21 -5
  22. package/dist/lite/index.node.cjs.js.map +1 -1
  23. package/dist/lite/index.node.mjs +21 -5
  24. package/dist/lite/index.node.mjs.map +1 -1
  25. package/dist/lite/index.rn.esm2017.js +1216 -1206
  26. package/dist/lite/index.rn.esm2017.js.map +1 -1
  27. package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +97 -97
  28. package/dist/lite/packages/firestore/src/core/target.d.ts +4 -4
  29. package/dist/lite/packages/firestore/src/local/indexeddb_index_manager.d.ts +0 -5
  30. package/dist/lite/packages/firestore/src/model/values.d.ts +14 -2
  31. package/dist/packages/firestore/dist/index.esm2017.d.ts +50 -50
  32. package/dist/packages/firestore/src/core/target.d.ts +4 -4
  33. package/dist/packages/firestore/src/local/indexeddb_index_manager.d.ts +0 -5
  34. package/dist/packages/firestore/src/model/values.d.ts +14 -2
  35. package/package.json +9 -9
@@ -72,16 +72,16 @@ export declare function targetGetArrayValues(target: Target, fieldIndex: FieldIn
72
72
  export declare function targetGetNotInValues(target: Target, fieldIndex: FieldIndex): ProtoValue[] | null;
73
73
  /**
74
74
  * Returns a lower bound of field values that can be used as a starting point to
75
- * scan the index defined by `fieldIndex`. Returns `null` if no lower bound
75
+ * scan the index defined by `fieldIndex`. Returns `MIN_VALUE` if no lower bound
76
76
  * exists.
77
77
  */
78
- export declare function targetGetLowerBound(target: Target, fieldIndex: FieldIndex): Bound | null;
78
+ export declare function targetGetLowerBound(target: Target, fieldIndex: FieldIndex): Bound;
79
79
  /**
80
80
  * Returns an upper bound of field values that can be used as an ending point
81
- * when scanning the index defined by `fieldIndex`. Returns `null` if no
81
+ * when scanning the index defined by `fieldIndex`. Returns `MAX_VALUE` if no
82
82
  * upper bound exists.
83
83
  */
84
- export declare function targetGetUpperBound(target: Target, fieldIndex: FieldIndex): Bound | null;
84
+ export declare function targetGetUpperBound(target: Target, fieldIndex: FieldIndex): Bound;
85
85
  /** Returns the number of segments of a perfect index for this target. */
86
86
  export declare function targetGetSegmentCount(target: Target): number;
87
87
  export declare abstract class Filter {
@@ -70,11 +70,6 @@ export declare class IndexedDbIndexManager implements IndexManager {
70
70
  private generateLowerBound;
71
71
  /** Generates the upper bound for `arrayValue` and `directionalValue`. */
72
72
  private generateUpperBound;
73
- /**
74
- * Generates an empty bound that scopes the index scan to the current index
75
- * and user.
76
- */
77
- private generateEmptyBound;
78
73
  private getFieldIndex;
79
74
  getIndexType(transaction: PersistenceTransaction, target: Target): PersistencePromise<IndexType>;
80
75
  /**
@@ -81,5 +81,17 @@ export declare function isMaxValue(value: Value): boolean;
81
81
  export declare function valuesGetLowerBound(value: Value): Value;
82
82
  /** Returns the largest value for the given value type (exclusive). */
83
83
  export declare function valuesGetUpperBound(value: Value): Value;
84
- export declare function valuesMax(left: Value | undefined, right: Value | undefined): Value | undefined;
85
- export declare function valuesMin(left: Value | undefined, right: Value | undefined): Value | undefined;
84
+ export declare function lowerBoundCompare(left: {
85
+ value: Value;
86
+ inclusive: boolean;
87
+ }, right: {
88
+ value: Value;
89
+ inclusive: boolean;
90
+ }): number;
91
+ export declare function upperBoundCompare(left: {
92
+ value: Value;
93
+ inclusive: boolean;
94
+ }, right: {
95
+ value: Value;
96
+ inclusive: boolean;
97
+ }): number;