From 064cf2e5fefaba325203e92de5bc184ebde3de7d Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Mon, 6 Jul 2020 15:52:44 -0700 Subject: [PATCH] Make UserDataReader tree-shakeable (#3333) --- .changeset/four-melons-laugh.md | 2 + packages/firestore/exp/src/api/reference.ts | 22 +- .../firestore/exp/test/deps/dependencies.json | 2521 ++++++++++++++++- packages/firestore/lite/src/api/reference.ts | 19 +- .../firestore/lite/src/api/transaction.ts | 16 +- .../firestore/lite/src/api/write_batch.ts | 12 +- .../firestore/lite/test/dependencies.json | 208 +- packages/firestore/src/api/database.ts | 39 +- .../firestore/src/api/user_data_reader.ts | 394 +-- .../test/unit/remote/serializer.helper.ts | 21 +- packages/firestore/test/util/helpers.ts | 14 +- 11 files changed, 2717 insertions(+), 551 deletions(-) create mode 100644 .changeset/four-melons-laugh.md diff --git a/.changeset/four-melons-laugh.md b/.changeset/four-melons-laugh.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/four-melons-laugh.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/firestore/exp/src/api/reference.ts b/packages/firestore/exp/src/api/reference.ts index 3f1bcdea6b0..7085cefdd6e 100644 --- a/packages/firestore/exp/src/api/reference.ts +++ b/packages/firestore/exp/src/api/reference.ts @@ -22,15 +22,18 @@ import * as firestore from '../../index'; import { Firestore } from './database'; import { DocumentKeyReference, - ParsedUpdateData + ParsedUpdateData, + parseSetData, + parseUpdateData, + parseUpdateVarargs } from '../../../src/api/user_data_reader'; import { debugAssert } from '../../../src/util/assert'; import { cast } from '../../../lite/src/api/util'; import { DocumentSnapshot, QuerySnapshot } from './snapshot'; import { addDocSnapshotListener, - addSnapshotsInSyncListener, addQuerySnapshotListener, + addSnapshotsInSyncListener, applyFirestoreDataConverter, getDocsViaSnapshotListener, getDocViaSnapshotListener, @@ -175,7 +178,8 @@ export function setDoc( options ); const dataReader = newUserDataReader(firestore); - const parsed = dataReader.parseSetData( + const parsed = parseSetData( + dataReader, 'setDoc', ref._key, convertedValue, @@ -215,7 +219,8 @@ export function updateDoc( typeof fieldOrUpdateData === 'string' || fieldOrUpdateData instanceof FieldPath ) { - parsed = dataReader.parseUpdateVarargs( + parsed = parseUpdateVarargs( + dataReader, 'updateDoc', ref._key, fieldOrUpdateData, @@ -223,7 +228,8 @@ export function updateDoc( moreFieldsAndValues ); } else { - parsed = dataReader.parseUpdateData( + parsed = parseUpdateData( + dataReader, 'updateDoc', ref._key, fieldOrUpdateData @@ -262,11 +268,13 @@ export function addDoc( const convertedValue = applyFirestoreDataConverter(collRef._converter, data); const dataReader = newUserDataReader(collRef.firestore); - const parsed = dataReader.parseSetData( + const parsed = parseSetData( + dataReader, 'addDoc', docRef._key, convertedValue, - collRef._converter !== null + collRef._converter !== null, + {} ); return firestore diff --git a/packages/firestore/exp/test/deps/dependencies.json b/packages/firestore/exp/test/deps/dependencies.json index 1199a987014..5199cfe1e02 100644 --- a/packages/firestore/exp/test/deps/dependencies.json +++ b/packages/firestore/exp/test/deps/dependencies.json @@ -2,9 +2,25 @@ "Blob": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -14,9 +30,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -33,6 +51,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -45,7 +64,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -68,6 +91,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -93,17 +117,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -117,13 +144,26 @@ "objectSize", "orderByEquals", "ordinal", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -158,6 +198,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -167,6 +209,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -222,6 +265,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -281,6 +325,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -291,14 +336,30 @@ ], "variables": [] }, - "sizeInBytes": 227151 + "sizeInBytes": 231124 }, "CollectionReference": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -308,9 +369,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -327,6 +390,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -341,11 +405,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -369,6 +435,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -397,18 +464,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -426,16 +496,30 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "refValue", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -471,6 +555,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -483,6 +569,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -507,7 +594,6 @@ "DatastoreImpl", "Deferred", "DelayedOperation", - "DeleteFieldValueImpl", "DeleteMutation", "DocReference", "Document", @@ -548,6 +634,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -573,8 +660,6 @@ "OnlineStateTracker", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "PersistencePromise", "PersistenceTransaction", @@ -613,6 +698,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -625,14 +711,30 @@ ], "variables": [] }, - "sizeInBytes": 258608 + "sizeInBytes": 257340 }, "DocumentReference": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -641,9 +743,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -660,6 +764,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -672,7 +777,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -694,6 +803,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -717,17 +827,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -740,13 +853,26 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -781,10 +907,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -841,6 +970,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -900,6 +1030,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -910,14 +1041,30 @@ ], "variables": [] }, - "sizeInBytes": 224128 + "sizeInBytes": 228101 }, "DocumentSnapshot": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -927,9 +1074,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -946,6 +1095,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -960,9 +1110,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -986,6 +1140,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -1012,17 +1167,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -1036,13 +1194,26 @@ "objectSize", "orderByEquals", "ordinal", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -1077,6 +1248,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -1087,6 +1260,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -1150,6 +1324,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -1211,6 +1386,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataWriter", @@ -1222,14 +1398,30 @@ ], "variables": [] }, - "sizeInBytes": 236470 + "sizeInBytes": 240443 }, "FieldPath": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -1238,9 +1430,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -1257,6 +1451,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -1269,7 +1464,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -1292,6 +1491,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -1316,17 +1516,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -1340,13 +1543,26 @@ "objectSize", "orderByEquals", "ordinal", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -1381,6 +1597,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -1390,6 +1608,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -1446,6 +1665,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -1505,6 +1725,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -1515,14 +1736,30 @@ ], "variables": [] }, - "sizeInBytes": 226375 + "sizeInBytes": 230348 }, "FieldValue": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -1531,9 +1768,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -1550,6 +1789,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -1562,7 +1802,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -1584,6 +1828,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -1607,17 +1852,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -1630,13 +1878,26 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -1671,10 +1932,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -1730,6 +1994,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -1790,6 +2055,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -1800,14 +2066,30 @@ ], "variables": [] }, - "sizeInBytes": 223720 + "sizeInBytes": 227693 }, "FirebaseFirestore": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -1816,9 +2098,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -1835,6 +2119,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -1847,7 +2132,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -1869,6 +2158,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -1892,17 +2182,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -1915,13 +2208,26 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -1956,10 +2262,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -2014,6 +2323,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -2073,6 +2383,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -2083,14 +2394,30 @@ ], "variables": [] }, - "sizeInBytes": 223629 + "sizeInBytes": 227602 }, "GeoPoint": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -2099,9 +2426,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -2118,6 +2447,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -2130,7 +2460,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -2153,6 +2487,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -2177,17 +2512,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -2201,13 +2539,26 @@ "objectSize", "orderByEquals", "ordinal", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -2242,6 +2593,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -2251,6 +2604,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -2306,6 +2660,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -2365,6 +2720,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -2375,14 +2731,30 @@ ], "variables": [] }, - "sizeInBytes": 226516 + "sizeInBytes": 230489 }, "Query": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -2392,9 +2764,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -2411,6 +2785,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -2425,11 +2800,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -2453,6 +2830,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -2481,18 +2859,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -2510,16 +2891,30 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "refValue", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -2555,6 +2950,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -2567,6 +2964,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -2590,7 +2988,6 @@ "DatastoreImpl", "Deferred", "DelayedOperation", - "DeleteFieldValueImpl", "DeleteMutation", "DocReference", "Document", @@ -2631,6 +3028,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -2656,8 +3054,6 @@ "OnlineStateTracker", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "PersistencePromise", "PersistenceTransaction", @@ -2696,6 +3092,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -2708,14 +3105,30 @@ ], "variables": [] }, - "sizeInBytes": 258212 + "sizeInBytes": 256944 }, "QueryDocumentSnapshot": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -2725,9 +3138,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -2744,6 +3159,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -2758,9 +3174,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -2784,6 +3204,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -2810,17 +3231,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -2834,13 +3258,26 @@ "objectSize", "orderByEquals", "ordinal", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -2875,6 +3312,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -2885,6 +3324,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -2948,6 +3388,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -3009,6 +3450,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataWriter", @@ -3020,14 +3462,30 @@ ], "variables": [] }, - "sizeInBytes": 236480 + "sizeInBytes": 240453 }, "QuerySnapshot": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -3037,9 +3495,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -3057,6 +3517,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -3071,9 +3532,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -3097,6 +3562,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -3123,17 +3589,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -3147,14 +3616,27 @@ "objectSize", "orderByEquals", "ordinal", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "resultChangeType", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -3189,6 +3671,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -3199,6 +3683,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -3262,6 +3747,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -3325,6 +3811,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataWriter", @@ -3336,14 +3823,30 @@ ], "variables": [] }, - "sizeInBytes": 239373 + "sizeInBytes": 243352 }, "Timestamp": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -3352,9 +3855,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -3371,6 +3876,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -3383,7 +3889,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -3405,6 +3915,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -3428,17 +3939,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -3451,13 +3965,26 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -3492,10 +4019,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -3550,6 +4080,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -3609,6 +4140,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -3619,15 +4151,31 @@ ], "variables": [] }, - "sizeInBytes": 223606 + "sizeInBytes": 227579 }, "Transaction": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", "applyFirestoreDataConverter", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -3637,9 +4185,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -3656,6 +4206,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -3670,11 +4221,15 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", "fieldMaskContains", "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -3698,6 +4253,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -3726,18 +4282,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -3757,13 +4316,29 @@ "parseObject", "parseScalarValue", "parseSentinelFieldValue", + "parseSetData", + "parseUpdateData", + "parseUpdateVarargs", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -3799,6 +4374,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -3811,6 +4388,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -3874,6 +4452,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -3939,6 +4518,7 @@ "Transaction$1", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -3951,15 +4531,31 @@ ], "variables": [] }, - "sizeInBytes": 249669 + "sizeInBytes": 253423 }, "WriteBatch": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", "applyFirestoreDataConverter", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -3969,9 +4565,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -3988,6 +4586,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -4002,10 +4601,14 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", "fieldMaskContains", "fieldPathFromArgument", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -4029,6 +4632,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -4056,18 +4660,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -4087,13 +4694,29 @@ "parseObject", "parseScalarValue", "parseSentinelFieldValue", + "parseSetData", + "parseUpdateData", + "parseUpdateVarargs", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -4129,6 +4752,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -4141,6 +4766,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -4203,6 +4829,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -4266,6 +4893,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -4278,16 +4906,32 @@ ], "variables": [] }, - "sizeInBytes": 245697 + "sizeInBytes": 249451 }, "addDoc": { "dependencies": { "functions": [ "addDoc", + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", "applyFirestoreDataConverter", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -4297,9 +4941,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -4316,6 +4962,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -4331,11 +4978,14 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -4359,6 +5009,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -4387,18 +5038,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -4416,16 +5070,31 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", + "parseSetData", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "refValue", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -4461,6 +5130,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -4474,6 +5145,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -4498,7 +5170,6 @@ "DatastoreImpl", "Deferred", "DelayedOperation", - "DeleteFieldValueImpl", "DeleteMutation", "DocReference", "Document", @@ -4539,6 +5210,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -4565,7 +5237,6 @@ "OrderBy", "ParseContext", "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "PersistencePromise", "PersistenceTransaction", @@ -4604,6 +5275,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -4616,15 +5288,31 @@ ], "variables": [] }, - "sizeInBytes": 260149 + "sizeInBytes": 260858 }, "arrayRemove": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayRemove", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -4634,9 +5322,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -4653,6 +5343,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "createSentinelChildContext", @@ -4667,7 +5358,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -4690,6 +5385,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -4717,18 +5413,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -4747,13 +5446,26 @@ "parseObject", "parseScalarValue", "parseSentinelFieldValue", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -4789,6 +5501,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -4800,6 +5514,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -4861,6 +5576,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -4922,6 +5638,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -4932,15 +5649,31 @@ ], "variables": [] }, - "sizeInBytes": 236480 + "sizeInBytes": 240358 }, "arrayUnion": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayUnion", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -4950,9 +5683,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -4969,6 +5704,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "createSentinelChildContext", @@ -4983,7 +5719,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -5006,6 +5746,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -5033,18 +5774,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -5063,13 +5807,26 @@ "parseObject", "parseScalarValue", "parseSentinelFieldValue", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -5105,6 +5862,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -5116,6 +5875,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -5177,6 +5937,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -5238,6 +5999,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -5248,14 +6010,30 @@ ], "variables": [] }, - "sizeInBytes": 236473 + "sizeInBytes": 240351 }, "clearIndexedDbPersistence": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -5264,9 +6042,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -5284,6 +6064,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -5296,7 +6077,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -5318,6 +6103,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -5341,17 +6127,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -5364,13 +6153,26 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -5405,10 +6207,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -5463,6 +6268,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -5522,6 +6328,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -5532,14 +6339,30 @@ ], "variables": [] }, - "sizeInBytes": 223757 + "sizeInBytes": 227730 }, "collection": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -5549,9 +6372,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -5569,6 +6394,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -5583,11 +6409,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -5611,6 +6439,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -5639,18 +6468,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -5668,16 +6500,30 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "refValue", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -5713,6 +6559,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -5726,6 +6574,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -5750,7 +6599,6 @@ "DatastoreImpl", "Deferred", "DelayedOperation", - "DeleteFieldValueImpl", "DeleteMutation", "DocReference", "Document", @@ -5791,6 +6639,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -5816,8 +6665,6 @@ "OnlineStateTracker", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "PersistencePromise", "PersistenceTransaction", @@ -5856,6 +6703,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -5868,14 +6716,30 @@ ], "variables": [] }, - "sizeInBytes": 259236 + "sizeInBytes": 257968 }, "collectionGroup": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -5885,9 +6749,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -5905,6 +6771,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -5919,11 +6786,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -5947,6 +6816,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -5975,18 +6845,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -6004,16 +6877,30 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "refValue", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -6049,6 +6936,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -6061,6 +6950,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -6084,7 +6974,6 @@ "DatastoreImpl", "Deferred", "DelayedOperation", - "DeleteFieldValueImpl", "DeleteMutation", "DocReference", "Document", @@ -6125,6 +7014,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -6150,8 +7040,6 @@ "OnlineStateTracker", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "PersistencePromise", "PersistenceTransaction", @@ -6190,6 +7078,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -6202,14 +7091,30 @@ ], "variables": [] }, - "sizeInBytes": 258668 + "sizeInBytes": 257400 }, "deleteDoc": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -6218,9 +7123,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -6237,6 +7144,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -6250,7 +7158,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -6272,6 +7184,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -6295,17 +7208,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -6318,13 +7234,26 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -6359,10 +7288,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -6419,6 +7351,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -6478,6 +7411,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -6488,14 +7422,30 @@ ], "variables": [] }, - "sizeInBytes": 224378 + "sizeInBytes": 228351 }, "deleteField": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -6504,9 +7454,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -6523,6 +7475,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -6536,7 +7489,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -6558,6 +7515,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -6581,17 +7539,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -6604,13 +7565,26 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -6645,10 +7619,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -6706,6 +7683,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -6766,6 +7744,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -6776,14 +7755,30 @@ ], "variables": [] }, - "sizeInBytes": 224794 + "sizeInBytes": 228767 }, "disableNetwork": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -6792,9 +7787,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -6811,6 +7808,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -6824,7 +7822,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -6846,6 +7848,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -6869,17 +7872,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -6892,13 +7898,26 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -6933,10 +7952,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -6991,6 +8013,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -7050,6 +8073,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -7060,14 +8084,30 @@ ], "variables": [] }, - "sizeInBytes": 223793 + "sizeInBytes": 227766 }, "doc": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -7077,9 +8117,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -7096,6 +8138,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -7111,11 +8154,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -7139,6 +8184,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -7167,18 +8213,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -7196,16 +8245,30 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "refValue", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -7241,6 +8304,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -7254,6 +8319,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -7278,7 +8344,6 @@ "DatastoreImpl", "Deferred", "DelayedOperation", - "DeleteFieldValueImpl", "DeleteMutation", "DocReference", "Document", @@ -7319,6 +8384,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -7344,8 +8410,6 @@ "OnlineStateTracker", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "PersistencePromise", "PersistenceTransaction", @@ -7384,6 +8448,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -7396,14 +8461,30 @@ ], "variables": [] }, - "sizeInBytes": 259312 + "sizeInBytes": 258044 }, "documentId": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -7412,9 +8493,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -7431,6 +8514,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -7444,7 +8528,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -7467,6 +8555,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -7491,17 +8580,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -7515,13 +8607,26 @@ "objectSize", "orderByEquals", "ordinal", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -7556,6 +8661,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -7565,6 +8672,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -7621,6 +8729,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -7680,6 +8789,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -7690,14 +8800,30 @@ ], "variables": [] }, - "sizeInBytes": 226425 + "sizeInBytes": 230398 }, "enableIndexedDbPersistence": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -7707,9 +8833,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -7729,6 +8857,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createClientMetadataStore", "createDocumentGlobalStore", "createMetadata", @@ -7765,7 +8894,11 @@ "encodeSeparator", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -7812,6 +8945,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "globalTargetStore", "hardAssert", @@ -7839,11 +8973,13 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "mutationQueueContainsKey", "mutationQueuesContainKey", "mutationQueuesStore", @@ -7856,6 +8992,7 @@ "newMultiTabSyncEngine", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -7868,19 +9005,32 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primaryClientStore", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", "remoteDocumentsStore", "removeMutationBatch", + "requireDocument", "sentinelKey", "sentinelKey$1", "sentinelRow", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -7922,11 +9072,14 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "upgradeMutationBatchSchemaAndMigrateData", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable", "wrapRequest", @@ -8083,6 +9236,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -8094,14 +9248,30 @@ ], "variables": [] }, - "sizeInBytes": 332736 + "sizeInBytes": 335737 }, "enableMultiTabIndexedDbPersistence": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -8111,9 +9281,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -8133,6 +9305,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createClientMetadataStore", "createDocumentGlobalStore", "createMetadata", @@ -8169,7 +9342,11 @@ "encodeSeparator", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -8216,6 +9393,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "globalTargetStore", "hardAssert", @@ -8243,11 +9421,13 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "mutationQueueContainsKey", "mutationQueuesContainKey", "mutationQueuesStore", @@ -8260,6 +9440,7 @@ "newMultiTabSyncEngine", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -8272,19 +9453,32 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primaryClientStore", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", "remoteDocumentsStore", "removeMutationBatch", + "requireDocument", "sentinelKey", "sentinelKey$1", "sentinelRow", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -8326,11 +9520,14 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "upgradeMutationBatchSchemaAndMigrateData", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable", "wrapRequest", @@ -8487,6 +9684,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -8498,14 +9696,30 @@ ], "variables": [] }, - "sizeInBytes": 332751 + "sizeInBytes": 335752 }, "enableNetwork": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -8514,9 +9728,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -8533,6 +9749,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -8546,7 +9763,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -8568,6 +9789,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -8591,17 +9813,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -8614,13 +9839,26 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -8655,10 +9893,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -8713,6 +9954,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -8772,6 +10014,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -8782,15 +10025,31 @@ ], "variables": [] }, - "sizeInBytes": 223790 + "sizeInBytes": 227763 }, "getDoc": { "dependencies": { "functions": [ "addDocSnapshotListener", + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -8800,9 +10059,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -8819,6 +10080,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "convertToDocSnapshot", "createError", "createMetadata", @@ -8834,9 +10096,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -8862,6 +10128,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -8888,17 +10155,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -8912,13 +10182,26 @@ "objectSize", "orderByEquals", "ordinal", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -8953,6 +10236,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -8963,6 +10248,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -9027,6 +10313,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -9089,6 +10376,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataWriter", @@ -9100,14 +10388,30 @@ ], "variables": [] }, - "sizeInBytes": 238912 + "sizeInBytes": 242885 }, "getDocFromCache": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -9117,9 +10421,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -9136,6 +10442,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -9150,9 +10457,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -9177,6 +10488,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -9203,17 +10515,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -9227,13 +10542,26 @@ "objectSize", "orderByEquals", "ordinal", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -9268,6 +10596,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -9278,6 +10608,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -9341,6 +10672,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -9403,6 +10735,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataWriter", @@ -9414,15 +10747,31 @@ ], "variables": [] }, - "sizeInBytes": 237092 + "sizeInBytes": 241065 }, "getDocFromServer": { "dependencies": { "functions": [ "addDocSnapshotListener", + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -9432,9 +10781,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -9451,6 +10802,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "convertToDocSnapshot", "createError", "createMetadata", @@ -9466,9 +10818,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -9494,6 +10850,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -9520,17 +10877,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -9544,13 +10904,26 @@ "objectSize", "orderByEquals", "ordinal", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -9585,6 +10958,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -9595,6 +10970,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -9659,6 +11035,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -9721,6 +11098,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataWriter", @@ -9732,14 +11110,30 @@ ], "variables": [] }, - "sizeInBytes": 238950 + "sizeInBytes": 242923 }, "getFirestore": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -9748,9 +11142,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -9767,6 +11163,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -9779,7 +11176,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -9802,6 +11203,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -9825,17 +11227,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -9848,13 +11253,26 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -9889,10 +11307,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -9947,6 +11368,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -10006,6 +11428,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -10016,15 +11439,31 @@ ], "variables": [] }, - "sizeInBytes": 223705 + "sizeInBytes": 227678 }, "getQuery": { "dependencies": { "functions": [ "addQuerySnapshotListener", + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -10034,9 +11473,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -10054,6 +11495,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -10068,11 +11510,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -10097,6 +11541,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getQuery", "getWindow", @@ -10126,18 +11571,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -10155,17 +11603,31 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "refValue", "registerFirestore", + "requireDocument", "resultChangeType", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -10201,6 +11663,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -10214,6 +11678,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -10238,7 +11703,6 @@ "DatastoreImpl", "Deferred", "DelayedOperation", - "DeleteFieldValueImpl", "DeleteMutation", "DocReference", "Document", @@ -10280,6 +11744,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -10305,8 +11770,6 @@ "OnlineStateTracker", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "PersistencePromise", "PersistenceTransaction", @@ -10348,6 +11811,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -10360,14 +11824,30 @@ ], "variables": [] }, - "sizeInBytes": 264489 + "sizeInBytes": 263227 }, "getQueryFromCache": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -10377,9 +11857,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -10397,6 +11879,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -10411,11 +11894,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -10439,6 +11924,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getQueryFromCache", "getWindow", @@ -10468,18 +11954,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -10497,17 +11986,31 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "refValue", "registerFirestore", + "requireDocument", "resultChangeType", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -10543,6 +12046,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -10555,6 +12060,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -10578,7 +12084,6 @@ "DatastoreImpl", "Deferred", "DelayedOperation", - "DeleteFieldValueImpl", "DeleteMutation", "DocReference", "Document", @@ -10620,6 +12125,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -10645,8 +12151,6 @@ "OnlineStateTracker", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "PersistencePromise", "PersistenceTransaction", @@ -10688,6 +12192,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -10700,15 +12205,31 @@ ], "variables": [] }, - "sizeInBytes": 262818 + "sizeInBytes": 261556 }, "getQueryFromServer": { "dependencies": { "functions": [ "addQuerySnapshotListener", + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -10718,9 +12239,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -10738,6 +12261,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -10752,11 +12276,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -10781,6 +12307,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getQueryFromServer", "getWindow", @@ -10810,18 +12337,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -10839,17 +12369,31 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "refValue", "registerFirestore", + "requireDocument", "resultChangeType", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -10885,6 +12429,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -10897,6 +12443,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -10921,7 +12468,6 @@ "DatastoreImpl", "Deferred", "DelayedOperation", - "DeleteFieldValueImpl", "DeleteMutation", "DocReference", "Document", @@ -10963,6 +12509,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -10988,8 +12535,6 @@ "OnlineStateTracker", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "PersistencePromise", "PersistenceTransaction", @@ -11031,6 +12576,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -11043,16 +12589,31 @@ ], "variables": [] }, - "sizeInBytes": 264227 + "sizeInBytes": 262965 }, "increment": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", - "assertUint8ArrayAvailable", "binaryStringFromUint8Array", "blobEquals", "boundEquals", @@ -11060,9 +12621,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -11079,9 +12642,8 @@ "compareNumbers", "compareReferences", "compareTimestamps", - "createError", + "computeTransformOperationBaseValue", "createMetadata", - "createSentinelChildContext", "debugAssert", "debugCast", "decodeBase64", @@ -11093,10 +12655,13 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", - "formatPlural", "fromBytes", "fromFound", "fromMaybeDocument", @@ -11116,11 +12681,11 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", "increment", - "invalidClassError", "invokeBatchGetDocumentsRpc", "invokeCommitRpc", "isArray", @@ -11137,25 +12702,25 @@ "isNumber", "isPermanentError", "isPermanentWriteError", - "isPlainObject", "isReferenceValue", "isSafeInteger", "isServerTimestamp", "isValidResourceName", - "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", - "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -11168,19 +12733,26 @@ "objectEquals", "objectSize", "orderByEquals", - "ordinal", - "parseArray", - "parseData", - "parseObject", - "parseScalarValue", - "parseSentinelFieldValue", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -11216,16 +12788,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", - "tryGetCustomObjectType", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", - "validateArgType", - "validateExactNumberOfArgs", - "validatePlainObject", - "validateType", "valueCompare", - "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -11238,7 +12807,6 @@ "AsyncQueue", "AutoId", "BasePath", - "Blob", "Bound", "ByteString", "DatabaseId", @@ -11252,7 +12820,6 @@ "Document", "DocumentChangeSet", "DocumentKey", - "DocumentKeyReference", "DocumentSet", "DocumentWatchChange", "EventManager", @@ -11271,7 +12838,6 @@ "Firestore$1", "FirestoreClient", "FirestoreError", - "GeoPoint", "GrpcConnection", "InFilter", "IndexFreeQueryEngine", @@ -11286,6 +12852,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -11311,7 +12878,6 @@ "ObjectValueBuilder", "OnlineStateTracker", "OrderBy", - "ParseContext", "PatchMutation", "PersistencePromise", "PersistenceTransaction", @@ -11348,6 +12914,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -11358,14 +12925,30 @@ ], "variables": [] }, - "sizeInBytes": 236099 + "sizeInBytes": 228911 }, "initializeFirestore": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -11374,9 +12957,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -11393,6 +12978,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -11405,7 +12991,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -11427,6 +13017,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -11451,17 +13042,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -11474,13 +13068,26 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -11515,10 +13122,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -11573,6 +13183,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -11632,6 +13243,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -11642,16 +13254,32 @@ ], "variables": [] }, - "sizeInBytes": 223791 + "sizeInBytes": 227764 }, "onSnapshot": { "dependencies": { "functions": [ "addDocSnapshotListener", "addQuerySnapshotListener", + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -11661,9 +13289,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -11681,6 +13311,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "convertToDocSnapshot", "createError", "createMetadata", @@ -11696,11 +13327,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -11724,6 +13357,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -11754,18 +13388,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -11784,17 +13421,31 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "refValue", "registerFirestore", + "requireDocument", "resultChangeType", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -11830,6 +13481,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -11843,6 +13496,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -11867,7 +13521,6 @@ "DatastoreImpl", "Deferred", "DelayedOperation", - "DeleteFieldValueImpl", "DeleteMutation", "DocReference", "Document", @@ -11909,6 +13562,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -11934,8 +13588,6 @@ "OnlineStateTracker", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "PersistencePromise", "PersistenceTransaction", @@ -11977,6 +13629,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -11989,15 +13642,31 @@ ], "variables": [] }, - "sizeInBytes": 265970 + "sizeInBytes": 264883 }, "onSnapshotsInSync": { "dependencies": { "functions": [ "addSnapshotsInSyncListener", + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -12006,9 +13675,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -12025,6 +13696,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -12037,7 +13709,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -12059,6 +13735,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -12084,17 +13761,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -12108,13 +13788,26 @@ "objectSize", "onSnapshotsInSync", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -12149,10 +13842,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -12208,6 +13904,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -12267,6 +13964,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -12277,14 +13975,30 @@ ], "variables": [] }, - "sizeInBytes": 224986 + "sizeInBytes": 228959 }, "parent": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -12294,9 +14008,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -12313,6 +14029,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -12327,11 +14044,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -12355,6 +14074,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -12383,18 +14103,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -12413,16 +14136,30 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "refValue", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -12458,6 +14195,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -12470,6 +14209,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -12494,7 +14234,6 @@ "DatastoreImpl", "Deferred", "DelayedOperation", - "DeleteFieldValueImpl", "DeleteMutation", "DocReference", "Document", @@ -12535,6 +14274,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -12560,8 +14300,6 @@ "OnlineStateTracker", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "PersistencePromise", "PersistenceTransaction", @@ -12600,6 +14338,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -12612,14 +14351,30 @@ ], "variables": [] }, - "sizeInBytes": 258951 + "sizeInBytes": 257683 }, "queryEqual": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -12629,9 +14384,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -12648,6 +14405,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -12662,11 +14420,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -12690,6 +14450,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -12718,18 +14479,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -12747,17 +14511,31 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", "queryEqual", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "refValue", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -12793,6 +14571,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -12805,6 +14585,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -12828,7 +14609,6 @@ "DatastoreImpl", "Deferred", "DelayedOperation", - "DeleteFieldValueImpl", "DeleteMutation", "DocReference", "Document", @@ -12869,6 +14649,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -12894,8 +14675,6 @@ "OnlineStateTracker", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "PersistencePromise", "PersistenceTransaction", @@ -12934,6 +14713,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -12946,14 +14726,30 @@ ], "variables": [] }, - "sizeInBytes": 258416 + "sizeInBytes": 257152 }, "refEqual": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -12963,9 +14759,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -12982,6 +14780,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -12996,11 +14795,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -13024,6 +14825,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -13052,18 +14854,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -13081,17 +14886,31 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "refEqual", "refValue", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -13127,6 +14946,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -13139,6 +14960,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -13163,7 +14985,6 @@ "DatastoreImpl", "Deferred", "DelayedOperation", - "DeleteFieldValueImpl", "DeleteMutation", "DocReference", "Document", @@ -13204,6 +15025,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -13229,8 +15051,6 @@ "OnlineStateTracker", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "PersistencePromise", "PersistenceTransaction", @@ -13269,6 +15089,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -13281,15 +15102,31 @@ ], "variables": [] }, - "sizeInBytes": 258893 + "sizeInBytes": 257625 }, "runTransaction": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", "applyFirestoreDataConverter", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -13299,9 +15136,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -13318,6 +15157,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -13332,11 +15172,15 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", "fieldMaskContains", "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -13360,6 +15204,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -13388,18 +15233,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -13419,14 +15267,30 @@ "parseObject", "parseScalarValue", "parseSentinelFieldValue", + "parseSetData", + "parseUpdateData", + "parseUpdateVarargs", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "runTransaction", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -13462,6 +15326,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -13474,6 +15340,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -13537,6 +15404,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -13602,6 +15470,7 @@ "Transaction$1", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -13614,14 +15483,30 @@ ], "variables": [] }, - "sizeInBytes": 250024 + "sizeInBytes": 253778 }, "serverTimestamp": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -13630,9 +15515,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -13649,6 +15536,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -13661,7 +15549,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -13683,6 +15575,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -13706,17 +15599,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -13729,14 +15625,27 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", "serverTimestamp$1", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -13771,10 +15680,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -13832,6 +15744,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -13893,6 +15806,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -13903,15 +15817,31 @@ ], "variables": [] }, - "sizeInBytes": 224681 + "sizeInBytes": 228554 }, "setDoc": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", "applyFirestoreDataConverter", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -13921,9 +15851,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -13940,6 +15872,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -13954,10 +15887,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -13981,6 +15917,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -14008,18 +15945,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -14039,14 +15979,28 @@ "parseObject", "parseScalarValue", "parseSentinelFieldValue", + "parseSetData", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "setDoc", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -14082,6 +16036,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -14093,6 +16049,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -14115,7 +16072,6 @@ "DatastoreImpl", "Deferred", "DelayedOperation", - "DeleteFieldValueImpl", "DeleteMutation", "DocReference", "Document", @@ -14154,6 +16110,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -14180,7 +16137,6 @@ "OrderBy", "ParseContext", "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "PersistencePromise", "PersistenceTransaction", @@ -14217,6 +16173,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -14228,14 +16185,30 @@ ], "variables": [] }, - "sizeInBytes": 244039 + "sizeInBytes": 244389 }, "setLogLevel": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -14244,9 +16217,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -14263,6 +16238,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -14275,7 +16251,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -14297,6 +16277,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -14320,17 +16301,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -14343,14 +16327,27 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "setLogLevel", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -14385,10 +16382,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -14443,6 +16443,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -14502,6 +16503,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -14512,14 +16514,30 @@ ], "variables": [] }, - "sizeInBytes": 223671 + "sizeInBytes": 227644 }, "snapshotEqual": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -14529,9 +16547,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -14549,6 +16569,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -14563,11 +16584,13 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -14591,6 +16614,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getPreviousValue", "getWindow", "hardAssert", @@ -14619,18 +16643,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -14648,19 +16675,33 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", "queryEqual", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "refValue", "registerFirestore", + "requireDocument", "resultChangeType", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "snapshotEqual", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -14696,6 +16737,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -14708,6 +16751,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -14731,7 +16775,6 @@ "DatastoreImpl", "Deferred", "DelayedOperation", - "DeleteFieldValueImpl", "DeleteMutation", "DocReference", "Document", @@ -14773,6 +16816,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -14798,8 +16842,6 @@ "OnlineStateTracker", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "PersistencePromise", "PersistenceTransaction", @@ -14841,6 +16883,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -14853,14 +16896,30 @@ ], "variables": [] }, - "sizeInBytes": 263235 + "sizeInBytes": 261977 }, "terminate": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -14869,9 +16928,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -14888,6 +16949,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -14900,7 +16962,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -14922,6 +16988,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -14945,17 +17012,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -14968,13 +17038,26 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -15009,10 +17092,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -15067,6 +17153,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -15126,6 +17213,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -15136,14 +17224,30 @@ ], "variables": [] }, - "sizeInBytes": 223621 + "sizeInBytes": 227594 }, "updateDoc": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -15153,9 +17257,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -15172,6 +17278,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -15186,10 +17293,14 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", "fieldMaskContains", "fieldPathFromArgument", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -15213,6 +17324,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -15240,18 +17352,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -15271,13 +17386,28 @@ "parseObject", "parseScalarValue", "parseSentinelFieldValue", + "parseUpdateData", + "parseUpdateVarargs", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -15313,6 +17443,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -15325,6 +17457,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable" ], @@ -15386,6 +17519,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -15411,7 +17545,6 @@ "OnlineStateTracker", "OrderBy", "ParseContext", - "ParsedSetData", "ParsedUpdateData", "PatchMutation", "PersistencePromise", @@ -15449,6 +17582,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -15460,14 +17594,30 @@ ], "variables": [] }, - "sizeInBytes": 243886 + "sizeInBytes": 245753 }, "waitForPendingWrites": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "binaryStringFromUint8Array", "blobEquals", @@ -15476,9 +17626,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -15495,6 +17647,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createMetadata", "debugAssert", "debugCast", @@ -15507,7 +17660,11 @@ "encodeBase64", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "fromBytes", @@ -15529,6 +17686,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -15552,17 +17710,20 @@ "isServerTimestamp", "isValidResourceName", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -15575,13 +17736,26 @@ "objectEquals", "objectSize", "orderByEquals", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -15616,10 +17790,13 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "typeOrder", "uint8ArrayFromBinaryString", "valueCompare", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "waitForPendingWrites", "wrapInUserErrorIfRecoverable" @@ -15675,6 +17852,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -15734,6 +17912,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "VerifyMutation", @@ -15744,15 +17923,31 @@ ], "variables": [] }, - "sizeInBytes": 223811 + "sizeInBytes": 227784 }, "writeBatch": { "dependencies": { "functions": [ + "applyArrayRemoveTransformOperation", + "applyArrayUnionTransformOperation", + "applyDeleteMutationToLocalView", + "applyDeleteMutationToRemoteDocument", "applyFirestoreDataConverter", + "applyMutationToLocalView", + "applyMutationToRemoteDocument", + "applyNumericIncrementTransformOperationToLocalView", + "applyPatchMutationToLocalView", + "applyPatchMutationToRemoteDocument", + "applySetMutationToLocalView", + "applySetMutationToRemoteDocument", + "applyTransformMutationToLocalView", + "applyTransformMutationToRemoteDocument", + "applyTransformOperationToLocalView", + "applyTransformOperationToRemoteDocument", "argToString", "arrayEquals", "arrayValueContains", + "asNumber", "assertPresent", "assertUint8ArrayAvailable", "binaryStringFromUint8Array", @@ -15762,9 +17957,11 @@ "canonifyArray", "canonifyBound", "canonifyByteString", + "canonifyFilter", "canonifyGeoPoint", "canonifyMap", "canonifyOrderBy", + "canonifyQuery", "canonifyReference", "canonifyTarget", "canonifyTimestamp", @@ -15781,6 +17978,7 @@ "compareNumbers", "compareReferences", "compareTimestamps", + "computeTransformOperationBaseValue", "createError", "createMetadata", "debugAssert", @@ -15795,10 +17993,14 @@ "errorMessage", "extractFieldMask", "extractLocalPathFromResourceName", + "extractMutationBaseValue", + "extractTransformMutationBaseValue", "fail", "fieldMaskContains", "fieldPathFromArgument", "fieldPathFromDotSeparatedString", + "fieldTransformEquals", + "filterEquals", "forEach", "formatJSON", "formatPlural", @@ -15822,6 +18024,7 @@ "getLocalWriteTime", "getLogLevel", "getMessageOrStack", + "getPostMutationVersion", "getWindow", "hardAssert", "ignoreIfPrimaryLeaseLoss", @@ -15849,18 +18052,21 @@ "isValidResourceName", "isWrite", "loadProtos", + "localTransformResults", "logDebug", "logError", "logWarn", "looksLikeJsonObject", "mapCodeFromRpcCode", "maybeDocumentMap", + "mutationEquals", "newConnection", "newConnectivityMonitor", "newDatastore", "newLocalStore", "newPersistentWatchStream", "newPersistentWriteStream", + "newQueryComparator", "newSerializer", "newSyncEngine", "newTarget", @@ -15880,13 +18086,29 @@ "parseObject", "parseScalarValue", "parseSentinelFieldValue", + "parseSetData", + "parseUpdateData", + "parseUpdateVarargs", + "patchDocument", + "patchObject", + "preconditionIsValidForDocument", "primitiveComparator", + "queryEquals", + "queryMatches", + "queryMatchesBounds", + "queryMatchesFilters", + "queryMatchesOrderBy", + "queryMatchesPathAndCollectionGroup", "randomBytes", "registerFirestore", + "requireDocument", "serverTimestamp", + "serverTransformResults", "snapshotChangesMap", "sortsBeforeDocument", + "stringifyFilter", "stringifyOrderBy", + "stringifyQuery", "stringifyTarget", "targetEquals", "targetIdSet", @@ -15922,6 +18144,8 @@ "toTimestamp", "toUnaryOrFieldFilter", "toVersion", + "transformObject", + "transformOperationEquals", "tryGetCustomObjectType", "typeOrder", "uint8ArrayFromBinaryString", @@ -15934,6 +18158,7 @@ "valueCompare", "valueDescription", "valueEquals", + "verifyMutationKeyMatches", "versionFromListenResponse", "wrapInUserErrorIfRecoverable", "writeBatch" @@ -15997,6 +18222,7 @@ "LocalDocumentsView", "LocalStoreImpl", "LocalViewChanges", + "LruParams", "MaybeDocument", "MemoryCollectionParentIndex", "MemoryComponentProvider", @@ -16060,6 +18286,7 @@ "Transaction", "TransactionRunner", "TransformMutation", + "TransformOperation", "UnknownDocument", "User", "UserDataReader", @@ -16072,6 +18299,6 @@ ], "variables": [] }, - "sizeInBytes": 245910 + "sizeInBytes": 249664 } } \ No newline at end of file diff --git a/packages/firestore/lite/src/api/reference.ts b/packages/firestore/lite/src/api/reference.ts index 3bbed6444fd..c94bfdf859c 100644 --- a/packages/firestore/lite/src/api/reference.ts +++ b/packages/firestore/lite/src/api/reference.ts @@ -23,6 +23,9 @@ import { Firestore } from './database'; import { DocumentKeyReference, ParsedUpdateData, + parseSetData, + parseUpdateData, + parseUpdateVarargs, UserDataReader } from '../../../src/api/user_data_reader'; import { @@ -36,9 +39,9 @@ import { ResourcePath } from '../../../src/model/path'; import { AutoId } from '../../../src/util/misc'; import { DocumentSnapshot, + fieldPathFromArgument, QueryDocumentSnapshot, - QuerySnapshot, - fieldPathFromArgument + QuerySnapshot } from './snapshot'; import { invokeBatchGetDocumentsRpc, @@ -465,7 +468,8 @@ export function setDoc( options ); const dataReader = newUserDataReader(ref.firestore); - const parsed = dataReader.parseSetData( + const parsed = parseSetData( + dataReader, 'setDoc', ref._key, convertedValue, @@ -507,7 +511,8 @@ export function updateDoc( typeof fieldOrUpdateData === 'string' || fieldOrUpdateData instanceof FieldPath ) { - parsed = dataReader.parseUpdateVarargs( + parsed = parseUpdateVarargs( + dataReader, 'updateDoc', ref._key, fieldOrUpdateData, @@ -515,7 +520,8 @@ export function updateDoc( moreFieldsAndValues ); } else { - parsed = dataReader.parseUpdateData( + parsed = parseUpdateData( + dataReader, 'updateDoc', ref._key, fieldOrUpdateData @@ -555,7 +561,8 @@ export function addDoc( const convertedValue = applyFirestoreDataConverter(collRef._converter, data); const dataReader = newUserDataReader(collRef.firestore); - const parsed = dataReader.parseSetData( + const parsed = parseSetData( + dataReader, 'addDoc', docRef._key, convertedValue, diff --git a/packages/firestore/lite/src/api/transaction.ts b/packages/firestore/lite/src/api/transaction.ts index 6ee7e60f5ae..aa7a8ca0793 100644 --- a/packages/firestore/lite/src/api/transaction.ts +++ b/packages/firestore/lite/src/api/transaction.ts @@ -17,7 +17,12 @@ import * as firestore from '../../'; -import { UserDataReader } from '../../../src/api/user_data_reader'; +import { + parseSetData, + parseUpdateData, + parseUpdateVarargs, + UserDataReader +} from '../../../src/api/user_data_reader'; import { Transaction as InternalTransaction } from '../../../src/core/transaction'; import { Document, @@ -100,7 +105,8 @@ export class Transaction implements firestore.Transaction { value, options ); - const parsed = this._dataReader.parseSetData( + const parsed = parseSetData( + this._dataReader, 'Transaction.set', ref._key, convertedValue, @@ -134,7 +140,8 @@ export class Transaction implements firestore.Transaction { typeof fieldOrUpdateData === 'string' || fieldOrUpdateData instanceof FieldPath ) { - parsed = this._dataReader.parseUpdateVarargs( + parsed = parseUpdateVarargs( + this._dataReader, 'Transaction.update', ref._key, fieldOrUpdateData, @@ -142,7 +149,8 @@ export class Transaction implements firestore.Transaction { moreFieldsAndValues ); } else { - parsed = this._dataReader.parseUpdateData( + parsed = parseUpdateData( + this._dataReader, 'Transaction.update', ref._key, fieldOrUpdateData diff --git a/packages/firestore/lite/src/api/write_batch.ts b/packages/firestore/lite/src/api/write_batch.ts index 5f7f6e824bb..2eead98ec12 100644 --- a/packages/firestore/lite/src/api/write_batch.ts +++ b/packages/firestore/lite/src/api/write_batch.ts @@ -25,6 +25,9 @@ import { Code, FirestoreError } from '../../../src/util/error'; import { applyFirestoreDataConverter } from '../../../src/api/database'; import { DocumentKeyReference, + parseSetData, + parseUpdateData, + parseUpdateVarargs, UserDataReader } from '../../../src/api/user_data_reader'; import { cast } from './util'; @@ -67,7 +70,8 @@ export class WriteBatch implements firestore.WriteBatch { value, options ); - const parsed = this._dataReader.parseSetData( + const parsed = parseSetData( + this._dataReader, 'WriteBatch.set', ref._key, convertedValue, @@ -105,7 +109,8 @@ export class WriteBatch implements firestore.WriteBatch { typeof fieldOrUpdateData === 'string' || fieldOrUpdateData instanceof FieldPath ) { - parsed = this._dataReader.parseUpdateVarargs( + parsed = parseUpdateVarargs( + this._dataReader, 'WriteBatch.update', ref._key, fieldOrUpdateData, @@ -113,7 +118,8 @@ export class WriteBatch implements firestore.WriteBatch { moreFieldsAndValues ); } else { - parsed = this._dataReader.parseUpdateData( + parsed = parseUpdateData( + this._dataReader, 'WriteBatch.update', ref._key, fieldOrUpdateData diff --git a/packages/firestore/lite/test/dependencies.json b/packages/firestore/lite/test/dependencies.json index 3343f39c74b..731fe40ddb6 100644 --- a/packages/firestore/lite/test/dependencies.json +++ b/packages/firestore/lite/test/dependencies.json @@ -84,8 +84,6 @@ "encodeBase64", "errorMessage", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", "forEach", @@ -101,7 +99,6 @@ "isArray", "isDocumentTarget", "isEmpty", - "isMapValue", "isNanValue", "isNegativeZero", "isNullOrUndefined", @@ -134,6 +131,7 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", "primitiveComparator", @@ -176,13 +174,11 @@ "Datastore", "DatastoreImpl", "Deferred", - "DeleteFieldValueImpl", "DocumentKey", "DocumentKeyReference", "DocumentReference", "DocumentSnapshot", "FieldFilter", - "FieldMask", "FieldPath", "FieldPath$1", "FieldPath$2", @@ -196,33 +192,24 @@ "JsonProtoSerializer", "KeyFieldFilter", "KeyFieldInFilter", - "Mutation", "OAuthToken", - "ObjectValue", - "ObjectValueBuilder", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", - "PatchMutation", - "Precondition", "Query", "Query$1", "QueryDocumentSnapshot", "ResourcePath", "SerializableFieldValue", - "SetMutation", "StreamBridge", "TargetImpl", "Timestamp", - "TransformMutation", "User", "UserDataReader", "UserDataWriter" ], "variables": [] }, - "sizeInBytes": 83103 + "sizeInBytes": 73865 }, "DocumentReference": { "dependencies": { @@ -583,8 +570,6 @@ "encodeBase64", "errorMessage", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", "forEach", @@ -599,7 +584,6 @@ "invalidClassError", "isArray", "isEmpty", - "isMapValue", "isNanValue", "isNegativeZero", "isNullValue", @@ -630,6 +614,7 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", "primitiveComparator", @@ -671,13 +656,11 @@ "Datastore", "DatastoreImpl", "Deferred", - "DeleteFieldValueImpl", "DocumentKey", "DocumentKeyReference", "DocumentReference", "DocumentSnapshot", "FieldFilter", - "FieldMask", "FieldPath", "FieldPath$1", "FieldPath$2", @@ -691,31 +674,22 @@ "JsonProtoSerializer", "KeyFieldFilter", "KeyFieldInFilter", - "Mutation", "OAuthToken", - "ObjectValue", - "ObjectValueBuilder", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", - "PatchMutation", - "Precondition", "Query$1", "QueryDocumentSnapshot", "ResourcePath", "SerializableFieldValue", - "SetMutation", "StreamBridge", "Timestamp", - "TransformMutation", "User", "UserDataReader", "UserDataWriter" ], "variables": [] }, - "sizeInBytes": 77344 + "sizeInBytes": 68106 }, "QueryDocumentSnapshot": { "dependencies": { @@ -959,6 +933,9 @@ "parseObject", "parseScalarValue", "parseSentinelFieldValue", + "parseSetData", + "parseUpdateData", + "parseUpdateVarargs", "primitiveComparator", "registerFirestore", "terminate", @@ -1033,7 +1010,7 @@ ], "variables": [] }, - "sizeInBytes": 62673 + "sizeInBytes": 62454 }, "WriteBatch": { "dependencies": { @@ -1095,6 +1072,9 @@ "parseObject", "parseScalarValue", "parseSentinelFieldValue", + "parseSetData", + "parseUpdateData", + "parseUpdateVarargs", "primitiveComparator", "registerFirestore", "terminate", @@ -1163,7 +1143,7 @@ ], "variables": [] }, - "sizeInBytes": 56525 + "sizeInBytes": 56306 }, "addDoc": { "dependencies": { @@ -1194,7 +1174,6 @@ "errorMessage", "fail", "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", "forEach", @@ -1248,8 +1227,10 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", + "parseSetData", "primitiveComparator", "randomBytes", "refValue", @@ -1302,7 +1283,6 @@ "Datastore", "DatastoreImpl", "Deferred", - "DeleteFieldValueImpl", "DeleteMutation", "DocumentKey", "DocumentKeyReference", @@ -1327,11 +1307,9 @@ "NumericIncrementTransformOperation", "OAuthToken", "ObjectValue", - "ObjectValueBuilder", "OrderBy", "ParseContext", "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "Precondition", "Query", @@ -1353,7 +1331,7 @@ ], "variables": [] }, - "sizeInBytes": 89374 + "sizeInBytes": 84339 }, "arrayRemove": { "dependencies": { @@ -1573,8 +1551,6 @@ "encodeBase64", "errorMessage", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", "forEach", @@ -1590,7 +1566,6 @@ "isArray", "isDocumentTarget", "isEmpty", - "isMapValue", "isNanValue", "isNegativeZero", "isNullOrUndefined", @@ -1623,6 +1598,7 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", "primitiveComparator", @@ -1666,13 +1642,11 @@ "Datastore", "DatastoreImpl", "Deferred", - "DeleteFieldValueImpl", "DocumentKey", "DocumentKeyReference", "DocumentReference", "DocumentSnapshot", "FieldFilter", - "FieldMask", "FieldPath", "FieldPath$1", "FieldPath$2", @@ -1686,33 +1660,24 @@ "JsonProtoSerializer", "KeyFieldFilter", "KeyFieldInFilter", - "Mutation", "OAuthToken", - "ObjectValue", - "ObjectValueBuilder", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", - "PatchMutation", - "Precondition", "Query", "Query$1", "QueryDocumentSnapshot", "ResourcePath", "SerializableFieldValue", - "SetMutation", "StreamBridge", "TargetImpl", "Timestamp", - "TransformMutation", "User", "UserDataReader", "UserDataWriter" ], "variables": [] }, - "sizeInBytes": 83731 + "sizeInBytes": 74493 }, "collectionGroup": { "dependencies": { @@ -1740,8 +1705,6 @@ "encodeBase64", "errorMessage", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", "forEach", @@ -1757,7 +1720,6 @@ "isArray", "isDocumentTarget", "isEmpty", - "isMapValue", "isNanValue", "isNegativeZero", "isNullOrUndefined", @@ -1790,6 +1752,7 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", "primitiveComparator", @@ -1831,13 +1794,11 @@ "Datastore", "DatastoreImpl", "Deferred", - "DeleteFieldValueImpl", "DocumentKey", "DocumentKeyReference", "DocumentReference", "DocumentSnapshot", "FieldFilter", - "FieldMask", "FieldPath", "FieldPath$1", "FieldPath$2", @@ -1851,33 +1812,24 @@ "JsonProtoSerializer", "KeyFieldFilter", "KeyFieldInFilter", - "Mutation", "OAuthToken", - "ObjectValue", - "ObjectValueBuilder", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", - "PatchMutation", - "Precondition", "Query", "Query$1", "QueryDocumentSnapshot", "ResourcePath", "SerializableFieldValue", - "SetMutation", "StreamBridge", "TargetImpl", "Timestamp", - "TransformMutation", "User", "UserDataReader", "UserDataWriter" ], "variables": [] }, - "sizeInBytes": 83163 + "sizeInBytes": 73925 }, "deleteDoc": { "dependencies": { @@ -2030,8 +1982,6 @@ "encodeBase64", "errorMessage", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", "forEach", @@ -2047,7 +1997,6 @@ "isArray", "isDocumentTarget", "isEmpty", - "isMapValue", "isNanValue", "isNegativeZero", "isNullOrUndefined", @@ -2080,6 +2029,7 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", "primitiveComparator", @@ -2125,13 +2075,11 @@ "Datastore", "DatastoreImpl", "Deferred", - "DeleteFieldValueImpl", "DocumentKey", "DocumentKeyReference", "DocumentReference", "DocumentSnapshot", "FieldFilter", - "FieldMask", "FieldPath", "FieldPath$1", "FieldPath$2", @@ -2145,33 +2093,24 @@ "JsonProtoSerializer", "KeyFieldFilter", "KeyFieldInFilter", - "Mutation", "OAuthToken", - "ObjectValue", - "ObjectValueBuilder", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", - "PatchMutation", - "Precondition", "Query", "Query$1", "QueryDocumentSnapshot", "ResourcePath", "SerializableFieldValue", - "SetMutation", "StreamBridge", "TargetImpl", "Timestamp", - "TransformMutation", "User", "UserDataReader", "UserDataWriter" ], "variables": [] }, - "sizeInBytes": 84552 + "sizeInBytes": 75314 }, "documentId": { "dependencies": { @@ -2421,8 +2360,6 @@ "errorMessage", "extractLocalPathFromResourceName", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", "forEach", @@ -2477,6 +2414,7 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", "primitiveComparator", @@ -2530,14 +2468,12 @@ "Datastore", "DatastoreImpl", "Deferred", - "DeleteFieldValueImpl", "Document", "DocumentKey", "DocumentKeyReference", "DocumentReference", "DocumentSnapshot", "FieldFilter", - "FieldMask", "FieldPath", "FieldPath$1", "FieldPath$2", @@ -2552,33 +2488,25 @@ "KeyFieldFilter", "KeyFieldInFilter", "MaybeDocument", - "Mutation", "OAuthToken", "ObjectValue", - "ObjectValueBuilder", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", - "PatchMutation", - "Precondition", "Query$1", "QueryDocumentSnapshot", "QuerySnapshot", "ResourcePath", "SerializableFieldValue", - "SetMutation", "SnapshotVersion", "StreamBridge", "Timestamp", - "TransformMutation", "User", "UserDataReader", "UserDataWriter" ], "variables": [] }, - "sizeInBytes": 84898 + "sizeInBytes": 76287 }, "increment": { "dependencies": { @@ -2710,8 +2638,6 @@ "encodeBase64", "errorMessage", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", "forEach", @@ -2727,7 +2653,6 @@ "isArray", "isDocumentTarget", "isEmpty", - "isMapValue", "isNanValue", "isNegativeZero", "isNullOrUndefined", @@ -2761,6 +2686,7 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", "primitiveComparator", @@ -2803,13 +2729,11 @@ "Datastore", "DatastoreImpl", "Deferred", - "DeleteFieldValueImpl", "DocumentKey", "DocumentKeyReference", "DocumentReference", "DocumentSnapshot", "FieldFilter", - "FieldMask", "FieldPath", "FieldPath$1", "FieldPath$2", @@ -2823,33 +2747,24 @@ "JsonProtoSerializer", "KeyFieldFilter", "KeyFieldInFilter", - "Mutation", "OAuthToken", - "ObjectValue", - "ObjectValueBuilder", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", - "PatchMutation", - "Precondition", "Query", "Query$1", "QueryDocumentSnapshot", "ResourcePath", "SerializableFieldValue", - "SetMutation", "StreamBridge", "TargetImpl", "Timestamp", - "TransformMutation", "User", "UserDataReader", "UserDataWriter" ], "variables": [] }, - "sizeInBytes": 83446 + "sizeInBytes": 74208 }, "queryEqual": { "dependencies": { @@ -2877,8 +2792,6 @@ "encodeBase64", "errorMessage", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", "filterEquals", @@ -2894,7 +2807,6 @@ "invalidClassError", "isArray", "isEmpty", - "isMapValue", "isNanValue", "isNegativeZero", "isNullValue", @@ -2926,6 +2838,7 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", "primitiveComparator", @@ -2970,13 +2883,11 @@ "Datastore", "DatastoreImpl", "Deferred", - "DeleteFieldValueImpl", "DocumentKey", "DocumentKeyReference", "DocumentReference", "DocumentSnapshot", "FieldFilter", - "FieldMask", "FieldPath", "FieldPath$1", "FieldPath$2", @@ -2990,31 +2901,22 @@ "JsonProtoSerializer", "KeyFieldFilter", "KeyFieldInFilter", - "Mutation", "OAuthToken", - "ObjectValue", - "ObjectValueBuilder", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", - "PatchMutation", - "Precondition", "Query$1", "QueryDocumentSnapshot", "ResourcePath", "SerializableFieldValue", - "SetMutation", "StreamBridge", "Timestamp", - "TransformMutation", "User", "UserDataReader", "UserDataWriter" ], "variables": [] }, - "sizeInBytes": 78930 + "sizeInBytes": 69692 }, "refEqual": { "dependencies": { @@ -3041,8 +2943,6 @@ "encodeBase64", "errorMessage", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", "forEach", @@ -3058,7 +2958,6 @@ "isArray", "isDocumentTarget", "isEmpty", - "isMapValue", "isNanValue", "isNegativeZero", "isNullOrUndefined", @@ -3091,6 +2990,7 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", "primitiveComparator", @@ -3134,13 +3034,11 @@ "Datastore", "DatastoreImpl", "Deferred", - "DeleteFieldValueImpl", "DocumentKey", "DocumentKeyReference", "DocumentReference", "DocumentSnapshot", "FieldFilter", - "FieldMask", "FieldPath", "FieldPath$1", "FieldPath$2", @@ -3154,33 +3052,24 @@ "JsonProtoSerializer", "KeyFieldFilter", "KeyFieldInFilter", - "Mutation", "OAuthToken", - "ObjectValue", - "ObjectValueBuilder", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", - "PatchMutation", - "Precondition", "Query", "Query$1", "QueryDocumentSnapshot", "ResourcePath", "SerializableFieldValue", - "SetMutation", "StreamBridge", "TargetImpl", "Timestamp", - "TransformMutation", "User", "UserDataReader", "UserDataWriter" ], "variables": [] }, - "sizeInBytes": 83388 + "sizeInBytes": 74150 }, "runTransaction": { "dependencies": { @@ -3265,6 +3154,9 @@ "parseObject", "parseScalarValue", "parseSentinelFieldValue", + "parseSetData", + "parseUpdateData", + "parseUpdateVarargs", "primitiveComparator", "registerFirestore", "runTransaction", @@ -3360,7 +3252,7 @@ ], "variables": [] }, - "sizeInBytes": 81867 + "sizeInBytes": 81648 }, "serverTimestamp": { "dependencies": { @@ -3433,7 +3325,6 @@ "errorMessage", "fail", "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromDotSeparatedString", "forEach", "formatJSON", @@ -3479,6 +3370,7 @@ "parseObject", "parseScalarValue", "parseSentinelFieldValue", + "parseSetData", "primitiveComparator", "registerFirestore", "setDoc", @@ -3521,7 +3413,6 @@ "Datastore", "DatastoreImpl", "Deferred", - "DeleteFieldValueImpl", "DeleteMutation", "DocumentKeyReference", "DocumentReference", @@ -3538,10 +3429,8 @@ "NumericIncrementTransformOperation", "OAuthToken", "ObjectValue", - "ObjectValueBuilder", "ParseContext", "ParsedSetData", - "ParsedUpdateData", "PatchMutation", "Precondition", "ResourcePath", @@ -3558,7 +3447,7 @@ ], "variables": [] }, - "sizeInBytes": 58711 + "sizeInBytes": 53321 }, "setLogLevel": { "dependencies": { @@ -3631,8 +3520,6 @@ "encodeBase64", "errorMessage", "fail", - "fieldMaskContains", - "fieldPathFromArgument", "fieldPathFromArgument$1", "fieldPathFromDotSeparatedString", "filterEquals", @@ -3648,7 +3535,6 @@ "invalidClassError", "isArray", "isEmpty", - "isMapValue", "isNanValue", "isNegativeZero", "isNullValue", @@ -3680,6 +3566,7 @@ "parseArray", "parseData", "parseObject", + "parseQueryValue", "parseScalarValue", "parseSentinelFieldValue", "primitiveComparator", @@ -3725,13 +3612,11 @@ "Datastore", "DatastoreImpl", "Deferred", - "DeleteFieldValueImpl", "DocumentKey", "DocumentKeyReference", "DocumentReference", "DocumentSnapshot", "FieldFilter", - "FieldMask", "FieldPath", "FieldPath$1", "FieldPath$2", @@ -3745,32 +3630,23 @@ "JsonProtoSerializer", "KeyFieldFilter", "KeyFieldInFilter", - "Mutation", "OAuthToken", - "ObjectValue", - "ObjectValueBuilder", "OrderBy", "ParseContext", - "ParsedSetData", - "ParsedUpdateData", - "PatchMutation", - "Precondition", "Query$1", "QueryDocumentSnapshot", "QuerySnapshot", "ResourcePath", "SerializableFieldValue", - "SetMutation", "StreamBridge", "Timestamp", - "TransformMutation", "User", "UserDataReader", "UserDataWriter" ], "variables": [] }, - "sizeInBytes": 79663 + "sizeInBytes": 70425 }, "terminate": { "dependencies": { @@ -3880,6 +3756,8 @@ "parseObject", "parseScalarValue", "parseSentinelFieldValue", + "parseUpdateData", + "parseUpdateVarargs", "primitiveComparator", "registerFirestore", "terminate", @@ -3942,7 +3820,6 @@ "ObjectValue", "ObjectValueBuilder", "ParseContext", - "ParsedSetData", "ParsedUpdateData", "PatchMutation", "Precondition", @@ -3960,7 +3837,7 @@ ], "variables": [] }, - "sizeInBytes": 58748 + "sizeInBytes": 56642 }, "writeBatch": { "dependencies": { @@ -4027,6 +3904,9 @@ "parseObject", "parseScalarValue", "parseSentinelFieldValue", + "parseSetData", + "parseUpdateData", + "parseUpdateVarargs", "primitiveComparator", "registerFirestore", "terminate", @@ -4109,6 +3989,6 @@ ], "variables": [] }, - "sizeInBytes": 60620 + "sizeInBytes": 60401 } } \ No newline at end of file diff --git a/packages/firestore/src/api/database.ts b/packages/firestore/src/api/database.ts index 33d1c86c5cb..1ef0d554eb3 100644 --- a/packages/firestore/src/api/database.ts +++ b/packages/firestore/src/api/database.ts @@ -92,6 +92,10 @@ import { import { DocumentKeyReference, fieldPathFromArgument, + parseQueryValue, + parseSetData, + parseUpdateData, + parseUpdateVarargs, UntypedFirestoreDataConverter, UserDataReader } from './user_data_reader'; @@ -756,7 +760,8 @@ export class Transaction implements firestore.Transaction { value, options ); - const parsed = this._firestore._dataReader.parseSetData( + const parsed = parseSetData( + this._firestore._dataReader, 'Transaction.set', ref._key, convertedValue, @@ -796,7 +801,8 @@ export class Transaction implements firestore.Transaction { documentRef, this._firestore ); - parsed = this._firestore._dataReader.parseUpdateVarargs( + parsed = parseUpdateVarargs( + this._firestore._dataReader, 'Transaction.update', ref._key, fieldOrUpdateData, @@ -810,7 +816,8 @@ export class Transaction implements firestore.Transaction { documentRef, this._firestore ); - parsed = this._firestore._dataReader.parseUpdateData( + parsed = parseUpdateData( + this._firestore._dataReader, 'Transaction.update', ref._key, fieldOrUpdateData @@ -863,7 +870,8 @@ export class WriteBatch implements firestore.WriteBatch { value, options ); - const parsed = this._firestore._dataReader.parseSetData( + const parsed = parseSetData( + this._firestore._dataReader, 'WriteBatch.set', ref._key, convertedValue, @@ -907,7 +915,8 @@ export class WriteBatch implements firestore.WriteBatch { documentRef, this._firestore ); - parsed = this._firestore._dataReader.parseUpdateVarargs( + parsed = parseUpdateVarargs( + this._firestore._dataReader, 'WriteBatch.update', ref._key, fieldOrUpdateData, @@ -921,7 +930,8 @@ export class WriteBatch implements firestore.WriteBatch { documentRef, this._firestore ); - parsed = this._firestore._dataReader.parseUpdateData( + parsed = parseUpdateData( + this._firestore._dataReader, 'WriteBatch.update', ref._key, fieldOrUpdateData @@ -1063,7 +1073,8 @@ export class DocumentReference value, options ); - const parsed = this.firestore._dataReader.parseSetData( + const parsed = parseSetData( + this.firestore._dataReader, 'DocumentReference.set', this._key, convertedValue, @@ -1093,7 +1104,8 @@ export class DocumentReference fieldOrUpdateData instanceof ExternalFieldPath ) { validateAtLeastNumberOfArgs('DocumentReference.update', arguments, 2); - parsed = this.firestore._dataReader.parseUpdateVarargs( + parsed = parseUpdateVarargs( + this.firestore._dataReader, 'DocumentReference.update', this._key, fieldOrUpdateData, @@ -1102,7 +1114,8 @@ export class DocumentReference ); } else { validateExactNumberOfArgs('DocumentReference.update', arguments, 1); - parsed = this.firestore._dataReader.parseUpdateData( + parsed = parseUpdateData( + this.firestore._dataReader, 'DocumentReference.update', this._key, fieldOrUpdateData @@ -1547,11 +1560,11 @@ export class BaseQuery { if (op === Operator.IN || op === Operator.ARRAY_CONTAINS_ANY) { this.validateDisjunctiveFilterElements(value, op); } - fieldValue = this._dataReader.parseQueryValue( + fieldValue = parseQueryValue( + this._dataReader, 'Query.where', value, - // We only allow nested arrays for IN queries. - /** allowArrays = */ op === Operator.IN + op === Operator.IN ); } const filter = FieldFilter.create(fieldPath, op, fieldValue); @@ -1697,7 +1710,7 @@ export class BaseQuery { const key = new DocumentKey(path); components.push(refValue(this._databaseId, key)); } else { - const wrapped = this._dataReader.parseQueryValue(methodName, rawValue); + const wrapped = parseQueryValue(this._dataReader, methodName, rawValue); components.push(wrapped); } } diff --git a/packages/firestore/src/api/user_data_reader.ts b/packages/firestore/src/api/user_data_reader.ts index 71abaeb5bec..03b864ddc98 100644 --- a/packages/firestore/src/api/user_data_reader.ts +++ b/packages/firestore/src/api/user_data_reader.ts @@ -319,97 +319,188 @@ export class UserDataReader { this.serializer = serializer || newSerializer(databaseId); } - /** Parse document data from a set() call. */ - parseSetData( + /** Creates a new top-level parse context. */ + createContext( + dataSource: UserDataSource, methodName: string, - targetDoc: DocumentKey, - input: unknown, - hasConverter: boolean, - options: firestore.SetOptions = {} - ): ParsedSetData { - const context = this.createContext( - options.merge || options.mergeFields - ? UserDataSource.MergeSet - : UserDataSource.Set, - methodName, - targetDoc, - hasConverter + targetDoc?: DocumentKey, + hasConverter = false + ): ParseContext { + return new ParseContext( + { + dataSource, + methodName, + targetDoc, + path: FieldPath.emptyPath(), + arrayElement: false, + hasConverter + }, + this.databaseId, + this.serializer, + this.ignoreUndefinedProperties ); - validatePlainObject('Data must be an object, but it was:', context, input); - const updateData = parseObject(input, context)!; - - let fieldMask: FieldMask | null; - let fieldTransforms: FieldTransform[]; - - if (options.merge) { - fieldMask = new FieldMask(context.fieldMask); - fieldTransforms = context.fieldTransforms; - } else if (options.mergeFields) { - const validatedFieldPaths: FieldPath[] = []; - - for (const stringOrFieldPath of options.mergeFields) { - let fieldPath: FieldPath; - - if (stringOrFieldPath instanceof BaseFieldPath) { - fieldPath = stringOrFieldPath._internalPath; - } else if (typeof stringOrFieldPath === 'string') { - fieldPath = fieldPathFromDotSeparatedString( - methodName, - stringOrFieldPath, - targetDoc - ); - } else { - throw fail( - 'Expected stringOrFieldPath to be a string or a FieldPath' - ); - } + } +} - if (!context.contains(fieldPath)) { - throw new FirestoreError( - Code.INVALID_ARGUMENT, - `Field '${fieldPath}' is specified in your field mask but missing from your input data.` - ); - } +/** Parse document data from a set() call. */ +export function parseSetData( + userDataReader: UserDataReader, + methodName: string, + targetDoc: DocumentKey, + input: unknown, + hasConverter: boolean, + options: firestore.SetOptions = {} +): ParsedSetData { + const context = userDataReader.createContext( + options.merge || options.mergeFields + ? UserDataSource.MergeSet + : UserDataSource.Set, + methodName, + targetDoc, + hasConverter + ); + validatePlainObject('Data must be an object, but it was:', context, input); + const updateData = parseObject(input, context)!; - if (!fieldMaskContains(validatedFieldPaths, fieldPath)) { - validatedFieldPaths.push(fieldPath); - } + let fieldMask: FieldMask | null; + let fieldTransforms: FieldTransform[]; + + if (options.merge) { + fieldMask = new FieldMask(context.fieldMask); + fieldTransforms = context.fieldTransforms; + } else if (options.mergeFields) { + const validatedFieldPaths: FieldPath[] = []; + + for (const stringOrFieldPath of options.mergeFields) { + let fieldPath: FieldPath; + + if (stringOrFieldPath instanceof BaseFieldPath) { + fieldPath = stringOrFieldPath._internalPath; + } else if (typeof stringOrFieldPath === 'string') { + fieldPath = fieldPathFromDotSeparatedString( + methodName, + stringOrFieldPath, + targetDoc + ); + } else { + throw fail('Expected stringOrFieldPath to be a string or a FieldPath'); } - fieldMask = new FieldMask(validatedFieldPaths); - fieldTransforms = context.fieldTransforms.filter(transform => - fieldMask!.covers(transform.field) - ); + if (!context.contains(fieldPath)) { + throw new FirestoreError( + Code.INVALID_ARGUMENT, + `Field '${fieldPath}' is specified in your field mask but missing from your input data.` + ); + } + + if (!fieldMaskContains(validatedFieldPaths, fieldPath)) { + validatedFieldPaths.push(fieldPath); + } + } + + fieldMask = new FieldMask(validatedFieldPaths); + fieldTransforms = context.fieldTransforms.filter(transform => + fieldMask!.covers(transform.field) + ); + } else { + fieldMask = null; + fieldTransforms = context.fieldTransforms; + } + + return new ParsedSetData( + new ObjectValue(updateData), + fieldMask, + fieldTransforms + ); +} + +/** Parse update data from an update() call. */ +export function parseUpdateData( + userDataReader: UserDataReader, + methodName: string, + targetDoc: DocumentKey, + input: unknown +): ParsedUpdateData { + const context = userDataReader.createContext( + UserDataSource.Update, + methodName, + targetDoc + ); + validatePlainObject('Data must be an object, but it was:', context, input); + + const fieldMaskPaths: FieldPath[] = []; + const updateData = new ObjectValueBuilder(); + forEach(input as Dict, (key, value) => { + const path = fieldPathFromDotSeparatedString(methodName, key, targetDoc); + + const childContext = context.childContextForFieldPath(path); + if ( + value instanceof SerializableFieldValue && + value._delegate instanceof DeleteFieldValueImpl + ) { + // Add it to the field mask, but don't add anything to updateData. + fieldMaskPaths.push(path); } else { - fieldMask = null; - fieldTransforms = context.fieldTransforms; + const parsedValue = parseData(value, childContext); + if (parsedValue != null) { + fieldMaskPaths.push(path); + updateData.set(path, parsedValue); + } } + }); - return new ParsedSetData( - new ObjectValue(updateData), - fieldMask, - fieldTransforms + const mask = new FieldMask(fieldMaskPaths); + return new ParsedUpdateData( + updateData.build(), + mask, + context.fieldTransforms + ); +} + +/** Parse update data from a list of field/value arguments. */ +export function parseUpdateVarargs( + userDataReader: UserDataReader, + methodName: string, + targetDoc: DocumentKey, + field: string | BaseFieldPath, + value: unknown, + moreFieldsAndValues: unknown[] +): ParsedUpdateData { + const context = userDataReader.createContext( + UserDataSource.Update, + methodName, + targetDoc + ); + const keys = [fieldPathFromArgument(methodName, field, targetDoc)]; + const values = [value]; + + if (moreFieldsAndValues.length % 2 !== 0) { + throw new FirestoreError( + Code.INVALID_ARGUMENT, + `Function ${methodName}() needs to be called with an even number ` + + 'of arguments that alternate between field names and values.' ); } - /** Parse update data from an update() call. */ - parseUpdateData( - methodName: string, - targetDoc: DocumentKey, - input: unknown - ): ParsedUpdateData { - const context = this.createContext( - UserDataSource.Update, - methodName, - targetDoc + for (let i = 0; i < moreFieldsAndValues.length; i += 2) { + keys.push( + fieldPathFromArgument( + methodName, + moreFieldsAndValues[i] as string | BaseFieldPath + ) ); - validatePlainObject('Data must be an object, but it was:', context, input); + values.push(moreFieldsAndValues[i + 1]); + } - const fieldMaskPaths: FieldPath[] = []; - const updateData = new ObjectValueBuilder(); - forEach(input as Dict, (key, value) => { - const path = fieldPathFromDotSeparatedString(methodName, key, targetDoc); + const fieldMaskPaths: FieldPath[] = []; + const updateData = new ObjectValueBuilder(); + // We iterate in reverse order to pick the last value for a field if the + // user specified the field multiple times. + for (let i = keys.length - 1; i >= 0; --i) { + if (!fieldMaskContains(fieldMaskPaths, keys[i])) { + const path = keys[i]; + const value = values[i]; const childContext = context.childContextForFieldPath(path); if ( value instanceof SerializableFieldValue && @@ -424,130 +515,41 @@ export class UserDataReader { updateData.set(path, parsedValue); } } - }); - - const mask = new FieldMask(fieldMaskPaths); - return new ParsedUpdateData( - updateData.build(), - mask, - context.fieldTransforms - ); - } - - /** Parse update data from a list of field/value arguments. */ - parseUpdateVarargs( - methodName: string, - targetDoc: DocumentKey, - field: string | BaseFieldPath, - value: unknown, - moreFieldsAndValues: unknown[] - ): ParsedUpdateData { - const context = this.createContext( - UserDataSource.Update, - methodName, - targetDoc - ); - const keys = [fieldPathFromArgument(methodName, field, targetDoc)]; - const values = [value]; - - if (moreFieldsAndValues.length % 2 !== 0) { - throw new FirestoreError( - Code.INVALID_ARGUMENT, - `Function ${methodName}() needs to be called with an even number ` + - 'of arguments that alternate between field names and values.' - ); - } - - for (let i = 0; i < moreFieldsAndValues.length; i += 2) { - keys.push( - fieldPathFromArgument( - methodName, - moreFieldsAndValues[i] as string | BaseFieldPath - ) - ); - values.push(moreFieldsAndValues[i + 1]); - } - - const fieldMaskPaths: FieldPath[] = []; - const updateData = new ObjectValueBuilder(); - - // We iterate in reverse order to pick the last value for a field if the - // user specified the field multiple times. - for (let i = keys.length - 1; i >= 0; --i) { - if (!fieldMaskContains(fieldMaskPaths, keys[i])) { - const path = keys[i]; - const value = values[i]; - const childContext = context.childContextForFieldPath(path); - if ( - value instanceof SerializableFieldValue && - value._delegate instanceof DeleteFieldValueImpl - ) { - // Add it to the field mask, but don't add anything to updateData. - fieldMaskPaths.push(path); - } else { - const parsedValue = parseData(value, childContext); - if (parsedValue != null) { - fieldMaskPaths.push(path); - updateData.set(path, parsedValue); - } - } - } } - - const mask = new FieldMask(fieldMaskPaths); - return new ParsedUpdateData( - updateData.build(), - mask, - context.fieldTransforms - ); } - /** Creates a new top-level parse context. */ - private createContext( - dataSource: UserDataSource, - methodName: string, - targetDoc?: DocumentKey, - hasConverter = false - ): ParseContext { - return new ParseContext( - { - dataSource, - methodName, - targetDoc, - path: FieldPath.emptyPath(), - arrayElement: false, - hasConverter - }, - this.databaseId, - this.serializer, - this.ignoreUndefinedProperties - ); - } + const mask = new FieldMask(fieldMaskPaths); + return new ParsedUpdateData( + updateData.build(), + mask, + context.fieldTransforms + ); +} - /** - * Parse a "query value" (e.g. value in a where filter or a value in a cursor - * bound). - * - * @param allowArrays Whether the query value is an array that may directly - * contain additional arrays (e.g. the operand of an `in` query). - */ - parseQueryValue( - methodName: string, - input: unknown, - allowArrays = false - ): api.Value { - const context = this.createContext( - allowArrays ? UserDataSource.ArrayArgument : UserDataSource.Argument, - methodName - ); - const parsed = parseData(input, context); - debugAssert(parsed != null, 'Parsed data should not be null.'); - debugAssert( - context.fieldTransforms.length === 0, - 'Field transforms should have been disallowed.' - ); - return parsed; - } +/** + * Parse a "query value" (e.g. value in a where filter or a value in a cursor + * bound). + * + * @param allowArrays Whether the query value is an array that may directly + * contain additional arrays (e.g. the operand of an `in` query). + */ +export function parseQueryValue( + userDataReader: UserDataReader, + methodName: string, + input: unknown, + allowArrays = false +): api.Value { + const context = userDataReader.createContext( + allowArrays ? UserDataSource.ArrayArgument : UserDataSource.Argument, + methodName + ); + const parsed = parseData(input, context); + debugAssert(parsed != null, 'Parsed data should not be null.'); + debugAssert( + context.fieldTransforms.length === 0, + 'Field transforms should have been disallowed.' + ); + return parsed; } /** diff --git a/packages/firestore/test/unit/remote/serializer.helper.ts b/packages/firestore/test/unit/remote/serializer.helper.ts index 376f7ab0174..52c4362d461 100644 --- a/packages/firestore/test/unit/remote/serializer.helper.ts +++ b/packages/firestore/test/unit/remote/serializer.helper.ts @@ -28,10 +28,10 @@ import { ArrayContainsFilter, Direction, FieldFilter, + filterEquals, InFilter, KeyFieldFilter, Operator, - filterEquals, OrderBy, Query } from '../../../src/core/query'; @@ -109,6 +109,7 @@ import { } from '../../util/helpers'; import { ByteString } from '../../../src/util/byte_string'; +import { parseQueryValue } from '../../../src/api/user_data_reader'; const userDataWriter = testUserDataWriter(); const protobufJsonReader = testUserDataReader(/* useProto3Json= */ true); @@ -165,7 +166,8 @@ export function serializerTest( protoJsValue = protoJsValue ?? jsonValue; // Convert value to JSON and verify. - const actualJsonProto = protobufJsonReader.parseQueryValue( + const actualJsonProto = parseQueryValue( + protobufJsonReader, 'verifyFieldValueRoundTrip', value ); @@ -184,7 +186,8 @@ export function serializerTest( } // Convert value to ProtoJs and verify. - const actualProtoJsProto = protoJsReader.parseQueryValue( + const actualProtoJsProto = parseQueryValue( + protoJsReader, 'verifyFieldValueRoundTrip', value ); @@ -354,28 +357,32 @@ export function serializerTest( it('converts TimestampValue to string (useProto3Json=true)', () => { expect( - protobufJsonReader.parseQueryValue( + parseQueryValue( + protobufJsonReader, 'timestampConversion', new Timestamp(1488872578, 916123000) ) ).to.deep.equal({ timestampValue: '2017-03-07T07:42:58.916123000Z' }); expect( - protobufJsonReader.parseQueryValue( + parseQueryValue( + protobufJsonReader, 'timestampConversion', new Timestamp(1488872578, 916000000) ) ).to.deep.equal({ timestampValue: '2017-03-07T07:42:58.916000000Z' }); expect( - protobufJsonReader.parseQueryValue( + parseQueryValue( + protobufJsonReader, 'timestampConversion', new Timestamp(1488872578, 916000) ) ).to.deep.equal({ timestampValue: '2017-03-07T07:42:58.000916000Z' }); expect( - protobufJsonReader.parseQueryValue( + parseQueryValue( + protobufJsonReader, 'timestampConversion', new Timestamp(1488872578, 0) ) diff --git a/packages/firestore/test/util/helpers.ts b/packages/firestore/test/util/helpers.ts index b150b4163f1..0c9f51b8a28 100644 --- a/packages/firestore/test/util/helpers.ts +++ b/packages/firestore/test/util/helpers.ts @@ -24,7 +24,11 @@ import { expect } from 'chai'; import { Blob } from '../../src/api/blob'; import { fromDotSeparatedString } from '../../src/api/field_path'; import { UserDataWriter } from '../../src/api/user_data_writer'; -import { UserDataReader } from '../../src/api/user_data_reader'; +import { + parseQueryValue, + parseUpdateData, + UserDataReader +} from '../../src/api/user_data_reader'; import { DatabaseId } from '../../src/core/database_info'; import { Bound, @@ -163,7 +167,7 @@ export function wrap(value: unknown): api.Value { // HACK: We use parseQueryValue() since it accepts scalars as well as // arrays / objects, and our tests currently use wrap() pretty generically so // we don't know the intent. - return testUserDataReader().parseQueryValue('wrap', value); + return parseQueryValue(testUserDataReader(), 'wrap', value); } export function wrapObject(obj: JsonObject): ObjectValue { @@ -233,7 +237,8 @@ export function patchMutation( } }); const patchKey = key(keyStr); - const parsed = testUserDataReader().parseUpdateData( + const parsed = parseUpdateData( + testUserDataReader(), 'patchMutation', patchKey, json @@ -261,7 +266,8 @@ export function transformMutation( data: Dict ): TransformMutation { const transformKey = key(keyStr); - const result = testUserDataReader().parseUpdateData( + const result = parseUpdateData( + testUserDataReader(), 'transformMutation()', transformKey, data