Skip to content

Commit 23e8971

Browse files
Tree-shakeable Target (#3248)
1 parent e733228 commit 23e8971

23 files changed

+312
-168
lines changed

packages/firestore/lite/test/dependencies.json

+49-8
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"canonifyGeoPoint",
7878
"canonifyMap",
7979
"canonifyReference",
80+
"canonifyTarget",
8081
"canonifyTimestamp",
8182
"canonifyValue",
8283
"cast",
@@ -90,6 +91,7 @@
9091
"compareTimestamps",
9192
"createMetadata",
9293
"debugAssert",
94+
"debugCast",
9395
"decodeBase64",
9496
"encodeBase64",
9597
"errorMessage",
@@ -109,6 +111,7 @@
109111
"hardAssert",
110112
"invalidClassError",
111113
"isArray",
114+
"isDocumentTarget",
112115
"isEmpty",
113116
"isMapValue",
114117
"isNanValue",
@@ -130,6 +133,7 @@
130133
"newConnection",
131134
"newDatastore",
132135
"newSerializer",
136+
"newTarget",
133137
"newUserDataReader",
134138
"nodePromise",
135139
"normalizeByteString",
@@ -147,6 +151,7 @@
147151
"primitiveComparator",
148152
"refValue",
149153
"registerFirestore",
154+
"targetEquals",
150155
"timestampEquals",
151156
"toBytes",
152157
"toDouble",
@@ -223,6 +228,7 @@
223228
"SnapshotVersion",
224229
"StreamBridge",
225230
"Target",
231+
"TargetImpl",
226232
"Timestamp",
227233
"TransformMutation",
228234
"UnknownDocument",
@@ -232,7 +238,7 @@
232238
],
233239
"variables": []
234240
},
235-
"sizeInBytes": 97203
241+
"sizeInBytes": 97396
236242
},
237243
"DocumentReference": {
238244
"dependencies": {
@@ -1274,6 +1280,7 @@
12741280
"canonifyGeoPoint",
12751281
"canonifyMap",
12761282
"canonifyReference",
1283+
"canonifyTarget",
12771284
"canonifyTimestamp",
12781285
"canonifyValue",
12791286
"cast",
@@ -1311,6 +1318,7 @@
13111318
"invalidClassError",
13121319
"invokeCommitRpc",
13131320
"isArray",
1321+
"isDocumentTarget",
13141322
"isDouble",
13151323
"isEmpty",
13161324
"isInteger",
@@ -1335,6 +1343,7 @@
13351343
"newConnection",
13361344
"newDatastore",
13371345
"newSerializer",
1346+
"newTarget",
13381347
"newUserDataReader",
13391348
"nodePromise",
13401349
"normalizeByteString",
@@ -1354,6 +1363,7 @@
13541363
"refValue",
13551364
"registerFirestore",
13561365
"serverTimestamp",
1366+
"targetEquals",
13571367
"timestampEquals",
13581368
"toBytes",
13591369
"toDocumentMask",
@@ -1445,6 +1455,7 @@
14451455
"SnapshotVersion",
14461456
"StreamBridge",
14471457
"Target",
1458+
"TargetImpl",
14481459
"Timestamp",
14491460
"TransformMutation",
14501461
"UnknownDocument",
@@ -1455,7 +1466,7 @@
14551466
],
14561467
"variables": []
14571468
},
1458-
"sizeInBytes": 107641
1469+
"sizeInBytes": 107674
14591470
},
14601471
"arrayRemove": {
14611472
"dependencies": {
@@ -1692,6 +1703,7 @@
16921703
"canonifyGeoPoint",
16931704
"canonifyMap",
16941705
"canonifyReference",
1706+
"canonifyTarget",
16951707
"canonifyTimestamp",
16961708
"canonifyValue",
16971709
"cast",
@@ -1706,6 +1718,7 @@
17061718
"compareTimestamps",
17071719
"createMetadata",
17081720
"debugAssert",
1721+
"debugCast",
17091722
"decodeBase64",
17101723
"encodeBase64",
17111724
"errorMessage",
@@ -1725,6 +1738,7 @@
17251738
"hardAssert",
17261739
"invalidClassError",
17271740
"isArray",
1741+
"isDocumentTarget",
17281742
"isEmpty",
17291743
"isMapValue",
17301744
"isNanValue",
@@ -1746,6 +1760,7 @@
17461760
"newConnection",
17471761
"newDatastore",
17481762
"newSerializer",
1763+
"newTarget",
17491764
"newUserDataReader",
17501765
"nodePromise",
17511766
"normalizeByteString",
@@ -1763,6 +1778,7 @@
17631778
"primitiveComparator",
17641779
"refValue",
17651780
"registerFirestore",
1781+
"targetEquals",
17661782
"timestampEquals",
17671783
"toBytes",
17681784
"toDouble",
@@ -1840,6 +1856,7 @@
18401856
"SnapshotVersion",
18411857
"StreamBridge",
18421858
"Target",
1859+
"TargetImpl",
18431860
"Timestamp",
18441861
"TransformMutation",
18451862
"UnknownDocument",
@@ -1849,7 +1866,7 @@
18491866
],
18501867
"variables": []
18511868
},
1852-
"sizeInBytes": 97831
1869+
"sizeInBytes": 98024
18531870
},
18541871
"collectionGroup": {
18551872
"dependencies": {
@@ -1866,6 +1883,7 @@
18661883
"canonifyGeoPoint",
18671884
"canonifyMap",
18681885
"canonifyReference",
1886+
"canonifyTarget",
18691887
"canonifyTimestamp",
18701888
"canonifyValue",
18711889
"cast",
@@ -1880,6 +1898,7 @@
18801898
"compareTimestamps",
18811899
"createMetadata",
18821900
"debugAssert",
1901+
"debugCast",
18831902
"decodeBase64",
18841903
"encodeBase64",
18851904
"errorMessage",
@@ -1899,6 +1918,7 @@
18991918
"hardAssert",
19001919
"invalidClassError",
19011920
"isArray",
1921+
"isDocumentTarget",
19021922
"isEmpty",
19031923
"isMapValue",
19041924
"isNanValue",
@@ -1920,6 +1940,7 @@
19201940
"newConnection",
19211941
"newDatastore",
19221942
"newSerializer",
1943+
"newTarget",
19231944
"newUserDataReader",
19241945
"nodePromise",
19251946
"normalizeByteString",
@@ -1937,6 +1958,7 @@
19371958
"primitiveComparator",
19381959
"refValue",
19391960
"registerFirestore",
1961+
"targetEquals",
19401962
"timestampEquals",
19411963
"toBytes",
19421964
"toDouble",
@@ -2012,6 +2034,7 @@
20122034
"SnapshotVersion",
20132035
"StreamBridge",
20142036
"Target",
2037+
"TargetImpl",
20152038
"Timestamp",
20162039
"TransformMutation",
20172040
"UnknownDocument",
@@ -2021,7 +2044,7 @@
20212044
],
20222045
"variables": []
20232046
},
2024-
"sizeInBytes": 97262
2047+
"sizeInBytes": 97455
20252048
},
20262049
"deleteDoc": {
20272050
"dependencies": {
@@ -2218,6 +2241,7 @@
22182241
"canonifyGeoPoint",
22192242
"canonifyMap",
22202243
"canonifyReference",
2244+
"canonifyTarget",
22212245
"canonifyTimestamp",
22222246
"canonifyValue",
22232247
"cast",
@@ -2231,6 +2255,7 @@
22312255
"compareTimestamps",
22322256
"createMetadata",
22332257
"debugAssert",
2258+
"debugCast",
22342259
"decodeBase64",
22352260
"doc",
22362261
"encodeBase64",
@@ -2251,6 +2276,7 @@
22512276
"hardAssert",
22522277
"invalidClassError",
22532278
"isArray",
2279+
"isDocumentTarget",
22542280
"isEmpty",
22552281
"isMapValue",
22562282
"isNanValue",
@@ -2272,6 +2298,7 @@
22722298
"newConnection",
22732299
"newDatastore",
22742300
"newSerializer",
2301+
"newTarget",
22752302
"newUserDataReader",
22762303
"nodePromise",
22772304
"normalizeByteString",
@@ -2290,6 +2317,7 @@
22902317
"randomBytes",
22912318
"refValue",
22922319
"registerFirestore",
2320+
"targetEquals",
22932321
"timestampEquals",
22942322
"toBytes",
22952323
"toDouble",
@@ -2368,6 +2396,7 @@
23682396
"SnapshotVersion",
23692397
"StreamBridge",
23702398
"Target",
2399+
"TargetImpl",
23712400
"Timestamp",
23722401
"TransformMutation",
23732402
"UnknownDocument",
@@ -2377,7 +2406,7 @@
23772406
],
23782407
"variables": []
23792408
},
2380-
"sizeInBytes": 98652
2409+
"sizeInBytes": 98845
23812410
},
23822411
"documentId": {
23832412
"dependencies": {
@@ -2799,7 +2828,7 @@
27992828
],
28002829
"variables": []
28012830
},
2802-
"sizeInBytes": 94348
2831+
"sizeInBytes": 94239
28032832
},
28042833
"increment": {
28052834
"dependencies": {
@@ -2982,6 +3011,7 @@
29823011
"canonifyGeoPoint",
29833012
"canonifyMap",
29843013
"canonifyReference",
3014+
"canonifyTarget",
29853015
"canonifyTimestamp",
29863016
"canonifyValue",
29873017
"cast",
@@ -2995,6 +3025,7 @@
29953025
"compareTimestamps",
29963026
"createMetadata",
29973027
"debugAssert",
3028+
"debugCast",
29983029
"decodeBase64",
29993030
"encodeBase64",
30003031
"errorMessage",
@@ -3014,6 +3045,7 @@
30143045
"hardAssert",
30153046
"invalidClassError",
30163047
"isArray",
3048+
"isDocumentTarget",
30173049
"isEmpty",
30183050
"isMapValue",
30193051
"isNanValue",
@@ -3035,6 +3067,7 @@
30353067
"newConnection",
30363068
"newDatastore",
30373069
"newSerializer",
3070+
"newTarget",
30383071
"newUserDataReader",
30393072
"nodePromise",
30403073
"normalizeByteString",
@@ -3053,6 +3086,7 @@
30533086
"primitiveComparator",
30543087
"refValue",
30553088
"registerFirestore",
3089+
"targetEquals",
30563090
"timestampEquals",
30573091
"toBytes",
30583092
"toDouble",
@@ -3129,6 +3163,7 @@
31293163
"SnapshotVersion",
31303164
"StreamBridge",
31313165
"Target",
3166+
"TargetImpl",
31323167
"Timestamp",
31333168
"TransformMutation",
31343169
"UnknownDocument",
@@ -3138,7 +3173,7 @@
31383173
],
31393174
"variables": []
31403175
},
3141-
"sizeInBytes": 97546
3176+
"sizeInBytes": 97739
31423177
},
31433178
"queryEqual": {
31443179
"dependencies": {
@@ -3324,6 +3359,7 @@
33243359
"canonifyGeoPoint",
33253360
"canonifyMap",
33263361
"canonifyReference",
3362+
"canonifyTarget",
33273363
"canonifyTimestamp",
33283364
"canonifyValue",
33293365
"cast",
@@ -3337,6 +3373,7 @@
33373373
"compareTimestamps",
33383374
"createMetadata",
33393375
"debugAssert",
3376+
"debugCast",
33403377
"decodeBase64",
33413378
"encodeBase64",
33423379
"errorMessage",
@@ -3356,6 +3393,7 @@
33563393
"hardAssert",
33573394
"invalidClassError",
33583395
"isArray",
3396+
"isDocumentTarget",
33593397
"isEmpty",
33603398
"isMapValue",
33613399
"isNanValue",
@@ -3377,6 +3415,7 @@
33773415
"newConnection",
33783416
"newDatastore",
33793417
"newSerializer",
3418+
"newTarget",
33803419
"newUserDataReader",
33813420
"nodePromise",
33823421
"normalizeByteString",
@@ -3395,6 +3434,7 @@
33953434
"refEqual",
33963435
"refValue",
33973436
"registerFirestore",
3437+
"targetEquals",
33983438
"timestampEquals",
33993439
"toBytes",
34003440
"toDouble",
@@ -3471,6 +3511,7 @@
34713511
"SnapshotVersion",
34723512
"StreamBridge",
34733513
"Target",
3514+
"TargetImpl",
34743515
"Timestamp",
34753516
"TransformMutation",
34763517
"UnknownDocument",
@@ -3480,7 +3521,7 @@
34803521
],
34813522
"variables": []
34823523
},
3483-
"sizeInBytes": 97488
3524+
"sizeInBytes": 97681
34843525
},
34853526
"runTransaction": {
34863527
"dependencies": {

0 commit comments

Comments
 (0)