@firebase/firestore 3.13.0-canary.f1c8d3806 → 3.13.0-canary.f3067f72d
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/global_index.d.ts +14 -0
- package/dist/firestore/src/util/testing_hooks.d.ts +14 -0
- package/dist/firestore/test/integration/util/helpers.d.ts +11 -10
- package/dist/firestore/test/integration/util/testing_hooks_util.d.ts +1 -0
- package/dist/index.cjs.js +150 -136
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +150 -136
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +147 -133
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +27 -21
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +27 -21
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +150 -136
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +14 -0
- package/dist/lite/firestore/src/util/testing_hooks.d.ts +14 -0
- package/dist/lite/firestore/test/integration/util/helpers.d.ts +11 -10
- package/dist/lite/firestore/test/integration/util/testing_hooks_util.d.ts +1 -0
- package/dist/lite/index.browser.esm2017.js +2 -2
- package/dist/lite/index.browser.esm5.js +2 -2
- package/dist/lite/index.cjs.js +2 -2
- package/dist/lite/index.node.cjs.js +2 -2
- package/dist/lite/index.node.mjs +2 -2
- package/dist/lite/index.rn.esm2017.js +2 -2
- package/dist/lite/packages/firestore/src/util/testing_hooks.d.ts +14 -0
- package/dist/lite/packages/firestore/test/integration/util/helpers.d.ts +11 -10
- package/dist/lite/packages/firestore/test/integration/util/testing_hooks_util.d.ts +1 -0
- package/dist/packages/firestore/src/util/testing_hooks.d.ts +14 -0
- package/dist/packages/firestore/test/integration/util/helpers.d.ts +11 -10
- package/dist/packages/firestore/test/integration/util/testing_hooks_util.d.ts +1 -0
- package/dist/private.d.ts +14 -0
- package/package.json +9 -9
|
@@ -9154,6 +9154,20 @@ interface ExistenceFilterMismatchInfo {
|
|
|
9154
9154
|
bitmapLength: number;
|
|
9155
9155
|
/** The number of bits of padding in the last byte of the bloom filter. */
|
|
9156
9156
|
padding: number;
|
|
9157
|
+
/**
|
|
9158
|
+
* Check if the given document path is contained in the bloom filter.
|
|
9159
|
+
*
|
|
9160
|
+
* The "path" of a document can be retrieved from the
|
|
9161
|
+
* `DocumentReference.path` property.
|
|
9162
|
+
*
|
|
9163
|
+
* Note that due to the probabilistic nature of a bloom filter, it is
|
|
9164
|
+
* possible that false positives may occur; that is, this function may
|
|
9165
|
+
* return `true` even though the given string is not in the bloom filter.
|
|
9166
|
+
*
|
|
9167
|
+
* This property is "optional"; if it is undefined then parsing the bloom
|
|
9168
|
+
* filter failed.
|
|
9169
|
+
*/
|
|
9170
|
+
mightContain?(documentPath: string): boolean;
|
|
9157
9171
|
};
|
|
9158
9172
|
}
|
|
9159
9173
|
/**
|
|
@@ -94,6 +94,20 @@ export interface ExistenceFilterMismatchInfo {
|
|
|
94
94
|
bitmapLength: number;
|
|
95
95
|
/** The number of bits of padding in the last byte of the bloom filter. */
|
|
96
96
|
padding: number;
|
|
97
|
+
/**
|
|
98
|
+
* Check if the given document path is contained in the bloom filter.
|
|
99
|
+
*
|
|
100
|
+
* The "path" of a document can be retrieved from the
|
|
101
|
+
* `DocumentReference.path` property.
|
|
102
|
+
*
|
|
103
|
+
* Note that due to the probabilistic nature of a bloom filter, it is
|
|
104
|
+
* possible that false positives may occur; that is, this function may
|
|
105
|
+
* return `true` even though the given string is not in the bloom filter.
|
|
106
|
+
*
|
|
107
|
+
* This property is "optional"; if it is undefined then parsing the bloom
|
|
108
|
+
* filter failed.
|
|
109
|
+
*/
|
|
110
|
+
mightContain?(documentPath: string): boolean;
|
|
97
111
|
};
|
|
98
112
|
}
|
|
99
113
|
/**
|
|
@@ -59,6 +59,7 @@ export declare class IndexedDbPersistenceMode implements PersistenceMode {
|
|
|
59
59
|
toLruGc(): IndexedDbPersistenceMode;
|
|
60
60
|
asLocalCacheFirestoreSettings(): PersistentLocalCache;
|
|
61
61
|
}
|
|
62
|
+
export declare const PERSISTENCE_MODE_UNSPECIFIED: unique symbol;
|
|
62
63
|
export declare function isPersistenceAvailable(): boolean;
|
|
63
64
|
declare type ApiSuiteFunction = (message: string, testSuite: (persistence: PersistenceMode) => void) => void;
|
|
64
65
|
interface ApiDescribe {
|
|
@@ -76,24 +77,24 @@ export declare function toDataMap(docSet: QuerySnapshot): {
|
|
|
76
77
|
};
|
|
77
78
|
/** Converts a DocumentSet to an array with the id of each document */
|
|
78
79
|
export declare function toIds(docSet: QuerySnapshot): string[];
|
|
79
|
-
export declare function withTestDb(persistence: PersistenceMode, fn: (db: Firestore) => Promise<void>): Promise<void>;
|
|
80
|
+
export declare function withTestDb(persistence: PersistenceMode | typeof PERSISTENCE_MODE_UNSPECIFIED, fn: (db: Firestore) => Promise<void>): Promise<void>;
|
|
80
81
|
/** Runs provided fn with a db for an alternate project id. */
|
|
81
|
-
export declare function withAlternateTestDb(persistence: PersistenceMode, fn: (db: Firestore) => Promise<void>): Promise<void>;
|
|
82
|
-
export declare function withTestDbs(persistence: PersistenceMode, numDbs: number, fn: (db: Firestore[]) => Promise<void>): Promise<void>;
|
|
83
|
-
export declare function withTestDbsSettings<T>(persistence: PersistenceMode, projectId: string, settings: PrivateSettings, numDbs: number, fn: (db: Firestore[]) => Promise<T>): Promise<T>;
|
|
82
|
+
export declare function withAlternateTestDb(persistence: PersistenceMode | typeof PERSISTENCE_MODE_UNSPECIFIED, fn: (db: Firestore) => Promise<void>): Promise<void>;
|
|
83
|
+
export declare function withTestDbs(persistence: PersistenceMode | typeof PERSISTENCE_MODE_UNSPECIFIED, numDbs: number, fn: (db: Firestore[]) => Promise<void>): Promise<void>;
|
|
84
|
+
export declare function withTestDbsSettings<T>(persistence: PersistenceMode | typeof PERSISTENCE_MODE_UNSPECIFIED, projectId: string, settings: PrivateSettings, numDbs: number, fn: (db: Firestore[]) => Promise<T>): Promise<T>;
|
|
84
85
|
export declare function withNamedTestDbsOrSkipUnlessUsingEmulator(persistence: PersistenceMode, dbNames: string[], fn: (db: Firestore[]) => Promise<void>): Promise<void>;
|
|
85
|
-
export declare function withTestDoc(persistence: PersistenceMode, fn: (doc: DocumentReference, db: Firestore) => Promise<void>): Promise<void>;
|
|
86
|
-
export declare function withTestDocAndSettings(persistence: PersistenceMode, settings: PrivateSettings, fn: (doc: DocumentReference) => Promise<void>): Promise<void>;
|
|
87
|
-
export declare function withTestDocAndInitialData(persistence: PersistenceMode, initialData: DocumentData | null, fn: (doc: DocumentReference, db: Firestore) => Promise<void>): Promise<void>;
|
|
86
|
+
export declare function withTestDoc(persistence: PersistenceMode | typeof PERSISTENCE_MODE_UNSPECIFIED, fn: (doc: DocumentReference, db: Firestore) => Promise<void>): Promise<void>;
|
|
87
|
+
export declare function withTestDocAndSettings(persistence: PersistenceMode | typeof PERSISTENCE_MODE_UNSPECIFIED, settings: PrivateSettings, fn: (doc: DocumentReference) => Promise<void>): Promise<void>;
|
|
88
|
+
export declare function withTestDocAndInitialData(persistence: PersistenceMode | typeof PERSISTENCE_MODE_UNSPECIFIED, initialData: DocumentData | null, fn: (doc: DocumentReference, db: Firestore) => Promise<void>): Promise<void>;
|
|
88
89
|
export declare class RetryError extends Error {
|
|
89
90
|
readonly name = "FirestoreIntegrationTestRetryError";
|
|
90
91
|
}
|
|
91
92
|
export declare function withRetry<T>(fn: (attemptNumber: number) => Promise<T>): Promise<T>;
|
|
92
|
-
export declare function withTestCollection<T>(persistence: PersistenceMode, docs: {
|
|
93
|
+
export declare function withTestCollection<T>(persistence: PersistenceMode | typeof PERSISTENCE_MODE_UNSPECIFIED, docs: {
|
|
93
94
|
[key: string]: DocumentData;
|
|
94
95
|
}, fn: (collection: CollectionReference, db: Firestore) => Promise<T>): Promise<T>;
|
|
95
|
-
export declare function withEmptyTestCollection(persistence: PersistenceMode, fn: (collection: CollectionReference, db: Firestore) => Promise<void>): Promise<void>;
|
|
96
|
-
export declare function withTestCollectionSettings<T>(persistence: PersistenceMode, settings: PrivateSettings, docs: {
|
|
96
|
+
export declare function withEmptyTestCollection(persistence: PersistenceMode | typeof PERSISTENCE_MODE_UNSPECIFIED, fn: (collection: CollectionReference, db: Firestore) => Promise<void>): Promise<void>;
|
|
97
|
+
export declare function withTestCollectionSettings<T>(persistence: PersistenceMode | typeof PERSISTENCE_MODE_UNSPECIFIED, settings: PrivateSettings, docs: {
|
|
97
98
|
[key: string]: DocumentData;
|
|
98
99
|
}, fn: (collection: CollectionReference, db: Firestore) => Promise<T>): Promise<T>;
|
|
99
100
|
export {};
|