@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
@@ -6,7 +6,7 @@ import { FirebaseError, createMockUserToken, getModularInstance } from '@firebas
6
6
  import nodeFetch from 'node-fetch';
7
7
  import { randomBytes as randomBytes$1 } from 'crypto';
8
8
 
9
- const version$1 = "3.4.8-canary.aa41fd662";
9
+ const version$1 = "3.4.8-canary.d8be8bf1c";
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 = "9.6.11-canary.aa41fd662";
62
+ const version = "9.6.11-canary.d8be8bf1c";
63
63
 
64
64
  /**
65
65
  * @license
@@ -2186,6 +2186,13 @@ function isSafeInteger(value) {
2186
2186
  * limitations under the License.
2187
2187
  */
2188
2188
  const MAX_VALUE_TYPE = '__max__';
2189
+ const MAX_VALUE = {
2190
+ mapValue: {
2191
+ fields: {
2192
+ '__type__': { stringValue: MAX_VALUE_TYPE }
2193
+ }
2194
+ }
2195
+ };
2189
2196
  /** Extracts the backend's type order for the provided value. */
2190
2197
  function typeOrder(value) {
2191
2198
  if ('nullValue' in value) {
@@ -2220,7 +2227,7 @@ function typeOrder(value) {
2220
2227
  return 4 /* ServerTimestampValue */;
2221
2228
  }
2222
2229
  else if (isMaxValue(value)) {
2223
- return 9 /* ArrayValue */;
2230
+ return 9007199254740991 /* MaxValue */;
2224
2231
  }
2225
2232
  return 10 /* ObjectValue */;
2226
2233
  }
@@ -2432,6 +2439,15 @@ function compareArrays(left, right) {
2432
2439
  return primitiveComparator(leftArray.length, rightArray.length);
2433
2440
  }
2434
2441
  function compareMaps(left, right) {
2442
+ if (left === MAX_VALUE.mapValue && right === MAX_VALUE.mapValue) {
2443
+ return 0;
2444
+ }
2445
+ else if (left === MAX_VALUE.mapValue) {
2446
+ return 1;
2447
+ }
2448
+ else if (right === MAX_VALUE.mapValue) {
2449
+ return -1;
2450
+ }
2435
2451
  const leftMap = left.fields || {};
2436
2452
  const leftKeys = Object.keys(leftMap);
2437
2453
  const rightMap = right.fields || {};
@@ -3232,10 +3248,10 @@ function queryToTarget(query) {
3232
3248
  }
3233
3249
  // We need to swap the cursors to match the now-flipped query ordering.
3234
3250
  const startAt = queryImpl.endAt
3235
- ? new Bound(queryImpl.endAt.position, !queryImpl.endAt.inclusive)
3251
+ ? new Bound(queryImpl.endAt.position, queryImpl.endAt.inclusive)
3236
3252
  : null;
3237
3253
  const endAt = queryImpl.startAt
3238
- ? new Bound(queryImpl.startAt.position, !queryImpl.startAt.inclusive)
3254
+ ? new Bound(queryImpl.startAt.position, queryImpl.startAt.inclusive)
3239
3255
  : null;
3240
3256
  // Now return as a LimitType.First query.
3241
3257
  queryImpl.memoizedTarget = newTarget(queryImpl.path, queryImpl.collectionGroup, orderBys, queryImpl.filters, queryImpl.limit, startAt, endAt);