@firebase/firestore 3.4.5-canary.2b98b28f2 → 3.4.5-canary.2d672cead
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/firestore/src/local/document_overlay_cache.d.ts +4 -5
- package/dist/firestore/src/local/indexeddb_document_overlay_cache.d.ts +4 -5
- package/dist/firestore/src/local/indexeddb_index_manager.d.ts +1 -1
- package/dist/firestore/src/local/indexeddb_schema.d.ts +34 -553
- package/dist/firestore/src/local/indexeddb_sentinels.d.ts +238 -0
- package/dist/firestore/src/local/indexeddb_target_cache.d.ts +2 -1
- package/dist/firestore/src/local/local_serializer.d.ts +2 -1
- package/dist/firestore/src/local/memory_document_overlay_cache.d.ts +4 -5
- package/dist/firestore/src/model/collections.d.ts +7 -0
- package/dist/firestore/src/util/obj_map.d.ts +3 -0
- package/dist/firestore/test/unit/local/test_document_overlay_cache.d.ts +4 -4
- package/dist/index.esm2017.js +3143 -3655
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +3305 -3756
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +483 -929
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +483 -929
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +3168 -3680
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +10 -3
- package/dist/lite/firestore/src/local/document_overlay_cache.d.ts +4 -5
- package/dist/lite/firestore/src/local/indexeddb_document_overlay_cache.d.ts +4 -5
- package/dist/lite/firestore/src/local/indexeddb_index_manager.d.ts +1 -1
- package/dist/lite/firestore/src/local/indexeddb_schema.d.ts +34 -553
- package/dist/lite/firestore/src/local/indexeddb_sentinels.d.ts +238 -0
- package/dist/lite/firestore/src/local/indexeddb_target_cache.d.ts +2 -1
- package/dist/lite/firestore/src/local/local_serializer.d.ts +2 -1
- package/dist/lite/firestore/src/local/memory_document_overlay_cache.d.ts +4 -5
- package/dist/lite/firestore/src/model/collections.d.ts +7 -0
- package/dist/lite/firestore/src/util/obj_map.d.ts +3 -0
- package/dist/lite/firestore/test/unit/local/test_document_overlay_cache.d.ts +4 -4
- package/dist/lite/index.browser.esm2017.js +72 -72
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +8 -8
- package/dist/lite/index.node.cjs.js +2 -2
- package/dist/lite/index.node.mjs +2 -2
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +83 -83
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +18 -18
- package/dist/lite/packages/firestore/src/local/document_overlay_cache.d.ts +4 -5
- package/dist/lite/packages/firestore/src/local/indexeddb_document_overlay_cache.d.ts +4 -5
- package/dist/lite/packages/firestore/src/local/indexeddb_index_manager.d.ts +1 -1
- package/dist/lite/packages/firestore/src/local/indexeddb_schema.d.ts +34 -553
- package/dist/lite/packages/firestore/src/local/indexeddb_sentinels.d.ts +238 -0
- package/dist/lite/packages/firestore/src/local/indexeddb_target_cache.d.ts +2 -1
- package/dist/lite/packages/firestore/src/local/local_serializer.d.ts +2 -1
- package/dist/lite/packages/firestore/src/local/memory_document_overlay_cache.d.ts +4 -5
- package/dist/lite/packages/firestore/src/model/collections.d.ts +7 -0
- package/dist/lite/packages/firestore/src/util/obj_map.d.ts +3 -0
- package/dist/lite/packages/firestore/test/unit/local/test_document_overlay_cache.d.ts +4 -4
- package/dist/packages/firestore/dist/index.esm2017.d.ts +163 -163
- package/dist/packages/firestore/src/local/document_overlay_cache.d.ts +4 -5
- package/dist/packages/firestore/src/local/indexeddb_document_overlay_cache.d.ts +4 -5
- package/dist/packages/firestore/src/local/indexeddb_index_manager.d.ts +1 -1
- package/dist/packages/firestore/src/local/indexeddb_schema.d.ts +34 -553
- package/dist/packages/firestore/src/local/indexeddb_sentinels.d.ts +238 -0
- package/dist/packages/firestore/src/local/indexeddb_target_cache.d.ts +2 -1
- package/dist/packages/firestore/src/local/local_serializer.d.ts +2 -1
- package/dist/packages/firestore/src/local/memory_document_overlay_cache.d.ts +4 -5
- package/dist/packages/firestore/src/model/collections.d.ts +7 -0
- package/dist/packages/firestore/src/util/obj_map.d.ts +3 -0
- package/dist/packages/firestore/test/unit/local/test_document_overlay_cache.d.ts +4 -4
- package/dist/private.d.ts +10 -3
- package/package.json +9 -9
|
@@ -14,9 +14,8 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import { DocumentKeySet } from '../model/collections';
|
|
17
|
+
import { DocumentKeySet, MutationMap, OverlayMap } from '../model/collections';
|
|
18
18
|
import { DocumentKey } from '../model/document_key';
|
|
19
|
-
import { Mutation } from '../model/mutation';
|
|
20
19
|
import { Overlay } from '../model/overlay';
|
|
21
20
|
import { ResourcePath } from '../model/path';
|
|
22
21
|
import { PersistencePromise } from './persistence_promise';
|
|
@@ -41,7 +40,7 @@ export interface DocumentOverlayCache {
|
|
|
41
40
|
* Saves the given document mutation map to persistence as overlays.
|
|
42
41
|
* All overlays will have their largest batch id set to `largestBatchId`.
|
|
43
42
|
*/
|
|
44
|
-
saveOverlays(transaction: PersistenceTransaction, largestBatchId: number, overlays:
|
|
43
|
+
saveOverlays(transaction: PersistenceTransaction, largestBatchId: number, overlays: MutationMap): PersistencePromise<void>;
|
|
45
44
|
/** Removes overlays for the given document keys and batch ID. */
|
|
46
45
|
removeOverlaysForBatchId(transaction: PersistenceTransaction, documentKeys: DocumentKeySet, batchId: number): PersistencePromise<void>;
|
|
47
46
|
/**
|
|
@@ -53,7 +52,7 @@ export interface DocumentOverlayCache {
|
|
|
53
52
|
* Only overlays that contain a change past `sinceBatchId` are returned.
|
|
54
53
|
* @returns Mapping of each document key in the collection to its overlay.
|
|
55
54
|
*/
|
|
56
|
-
getOverlaysForCollection(transaction: PersistenceTransaction, collection: ResourcePath, sinceBatchId: number): PersistencePromise<
|
|
55
|
+
getOverlaysForCollection(transaction: PersistenceTransaction, collection: ResourcePath, sinceBatchId: number): PersistencePromise<OverlayMap>;
|
|
57
56
|
/**
|
|
58
57
|
* Returns `count` overlays with a batch ID higher than `sinceBatchId` for the
|
|
59
58
|
* provided collection group, processed by ascending batch ID. The method
|
|
@@ -68,5 +67,5 @@ export interface DocumentOverlayCache {
|
|
|
68
67
|
* batch contains more entries.
|
|
69
68
|
* @return Mapping of each document key in the collection group to its overlay.
|
|
70
69
|
*/
|
|
71
|
-
getOverlaysForCollectionGroup(transaction: PersistenceTransaction, collectionGroup: string, sinceBatchId: number, count: number): PersistencePromise<
|
|
70
|
+
getOverlaysForCollectionGroup(transaction: PersistenceTransaction, collectionGroup: string, sinceBatchId: number, count: number): PersistencePromise<OverlayMap>;
|
|
72
71
|
}
|
|
@@ -15,9 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import { User } from '../auth/user';
|
|
18
|
-
import { DocumentKeySet } from '../model/collections';
|
|
18
|
+
import { DocumentKeySet, MutationMap, OverlayMap } from '../model/collections';
|
|
19
19
|
import { DocumentKey } from '../model/document_key';
|
|
20
|
-
import { Mutation } from '../model/mutation';
|
|
21
20
|
import { Overlay } from '../model/overlay';
|
|
22
21
|
import { ResourcePath } from '../model/path';
|
|
23
22
|
import { DocumentOverlayCache } from './document_overlay_cache';
|
|
@@ -37,9 +36,9 @@ export declare class IndexedDbDocumentOverlayCache implements DocumentOverlayCac
|
|
|
37
36
|
constructor(serializer: LocalSerializer, userId: string);
|
|
38
37
|
static forUser(serializer: LocalSerializer, user: User): IndexedDbDocumentOverlayCache;
|
|
39
38
|
getOverlay(transaction: PersistenceTransaction, key: DocumentKey): PersistencePromise<Overlay | null>;
|
|
40
|
-
saveOverlays(transaction: PersistenceTransaction, largestBatchId: number, overlays:
|
|
39
|
+
saveOverlays(transaction: PersistenceTransaction, largestBatchId: number, overlays: MutationMap): PersistencePromise<void>;
|
|
41
40
|
removeOverlaysForBatchId(transaction: PersistenceTransaction, documentKeys: DocumentKeySet, batchId: number): PersistencePromise<void>;
|
|
42
|
-
getOverlaysForCollection(transaction: PersistenceTransaction, collection: ResourcePath, sinceBatchId: number): PersistencePromise<
|
|
43
|
-
getOverlaysForCollectionGroup(transaction: PersistenceTransaction, collectionGroup: string, sinceBatchId: number, count: number): PersistencePromise<
|
|
41
|
+
getOverlaysForCollection(transaction: PersistenceTransaction, collection: ResourcePath, sinceBatchId: number): PersistencePromise<OverlayMap>;
|
|
42
|
+
getOverlaysForCollectionGroup(transaction: PersistenceTransaction, collectionGroup: string, sinceBatchId: number, count: number): PersistencePromise<OverlayMap>;
|
|
44
43
|
private saveOverlay;
|
|
45
44
|
}
|
|
@@ -59,7 +59,7 @@ export declare class IndexedDbIndexManager implements IndexManager {
|
|
|
59
59
|
getDocumentsMatchingTarget(transaction: PersistenceTransaction, target: Target): PersistencePromise<DocumentKeySet | null>;
|
|
60
60
|
private getSubTargets;
|
|
61
61
|
/**
|
|
62
|
-
* Constructs a key range query on `
|
|
62
|
+
* Constructs a key range query on `DbIndexEntryStore` that unions all
|
|
63
63
|
* bounds.
|
|
64
64
|
*/
|
|
65
65
|
private generateIndexRanges;
|