@firebase/firestore 3.4.14-canary.fcd4b8ac3 → 3.4.15
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/CHANGELOG.md +6 -0
- package/dist/firestore/src/api/database.d.ts +34 -3
- package/dist/firestore/src/core/database_info.d.ts +4 -0
- package/dist/firestore/src/lite-api/database.d.ts +51 -7
- package/dist/firestore/test/integration/api/provider.test.d.ts +17 -0
- package/dist/firestore/test/integration/util/firebase_export.d.ts +2 -1
- package/dist/firestore/test/integration/util/helpers.d.ts +1 -0
- package/dist/index.d.ts +14 -3
- package/dist/index.esm2017.js +67 -68
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +52 -55
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +47 -42
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +47 -42
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +67 -68
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +40 -6
- package/dist/lite/firestore/src/api/database.d.ts +34 -3
- package/dist/lite/firestore/src/core/database_info.d.ts +4 -0
- package/dist/lite/firestore/src/lite-api/database.d.ts +51 -7
- package/dist/lite/firestore/test/integration/api/provider.test.d.ts +17 -0
- package/dist/lite/firestore/test/integration/util/firebase_export.d.ts +2 -1
- package/dist/lite/firestore/test/integration/util/helpers.d.ts +1 -0
- package/dist/lite/index.browser.esm2017.js +43 -57
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +181 -184
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.d.ts +15 -4
- package/dist/lite/index.node.cjs.js +37 -45
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +37 -45
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +43 -57
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +55 -7
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +6 -43
- package/dist/lite/packages/firestore/src/api/database.d.ts +34 -3
- package/dist/lite/packages/firestore/src/core/database_info.d.ts +4 -0
- package/dist/lite/packages/firestore/src/lite-api/database.d.ts +51 -7
- package/dist/lite/packages/firestore/test/integration/api/provider.test.d.ts +17 -0
- package/dist/lite/packages/firestore/test/integration/util/firebase_export.d.ts +2 -1
- package/dist/lite/packages/firestore/test/integration/util/helpers.d.ts +1 -0
- package/dist/lite/private.d.ts +22 -7
- package/dist/packages/firestore/dist/index.esm2017.d.ts +20 -15
- package/dist/packages/firestore/src/api/database.d.ts +34 -3
- package/dist/packages/firestore/src/core/database_info.d.ts +4 -0
- package/dist/packages/firestore/src/lite-api/database.d.ts +51 -7
- package/dist/packages/firestore/test/integration/api/provider.test.d.ts +17 -0
- package/dist/packages/firestore/test/integration/util/firebase_export.d.ts +2 -1
- package/dist/packages/firestore/test/integration/util/helpers.d.ts +1 -0
- package/dist/private.d.ts +21 -7
- package/package.json +10 -9
|
@@ -66,7 +66,7 @@ f.MOCK_USER = new f("mock-user");
|
|
|
66
66
|
* See the License for the specific language governing permissions and
|
|
67
67
|
* limitations under the License.
|
|
68
68
|
*/
|
|
69
|
-
let d = "9.9.
|
|
69
|
+
let d = "9.9.4";
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
@@ -473,22 +473,6 @@ class J {
|
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
-
/**
|
|
477
|
-
* @license
|
|
478
|
-
* Copyright 2017 Google LLC
|
|
479
|
-
*
|
|
480
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
481
|
-
* you may not use this file except in compliance with the License.
|
|
482
|
-
* You may obtain a copy of the License at
|
|
483
|
-
*
|
|
484
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
485
|
-
*
|
|
486
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
487
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
488
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
489
|
-
* See the License for the specific language governing permissions and
|
|
490
|
-
* limitations under the License.
|
|
491
|
-
*/
|
|
492
476
|
/**
|
|
493
477
|
* Path represents an ordered sequence of string segments.
|
|
494
478
|
*/
|
|
@@ -3811,28 +3795,14 @@ class hn {
|
|
|
3811
3795
|
* Do not call this constructor directly. Instead, use {@link getFirestore}.
|
|
3812
3796
|
*/ class ln {
|
|
3813
3797
|
/** @hideconstructor */
|
|
3814
|
-
constructor(t, e, n) {
|
|
3815
|
-
this._authCredentials =
|
|
3798
|
+
constructor(t, e, n, r) {
|
|
3799
|
+
this._authCredentials = t, this._appCheckCredentials = e, this._databaseId = n,
|
|
3800
|
+
this._app = r,
|
|
3816
3801
|
/**
|
|
3817
3802
|
* Whether it's a Firestore or Firestore Lite instance.
|
|
3818
3803
|
*/
|
|
3819
3804
|
this.type = "firestore-lite", this._persistenceKey = "(lite)", this._settings = new hn({}),
|
|
3820
|
-
this._settingsFrozen = !1
|
|
3821
|
-
this._databaseId = function(t) {
|
|
3822
|
-
if (!Object.prototype.hasOwnProperty.apply(t.options, [ "projectId" ])) throw new M(R, '"projectId" not provided in firebase.initializeApp.');
|
|
3823
|
-
return new J(t.options.projectId);
|
|
3824
|
-
}
|
|
3825
|
-
/**
|
|
3826
|
-
* Initializes a new instance of Cloud Firestore with the provided settings.
|
|
3827
|
-
* Can only be called before any other functions, including
|
|
3828
|
-
* {@link getFirestore}. If the custom settings are empty, this function is
|
|
3829
|
-
* equivalent to calling {@link getFirestore}.
|
|
3830
|
-
*
|
|
3831
|
-
* @param app - The {@link @firebase/app#FirebaseApp} with which the `Firestore` instance will
|
|
3832
|
-
* be associated.
|
|
3833
|
-
* @param settings - A settings object to configure the `Firestore` instance.
|
|
3834
|
-
* @returns A newly initialized `Firestore` instance.
|
|
3835
|
-
*/ (t));
|
|
3805
|
+
this._settingsFrozen = !1;
|
|
3836
3806
|
}
|
|
3837
3807
|
/**
|
|
3838
3808
|
* The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service
|
|
@@ -3894,24 +3864,21 @@ class hn {
|
|
|
3894
3864
|
}
|
|
3895
3865
|
}
|
|
3896
3866
|
|
|
3897
|
-
function fn(t, e) {
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3867
|
+
function fn(t, e, n) {
|
|
3868
|
+
n || (n = "(default)");
|
|
3869
|
+
const r = _getProvider(t, "firestore/lite");
|
|
3870
|
+
if (r.isInitialized(n)) throw new M(S, "Firestore can only be initialized once per app.");
|
|
3871
|
+
return r.initialize({
|
|
3872
|
+
options: e,
|
|
3873
|
+
instanceIdentifier: n
|
|
3902
3874
|
});
|
|
3903
3875
|
}
|
|
3904
3876
|
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
* @param app - The {@link @firebase/app#FirebaseApp} instance that the returned `Firestore`
|
|
3911
|
-
* instance is associated with.
|
|
3912
|
-
* @returns The `Firestore` instance of the provided app.
|
|
3913
|
-
*/ function dn(e = t()) {
|
|
3914
|
-
return _getProvider(e, "firestore/lite").getImmediate();
|
|
3877
|
+
function dn(e, n) {
|
|
3878
|
+
const r = "object" == typeof e ? e : t(), s = "string" == typeof e ? e : n || "(default)";
|
|
3879
|
+
return _getProvider(r, "firestore/lite").getImmediate({
|
|
3880
|
+
identifier: s
|
|
3881
|
+
});
|
|
3915
3882
|
}
|
|
3916
3883
|
|
|
3917
3884
|
/**
|
|
@@ -5898,7 +5865,7 @@ function Lr(t, e) {
|
|
|
5898
5865
|
let e;
|
|
5899
5866
|
if (t.isFoundDocument()) e = t.version; else {
|
|
5900
5867
|
if (!t.isNoDocument()) throw v();
|
|
5901
|
-
//
|
|
5868
|
+
// Represent a deleted doc using SnapshotVersion.min().
|
|
5902
5869
|
e = bt.min();
|
|
5903
5870
|
}
|
|
5904
5871
|
const n = this.readVersions.get(t.key.toString());
|
|
@@ -5913,7 +5880,7 @@ function Lr(t, e) {
|
|
|
5913
5880
|
* as a precondition, or no precondition if it was not read.
|
|
5914
5881
|
*/ precondition(t) {
|
|
5915
5882
|
const e = this.readVersions.get(t.toString());
|
|
5916
|
-
return !this.writtenDocs.has(t.toString()) && e ? Ve.updateTime(e) : Ve.none();
|
|
5883
|
+
return !this.writtenDocs.has(t.toString()) && e ? e.isEqual(bt.min()) ? Ve.exists(!1) : Ve.updateTime(e) : Ve.none();
|
|
5917
5884
|
}
|
|
5918
5885
|
/**
|
|
5919
5886
|
* Returns the precondition for a document if the operation is an update.
|
|
@@ -6506,12 +6473,31 @@ class Kr {
|
|
|
6506
6473
|
* @packageDocumentation
|
|
6507
6474
|
*/ !function(t) {
|
|
6508
6475
|
d = t;
|
|
6509
|
-
}(`${s}_lite`), n(new i("firestore/lite", ((t, {options:
|
|
6510
|
-
const
|
|
6511
|
-
|
|
6512
|
-
|
|
6476
|
+
}(`${s}_lite`), n(new i("firestore/lite", ((t, {instanceIdentifier: e, options: n}) => {
|
|
6477
|
+
const r = t.getProvider("app").getImmediate(), s = new ln(new W(t.getProvider("auth-internal")), new Y(t.getProvider("app-check-internal")), function(t, e) {
|
|
6478
|
+
if (!Object.prototype.hasOwnProperty.apply(t.options, [ "projectId" ])) throw new M(R, '"projectId" not provided in firebase.initializeApp.');
|
|
6479
|
+
return new J(t.options.projectId, e);
|
|
6480
|
+
}
|
|
6481
|
+
/**
|
|
6482
|
+
* @license
|
|
6483
|
+
* Copyright 2017 Google LLC
|
|
6484
|
+
*
|
|
6485
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6486
|
+
* you may not use this file except in compliance with the License.
|
|
6487
|
+
* You may obtain a copy of the License at
|
|
6488
|
+
*
|
|
6489
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
6490
|
+
*
|
|
6491
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
6492
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
6493
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
6494
|
+
* See the License for the specific language governing permissions and
|
|
6495
|
+
* limitations under the License.
|
|
6496
|
+
*/ (r, e), r);
|
|
6497
|
+
return n && s._setSettings(n), s;
|
|
6498
|
+
}), "PUBLIC").setMultipleInstances(!0)),
|
|
6513
6499
|
// RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
|
|
6514
|
-
r("firestore-lite", "3.4.
|
|
6500
|
+
r("firestore-lite", "3.4.15", "rn"), r("firestore-lite", "3.4.15", "esm2017");
|
|
6515
6501
|
|
|
6516
6502
|
export { Rn as Bytes, _n as CollectionReference, pn as DocumentReference, er as DocumentSnapshot, In as FieldPath, Pn as FieldValue, ln as Firestore, M as FirestoreError, Vn as GeoPoint, yn as Query, or as QueryConstraint, nr as QueryDocumentSnapshot, rr as QuerySnapshot, vt as Timestamp, Kr as Transaction, Cr as WriteBatch, xr as addDoc, Or as arrayRemove, qr as arrayUnion, gn as collection, vn as collectionGroup, wn as connectFirestoreEmulator, Dr as deleteDoc, Sr as deleteField, bn as doc, An as documentId, vr as endAt, gr as endBefore, Pr as getDoc, Vr as getDocs, dn as getFirestore, kr as increment, fn as initializeFirestore, dr as limit, wr as limitToLast, lr as orderBy, ur as query, Tn as queryEqual, En as refEqual, Qr as runTransaction, Fr as serverTimestamp, Nr as setDoc, m as setLogLevel, sr as snapshotEqual, yr as startAfter, pr as startAt, mn as terminate, $r as updateDoc, ar as where, Mr as writeBatch };
|
|
6517
6503
|
//# sourceMappingURL=index.rn.esm2017.js.map
|