@firebase/firestore-compat 0.3.52 → 0.3.53

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 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";
15
+ const version = "0.3.53";
16
16
 
17
17
  /**
18
18
  * @license
@@ -4,7 +4,7 @@ import { getModularInstance } from '@firebase/util';
4
4
  import { Component } from '@firebase/component';
5
5
 
6
6
  const name = "@firebase/firestore-compat";
7
- const version = "0.3.52";
7
+ const version = "0.3.53";
8
8
 
9
9
  /**
10
10
  * @license
@@ -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";
15
+ const version = "0.3.53";
16
16
 
17
17
  /**
18
18
  * @license
package/dist/index.rn.js CHANGED
@@ -4,7 +4,7 @@ import { getModularInstance } from '@firebase/util';
4
4
  import { Component } from '@firebase/component';
5
5
 
6
6
  const name = "@firebase/firestore-compat";
7
- const version = "0.3.52";
7
+ const version = "0.3.53";
8
8
 
9
9
  /**
10
10
  * @license
@@ -4,7 +4,7 @@ import { getModularInstance } from '@firebase/util';
4
4
  import { Component } from '@firebase/component';
5
5
 
6
6
  const name = "@firebase/firestore-compat";
7
- const version = "0.3.52";
7
+ const version = "0.3.53";
8
8
 
9
9
  /**
10
10
  * @license
@@ -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 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";
52
+ import { type DocumentData, type WithFieldValue, type DocumentReference, type CollectionReference, type Query, type EmulatorMockTokenOptions, type DocumentSnapshot, type FirestoreDataConverter, type PersistenceSettings, type AggregateSpec, type AggregateQuerySnapshot, type AggregateField, 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,6 +65,8 @@ 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>;
68
70
  function enableIndexedDbPersistence(firestore: types.FirebaseFirestore, persistenceSettings?: PersistenceSettings): Promise<void>;
69
71
  function enableMultiTabIndexedDbPersistence(firestore: types.FirebaseFirestore): Promise<void>;
70
72
  function enableNetwork(firestore: types.FirebaseFirestore): Promise<void>;
@@ -108,6 +110,30 @@ declare module "@firebase/firestore" {
108
110
  }): Unsubscribe;
109
111
  function onSnapshot<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>, onNext: (snapshot: QuerySnapshot<AppModelType, DbModelType>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void): Unsubscribe;
110
112
  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;
111
137
  function onSnapshotsInSync(firestore: types.FirebaseFirestore, observer: {
112
138
  next?: (value: void) => void;
113
139
  error?: (error: FirestoreError) => void;
@@ -117,6 +143,8 @@ declare module "@firebase/firestore" {
117
143
  function query<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>, compositeFilter: QueryCompositeFilterConstraint, ...queryConstraints: QueryNonFilterConstraint[]): Query<AppModelType, DbModelType>;
118
144
  function query<AppModelType, DbModelType extends DocumentData>(query: types.Query<AppModelType, DbModelType>, ...queryConstraints: QueryConstraint[]): Query<AppModelType, DbModelType>;
119
145
  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>;
120
148
  function runTransaction<T>(firestore: types.FirebaseFirestore, updateFunction: (transaction: Transaction) => Promise<T>, options?: TransactionOptions): Promise<T>;
121
149
  function setDoc<AppModelType, DbModelType extends DocumentData>(reference: types.DocumentReference<AppModelType, DbModelType>, data: WithFieldValue<AppModelType>): Promise<void>;
122
150
  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",
3
+ "version": "0.3.53",
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",
@@ -46,14 +46,14 @@
46
46
  "@firebase/app-compat": "0.x"
47
47
  },
48
48
  "dependencies": {
49
- "@firebase/component": "0.6.17",
50
- "@firebase/firestore": "4.7.17",
51
- "@firebase/util": "1.12.0",
49
+ "@firebase/component": "0.6.18",
50
+ "@firebase/firestore": "4.8.0",
51
+ "@firebase/util": "1.12.1",
52
52
  "@firebase/firestore-types": "3.0.3",
53
53
  "tslib": "^2.1.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@firebase/app-compat": "0.4.1",
56
+ "@firebase/app-compat": "0.4.2",
57
57
  "@types/eslint": "7.29.0",
58
58
  "rollup": "2.79.2",
59
59
  "rollup-plugin-sourcemaps": "0.6.3",