@firebase/firestore 3.3.1-canary.dc6b447ba → 3.4.0

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.
@@ -66,7 +66,7 @@ l.MOCK_USER = new l("mock-user");
66
66
  * See the License for the specific language governing permissions and
67
67
  * limitations under the License.
68
68
  */
69
- let f = "9.5.0-canary.dc6b447ba";
69
+ let f = "9.6.0";
70
70
 
71
71
  /**
72
72
  * @license
@@ -193,14 +193,14 @@ function p(t, ...n) {
193
193
  * given message if it did.
194
194
  *
195
195
  * Messages are stripped in production builds.
196
- */ function b(t, n) {
196
+ */ function v(t, n) {
197
197
  t || g();
198
198
  }
199
199
 
200
200
  /**
201
201
  * Casts `obj` to `T`. In non-production builds, verifies that `obj` is an
202
202
  * instance of `T` before casting.
203
- */ function v(t,
203
+ */ function b(t,
204
204
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
205
205
  n) {
206
206
  return t;
@@ -337,7 +337,7 @@ n) {
337
337
  }));
338
338
  }
339
339
  getToken() {
340
- return this.auth ? this.auth.getToken().then((t => t ? (b("string" == typeof t.accessToken),
340
+ return this.auth ? this.auth.getToken().then((t => t ? (v("string" == typeof t.accessToken),
341
341
  new j(t.accessToken, new l(this.auth.getUid()))) : null)) : Promise.resolve(null);
342
342
  }
343
343
  invalidateToken() {}
@@ -391,7 +391,7 @@ class W {
391
391
  }));
392
392
  }
393
393
  getToken() {
394
- return this.appCheck ? this.appCheck.getToken().then((t => t ? (b("string" == typeof t.token),
394
+ return this.appCheck ? this.appCheck.getToken().then((t => t ? (v("string" == typeof t.token),
395
395
  new W(t.token)) : null)) : Promise.resolve(null);
396
396
  }
397
397
  invalidateToken() {}
@@ -1310,15 +1310,15 @@ class gt {
1310
1310
  /**
1311
1311
  * A version of a document in Firestore. This corresponds to the version
1312
1312
  * timestamp, such as update_time or read_time.
1313
- */ class bt {
1313
+ */ class vt {
1314
1314
  constructor(t) {
1315
1315
  this.timestamp = t;
1316
1316
  }
1317
1317
  static fromTimestamp(t) {
1318
- return new bt(t);
1318
+ return new vt(t);
1319
1319
  }
1320
1320
  static min() {
1321
- return new bt(new gt(0, 0));
1321
+ return new vt(new gt(0, 0));
1322
1322
  }
1323
1323
  compareTo(t) {
1324
1324
  return this.timestamp._compareTo(t.timestamp);
@@ -1353,7 +1353,7 @@ class gt {
1353
1353
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1354
1354
  * See the License for the specific language governing permissions and
1355
1355
  * limitations under the License.
1356
- */ function vt(t) {
1356
+ */ function bt(t) {
1357
1357
  let n = 0;
1358
1358
  for (const e in t) Object.prototype.hasOwnProperty.call(t, e) && n++;
1359
1359
  return n;
@@ -1540,13 +1540,13 @@ const Pt = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
1540
1540
  // The json interface (for the browser) will return an iso timestamp string,
1541
1541
  // while the proto js library (for node) will return a
1542
1542
  // google.protobuf.Timestamp instance.
1543
- if (b(!!t), "string" == typeof t) {
1543
+ if (v(!!t), "string" == typeof t) {
1544
1544
  // The date string can have higher precision (nanos) than the Date class
1545
1545
  // (millis), so we do some custom parsing here.
1546
1546
  // Parse the nanos right out of the string.
1547
1547
  let n = 0;
1548
1548
  const e = Pt.exec(t);
1549
- if (b(!!e), e[1]) {
1549
+ if (v(!!e), e[1]) {
1550
1550
  // Pad the fraction out to 9 digits (nanos).
1551
1551
  let t = e[1];
1552
1552
  t = (t + "000000000").substr(0, 9), n = Number(t);
@@ -1705,7 +1705,7 @@ const Pt = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
1705
1705
  case 10 /* ObjectValue */ :
1706
1706
  return function(t, n) {
1707
1707
  const e = t.mapValue.fields || {}, r = n.mapValue.fields || {};
1708
- if (vt(e) !== vt(r)) return !1;
1708
+ if (bt(e) !== bt(r)) return !1;
1709
1709
  for (const t in e) if (e.hasOwnProperty(t) && (void 0 === r[t] || !qt(e[t], r[t]))) return !1;
1710
1710
  return !0;
1711
1711
  }
@@ -2000,7 +2000,7 @@ function Lt(t, n) {
2000
2000
  * Creates a document with no known version or data, but which can serve as
2001
2001
  * base document for mutations.
2002
2002
  */ static newInvalidDocument(t) {
2003
- return new Qt(t, 0 /* INVALID */ , bt.min(), zt.empty(), 0 /* SYNCED */);
2003
+ return new Qt(t, 0 /* INVALID */ , vt.min(), zt.empty(), 0 /* SYNCED */);
2004
2004
  }
2005
2005
  /**
2006
2006
  * Creates a new document that is known to exist with the given data at the
@@ -2343,7 +2343,7 @@ function fn(t) {
2343
2343
  * which can be different from the order by constraints the user provided (e.g.
2344
2344
  * the SDK and backend always orders by `__name__`).
2345
2345
  */ function dn(t) {
2346
- const n = v(t);
2346
+ const n = b(t);
2347
2347
  if (null === n.$) {
2348
2348
  n.$ = [];
2349
2349
  const t = ln(n), e = hn(n);
@@ -2368,7 +2368,7 @@ function fn(t) {
2368
2368
  /**
2369
2369
  * Converts this `Query` instance to it's corresponding `Target` representation.
2370
2370
  */ function wn(t) {
2371
- const n = v(t);
2371
+ const n = b(t);
2372
2372
  if (!n.F) if ("F" /* First */ === n.limitType) n.F = Wt(n.path, n.collectionGroup, dn(n), n.filters, n.limit, n.startAt, n.endAt); else {
2373
2373
  // Flip the orderBy directions since we want the last results
2374
2374
  const t = [];
@@ -2483,7 +2483,7 @@ function pn(t, n) {
2483
2483
  }
2484
2484
  }
2485
2485
 
2486
- /** Transforms an array value via a remove operation. */ class bn extends yn {
2486
+ /** Transforms an array value via a remove operation. */ class vn extends yn {
2487
2487
  constructor(t) {
2488
2488
  super(), this.elements = t;
2489
2489
  }
@@ -2494,7 +2494,7 @@ function pn(t, n) {
2494
2494
  * transforms. Converts all field values to integers or doubles, but unlike the
2495
2495
  * backend does not cap integer values at 2^63. Instead, JavaScript number
2496
2496
  * arithmetic is used and precision loss can occur for values greater than 2^53.
2497
- */ class vn extends yn {
2497
+ */ class bn extends yn {
2498
2498
  constructor(t, n) {
2499
2499
  super(), this.q = t, this.O = n;
2500
2500
  }
@@ -2731,7 +2731,7 @@ function qn(t, n) {
2731
2731
  }
2732
2732
 
2733
2733
  function xn(t) {
2734
- return b(!!t), bt.fromTimestamp(function(t) {
2734
+ return v(!!t), vt.fromTimestamp(function(t) {
2735
2735
  const n = Rt(t);
2736
2736
  return new gt(n.seconds, n.nanos);
2737
2737
  }(t));
@@ -2750,11 +2750,11 @@ function Cn(t, n) {
2750
2750
  function Ln(t, n) {
2751
2751
  const e = function(t) {
2752
2752
  const n = X.fromString(t);
2753
- return b(Kn(n)), n;
2753
+ return v(Kn(n)), n;
2754
2754
  }(n);
2755
2755
  if (e.get(1) !== t.databaseId.projectId) throw new k(A, "Tried to deserialize key from different project: " + e.get(1) + " vs " + t.databaseId.projectId);
2756
2756
  if (e.get(3) !== t.databaseId.database) throw new k(A, "Tried to deserialize key from different database: " + e.get(3) + " vs " + t.databaseId.database);
2757
- return new nt((b((r = e).length > 4 && "documents" === r.get(4)), r.popFirst(5)));
2757
+ return new nt((v((r = e).length > 4 && "documents" === r.get(4)), r.popFirst(5)));
2758
2758
  var r;
2759
2759
  /** Creates a Document proto from key and fields (but no create/update time) */}
2760
2760
 
@@ -2775,7 +2775,7 @@ function jn(t, n, e) {
2775
2775
 
2776
2776
  function Mn(t, n) {
2777
2777
  return "found" in n ? function(t, n) {
2778
- b(!!n.found), n.found.name, n.found.updateTime;
2778
+ v(!!n.found), n.found.name, n.found.updateTime;
2779
2779
  const e = Ln(t, n.found.name), r = xn(n.found.updateTime), s = new zt({
2780
2780
  mapValue: {
2781
2781
  fields: n.found.fields
@@ -2783,7 +2783,7 @@ function Mn(t, n) {
2783
2783
  });
2784
2784
  return Qt.newFoundDocument(e, r, s);
2785
2785
  }(t, n) : "missing" in n ? function(t, n) {
2786
- b(!!n.missing), b(!!n.readTime);
2786
+ v(!!n.missing), v(!!n.readTime);
2787
2787
  const e = Ln(t, n.missing), r = xn(n.readTime);
2788
2788
  return Qt.newNoDocument(e, r);
2789
2789
  }(t, n) : g();
@@ -2816,13 +2816,13 @@ function Bn(t, n) {
2816
2816
  values: e.elements
2817
2817
  }
2818
2818
  };
2819
- if (e instanceof bn) return {
2819
+ if (e instanceof vn) return {
2820
2820
  fieldPath: n.field.canonicalString(),
2821
2821
  removeAllFromArray: {
2822
2822
  values: e.elements
2823
2823
  }
2824
2824
  };
2825
- if (e instanceof vn) return {
2825
+ if (e instanceof bn) return {
2826
2826
  fieldPath: n.field.canonicalString(),
2827
2827
  increment: e.O
2828
2828
  };
@@ -3122,14 +3122,14 @@ class Zn extends class {} {
3122
3122
  // TODO(firestorexp): Make sure there is only one Datastore instance per
3123
3123
  // firestore-exp client.
3124
3124
  async function te(t, n) {
3125
- const e = v(t), r = Un(e.q) + "/documents", s = {
3125
+ const e = b(t), r = Un(e.q) + "/documents", s = {
3126
3126
  writes: n.map((t => Bn(e.q, t)))
3127
3127
  };
3128
3128
  await e.m("Commit", r, s);
3129
3129
  }
3130
3130
 
3131
3131
  async function ne(t, n) {
3132
- const e = v(t), r = Un(e.q) + "/documents", s = {
3132
+ const e = b(t), r = Un(e.q) + "/documents", s = {
3133
3133
  documents: n.map((t => Cn(e.q, t)))
3134
3134
  }, i = await e.T("BatchGetDocuments", r, s), o = new Map;
3135
3135
  i.forEach((t => {
@@ -3139,12 +3139,12 @@ async function ne(t, n) {
3139
3139
  const u = [];
3140
3140
  return n.forEach((t => {
3141
3141
  const n = o.get(t.toString());
3142
- b(!!n), u.push(n);
3142
+ v(!!n), u.push(n);
3143
3143
  })), u;
3144
3144
  }
3145
3145
 
3146
3146
  async function ee(t, n) {
3147
- const e = v(t), r = zn(e.q, wn(n));
3147
+ const e = b(t), r = zn(e.q, wn(n));
3148
3148
  return (await e.T("RunQuery", r.parent, {
3149
3149
  structuredQuery: r.structuredQuery
3150
3150
  })).filter((t => !!t.document)).map((t => function(t, n, e) {
@@ -3311,7 +3311,7 @@ class ie {
3311
3311
  case "gapi":
3312
3312
  const n = t.client;
3313
3313
  // Make sure this really is a Gapi client.
3314
- return b(!("object" != typeof n || null === n || !n.auth || !n.auth.getAuthHeaderValueForFirstParty)),
3314
+ return v(!("object" != typeof n || null === n || !n.auth || !n.auth.getAuthHeaderValueForFirstParty)),
3315
3315
  new G(n, t.sessionIndex || "0", t.iamToken || null);
3316
3316
 
3317
3317
  case "provider":
@@ -3676,7 +3676,7 @@ function pe(t, n, ...e) {
3676
3676
  /**
3677
3677
  * Returns a special sentinel `FieldPath` to refer to the ID of a document.
3678
3678
  * It can be used in queries to sort or filter by the document ID.
3679
- */ function be() {
3679
+ */ function ve() {
3680
3680
  return new ge("__name__");
3681
3681
  }
3682
3682
 
@@ -3698,7 +3698,7 @@ function pe(t, n, ...e) {
3698
3698
  */
3699
3699
  /**
3700
3700
  * An immutable object representing an array of bytes.
3701
- */ class ve {
3701
+ */ class be {
3702
3702
  /** @hideconstructor */
3703
3703
  constructor(t) {
3704
3704
  this._byteString = t;
@@ -3710,7 +3710,7 @@ function pe(t, n, ...e) {
3710
3710
  * @param base64 - The Base64 string used to create the `Bytes` object.
3711
3711
  */ static fromBase64String(t) {
3712
3712
  try {
3713
- return new ve(At.fromBase64String(t));
3713
+ return new be(At.fromBase64String(t));
3714
3714
  } catch (t) {
3715
3715
  throw new k(A, "Failed to construct data from Base64 string: " + t);
3716
3716
  }
@@ -3720,7 +3720,7 @@ function pe(t, n, ...e) {
3720
3720
  *
3721
3721
  * @param array - The Uint8Array used to create the `Bytes` object.
3722
3722
  */ static fromUint8Array(t) {
3723
- return new ve(At.fromUint8Array(t));
3723
+ return new be(At.fromUint8Array(t));
3724
3724
  }
3725
3725
  /**
3726
3726
  * Returns the underlying bytes as a Base64-encoded string.
@@ -4085,7 +4085,7 @@ class Oe extends Ee {
4085
4085
  }
4086
4086
  _toFieldTransform(t) {
4087
4087
  const n = Se(this, t,
4088
- /*array=*/ !0), e = this.lt.map((t => je(t, n))), r = new bn(e);
4088
+ /*array=*/ !0), e = this.lt.map((t => je(t, n))), r = new vn(e);
4089
4089
  return new En(t.path, r);
4090
4090
  }
4091
4091
  isEqual(t) {
@@ -4099,7 +4099,7 @@ class Ce extends Ee {
4099
4099
  super(t), this.ft = n;
4100
4100
  }
4101
4101
  _toFieldTransform(t) {
4102
- const n = new vn(t.q, pn(t.q, this.ft));
4102
+ const n = new bn(t.q, pn(t.q, this.ft));
4103
4103
  return new En(t.path, n);
4104
4104
  }
4105
4105
  isEqual(t) {
@@ -4266,7 +4266,7 @@ class Ce extends Ee {
4266
4266
  longitude: t.longitude
4267
4267
  }
4268
4268
  };
4269
- if (t instanceof ve) return {
4269
+ if (t instanceof be) return {
4270
4270
  bytesValue: Sn(n.q, t._byteString)
4271
4271
  };
4272
4272
  if (t instanceof le) {
@@ -4306,7 +4306,7 @@ function Me(t, n) {
4306
4306
  }
4307
4307
 
4308
4308
  function Be(t) {
4309
- return !("object" != typeof t || null === t || t instanceof Array || t instanceof Date || t instanceof gt || t instanceof Te || t instanceof ve || t instanceof le || t instanceof Ee);
4309
+ return !("object" != typeof t || null === t || t instanceof Array || t instanceof Date || t instanceof gt || t instanceof Te || t instanceof be || t instanceof le || t instanceof Ee);
4310
4310
  }
4311
4311
 
4312
4312
  function ze(t, n, e) {
@@ -4708,12 +4708,12 @@ class ir extends nr {
4708
4708
 
4709
4709
  class ur extends nr {
4710
4710
  constructor(t, n, e) {
4711
- super(), this.type = t, this.gt = n, this.bt = e;
4711
+ super(), this.type = t, this.gt = n, this.vt = e;
4712
4712
  }
4713
4713
  _apply(t) {
4714
4714
  return new fe(t.firestore, t.converter, function(t, n, e) {
4715
4715
  return new cn(t.path, t.collectionGroup, t.explicitOrderBy.slice(), t.filters.slice(), n, e, t.startAt, t.endAt);
4716
- }(t._query, this.gt, this.bt));
4716
+ }(t._query, this.gt, this.vt));
4717
4717
  }
4718
4718
  }
4719
4719
 
@@ -4740,10 +4740,10 @@ class ur extends nr {
4740
4740
 
4741
4741
  class hr extends nr {
4742
4742
  constructor(t, n, e) {
4743
- super(), this.type = t, this.vt = n, this.Et = e;
4743
+ super(), this.type = t, this.bt = n, this.Et = e;
4744
4744
  }
4745
4745
  _apply(t) {
4746
- const n = pr(t, this.type, this.vt, this.Et);
4746
+ const n = pr(t, this.type, this.bt, this.Et);
4747
4747
  return new fe(t.firestore, t.converter, function(t, n) {
4748
4748
  return new cn(t.path, t.collectionGroup, t.explicitOrderBy.slice(), t.filters.slice(), t.limit, t.limitType, n, t.endAt);
4749
4749
  }(t._query, n));
@@ -4761,10 +4761,10 @@ function fr(...t) {
4761
4761
 
4762
4762
  class dr extends nr {
4763
4763
  constructor(t, n, e) {
4764
- super(), this.type = t, this.vt = n, this.Et = e;
4764
+ super(), this.type = t, this.bt = n, this.Et = e;
4765
4765
  }
4766
4766
  _apply(t) {
4767
- const n = pr(t, this.type, this.vt, this.Et);
4767
+ const n = pr(t, this.type, this.bt, this.Et);
4768
4768
  return new fe(t.firestore, t.converter, function(t, n) {
4769
4769
  return new cn(t.path, t.collectionGroup, t.explicitOrderBy.slice(), t.filters.slice(), t.limit, t.limitType, t.startAt, n);
4770
4770
  }(t._query, n));
@@ -4906,7 +4906,7 @@ function gr(t, n, e) {
4906
4906
  * their `set()` or fails due to invalid data originating from a `toFirestore()`
4907
4907
  * call.
4908
4908
  */
4909
- function br(t, n, e) {
4909
+ function vr(t, n, e) {
4910
4910
  let r;
4911
4911
  // Cast to `any` in order to satisfy the union type constraint on
4912
4912
  // toFirestore().
@@ -4915,7 +4915,7 @@ function br(t, n, e) {
4915
4915
  r;
4916
4916
  }
4917
4917
 
4918
- class vr extends class {
4918
+ class br extends class {
4919
4919
  convertValue(t, n = "none") {
4920
4920
  switch (St(t)) {
4921
4921
  case 0 /* NullValue */ :
@@ -4986,7 +4986,7 @@ class vr extends class {
4986
4986
  }
4987
4987
  convertDocumentKey(t, n) {
4988
4988
  const e = X.fromString(t);
4989
- b(Kn(e));
4989
+ v(Kn(e));
4990
4990
  const r = new K(e.get(1), e.get(3)), s = new nt(e.popFirst(5));
4991
4991
  return r.isEqual(n) ||
4992
4992
  // TODO(b/64130202): Somehow support foreign references.
@@ -4998,7 +4998,7 @@ class vr extends class {
4998
4998
  super(), this.firestore = t;
4999
4999
  }
5000
5000
  convertBytes(t) {
5001
- return new ve(t);
5001
+ return new be(t);
5002
5002
  }
5003
5003
  convertReference(t) {
5004
5004
  const n = this.convertDocumentKey(t, this.firestore._databaseId);
@@ -5019,9 +5019,9 @@ class vr extends class {
5019
5019
  * @returns A Promise resolved with a `DocumentSnapshot` containing the current
5020
5020
  * document contents.
5021
5021
  */ function Er(t) {
5022
- const n = se((t = ot(t, le)).firestore), e = new vr(t.firestore);
5022
+ const n = se((t = ot(t, le)).firestore), e = new br(t.firestore);
5023
5023
  return ne(n, [ t._key ]).then((n => {
5024
- b(1 === n.length);
5024
+ v(1 === n.length);
5025
5025
  const r = n[0];
5026
5026
  return new Ke(t.firestore, e, t._key, r.isFoundDocument() ? r : null, t.converter);
5027
5027
  }));
@@ -5042,7 +5042,7 @@ class vr extends class {
5042
5042
  !function(t) {
5043
5043
  if (an(t) && 0 === t.explicitOrderBy.length) throw new k(x, "limitToLast() queries require specifying at least one orderBy() clause");
5044
5044
  }((t = ot(t, fe))._query);
5045
- const n = se(t.firestore), e = new vr(t.firestore);
5045
+ const n = se(t.firestore), e = new br(t.firestore);
5046
5046
  return ee(n, t._query).then((n => {
5047
5047
  const r = n.map((n => new Je(t.firestore, e, n.key, n, t.converter)));
5048
5048
  return an(t._query) &&
@@ -5054,7 +5054,7 @@ class vr extends class {
5054
5054
  }
5055
5055
 
5056
5056
  function Ir(t, n, e) {
5057
- const r = br((t = ot(t, le)).converter, n, e), s = $e(De(t.firestore), "setDoc", t._key, r, null !== t.converter, e);
5057
+ const r = vr((t = ot(t, le)).converter, n, e), s = $e(De(t.firestore), "setDoc", t._key, r, null !== t.converter, e);
5058
5058
  return te(se(t.firestore), [ s.toMutation(t._key, Tn.none()) ]);
5059
5059
  }
5060
5060
 
@@ -5096,7 +5096,7 @@ function Ar(t, n, e, ...r) {
5096
5096
  * @returns A `Promise` resolved with a `DocumentReference` pointing to the
5097
5097
  * newly created document after it has been written to the backend.
5098
5098
  */ function Rr(t, n) {
5099
- const e = pe(t = ot(t, de)), r = br(t.converter, n), s = $e(De(t.firestore), "addDoc", e._key, r, null !== e.converter, {});
5099
+ const e = pe(t = ot(t, de)), r = vr(t.converter, n), s = $e(De(t.firestore), "addDoc", e._key, r, null !== e.converter, {});
5100
5100
  return te(se(t.firestore), [ s.toMutation(e._key, Tn.exists(!1)) ]).then((() => e));
5101
5101
  }
5102
5102
 
@@ -5216,7 +5216,7 @@ function Ar(t, n, e, ...r) {
5216
5216
  }
5217
5217
  set(t, n, e) {
5218
5218
  this._verifyNotCommitted();
5219
- const r = qr(t, this._firestore), s = br(r.converter, n, e), i = $e(this._dataReader, "WriteBatch.set", r._key, s, null !== r.converter, e);
5219
+ const r = qr(t, this._firestore), s = vr(r.converter, n, e), i = $e(this._dataReader, "WriteBatch.set", r._key, s, null !== r.converter, e);
5220
5220
  return this._mutations.push(i.toMutation(r._key, Tn.none())), this;
5221
5221
  }
5222
5222
  update(t, n, e, ...r) {
@@ -5354,7 +5354,7 @@ function qr(t, n) {
5354
5354
  if (t.isFoundDocument()) n = t.version; else {
5355
5355
  if (!t.isNoDocument()) throw g();
5356
5356
  // For deleted docs, we must use baseVersion 0 when we overwrite them.
5357
- n = bt.min();
5357
+ n = vt.min();
5358
5358
  }
5359
5359
  const e = this.readVersions.get(t.key.toString());
5360
5360
  if (e) {
@@ -5377,7 +5377,7 @@ function qr(t, n) {
5377
5377
  // The first time a document is written, we want to take into account the
5378
5378
  // read time and existence
5379
5379
  if (!this.writtenDocs.has(t.toString()) && n) {
5380
- if (n.isEqual(bt.min()))
5380
+ if (n.isEqual(vt.min()))
5381
5381
  // The document doesn't exist, so fail the transaction.
5382
5382
  // This has to be validated locally because you can't send a
5383
5383
  // precondition that a document does not exist without changing the
@@ -5874,7 +5874,7 @@ class jr {
5874
5874
  * @param documentRef - A reference to the document to be read.
5875
5875
  * @returns A `DocumentSnapshot` with the read data.
5876
5876
  */ get(t) {
5877
- const n = qr(t, this._firestore), e = new vr(this._firestore);
5877
+ const n = qr(t, this._firestore), e = new br(this._firestore);
5878
5878
  return this._transaction.lookup([ n._key ]).then((t => {
5879
5879
  if (!t || 1 !== t.length) return g();
5880
5880
  const r = t[0];
@@ -5884,7 +5884,7 @@ class jr {
5884
5884
  }));
5885
5885
  }
5886
5886
  set(t, n, e) {
5887
- const r = qr(t, this._firestore), s = br(r.converter, n, e), i = $e(this._dataReader, "Transaction.set", r._key, s, null !== r.converter, e);
5887
+ const r = qr(t, this._firestore), s = vr(r.converter, n, e), i = $e(this._dataReader, "Transaction.set", r._key, s, null !== r.converter, e);
5888
5888
  return this._transaction.set(r._key, i), this;
5889
5889
  }
5890
5890
  update(t, n, e, ...r) {
@@ -5941,7 +5941,7 @@ class jr {
5941
5941
  return n && r._setSettings(n), r;
5942
5942
  }), "PUBLIC" /* PUBLIC */)),
5943
5943
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
5944
- r("firestore-lite", "3.3.1-canary.dc6b447ba", "rn"), r("firestore-lite", "3.3.1-canary.dc6b447ba", "esm2017");
5944
+ r("firestore-lite", "3.4.0", "rn"), r("firestore-lite", "3.4.0", "esm2017");
5945
5945
 
5946
- export { ve as Bytes, de as CollectionReference, le as DocumentReference, Ke as DocumentSnapshot, ge as FieldPath, Ee as FieldValue, oe as Firestore, k as FirestoreError, Te as GeoPoint, fe as Query, nr as QueryConstraint, Je as QueryDocumentSnapshot, Xe as QuerySnapshot, gt as Timestamp, jr as Transaction, Sr as WriteBatch, Rr as addDoc, $r as arrayRemove, Dr as arrayUnion, we as collection, me as collectionGroup, ae as connectFirestoreEmulator, Pr as deleteDoc, Vr as deleteField, pe as doc, be as documentId, mr as endAt, wr as endBefore, Er as getDoc, Tr as getDocs, ce as getFirestore, Fr as increment, ue as initializeFirestore, cr as limit, ar as limitToLast, or as orderBy, er as query, _e as queryEqual, ye as refEqual, Mr as runTransaction, Nr as serverTimestamp, Ir as setDoc, w as setLogLevel, Ze as snapshotEqual, fr as startAfter, lr as startAt, he as terminate, Ar as updateDoc, sr as where, xr as writeBatch };
5946
+ export { be as Bytes, de as CollectionReference, le as DocumentReference, Ke as DocumentSnapshot, ge as FieldPath, Ee as FieldValue, oe as Firestore, k as FirestoreError, Te as GeoPoint, fe as Query, nr as QueryConstraint, Je as QueryDocumentSnapshot, Xe as QuerySnapshot, gt as Timestamp, jr as Transaction, Sr as WriteBatch, Rr as addDoc, $r as arrayRemove, Dr as arrayUnion, we as collection, me as collectionGroup, ae as connectFirestoreEmulator, Pr as deleteDoc, Vr as deleteField, pe as doc, ve as documentId, mr as endAt, wr as endBefore, Er as getDoc, Tr as getDocs, ce as getFirestore, Fr as increment, ue as initializeFirestore, cr as limit, ar as limitToLast, or as orderBy, er as query, _e as queryEqual, ye as refEqual, Mr as runTransaction, Nr as serverTimestamp, Ir as setDoc, w as setLogLevel, Ze as snapshotEqual, fr as startAfter, lr as startAt, he as terminate, Ar as updateDoc, sr as where, xr as writeBatch };
5947
5947
  //# sourceMappingURL=index.rn.esm2017.js.map