@firebase/firestore 3.4.1-canary.8d415c6b4 → 3.4.1-canary.c2fff0c6a
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/lite-api/reference_impl.d.ts +5 -0
- package/dist/firestore/src/lite-api/transaction.d.ts +4 -0
- package/dist/firestore/src/lite-api/write_batch.d.ts +3 -0
- package/dist/firestore/src/local/indexeddb_remote_document_cache.d.ts +5 -0
- package/dist/firestore/src/model/collections.d.ts +0 -4
- package/dist/index.d.ts +7 -0
- package/dist/index.esm2017.js +3 -3
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +3 -3
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +2 -2
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +2 -2
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +170 -170
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +8 -0
- package/dist/lite/firestore/src/lite-api/reference_impl.d.ts +5 -0
- package/dist/lite/firestore/src/lite-api/transaction.d.ts +4 -0
- package/dist/lite/firestore/src/lite-api/write_batch.d.ts +3 -0
- package/dist/lite/firestore/src/local/indexeddb_remote_document_cache.d.ts +5 -0
- package/dist/lite/firestore/src/model/collections.d.ts +0 -4
- package/dist/lite/index.browser.esm2017.js +3 -2
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +3 -2
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.d.ts +12 -0
- package/dist/lite/index.node.cjs.js +3 -2
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +3 -2
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +3 -2
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +12 -0
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +1 -0
- package/dist/lite/packages/firestore/src/lite-api/reference_impl.d.ts +5 -0
- package/dist/lite/packages/firestore/src/lite-api/transaction.d.ts +4 -0
- package/dist/lite/packages/firestore/src/lite-api/write_batch.d.ts +3 -0
- package/dist/lite/packages/firestore/src/local/indexeddb_remote_document_cache.d.ts +5 -0
- package/dist/lite/packages/firestore/src/model/collections.d.ts +0 -4
- package/dist/lite/private.d.ts +12 -0
- package/dist/packages/firestore/src/lite-api/reference_impl.d.ts +5 -0
- package/dist/packages/firestore/src/lite-api/transaction.d.ts +4 -0
- package/dist/packages/firestore/src/lite-api/write_batch.d.ts +3 -0
- package/dist/packages/firestore/src/local/indexeddb_remote_document_cache.d.ts +5 -0
- package/dist/packages/firestore/src/model/collections.d.ts +0 -4
- package/dist/private.d.ts +8 -0
- package/package.json +9 -9
|
@@ -77,6 +77,7 @@ export declare function getDocs<T>(query: Query<T>): Promise<QuerySnapshot<T>>;
|
|
|
77
77
|
*
|
|
78
78
|
* @param reference - A reference to the document to write.
|
|
79
79
|
* @param data - A map of the fields and values for the document.
|
|
80
|
+
* @throws Error - If the provided input is not a valid Firestore document.
|
|
80
81
|
* @returns A `Promise` resolved once the data has been successfully written
|
|
81
82
|
* to the backend.
|
|
82
83
|
*/
|
|
@@ -94,6 +95,7 @@ export declare function setDoc<T>(reference: DocumentReference<T>, data: WithFie
|
|
|
94
95
|
* @param reference - A reference to the document to write.
|
|
95
96
|
* @param data - A map of the fields and values for the document.
|
|
96
97
|
* @param options - An object to configure the set behavior.
|
|
98
|
+
* @throws Error - If the provided input is not a valid Firestore document.
|
|
97
99
|
* @returns A `Promise` resolved once the data has been successfully written
|
|
98
100
|
* to the backend.
|
|
99
101
|
*/
|
|
@@ -112,6 +114,7 @@ export declare function setDoc<T>(reference: DocumentReference<T>, data: Partial
|
|
|
112
114
|
* @param data - An object containing the fields and values with which to
|
|
113
115
|
* update the document. Fields can contain dots to reference nested fields
|
|
114
116
|
* within the document.
|
|
117
|
+
* @throws Error - If the provided input is not valid Firestore data.
|
|
115
118
|
* @returns A `Promise` resolved once the data has been successfully written
|
|
116
119
|
* to the backend.
|
|
117
120
|
*/
|
|
@@ -133,6 +136,7 @@ export declare function updateDoc<T>(reference: DocumentReference<T>, data: Upda
|
|
|
133
136
|
* @param field - The first field to update.
|
|
134
137
|
* @param value - The first value.
|
|
135
138
|
* @param moreFieldsAndValues - Additional key value pairs.
|
|
139
|
+
* @throws Error - If the provided input is not valid Firestore data.
|
|
136
140
|
* @returns A `Promise` resolved once the data has been successfully written
|
|
137
141
|
* to the backend.
|
|
138
142
|
*/
|
|
@@ -161,6 +165,7 @@ export declare function deleteDoc(reference: DocumentReference<unknown>): Promis
|
|
|
161
165
|
*
|
|
162
166
|
* @param reference - A reference to the collection to add this document to.
|
|
163
167
|
* @param data - An Object containing the data for the new document.
|
|
168
|
+
* @throws Error - If the provided input is not a valid Firestore document.
|
|
164
169
|
* @returns A `Promise` resolved with a `DocumentReference` pointing to the
|
|
165
170
|
* newly created document after it has been written to the backend.
|
|
166
171
|
*/
|
|
@@ -45,6 +45,7 @@ export declare class Transaction {
|
|
|
45
45
|
*
|
|
46
46
|
* @param documentRef - A reference to the document to be set.
|
|
47
47
|
* @param data - An object of the fields and values for the document.
|
|
48
|
+
* @throws Error - If the provided input is not a valid Firestore document.
|
|
48
49
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
49
50
|
*/
|
|
50
51
|
set<T>(documentRef: DocumentReference<T>, data: WithFieldValue<T>): this;
|
|
@@ -57,6 +58,7 @@ export declare class Transaction {
|
|
|
57
58
|
* @param documentRef - A reference to the document to be set.
|
|
58
59
|
* @param data - An object of the fields and values for the document.
|
|
59
60
|
* @param options - An object to configure the set behavior.
|
|
61
|
+
* @throws Error - If the provided input is not a valid Firestore document.
|
|
60
62
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
61
63
|
*/
|
|
62
64
|
set<T>(documentRef: DocumentReference<T>, data: PartialWithFieldValue<T>, options: SetOptions): this;
|
|
@@ -69,6 +71,7 @@ export declare class Transaction {
|
|
|
69
71
|
* @param data - An object containing the fields and values with which to
|
|
70
72
|
* update the document. Fields can contain dots to reference nested fields
|
|
71
73
|
* within the document.
|
|
74
|
+
* @throws Error - If the provided input is not valid Firestore data.
|
|
72
75
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
73
76
|
*/
|
|
74
77
|
update<T>(documentRef: DocumentReference<T>, data: UpdateData<T>): this;
|
|
@@ -84,6 +87,7 @@ export declare class Transaction {
|
|
|
84
87
|
* @param field - The first field to update.
|
|
85
88
|
* @param value - The first value.
|
|
86
89
|
* @param moreFieldsAndValues - Additional key/value pairs.
|
|
90
|
+
* @throws Error - If the provided input is not valid Firestore data.
|
|
87
91
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
88
92
|
*/
|
|
89
93
|
update(documentRef: DocumentReference<unknown>, field: string | FieldPath, value: unknown, ...moreFieldsAndValues: unknown[]): this;
|
|
@@ -53,6 +53,7 @@ export declare class WriteBatch {
|
|
|
53
53
|
* @param documentRef - A reference to the document to be set.
|
|
54
54
|
* @param data - An object of the fields and values for the document.
|
|
55
55
|
* @param options - An object to configure the set behavior.
|
|
56
|
+
* @throws Error - If the provided input is not a valid Firestore document.
|
|
56
57
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
57
58
|
*/
|
|
58
59
|
set<T>(documentRef: DocumentReference<T>, data: PartialWithFieldValue<T>, options: SetOptions): WriteBatch;
|
|
@@ -65,6 +66,7 @@ export declare class WriteBatch {
|
|
|
65
66
|
* @param data - An object containing the fields and values with which to
|
|
66
67
|
* update the document. Fields can contain dots to reference nested fields
|
|
67
68
|
* within the document.
|
|
69
|
+
* @throws Error - If the provided input is not valid Firestore data.
|
|
68
70
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
69
71
|
*/
|
|
70
72
|
update<T>(documentRef: DocumentReference<T>, data: UpdateData<T>): WriteBatch;
|
|
@@ -80,6 +82,7 @@ export declare class WriteBatch {
|
|
|
80
82
|
* @param field - The first field to update.
|
|
81
83
|
* @param value - The first value.
|
|
82
84
|
* @param moreFieldsAndValues - Additional key value pairs.
|
|
85
|
+
* @throws Error - If the provided input is not valid Firestore data.
|
|
83
86
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
84
87
|
*/
|
|
85
88
|
update(documentRef: DocumentReference<unknown>, field: string | FieldPath, value: unknown, ...moreFieldsAndValues: unknown[]): WriteBatch;
|
|
@@ -16,11 +16,16 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import { SnapshotVersion } from '../core/snapshot_version';
|
|
18
18
|
import { MutableDocumentMap } from '../model/collections';
|
|
19
|
+
import { MutableDocument } from '../model/document';
|
|
19
20
|
import { IndexManager } from './index_manager';
|
|
20
21
|
import { LocalSerializer } from './local_serializer';
|
|
21
22
|
import { PersistencePromise } from './persistence_promise';
|
|
22
23
|
import { PersistenceTransaction } from './persistence_transaction';
|
|
23
24
|
import { RemoteDocumentCache } from './remote_document_cache';
|
|
25
|
+
export interface DocumentSizeEntry {
|
|
26
|
+
document: MutableDocument;
|
|
27
|
+
size: number;
|
|
28
|
+
}
|
|
24
29
|
export interface IndexedDbRemoteDocumentCache extends RemoteDocumentCache {
|
|
25
30
|
}
|
|
26
31
|
/**
|
|
@@ -21,10 +21,6 @@ import { SortedSet } from '../util/sorted_set';
|
|
|
21
21
|
import { Document, MutableDocument } from './document';
|
|
22
22
|
import { DocumentKey } from './document_key';
|
|
23
23
|
/** Miscellaneous collection types / constants. */
|
|
24
|
-
export interface DocumentSizeEntry {
|
|
25
|
-
document: Document;
|
|
26
|
-
size: number;
|
|
27
|
-
}
|
|
28
24
|
export declare type MutableDocumentMap = SortedMap<DocumentKey, MutableDocument>;
|
|
29
25
|
export declare function mutableDocumentMap(): MutableDocumentMap;
|
|
30
26
|
export interface DocumentSizeEntries {
|
package/dist/index.d.ts
CHANGED
|
@@ -1797,6 +1797,7 @@ export declare class Transaction {
|
|
|
1797
1797
|
*
|
|
1798
1798
|
* @param documentRef - A reference to the document to be set.
|
|
1799
1799
|
* @param data - An object of the fields and values for the document.
|
|
1800
|
+
* @throws Error - If the provided input is not a valid Firestore document.
|
|
1800
1801
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
1801
1802
|
*/
|
|
1802
1803
|
set<T>(documentRef: DocumentReference<T>, data: WithFieldValue<T>): this;
|
|
@@ -1809,6 +1810,7 @@ export declare class Transaction {
|
|
|
1809
1810
|
* @param documentRef - A reference to the document to be set.
|
|
1810
1811
|
* @param data - An object of the fields and values for the document.
|
|
1811
1812
|
* @param options - An object to configure the set behavior.
|
|
1813
|
+
* @throws Error - If the provided input is not a valid Firestore document.
|
|
1812
1814
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
1813
1815
|
*/
|
|
1814
1816
|
set<T>(documentRef: DocumentReference<T>, data: PartialWithFieldValue<T>, options: SetOptions): this;
|
|
@@ -1821,6 +1823,7 @@ export declare class Transaction {
|
|
|
1821
1823
|
* @param data - An object containing the fields and values with which to
|
|
1822
1824
|
update the document. Fields can contain dots to reference nested fields
|
|
1823
1825
|
within the document.
|
|
1826
|
+
* @throws Error - If the provided input is not valid Firestore data.
|
|
1824
1827
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
1825
1828
|
*/
|
|
1826
1829
|
update<T>(documentRef: DocumentReference<T>, data: UpdateData<T>): this;
|
|
@@ -1836,6 +1839,7 @@ within the document.
|
|
|
1836
1839
|
* @param field - The first field to update.
|
|
1837
1840
|
* @param value - The first value.
|
|
1838
1841
|
* @param moreFieldsAndValues - Additional key/value pairs.
|
|
1842
|
+
* @throws Error - If the provided input is not valid Firestore data.
|
|
1839
1843
|
* @returns This `Transaction` instance. Used for chaining method calls.
|
|
1840
1844
|
*/
|
|
1841
1845
|
update(documentRef: DocumentReference<unknown>, field: string | FieldPath, value: unknown, ...moreFieldsAndValues: unknown[]): this;
|
|
@@ -1973,6 +1977,7 @@ export declare class WriteBatch {
|
|
|
1973
1977
|
* @param documentRef - A reference to the document to be set.
|
|
1974
1978
|
* @param data - An object of the fields and values for the document.
|
|
1975
1979
|
* @param options - An object to configure the set behavior.
|
|
1980
|
+
* @throws Error - If the provided input is not a valid Firestore document.
|
|
1976
1981
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
1977
1982
|
*/
|
|
1978
1983
|
set<T>(documentRef: DocumentReference<T>, data: PartialWithFieldValue<T>, options: SetOptions): WriteBatch;
|
|
@@ -1985,6 +1990,7 @@ export declare class WriteBatch {
|
|
|
1985
1990
|
* @param data - An object containing the fields and values with which to
|
|
1986
1991
|
* update the document. Fields can contain dots to reference nested fields
|
|
1987
1992
|
* within the document.
|
|
1993
|
+
* @throws Error - If the provided input is not valid Firestore data.
|
|
1988
1994
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
1989
1995
|
*/
|
|
1990
1996
|
update<T>(documentRef: DocumentReference<T>, data: UpdateData<T>): WriteBatch;
|
|
@@ -2000,6 +2006,7 @@ export declare class WriteBatch {
|
|
|
2000
2006
|
* @param field - The first field to update.
|
|
2001
2007
|
* @param value - The first value.
|
|
2002
2008
|
* @param moreFieldsAndValues - Additional key value pairs.
|
|
2009
|
+
* @throws Error - If the provided input is not valid Firestore data.
|
|
2003
2010
|
* @returns This `WriteBatch` instance. Used for chaining method calls.
|
|
2004
2011
|
*/
|
|
2005
2012
|
update(documentRef: DocumentReference<unknown>, field: string | FieldPath, value: unknown, ...moreFieldsAndValues: unknown[]): WriteBatch;
|
package/dist/index.esm2017.js
CHANGED
|
@@ -66,7 +66,7 @@ D.MOCK_USER = new D("mock-user");
|
|
|
66
66
|
* See the License for the specific language governing permissions and
|
|
67
67
|
* limitations under the License.
|
|
68
68
|
*/
|
|
69
|
-
let C = "9.6.1-canary.
|
|
69
|
+
let C = "9.6.1-canary.c2fff0c6a";
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
@@ -17832,9 +17832,9 @@ function Ih(t, e) {
|
|
|
17832
17832
|
return n = Object.assign({
|
|
17833
17833
|
useFetchStreams: e
|
|
17834
17834
|
}, n), i._setSettings(n), i;
|
|
17835
|
-
}), "PUBLIC")), registerVersion(S, "3.4.1-canary.
|
|
17835
|
+
}), "PUBLIC")), registerVersion(S, "3.4.1-canary.c2fff0c6a", t),
|
|
17836
17836
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
17837
|
-
registerVersion(S, "3.4.1-canary.
|
|
17837
|
+
registerVersion(S, "3.4.1-canary.c2fff0c6a", "esm2017");
|
|
17838
17838
|
}();
|
|
17839
17839
|
|
|
17840
17840
|
export { rh as AbstractUserDataWriter, eu as Bytes, Fc as CACHE_SIZE_UNLIMITED, vc as CollectionReference, bc as DocumentReference, xu as DocumentSnapshot, Zc as FieldPath, nu as FieldValue, Oc as Firestore, j as FirestoreError, su as GeoPoint, $c as LoadBundleTask, Pc as Query, Bu as QueryConstraint, $u as QueryDocumentSnapshot, Fu as QuerySnapshot, ku as SnapshotMetadata, at as Timestamp, bh as Transaction, ch as WriteBatch, dc as _DatabaseId, St as _DocumentKey, tt as _EmptyAppCheckTokenProvider, G as _EmptyAuthCredentialsProvider, _t as _FieldPath, Tc as _cast, U as _debugAssert, gt as _isBase64Available, O as _logWarn, mc as _validateIsNotUsedTogether, Th as addDoc, Dh as arrayRemove, Sh as arrayUnion, Qc as clearIndexedDbPersistence, Vc as collection, Sc as collectionGroup, Rc as connectFirestoreEmulator, ph as deleteDoc, vh as deleteField, zc as disableNetwork, Dc as doc, tu as documentId, qc as enableIndexedDbPersistence, Kc as enableMultiTabIndexedDbPersistence, Gc as enableNetwork, th as endAt, Zu as endBefore, Bc as ensureFirestoreConfigured, Ah as executeWrite, hh as getDoc, fh as getDocFromCache, dh as getDocFromServer, wh as getDocs, _h as getDocsFromCache, mh as getDocsFromServer, Lc as getFirestore, Ch as increment, Mc as initializeFirestore, Gu as limit, zu as limitToLast, Jc as loadBundle, Yc as namedQuery, Eh as onSnapshot, Ih as onSnapshotsInSync, Qu as orderBy, Uu as query, Nc as queryEqual, Cc as refEqual, Ph as runTransaction, Vh as serverTimestamp, gh as setDoc, x as setLogLevel, Mu as snapshotEqual, Yu as startAfter, Ju as startAt, Hc as terminate, yh as updateDoc, Wc as waitForPendingWrites, Ku as where, Nh as writeBatch };
|