@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
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
 
15
15
  var nodeFetch__default = /*#__PURE__*/_interopDefaultLegacy(nodeFetch);
16
16
 
17
- const version$1 = "3.4.8-canary.aa41fd662";
17
+ const version$1 = "3.4.8-canary.d8be8bf1c";
18
18
 
19
19
  /**
20
20
  * @license
@@ -67,7 +67,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
67
67
  User.FIRST_PARTY = new User('first-party-uid');
68
68
  User.MOCK_USER = new User('mock-user');
69
69
 
70
- const version = "9.6.11-canary.aa41fd662";
70
+ const version = "9.6.11-canary.d8be8bf1c";
71
71
 
72
72
  /**
73
73
  * @license
@@ -2194,6 +2194,13 @@ function isSafeInteger(value) {
2194
2194
  * limitations under the License.
2195
2195
  */
2196
2196
  const MAX_VALUE_TYPE = '__max__';
2197
+ const MAX_VALUE = {
2198
+ mapValue: {
2199
+ fields: {
2200
+ '__type__': { stringValue: MAX_VALUE_TYPE }
2201
+ }
2202
+ }
2203
+ };
2197
2204
  /** Extracts the backend's type order for the provided value. */
2198
2205
  function typeOrder(value) {
2199
2206
  if ('nullValue' in value) {
@@ -2228,7 +2235,7 @@ function typeOrder(value) {
2228
2235
  return 4 /* ServerTimestampValue */;
2229
2236
  }
2230
2237
  else if (isMaxValue(value)) {
2231
- return 9 /* ArrayValue */;
2238
+ return 9007199254740991 /* MaxValue */;
2232
2239
  }
2233
2240
  return 10 /* ObjectValue */;
2234
2241
  }
@@ -2440,6 +2447,15 @@ function compareArrays(left, right) {
2440
2447
  return primitiveComparator(leftArray.length, rightArray.length);
2441
2448
  }
2442
2449
  function compareMaps(left, right) {
2450
+ if (left === MAX_VALUE.mapValue && right === MAX_VALUE.mapValue) {
2451
+ return 0;
2452
+ }
2453
+ else if (left === MAX_VALUE.mapValue) {
2454
+ return 1;
2455
+ }
2456
+ else if (right === MAX_VALUE.mapValue) {
2457
+ return -1;
2458
+ }
2443
2459
  const leftMap = left.fields || {};
2444
2460
  const leftKeys = Object.keys(leftMap);
2445
2461
  const rightMap = right.fields || {};
@@ -3240,10 +3256,10 @@ function queryToTarget(query) {
3240
3256
  }
3241
3257
  // We need to swap the cursors to match the now-flipped query ordering.
3242
3258
  const startAt = queryImpl.endAt
3243
- ? new Bound(queryImpl.endAt.position, !queryImpl.endAt.inclusive)
3259
+ ? new Bound(queryImpl.endAt.position, queryImpl.endAt.inclusive)
3244
3260
  : null;
3245
3261
  const endAt = queryImpl.startAt
3246
- ? new Bound(queryImpl.startAt.position, !queryImpl.startAt.inclusive)
3262
+ ? new Bound(queryImpl.startAt.position, queryImpl.startAt.inclusive)
3247
3263
  : null;
3248
3264
  // Now return as a LimitType.First query.
3249
3265
  queryImpl.memoizedTarget = newTarget(queryImpl.path, queryImpl.collectionGroup, orderBys, queryImpl.filters, queryImpl.limit, startAt, endAt);