@firebase/firestore 3.7.2 → 3.7.3-20221109210852
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 +8 -0
- package/dist/index.esm2017.js +18 -15
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +18 -15
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +4 -3
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +4 -3
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +18 -15
- package/dist/index.rn.js.map +1 -1
- package/dist/lite/index.browser.esm2017.js +62 -56
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +111 -105
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +10 -3
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +10 -3
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +64 -58
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +9 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @firebase/firestore
|
|
2
2
|
|
|
3
|
+
## 3.7.3-20221109210852
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`bf7cc8f69`](https://github.com/firebase/firebase-js-sdk/commit/bf7cc8f691f7a17730b071d3d9c27bd28a6e3980) [#6712](https://github.com/firebase/firebase-js-sdk/pull/6712) (fixes [#6613](https://github.com/firebase/firebase-js-sdk/issues/6613)) - Fix "missing index" error message to include the link to create the composite index.
|
|
8
|
+
|
|
9
|
+
- [`e2a90bf67`](https://github.com/firebase/firebase-js-sdk/commit/e2a90bf678eb6fa505f8b2f627e03cff622607b5) [#6729](https://github.com/firebase/firebase-js-sdk/pull/6729) - Fix transaction.set() failure without retry on "already-exists" error.
|
|
10
|
+
|
|
3
11
|
## 3.7.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/index.esm2017.js
CHANGED
|
@@ -66,7 +66,7 @@ P.MOCK_USER = new P("mock-user");
|
|
|
66
66
|
* See the License for the specific language governing permissions and
|
|
67
67
|
* limitations under the License.
|
|
68
68
|
*/
|
|
69
|
-
let v = "9.
|
|
69
|
+
let v = "9.14.0-20221109210852";
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
@@ -12520,11 +12520,12 @@ class {
|
|
|
12520
12520
|
return new Promise(((i, r) => {
|
|
12521
12521
|
const o = new XhrIo;
|
|
12522
12522
|
o.setWithCredentials(!0), o.listenOnce(EventType.COMPLETE, (() => {
|
|
12523
|
+
var e;
|
|
12523
12524
|
try {
|
|
12524
12525
|
switch (o.getLastErrorCode()) {
|
|
12525
12526
|
case ErrorCode.NO_ERROR:
|
|
12526
|
-
const
|
|
12527
|
-
C("Connection", "XHR received:", JSON.stringify(
|
|
12527
|
+
const n = o.getResponseJson();
|
|
12528
|
+
C("Connection", "XHR received:", JSON.stringify(n)), i(n);
|
|
12528
12529
|
break;
|
|
12529
12530
|
|
|
12530
12531
|
case ErrorCode.TIMEOUT:
|
|
@@ -12532,16 +12533,18 @@ class {
|
|
|
12532
12533
|
break;
|
|
12533
12534
|
|
|
12534
12535
|
case ErrorCode.HTTP_ERROR:
|
|
12535
|
-
const
|
|
12536
|
-
if (C("Connection", 'RPC "' + t + '" failed with status:',
|
|
12537
|
-
|
|
12538
|
-
|
|
12539
|
-
|
|
12540
|
-
|
|
12536
|
+
const s = o.getStatus();
|
|
12537
|
+
if (C("Connection", 'RPC "' + t + '" failed with status:', s, "response text:", o.getResponseText()),
|
|
12538
|
+
s > 0) {
|
|
12539
|
+
let t = o.getResponseJson();
|
|
12540
|
+
Array.isArray(t) && (t = t[0]);
|
|
12541
|
+
const n = null === (e = t) || void 0 === e ? void 0 : e.error;
|
|
12542
|
+
if (n && n.status && n.message) {
|
|
12543
|
+
const t = function(t) {
|
|
12541
12544
|
const e = t.toLowerCase().replace(/_/g, "-");
|
|
12542
12545
|
return Object.values(B).indexOf(e) >= 0 ? e : B.UNKNOWN;
|
|
12543
|
-
}(
|
|
12544
|
-
r(new L(
|
|
12546
|
+
}(n.status);
|
|
12547
|
+
r(new L(t, n.message));
|
|
12545
12548
|
} else r(new L(B.UNKNOWN, "Server responded with status " + o.getStatus()));
|
|
12546
12549
|
} else
|
|
12547
12550
|
// If we received an HTTP_ERROR but there's no status code,
|
|
@@ -16168,7 +16171,7 @@ class ua {
|
|
|
16168
16171
|
this.observer.next && this.Rc(this.observer.next, t);
|
|
16169
16172
|
}
|
|
16170
16173
|
error(t) {
|
|
16171
|
-
this.observer.error ? this.Rc(this.observer.error, t) : x("Uncaught Error in snapshot listener:", t);
|
|
16174
|
+
this.observer.error ? this.Rc(this.observer.error, t) : x("Uncaught Error in snapshot listener:", t.toString());
|
|
16172
16175
|
}
|
|
16173
16176
|
bc() {
|
|
16174
16177
|
this.muted = !0;
|
|
@@ -16583,7 +16586,7 @@ class aa {
|
|
|
16583
16586
|
// In transactions, the backend will fail outdated reads with FAILED_PRECONDITION and
|
|
16584
16587
|
// non-matching document versions with ABORTED. These errors should be retried.
|
|
16585
16588
|
const e = t.code;
|
|
16586
|
-
return "aborted" === e || "failed-precondition" === e || !Zn(e);
|
|
16589
|
+
return "aborted" === e || "failed-precondition" === e || "already-exists" === e || !Zn(e);
|
|
16587
16590
|
}
|
|
16588
16591
|
return !1;
|
|
16589
16592
|
}
|
|
@@ -19956,9 +19959,9 @@ function $l(t, e) {
|
|
|
19956
19959
|
return s = Object.assign({
|
|
19957
19960
|
useFetchStreams: e
|
|
19958
19961
|
}, s), r._setSettings(s), r;
|
|
19959
|
-
}), "PUBLIC").setMultipleInstances(!0)), registerVersion(b, "3.7.
|
|
19962
|
+
}), "PUBLIC").setMultipleInstances(!0)), registerVersion(b, "3.7.3-20221109210852", t),
|
|
19960
19963
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
19961
|
-
registerVersion(b, "3.7.
|
|
19964
|
+
registerVersion(b, "3.7.3-20221109210852", "esm2017");
|
|
19962
19965
|
}();
|
|
19963
19966
|
|
|
19964
19967
|
export { tl as AbstractUserDataWriter, aa as AggregateField, ha as AggregateQuerySnapshot, th as Bytes, Fa as CACHE_SIZE_UNLIMITED, ta as CollectionReference, Xc as DocumentReference, il as DocumentSnapshot, eh as FieldPath, sh as FieldValue, $a as Firestore, L as FirestoreError, ih as GeoPoint, Ma as LoadBundleTask, Zc as Query, Oh as QueryConstraint, rl as QueryDocumentSnapshot, ol as QuerySnapshot, sl as SnapshotMetadata, nt as Timestamp, Sl as Transaction, vl as WriteBatch, ne as _DatabaseId, ct as _DocumentKey, J as _EmptyAppCheckTokenProvider, K as _EmptyAuthCredentialsProvider, ut as _FieldPath, jc as _cast, F as _debugAssert, jt as _isBase64Available, N as _logWarn, qc as _validateIsNotUsedTogether, pl as addDoc, Rl as aggregateQuerySnapshotEqual, kl as arrayRemove, Nl as arrayUnion, ja as clearIndexedDbPersistence, ea as collection, na as collectionGroup, Yc as connectFirestoreEmulator, yl as deleteDoc, Cl as deleteField, Ha as disableNetwork, sa as doc, nh as documentId, Ka as enableIndexedDbPersistence, Ga as enableMultiTabIndexedDbPersistence, za as enableNetwork, Hh as endAt, zh as endBefore, Ua as ensureFirestoreConfigured, El as executeWrite, bl as getCountFromServer, al as getDoc, ll as getDocFromCache, fl as getDocFromServer, dl as getDocs, _l as getDocsFromCache, wl as getDocsFromServer, La as getFirestore, Ol as increment, Ba as initializeFirestore, qh as limit, Kh as limitToLast, Ya as loadBundle, Xa as namedQuery, Il as onSnapshot, Tl as onSnapshotsInSync, Lh as orderBy, Mh as query, ra as queryEqual, ia as refEqual, Dl as runTransaction, xl as serverTimestamp, ml as setDoc, Fl as setIndexConfiguration, D as setLogLevel, cl as snapshotEqual, jh as startAfter, Qh as startAt, Ja as terminate, gl as updateDoc, Wa as waitForPendingWrites, $h as where, Ml as writeBatch };
|