@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
@@ -99,7 +99,7 @@
99
99
  * See the License for the specific language governing permissions and
100
100
  * limitations under the License.
101
101
  */
102
- /** DOMException error code constants. */ declare const bc: -1;
102
+ /** DOMException error code constants. */ declare const Pc: -1;
103
103
  /**
104
104
  * A `CollectionReference` object can be used for adding documents, getting
105
105
  * document references, and querying for documents (using {@link query}).
@@ -318,7 +318,7 @@ declare class Vc extends dc {
318
318
  * with an underscore.
319
319
  */ _compareTo(t: any): 0 | 1 | -1;
320
320
  }
321
- declare class Pc {
321
+ declare class bc {
322
322
  _progressObserver: {};
323
323
  _taskCompletionResolver: j;
324
324
  _lastProgress: {
@@ -399,7 +399,7 @@ declare class Pc {
399
399
  * `DocumentSnapshot`. Since query results contain only existing documents, the
400
400
  * `exists` property will always be true and `data()` will never return
401
401
  * 'undefined'.
402
- */ declare class Ph extends Rh {
402
+ */ declare class bh extends Rh {
403
403
  }
404
404
  /**
405
405
  * A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects
@@ -407,7 +407,7 @@ declare class Pc {
407
407
  * array via the `docs` property or enumerated using the `forEach` method. The
408
408
  * number of documents can be determined via the `empty` and `size`
409
409
  * properties.
410
- */ declare class bh {
410
+ */ declare class Ph {
411
411
  /** @hideconstructor */
412
412
  constructor(t: any, e: any, n: any, s: any);
413
413
  _firestore: any;
@@ -1036,19 +1036,19 @@ declare function tl(t: any): Promise<Rh>;
1036
1036
  * invoke {@link getDocsFromCache} or {@link getDocsFromServer}.
1037
1037
  *
1038
1038
  * @returns A `Promise` that will be resolved with the results of the query.
1039
- */ declare function il(t: any): Promise<bh>;
1039
+ */ declare function il(t: any): Promise<Ph>;
1040
1040
  /**
1041
1041
  * Executes the query and returns the results as a `QuerySnapshot` from cache.
1042
1042
  * Returns an error if the document is not currently cached.
1043
1043
  *
1044
1044
  * @returns A `Promise` that will be resolved with the results of the query.
1045
- */ declare function rl(t: any): Promise<bh>;
1045
+ */ declare function rl(t: any): Promise<Ph>;
1046
1046
  /**
1047
1047
  * Executes the query and returns the results as a `QuerySnapshot` from the
1048
1048
  * server. Returns an error if the network is not available.
1049
1049
  *
1050
1050
  * @returns A `Promise` that will be resolved with the results of the query.
1051
- */ declare function ol(t: any): Promise<bh>;
1051
+ */ declare function ol(t: any): Promise<Ph>;
1052
1052
  /**
1053
1053
  * Returns the existing {@link Firestore} instance that is associated with the
1054
1054
  * provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
@@ -1113,7 +1113,7 @@ declare function tl(t: any): Promise<Rh>;
1113
1113
  * @returns A `LoadBundleTask` object, which notifies callers with progress
1114
1114
  * updates, and completion or error events. It can be used as a
1115
1115
  * `Promise<LoadBundleTaskProgress>`.
1116
- */ declare function Lc(t: any, e: any): Pc;
1116
+ */ declare function Lc(t: any, e: any): bc;
1117
1117
  /**
1118
1118
  * Reads a Firestore {@link Query} from local cache, identified by the given
1119
1119
  * name.
@@ -1417,16 +1417,16 @@ declare function al(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1417
1417
  * See the License for the specific language governing permissions and
1418
1418
  * limitations under the License.
1419
1419
  */ declare class Ac {
1420
- $a: Promise<void>;
1421
- Ba: any[];
1422
- La: boolean;
1423
- Ua: any[];
1424
- qa: any;
1420
+ Fa: Promise<void>;
1421
+ $a: any[];
1422
+ Ba: boolean;
1423
+ La: any[];
1424
+ Ua: any;
1425
+ qa: boolean;
1425
1426
  Ka: boolean;
1426
- Ga: boolean;
1427
- Qa: any[];
1428
- ko: Wo;
1429
- ja: () => void;
1427
+ Ga: any[];
1428
+ No: Wo;
1429
+ Qa: () => void;
1430
1430
  get isShuttingDown(): boolean;
1431
1431
  /**
1432
1432
  * Adds a new operation to the queue without waiting for it to complete (i.e.
@@ -1439,30 +1439,30 @@ declare function al(t: any, e: any, n: any, ...s: any[]): Promise<any>;
1439
1439
  /**
1440
1440
  * Runs the next operation from the retryable queue. If the operation fails,
1441
1441
  * reschedules with backoff.
1442
- */ Ha(): Promise<void>;
1443
- za(t: any): Promise<any>;
1442
+ */ za(): Promise<void>;
1443
+ Wa(t: any): Promise<any>;
1444
1444
  enqueueAfterDelay(t: any, e: any, n: any): vu;
1445
- Wa(): void;
1445
+ ja(): void;
1446
1446
  verifyOperationInProgress(): void;
1447
1447
  /**
1448
1448
  * Waits until all currently queued tasks are finished executing. Delayed
1449
1449
  * operations are not run.
1450
- */ Ya(): Promise<void>;
1450
+ */ Ja(): Promise<void>;
1451
1451
  /**
1452
1452
  * For Tests: Determine if a delayed operation with a particular TimerId
1453
1453
  * exists.
1454
- */ Xa(t: any): boolean;
1454
+ */ Ya(t: any): boolean;
1455
1455
  /**
1456
1456
  * For Tests: Runs some or all delayed operations early.
1457
1457
  *
1458
1458
  * @param lastTimerId - Delayed operations up to and including this TimerId
1459
1459
  * will be drained. Pass TimerId.All to run all delayed operations.
1460
1460
  * @returns a Promise that resolves once all operations have been run.
1461
- */ Za(t: any): Promise<void>;
1461
+ */ Xa(t: any): Promise<void>;
1462
1462
  /**
1463
1463
  * For Tests: Skip all subsequent delays for a timer id.
1464
- */ tc(t: any): void;
1465
- /** Called once a DelayedOperation is run or canceled. */ Ja(t: any): void;
1464
+ */ Za(t: any): void;
1465
+ /** Called once a DelayedOperation is run or canceled. */ Ha(t: any): void;
1466
1466
  }
1467
1467
  import { FirebaseError as a } from "@firebase/util/dist/src/errors";
1468
1468
  /**
@@ -1493,7 +1493,7 @@ import { FirebaseError as a } from "@firebase/util/dist/src/errors";
1493
1493
  databaseId: any;
1494
1494
  ignoreUndefinedProperties: any;
1495
1495
  M: any;
1496
- /** Creates a new top-level parse context. */ fc(t: any, e: any, n: any, s?: boolean): Xc;
1496
+ /** Creates a new top-level parse context. */ lc(t: any, e: any, n: any, s?: boolean): Xc;
1497
1497
  }
1498
1498
  declare class Z {
1499
1499
  constructor(t: any);
@@ -1543,13 +1543,13 @@ declare class dt {
1543
1543
  }
1544
1544
  declare class oh extends jc {
1545
1545
  constructor(t: any, e: any);
1546
- dc: any;
1546
+ fc: any;
1547
1547
  _toFieldTransform(t: any): In;
1548
1548
  isEqual(t: any): boolean;
1549
1549
  }
1550
1550
  declare class rh extends jc {
1551
1551
  constructor(t: any, e: any);
1552
- dc: any;
1552
+ fc: any;
1553
1553
  _toFieldTransform(t: any): In;
1554
1554
  isEqual(t: any): boolean;
1555
1555
  }
@@ -1560,27 +1560,27 @@ declare class nh extends jc {
1560
1560
  declare class qh extends Dh {
1561
1561
  constructor(t: any, e: any, n: any);
1562
1562
  type: any;
1563
+ Tc: any;
1563
1564
  Ec: any;
1564
- Ac: any;
1565
1565
  _apply(t: any): mc;
1566
1566
  }
1567
1567
  declare class uh extends jc {
1568
1568
  constructor(t: any, e: any);
1569
- _c: any;
1569
+ dc: any;
1570
1570
  _toFieldTransform(t: any): In;
1571
1571
  isEqual(t: any): boolean;
1572
1572
  }
1573
1573
  declare class Oh extends Dh {
1574
1574
  constructor(t: any, e: any, n: any);
1575
1575
  type: any;
1576
+ yc: any;
1576
1577
  Ic: any;
1577
- Tc: any;
1578
1578
  _apply(t: any): mc;
1579
1579
  }
1580
1580
  declare class kh extends Dh {
1581
1581
  constructor(t: any, e: any);
1582
- wc: any;
1583
- yc: any;
1582
+ _c: any;
1583
+ gc: any;
1584
1584
  type: string;
1585
1585
  _apply(t: any): mc;
1586
1586
  }
@@ -1591,15 +1591,15 @@ declare class ih extends jc {
1591
1591
  declare class Bh extends Dh {
1592
1592
  constructor(t: any, e: any, n: any);
1593
1593
  type: any;
1594
+ Tc: any;
1594
1595
  Ec: any;
1595
- Ac: any;
1596
1596
  _apply(t: any): mc;
1597
1597
  }
1598
1598
  declare class xh extends Dh {
1599
1599
  constructor(t: any, e: any, n: any);
1600
+ _c: any;
1600
1601
  wc: any;
1601
1602
  mc: any;
1602
- gc: any;
1603
1603
  type: string;
1604
1604
  _apply(t: any): mc;
1605
1605
  }
@@ -1650,15 +1650,15 @@ declare class fc {
1650
1650
  */
1651
1651
  declare class Wo {
1652
1652
  constructor(t: any, e: any, n?: number, s?: number, i?: number);
1653
- Xn: any;
1653
+ Yn: any;
1654
1654
  timerId: any;
1655
+ mo: number;
1655
1656
  yo: number;
1656
1657
  po: number;
1657
1658
  Io: number;
1658
- To: number;
1659
- Eo: any;
1659
+ To: any;
1660
1660
  /** The last backoff attempt, as epoch milliseconds. */
1661
- Ao: number;
1661
+ Eo: number;
1662
1662
  /**
1663
1663
  * Resets the backoff delay.
1664
1664
  *
@@ -1669,13 +1669,13 @@ declare class Wo {
1669
1669
  /**
1670
1670
  * Resets the backoff delay to the maximum delay (e.g. for use after a
1671
1671
  * RESOURCE_EXHAUSTED error).
1672
- */ Ro(): void;
1672
+ */ Ao(): void;
1673
1673
  /**
1674
1674
  * Returns a promise that resolves after currentDelayMs, and increases the
1675
1675
  * delay for any subsequent attempts. If there was a pending backoff operation
1676
1676
  * already, it will be canceled.
1677
- */ Po(t: any): void;
1678
- Vo(): void;
1677
+ */ Ro(t: any): void;
1678
+ Po(): void;
1679
1679
  cancel(): void;
1680
1680
  /** Returns a random value in the range [-currentBaseMs/2, currentBaseMs/2] */ bo(): number;
1681
1681
  }
@@ -1775,15 +1775,15 @@ declare class vu {
1775
1775
  fieldTransforms: any;
1776
1776
  fieldMask: any;
1777
1777
  get path(): any;
1778
- get nc(): any;
1779
- /** Returns a new context with the specified settings overwritten. */ sc(t: any): Xc;
1780
- ic(t: any): Xc;
1778
+ get ec(): any;
1779
+ /** Returns a new context with the specified settings overwritten. */ nc(t: any): Xc;
1780
+ sc(t: any): Xc;
1781
+ oc(t: any): Xc;
1781
1782
  uc(t: any): Xc;
1782
- ac(t: any): Xc;
1783
- cc(t: any): Q;
1783
+ ac(t: any): Q;
1784
1784
  /** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
1785
- ec(): void;
1786
- oc(t: any): void;
1785
+ tc(): void;
1786
+ rc(t: any): void;
1787
1787
  }
1788
1788
  /**
1789
1789
  * @license
@@ -1806,4 +1806,4 @@ declare class vu {
1806
1806
  field: any;
1807
1807
  transform: any;
1808
1808
  }
1809
- export { Hh as AbstractUserDataWriter, Qc as Bytes, bc as CACHE_SIZE_UNLIMITED, gc as CollectionReference, wc as DocumentReference, Rh as DocumentSnapshot, Kc as FieldPath, jc as FieldValue, Vc as Firestore, Q as FirestoreError, Wc as GeoPoint, Pc as LoadBundleTask, mc as Query, Dh as QueryConstraint, Ph as QueryDocumentSnapshot, bh as QuerySnapshot, Ah as SnapshotMetadata, at as Timestamp, wl as Transaction, Xh as WriteBatch, vt as _DatabaseId, xt as _DocumentKey, et as _EmptyAppCheckTokenProvider, z as _EmptyAuthCredentialsProvider, mt as _FieldPath, hc as _cast, q as _debugAssert, yt as _isBase64Available, $ as _logWarn, Al as _setIndexConfiguration, oc as _validateIsNotUsedTogether, hl as addDoc, Il as arrayRemove, pl as arrayUnion, Mc as clearIndexedDbPersistence, yc as collection, pc as collectionGroup, _c as connectFirestoreEmulator, cl as deleteDoc, gl as deleteField, $c as disableNetwork, Ic as doc, Gc as documentId, xc as enableIndexedDbPersistence, Nc as enableMultiTabIndexedDbPersistence, Fc as enableNetwork, Gh as endAt, Kh as endBefore, Dc as ensureFirestoreConfigured, dl as executeWrite, tl as getDoc, nl as getDocFromCache, sl as getDocFromServer, il as getDocs, rl as getDocsFromCache, ol as getDocsFromServer, Sc as getFirestore, Tl as increment, vc as initializeFirestore, Fh as limit, $h as limitToLast, Lc as loadBundle, Uc as namedQuery, ll as onSnapshot, fl as onSnapshotsInSync, Mh as orderBy, Ch as query, Ec as queryEqual, Tc as refEqual, ml as runTransaction, yl as serverTimestamp, ul as setDoc, M as setLogLevel, vh as snapshotEqual, Uh as startAfter, Lh as startAt, Bc as terminate, al as updateDoc, Oc as waitForPendingWrites, Nh as where, El as writeBatch };
1809
+ export { Hh as AbstractUserDataWriter, Qc as Bytes, Pc as CACHE_SIZE_UNLIMITED, gc as CollectionReference, wc as DocumentReference, Rh as DocumentSnapshot, Kc as FieldPath, jc as FieldValue, Vc as Firestore, Q as FirestoreError, Wc as GeoPoint, bc as LoadBundleTask, mc as Query, Dh as QueryConstraint, bh as QueryDocumentSnapshot, Ph as QuerySnapshot, Ah as SnapshotMetadata, at as Timestamp, wl as Transaction, Xh as WriteBatch, vt as _DatabaseId, xt as _DocumentKey, et as _EmptyAppCheckTokenProvider, z as _EmptyAuthCredentialsProvider, mt as _FieldPath, hc as _cast, q as _debugAssert, yt as _isBase64Available, $ as _logWarn, Al as _setIndexConfiguration, oc as _validateIsNotUsedTogether, hl as addDoc, Il as arrayRemove, pl as arrayUnion, Mc as clearIndexedDbPersistence, yc as collection, pc as collectionGroup, _c as connectFirestoreEmulator, cl as deleteDoc, gl as deleteField, $c as disableNetwork, Ic as doc, Gc as documentId, xc as enableIndexedDbPersistence, Nc as enableMultiTabIndexedDbPersistence, Fc as enableNetwork, Gh as endAt, Kh as endBefore, Dc as ensureFirestoreConfigured, dl as executeWrite, tl as getDoc, nl as getDocFromCache, sl as getDocFromServer, il as getDocs, rl as getDocsFromCache, ol as getDocsFromServer, Sc as getFirestore, Tl as increment, vc as initializeFirestore, Fh as limit, $h as limitToLast, Lc as loadBundle, Uc as namedQuery, ll as onSnapshot, fl as onSnapshotsInSync, Mh as orderBy, Ch as query, Ec as queryEqual, Tc as refEqual, ml as runTransaction, yl as serverTimestamp, ul as setDoc, M as setLogLevel, vh as snapshotEqual, Uh as startAfter, Lh as startAt, Bc as terminate, al as updateDoc, Oc as waitForPendingWrites, Nh as where, El as writeBatch };
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/firestore",
3
- "version": "3.4.8-canary.aa41fd662",
3
+ "version": "3.4.8-canary.d8be8bf1c",
4
4
  "engines": {
5
5
  "node": ">=10.10.0"
6
6
  },
@@ -77,22 +77,22 @@
77
77
  "lite/package.json"
78
78
  ],
79
79
  "dependencies": {
80
- "@firebase/component": "0.5.13-canary.aa41fd662",
81
- "@firebase/logger": "0.3.2-canary.aa41fd662",
82
- "@firebase/util": "1.5.2-canary.aa41fd662",
83
- "@firebase/webchannel-wrapper": "0.6.1-canary.aa41fd662",
80
+ "@firebase/component": "0.5.13-canary.d8be8bf1c",
81
+ "@firebase/logger": "0.3.2-canary.d8be8bf1c",
82
+ "@firebase/util": "1.5.2-canary.d8be8bf1c",
83
+ "@firebase/webchannel-wrapper": "0.6.1-canary.d8be8bf1c",
84
84
  "@grpc/grpc-js": "^1.3.2",
85
85
  "@grpc/proto-loader": "^0.6.0",
86
86
  "node-fetch": "2.6.7",
87
87
  "tslib": "^2.1.0"
88
88
  },
89
89
  "peerDependencies": {
90
- "@firebase/app": "0.7.21-canary.aa41fd662"
90
+ "@firebase/app": "0.7.21-canary.d8be8bf1c"
91
91
  },
92
92
  "devDependencies": {
93
- "@firebase/app": "0.7.21-canary.aa41fd662",
94
- "@firebase/app-compat": "0.1.22-canary.aa41fd662",
95
- "@firebase/auth": "0.19.12-canary.aa41fd662",
93
+ "@firebase/app": "0.7.21-canary.d8be8bf1c",
94
+ "@firebase/app-compat": "0.1.22-canary.d8be8bf1c",
95
+ "@firebase/auth": "0.19.12-canary.d8be8bf1c",
96
96
  "@rollup/plugin-alias": "3.1.5",
97
97
  "@rollup/plugin-json": "4.1.0",
98
98
  "@types/eslint": "7.28.0",