@firebase/firestore-compat 0.3.52-canary.ab5c2a06e → 0.3.52-canary.b97eab36a
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/index.cjs.js +1 -1
- package/dist/index.esm2017.js +1 -1
- package/dist/index.node.cjs.js +1 -1
- package/dist/index.rn.js +1 -1
- package/dist/node-esm/index.node.esm.js +1 -1
- package/dist/src/index.d.ts +1 -29
- package/package.json +7 -7
package/dist/index.cjs.js
CHANGED
|
@@ -12,7 +12,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
|
|
13
13
|
|
|
14
14
|
const name = "@firebase/firestore-compat";
|
|
15
|
-
const version = "0.3.52-canary.
|
|
15
|
+
const version = "0.3.52-canary.b97eab36a";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @license
|
package/dist/index.esm2017.js
CHANGED
package/dist/index.node.cjs.js
CHANGED
|
@@ -12,7 +12,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
|
|
13
13
|
|
|
14
14
|
const name = "@firebase/firestore-compat";
|
|
15
|
-
const version = "0.3.52-canary.
|
|
15
|
+
const version = "0.3.52-canary.b97eab36a";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @license
|
package/dist/index.rn.js
CHANGED
package/dist/src/index.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ declare module '@firebase/app-compat' {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
import { FirebaseApp as FirebaseAppCompat } from "@firebase/app-compat";
|
|
52
|
-
import { type DocumentData, type WithFieldValue, type DocumentReference, type CollectionReference, type Query, type EmulatorMockTokenOptions, type
|
|
52
|
+
import { type DocumentData, type WithFieldValue, type DocumentReference, type CollectionReference, type Query, type EmulatorMockTokenOptions, type PersistenceSettings, type AggregateSpec, type AggregateQuerySnapshot, type AggregateField, type DocumentSnapshot, type QuerySnapshot, type Firestore, type PersistentCacheIndexManager, type FirestoreSettings, type LoadBundleTask, type FirestoreError, type Unsubscribe, type SnapshotListenOptions, type QueryCompositeFilterConstraint, type QueryNonFilterConstraint, type QueryConstraint, type Transaction, type TransactionOptions, type PartialWithFieldValue, type SetOptions, type IndexConfiguration, type UpdateData, type FieldPath, type WriteBatch } from "@firebase/firestore";
|
|
53
53
|
declare module "@firebase/firestore" {
|
|
54
54
|
function addDoc<AppModelType, DbModelType extends DocumentData>(reference: types.CollectionReference<AppModelType, DbModelType>, data: WithFieldValue<AppModelType>): Promise<DocumentReference<AppModelType, DbModelType>>;
|
|
55
55
|
function clearIndexedDbPersistence(firestore: types.FirebaseFirestore): Promise<void>;
|
|
@@ -65,8 +65,6 @@ declare module "@firebase/firestore" {
|
|
|
65
65
|
function doc(firestore: types.FirebaseFirestore, path: string, ...pathSegments: string[]): DocumentReference<DocumentData, DocumentData>;
|
|
66
66
|
function doc<AppModelType, DbModelType extends DocumentData>(reference: types.CollectionReference<AppModelType, DbModelType>, path?: string, ...pathSegments: string[]): DocumentReference<AppModelType, DbModelType>;
|
|
67
67
|
function doc<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>, path: string, ...pathSegments: string[]): DocumentReference<DocumentData, DocumentData>;
|
|
68
|
-
function documentSnapshotFromJSON(db: types.FirebaseFirestore, json: object): DocumentSnapshot;
|
|
69
|
-
function documentSnapshotFromJSON<AppModelType, DbModelType extends DocumentData = DocumentData>(db: types.FirebaseFirestore, json: object, converter: FirestoreDataConverter<AppModelType, DbModelType>): DocumentSnapshot<AppModelType, DbModelType>;
|
|
70
68
|
function enableIndexedDbPersistence(firestore: types.FirebaseFirestore, persistenceSettings?: PersistenceSettings): Promise<void>;
|
|
71
69
|
function enableMultiTabIndexedDbPersistence(firestore: types.FirebaseFirestore): Promise<void>;
|
|
72
70
|
function enableNetwork(firestore: types.FirebaseFirestore): Promise<void>;
|
|
@@ -110,30 +108,6 @@ declare module "@firebase/firestore" {
|
|
|
110
108
|
}): Unsubscribe;
|
|
111
109
|
function onSnapshot<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>, onNext: (snapshot: QuerySnapshot<AppModelType, DbModelType>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void): Unsubscribe;
|
|
112
110
|
function onSnapshot<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>, options: SnapshotListenOptions, onNext: (snapshot: QuerySnapshot<AppModelType, DbModelType>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void): Unsubscribe;
|
|
113
|
-
function onSnapshotResume<AppModelType, DbModelType extends DocumentData>(firestore: types.FirebaseFirestore, snapshotJson: object, onNext: (snapshot: QuerySnapshot<AppModelType, DbModelType>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void, converter?: FirestoreDataConverter<DbModelType>): Unsubscribe;
|
|
114
|
-
function onSnapshotResume<AppModelType, DbModelType extends DocumentData>(firestore: types.FirebaseFirestore, snapshotJson: object, onNext: (snapshot: DocumentSnapshot<AppModelType, DbModelType>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void, converter?: FirestoreDataConverter<DbModelType>): Unsubscribe;
|
|
115
|
-
function onSnapshotResume<AppModelType, DbModelType extends DocumentData>(firestore: types.FirebaseFirestore, snapshotJson: object, options: SnapshotListenOptions, onNext: (snapshot: QuerySnapshot<AppModelType, DbModelType>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void, converter?: FirestoreDataConverter<DbModelType>): Unsubscribe;
|
|
116
|
-
function onSnapshotResume<AppModelType, DbModelType extends DocumentData>(firestore: types.FirebaseFirestore, snapshotJson: object, options: SnapshotListenOptions, onNext: (snapshot: DocumentSnapshot<AppModelType, DbModelType>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void, converter?: FirestoreDataConverter<DbModelType>): Unsubscribe;
|
|
117
|
-
function onSnapshotResume<AppModelType, DbModelType extends DocumentData>(firestore: types.FirebaseFirestore, snapshotJson: object, observer: {
|
|
118
|
-
next: (snapshot: QuerySnapshot<AppModelType, DbModelType>) => void;
|
|
119
|
-
error?: (error: FirestoreError) => void;
|
|
120
|
-
complete?: () => void;
|
|
121
|
-
}, converter?: FirestoreDataConverter<DbModelType>): Unsubscribe;
|
|
122
|
-
function onSnapshotResume<AppModelType, DbModelType extends DocumentData>(firestore: types.FirebaseFirestore, snapshotJson: object, observer: {
|
|
123
|
-
next: (snapshot: DocumentSnapshot<AppModelType, DbModelType>) => void;
|
|
124
|
-
error?: (error: FirestoreError) => void;
|
|
125
|
-
complete?: () => void;
|
|
126
|
-
}, converter?: FirestoreDataConverter<DbModelType>): Unsubscribe;
|
|
127
|
-
function onSnapshotResume<AppModelType, DbModelType extends DocumentData>(firestore: types.FirebaseFirestore, snapshotJson: object, options: SnapshotListenOptions, observer: {
|
|
128
|
-
next: (snapshot: QuerySnapshot<AppModelType, DbModelType>) => void;
|
|
129
|
-
error?: (error: FirestoreError) => void;
|
|
130
|
-
complete?: () => void;
|
|
131
|
-
}, converter?: FirestoreDataConverter<DbModelType>): Unsubscribe;
|
|
132
|
-
function onSnapshotResume<AppModelType, DbModelType extends DocumentData>(firestore: types.FirebaseFirestore, snapshotJson: object, options: SnapshotListenOptions, observer: {
|
|
133
|
-
next: (snapshot: DocumentSnapshot<AppModelType, DbModelType>) => void;
|
|
134
|
-
error?: (error: FirestoreError) => void;
|
|
135
|
-
complete?: () => void;
|
|
136
|
-
}, converter?: FirestoreDataConverter<DbModelType>): Unsubscribe;
|
|
137
111
|
function onSnapshotsInSync(firestore: types.FirebaseFirestore, observer: {
|
|
138
112
|
next?: (value: void) => void;
|
|
139
113
|
error?: (error: FirestoreError) => void;
|
|
@@ -143,8 +117,6 @@ declare module "@firebase/firestore" {
|
|
|
143
117
|
function query<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>, compositeFilter: QueryCompositeFilterConstraint, ...queryConstraints: QueryNonFilterConstraint[]): Query<AppModelType, DbModelType>;
|
|
144
118
|
function query<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>, ...queryConstraints: QueryConstraint[]): Query<AppModelType, DbModelType>;
|
|
145
119
|
function queryEqual<AppModelType, DbModelType extends DocumentData>(left: types.Query<AppModelType, DbModelType>, right: types.Query<AppModelType, DbModelType>): boolean;
|
|
146
|
-
function querySnapshotFromJSON(db: types.FirebaseFirestore, json: object): QuerySnapshot;
|
|
147
|
-
function querySnapshotFromJSON<AppModelType, DbModelType extends DocumentData = DocumentData>(db: types.FirebaseFirestore, json: object, converter: FirestoreDataConverter<AppModelType, DbModelType>): QuerySnapshot<AppModelType, DbModelType>;
|
|
148
120
|
function runTransaction<T>(firestore: types.FirebaseFirestore, updateFunction: (transaction: Transaction) => Promise<T>, options?: TransactionOptions): Promise<T>;
|
|
149
121
|
function setDoc<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>, data: WithFieldValue<AppModelType>): Promise<void>;
|
|
150
122
|
function setDoc<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>, data: PartialWithFieldValue<AppModelType>, options: SetOptions): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/firestore-compat",
|
|
3
|
-
"version": "0.3.52-canary.
|
|
3
|
+
"version": "0.3.52-canary.b97eab36a",
|
|
4
4
|
"description": "The Cloud Firestore component of the Firebase JS SDK.",
|
|
5
5
|
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
6
6
|
"main": "dist/index.node.cjs.js",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"add-compat-overloads": "ts-node-script ../../scripts/build/create-overloads.ts -i ../firestore/dist/index.d.ts -o dist/src/index.d.ts -a -r Firestore:types.FirebaseFirestore -r CollectionReference:types.CollectionReference -r DocumentReference:types.DocumentReference -r Query:types.Query -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/firestore"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@firebase/app-compat": "0.4.1-canary.
|
|
46
|
+
"@firebase/app-compat": "0.4.1-canary.b97eab36a"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@firebase/component": "0.6.17-canary.
|
|
50
|
-
"@firebase/firestore": "4.7.17-canary.
|
|
51
|
-
"@firebase/util": "1.12.0-canary.
|
|
52
|
-
"@firebase/firestore-types": "3.0.3-canary.
|
|
49
|
+
"@firebase/component": "0.6.17-canary.b97eab36a",
|
|
50
|
+
"@firebase/firestore": "4.7.17-canary.b97eab36a",
|
|
51
|
+
"@firebase/util": "1.12.0-canary.b97eab36a",
|
|
52
|
+
"@firebase/firestore-types": "3.0.3-canary.b97eab36a",
|
|
53
53
|
"tslib": "^2.1.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@firebase/app-compat": "0.4.1-canary.
|
|
56
|
+
"@firebase/app-compat": "0.4.1-canary.b97eab36a",
|
|
57
57
|
"@types/eslint": "7.29.0",
|
|
58
58
|
"rollup": "2.79.2",
|
|
59
59
|
"rollup-plugin-sourcemaps": "0.6.3",
|