@firebase/firestore 4.7.10-canary.0cbff6bc7 → 4.7.10-canary.1363ecc53

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/dist/index.cjs.js CHANGED
@@ -9,7 +9,7 @@ var util = require('@firebase/util');
9
9
  var bloomBlob = require('@firebase/webchannel-wrapper/bloom-blob');
10
10
  var webchannelBlob = require('@firebase/webchannel-wrapper/webchannel-blob');
11
11
 
12
- const S = "@firebase/firestore", D = "4.7.10-canary.0cbff6bc7";
12
+ const S = "@firebase/firestore", D = "4.7.10-canary.1363ecc53";
13
13
 
14
14
  /**
15
15
  * @license
@@ -71,7 +71,7 @@ User.MOCK_USER = new User("mock-user");
71
71
  * See the License for the specific language governing permissions and
72
72
  * limitations under the License.
73
73
  */
74
- let v = "11.6.0-canary.0cbff6bc7";
74
+ let v = "11.6.0-canary.1363ecc53";
75
75
 
76
76
  /**
77
77
  * @license
@@ -5,7 +5,7 @@ import { FirebaseError, deepEqual, createMockUserToken, getModularInstance, getD
5
5
  import { Integer, Md5 } from '@firebase/webchannel-wrapper/bloom-blob';
6
6
  import { XhrIo, EventType, ErrorCode, createWebChannelTransport, getStatEventTarget, WebChannel, Event, Stat } from '@firebase/webchannel-wrapper/webchannel-blob';
7
7
 
8
- const S = "@firebase/firestore", D = "4.7.10-canary.0cbff6bc7";
8
+ const S = "@firebase/firestore", D = "4.7.10-canary.1363ecc53";
9
9
 
10
10
  /**
11
11
  * @license
@@ -67,7 +67,7 @@ User.MOCK_USER = new User("mock-user");
67
67
  * See the License for the specific language governing permissions and
68
68
  * limitations under the License.
69
69
  */
70
- let v = "11.6.0-canary.0cbff6bc7";
70
+ let v = "11.6.0-canary.1363ecc53";
71
71
 
72
72
  /**
73
73
  * @license
@@ -34,7 +34,7 @@ var grpc__namespace = /*#__PURE__*/_interopNamespace(grpc);
34
34
  var protoLoader__namespace = /*#__PURE__*/_interopNamespace(protoLoader);
35
35
 
36
36
  const name = "@firebase/firestore";
37
- const version$1 = "4.7.10-canary.0cbff6bc7";
37
+ const version$1 = "4.7.10-canary.1363ecc53";
38
38
 
39
39
  /**
40
40
  * @license
@@ -87,7 +87,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
87
87
  User.FIRST_PARTY = new User('first-party-uid');
88
88
  User.MOCK_USER = new User('mock-user');
89
89
 
90
- const version = "11.6.0-canary.0cbff6bc7";
90
+ const version = "11.6.0-canary.1363ecc53";
91
91
 
92
92
  /**
93
93
  * @license
@@ -9,7 +9,7 @@ import * as grpc from '@grpc/grpc-js';
9
9
  import * as protoLoader from '@grpc/proto-loader';
10
10
 
11
11
  const name = "@firebase/firestore";
12
- const version$1 = "4.7.10-canary.0cbff6bc7";
12
+ const version$1 = "4.7.10-canary.1363ecc53";
13
13
 
14
14
  /**
15
15
  * @license
@@ -62,7 +62,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
62
62
  User.FIRST_PARTY = new User('first-party-uid');
63
63
  User.MOCK_USER = new User('mock-user');
64
64
 
65
- const version = "11.6.0-canary.0cbff6bc7";
65
+ const version = "11.6.0-canary.1363ecc53";
66
66
 
67
67
  /**
68
68
  * @license
package/dist/index.rn.js CHANGED
@@ -10,7 +10,7 @@ import { Integer as V, Md5 as m } from "@firebase/webchannel-wrapper/bloom-blob"
10
10
 
11
11
  import { XhrIo as f, EventType as g, ErrorCode as p, createWebChannelTransport as y, getStatEventTarget as w, WebChannel as b, Event as S, Stat as D } from "@firebase/webchannel-wrapper/webchannel-blob";
12
12
 
13
- const v = "@firebase/firestore", C = "4.7.10-canary.0cbff6bc7";
13
+ const v = "@firebase/firestore", C = "4.7.10-canary.1363ecc53";
14
14
 
15
15
  /**
16
16
  * @license
@@ -72,7 +72,7 @@ User.MOCK_USER = new User("mock-user");
72
72
  * See the License for the specific language governing permissions and
73
73
  * limitations under the License.
74
74
  */
75
- let F = "11.6.0-canary.0cbff6bc7";
75
+ let F = "11.6.0-canary.1363ecc53";
76
76
 
77
77
  /**
78
78
  * @license
@@ -4,7 +4,7 @@ import { Logger, LogLevel } from '@firebase/logger';
4
4
  import { FirebaseError, getDefaultEmulatorHostnameAndPort, deepEqual, createMockUserToken, getModularInstance } from '@firebase/util';
5
5
  import { Integer } from '@firebase/webchannel-wrapper/bloom-blob';
6
6
 
7
- const E = "4.7.10-canary.0cbff6bc7";
7
+ const E = "4.7.10-canary.1363ecc53";
8
8
 
9
9
  /**
10
10
  * @license
@@ -65,7 +65,7 @@ User.MOCK_USER = new User("mock-user");
65
65
  * See the License for the specific language governing permissions and
66
66
  * limitations under the License.
67
67
  */
68
- let m = "11.6.0-canary.0cbff6bc7";
68
+ let m = "11.6.0-canary.1363ecc53";
69
69
 
70
70
  /**
71
71
  * @license
@@ -4,7 +4,7 @@ import { Logger, LogLevel } from '@firebase/logger';
4
4
  import { FirebaseError, getDefaultEmulatorHostnameAndPort, deepEqual, createMockUserToken, getModularInstance } from '@firebase/util';
5
5
  import { Integer } from '@firebase/webchannel-wrapper/bloom-blob';
6
6
 
7
- const E = "4.7.10-canary.0cbff6bc7";
7
+ const E = "4.7.10-canary.1363ecc53";
8
8
 
9
9
  /**
10
10
  * @license
@@ -65,7 +65,7 @@ User.MOCK_USER = new User("mock-user");
65
65
  * See the License for the specific language governing permissions and
66
66
  * limitations under the License.
67
67
  */
68
- let m = "11.6.0-canary.0cbff6bc7";
68
+ let m = "11.6.0-canary.1363ecc53";
69
69
 
70
70
  /**
71
71
  * @license
@@ -10,7 +10,7 @@ var util = require('@firebase/util');
10
10
  var bloomBlob = require('@firebase/webchannel-wrapper/bloom-blob');
11
11
  var crypto = require('crypto');
12
12
 
13
- const version$1 = "4.7.10-canary.0cbff6bc7";
13
+ const version$1 = "4.7.10-canary.1363ecc53";
14
14
 
15
15
  /**
16
16
  * @license
@@ -63,7 +63,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
63
63
  User.FIRST_PARTY = new User('first-party-uid');
64
64
  User.MOCK_USER = new User('mock-user');
65
65
 
66
- const version = "11.6.0-canary.0cbff6bc7";
66
+ const version = "11.6.0-canary.1363ecc53";
67
67
 
68
68
  /**
69
69
  * @license
@@ -6,7 +6,7 @@ import { FirebaseError, getDefaultEmulatorHostnameAndPort, deepEqual, createMock
6
6
  import { Integer } from '@firebase/webchannel-wrapper/bloom-blob';
7
7
  import { randomBytes as randomBytes$1 } from 'crypto';
8
8
 
9
- const version$1 = "4.7.10-canary.0cbff6bc7";
9
+ const version$1 = "4.7.10-canary.1363ecc53";
10
10
 
11
11
  /**
12
12
  * @license
@@ -59,7 +59,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
59
59
  User.FIRST_PARTY = new User('first-party-uid');
60
60
  User.MOCK_USER = new User('mock-user');
61
61
 
62
- const version = "11.6.0-canary.0cbff6bc7";
62
+ const version = "11.6.0-canary.1363ecc53";
63
63
 
64
64
  /**
65
65
  * @license
@@ -4,11 +4,11 @@ import { Component as o } from "@firebase/component";
4
4
 
5
5
  import { Logger as a, LogLevel as u } from "@firebase/logger";
6
6
 
7
- import { FirebaseError as _, base64 as c, DecodeBase64StringError as l, getDefaultEmulatorHostnameAndPort as h, deepEqual as f, createMockUserToken as d, getModularInstance as E } from "@firebase/util";
7
+ import { FirebaseError as _, base64 as c, DecodeBase64StringError as l, getDefaultEmulatorHostnameAndPort as h, deepEqual as d, createMockUserToken as f, getModularInstance as E } from "@firebase/util";
8
8
 
9
9
  import { Integer as m } from "@firebase/webchannel-wrapper/bloom-blob";
10
10
 
11
- const T = "4.7.10-canary.0cbff6bc7";
11
+ const T = "4.7.10-canary.1363ecc53";
12
12
 
13
13
  /**
14
14
  * @license
@@ -69,7 +69,7 @@ User.MOCK_USER = new User("mock-user");
69
69
  * See the License for the specific language governing permissions and
70
70
  * limitations under the License.
71
71
  */
72
- let A = "11.6.0-canary.0cbff6bc7";
72
+ let A = "11.6.0-canary.1363ecc53";
73
73
 
74
74
  /**
75
75
  * @license
@@ -4501,12 +4501,12 @@ function getFirestore(t, r) {
4501
4501
  });
4502
4502
  // No-op if the new configuration matches the current configuration. This supports SSR
4503
4503
  // enviornments which might call `connectFirestoreEmulator` multiple times as a standard practice.
4504
- if (!f(u, o) && (t._setSettings(u), n.mockUserToken)) {
4504
+ if (!d(u, o) && (t._setSettings(u), n.mockUserToken)) {
4505
4505
  let e, r;
4506
4506
  if ("string" == typeof n.mockUserToken) e = n.mockUserToken, r = User.MOCK_USER; else {
4507
4507
  // Let createMockUserToken validate first (catches common mistakes like
4508
4508
  // invalid field "uid" and missing field "sub" / "user_id".)
4509
- e = d(n.mockUserToken, null === (i = t._app) || void 0 === i ? void 0 : i.options.projectId);
4509
+ e = f(n.mockUserToken, null === (i = t._app) || void 0 === i ? void 0 : i.options.projectId);
4510
4510
  const s = n.mockUserToken.sub || n.mockUserToken.user_id;
4511
4511
  if (!s) throw new FirestoreError(p, "mockUserToken must contain 'sub' or 'user_id' field!");
4512
4512
  r = new User(s);
@@ -5201,8 +5201,8 @@ function __PRIVATE_isWrite(t) {
5201
5201
  _t: !0
5202
5202
  });
5203
5203
  }
5204
- ft(t) {
5205
- return __PRIVATE_createError(t, this.settings.methodName, this.settings.dt || !1, this.path, this.settings.Et);
5204
+ dt(t) {
5205
+ return __PRIVATE_createError(t, this.settings.methodName, this.settings.ft || !1, this.path, this.settings.Et);
5206
5206
  }
5207
5207
  /** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t) {
5208
5208
  return void 0 !== this.fieldMask.find((e => t.isPrefixOf(e))) || void 0 !== this.fieldTransforms.find((e => t.isPrefixOf(e.field)));
@@ -5213,8 +5213,8 @@ function __PRIVATE_isWrite(t) {
5213
5213
  if (this.path) for (let t = 0; t < this.path.length; t++) this.ct(this.path.get(t));
5214
5214
  }
5215
5215
  ct(t) {
5216
- if (0 === t.length) throw this.ft("Document fields must not be empty");
5217
- if (__PRIVATE_isWrite(this.it) && ut.test(t)) throw this.ft('Document fields cannot begin and end with "__"');
5216
+ if (0 === t.length) throw this.dt("Document fields must not be empty");
5217
+ if (__PRIVATE_isWrite(this.it) && ut.test(t)) throw this.dt('Document fields cannot begin and end with "__"');
5218
5218
  }
5219
5219
  }
5220
5220
 
@@ -5232,7 +5232,7 @@ function __PRIVATE_isWrite(t) {
5232
5232
  Et: r,
5233
5233
  path: FieldPath$1.emptyPath(),
5234
5234
  _t: !1,
5235
- dt: n
5235
+ ft: n
5236
5236
  }, this.databaseId, this.serializer, this.ignoreUndefinedProperties);
5237
5237
  }
5238
5238
  }
@@ -5261,7 +5261,7 @@ function __PRIVATE_newUserDataReader(t) {
5261
5261
 
5262
5262
  class __PRIVATE_DeleteFieldValueImpl extends FieldValue {
5263
5263
  _toFieldTransform(t) {
5264
- if (2 /* UserDataSource.MergeSet */ !== t.it) throw 1 /* UserDataSource.Update */ === t.it ? t.ft(`${this._methodName}() can only appear at the top level of your update data`) : t.ft(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);
5264
+ if (2 /* UserDataSource.MergeSet */ !== t.it) throw 1 /* UserDataSource.Update */ === t.it ? t.dt(`${this._methodName}() can only appear at the top level of your update data`) : t.dt(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);
5265
5265
  // No transform to add for a delete, but we need to add it to our
5266
5266
  // fieldMask so it gets deleted.
5267
5267
  return t.fieldMask.push(t.path), null;
@@ -5314,7 +5314,7 @@ class __PRIVATE_ArrayUnionFieldValueImpl extends FieldValue {
5314
5314
  return new FieldTransform(t.path, n);
5315
5315
  }
5316
5316
  isEqual(t) {
5317
- return t instanceof __PRIVATE_ArrayUnionFieldValueImpl && f(this.At, t.At);
5317
+ return t instanceof __PRIVATE_ArrayUnionFieldValueImpl && d(this.At, t.At);
5318
5318
  }
5319
5319
  }
5320
5320
 
@@ -5328,7 +5328,7 @@ class __PRIVATE_ArrayRemoveFieldValueImpl extends FieldValue {
5328
5328
  return new FieldTransform(t.path, n);
5329
5329
  }
5330
5330
  isEqual(t) {
5331
- return t instanceof __PRIVATE_ArrayRemoveFieldValueImpl && f(this.At, t.At);
5331
+ return t instanceof __PRIVATE_ArrayRemoveFieldValueImpl && d(this.At, t.At);
5332
5332
  }
5333
5333
  }
5334
5334
 
@@ -5428,8 +5428,8 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
5428
5428
  */
5429
5429
  return function __PRIVATE_parseSentinelFieldValue(t, e) {
5430
5430
  // Sentinels are only supported with writes, and not within arrays.
5431
- if (!__PRIVATE_isWrite(e.it)) throw e.ft(`${t._methodName}() can only be used with update() and set()`);
5432
- if (!e.path) throw e.ft(`${t._methodName}() is not currently supported inside arrays`);
5431
+ if (!__PRIVATE_isWrite(e.it)) throw e.dt(`${t._methodName}() can only be used with update() and set()`);
5432
+ if (!e.path) throw e.dt(`${t._methodName}() is not currently supported inside arrays`);
5433
5433
  const r = t._toFieldTransform(e);
5434
5434
  r && e.fieldTransforms.push(r);
5435
5435
  }
@@ -5453,7 +5453,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
5453
5453
  // the set of values to be included for the IN query) that may directly
5454
5454
  // contain additional arrays (each representing an individual field
5455
5455
  // value), so we disable this validation.
5456
- if (e.settings._t && 4 /* UserDataSource.ArrayArgument */ !== e.it) throw e.ft("Nested arrays are not supported");
5456
+ if (e.settings._t && 4 /* UserDataSource.ArrayArgument */ !== e.it) throw e.dt("Nested arrays are not supported");
5457
5457
  return function __PRIVATE_parseArray(t, e) {
5458
5458
  const r = [];
5459
5459
  let n = 0;
@@ -5510,7 +5510,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
5510
5510
  };
5511
5511
  if (t instanceof DocumentReference) {
5512
5512
  const r = e.databaseId, n = t.firestore._databaseId;
5513
- if (!n.isEqual(r)) throw e.ft(`Document reference is for database ${n.projectId}/${n.database} but should be for database ${r.projectId}/${r.database}`);
5513
+ if (!n.isEqual(r)) throw e.dt(`Document reference is for database ${n.projectId}/${n.database} but should be for database ${r.projectId}/${r.database}`);
5514
5514
  return {
5515
5515
  referenceValue: __PRIVATE_toResourceName(t.firestore._databaseId || e.databaseId, t._key.path)
5516
5516
  };
@@ -5528,7 +5528,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
5528
5528
  [X]: {
5529
5529
  arrayValue: {
5530
5530
  values: t.toArray().map((t => {
5531
- if ("number" != typeof t) throw e.ft("VectorValues must only contain numeric values.");
5531
+ if ("number" != typeof t) throw e.dt("VectorValues must only contain numeric values.");
5532
5532
  return __PRIVATE_toDouble(e.serializer, t);
5533
5533
  }))
5534
5534
  }
@@ -5546,7 +5546,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
5546
5546
  * GeoPoints, etc. are not considered to look like JSON objects since they map
5547
5547
  * to specific FieldValue types other than ObjectValue.
5548
5548
  */ (t, e);
5549
- throw e.ft(`Unsupported field value: ${__PRIVATE_valueDescription(t)}`);
5549
+ throw e.dt(`Unsupported field value: ${__PRIVATE_valueDescription(t)}`);
5550
5550
  }(t, e);
5551
5551
  }
5552
5552
 
@@ -5577,7 +5577,7 @@ function __PRIVATE_validatePlainObject(t, e, r) {
5577
5577
  return "object" == typeof t && null !== t && (Object.getPrototypeOf(t) === Object.prototype || null === Object.getPrototypeOf(t));
5578
5578
  }(r)) {
5579
5579
  const n = __PRIVATE_valueDescription(r);
5580
- throw "an object" === n ? e.ft(t + " a custom object") : e.ft(t + " " + n);
5580
+ throw "an object" === n ? e.dt(t + " a custom object") : e.dt(t + " " + n);
5581
5581
  }
5582
5582
  }
5583
5583
 
@@ -6636,7 +6636,7 @@ function sum(t) {
6636
6636
  * @returns `true` if the objects are "equal", as defined above, or `false`
6637
6637
  * otherwise.
6638
6638
  */ function aggregateQuerySnapshotEqual(t, e) {
6639
- return queryEqual(t.query, e.query) && f(t.data(), e.data());
6639
+ return queryEqual(t.query, e.query) && d(t.data(), e.data());
6640
6640
  }
6641
6641
 
6642
6642
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/firestore",
3
- "version": "4.7.10-canary.0cbff6bc7",
3
+ "version": "4.7.10-canary.1363ecc53",
4
4
  "engines": {
5
5
  "node": ">=18.0.0"
6
6
  },
@@ -98,21 +98,21 @@
98
98
  "lite/package.json"
99
99
  ],
100
100
  "dependencies": {
101
- "@firebase/component": "0.6.13-canary.0cbff6bc7",
102
- "@firebase/logger": "0.4.4-canary.0cbff6bc7",
103
- "@firebase/util": "1.11.0-canary.0cbff6bc7",
104
- "@firebase/webchannel-wrapper": "1.0.3-canary.0cbff6bc7",
101
+ "@firebase/component": "0.6.13-canary.1363ecc53",
102
+ "@firebase/logger": "0.4.4-canary.1363ecc53",
103
+ "@firebase/util": "1.11.0-canary.1363ecc53",
104
+ "@firebase/webchannel-wrapper": "1.0.3-canary.1363ecc53",
105
105
  "@grpc/grpc-js": "~1.9.0",
106
106
  "@grpc/proto-loader": "^0.7.8",
107
107
  "tslib": "^2.1.0"
108
108
  },
109
109
  "peerDependencies": {
110
- "@firebase/app": "0.11.4-canary.0cbff6bc7"
110
+ "@firebase/app": "0.11.4-canary.1363ecc53"
111
111
  },
112
112
  "devDependencies": {
113
- "@firebase/app": "0.11.4-canary.0cbff6bc7",
114
- "@firebase/app-compat": "0.2.53-canary.0cbff6bc7",
115
- "@firebase/auth": "1.10.0-canary.0cbff6bc7",
113
+ "@firebase/app": "0.11.4-canary.1363ecc53",
114
+ "@firebase/app-compat": "0.2.53-canary.1363ecc53",
115
+ "@firebase/auth": "1.10.0-canary.1363ecc53",
116
116
  "@rollup/plugin-alias": "5.1.1",
117
117
  "@rollup/plugin-json": "6.1.0",
118
118
  "@types/eslint": "7.29.0",