Skip to content

Commit 9c61afe

Browse files
Remove SimpleQueryEngine (#4117)
1 parent ddb7993 commit 9c61afe

File tree

11 files changed

+233
-397
lines changed

11 files changed

+233
-397
lines changed

packages/firestore/exp/src/api/snapshot.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ export interface DocumentChange<T = DocumentData> {
176176
* access will return 'undefined'. You can use the `exists()` method to
177177
* explicitly verify a document's existence.
178178
*/
179-
export class DocumentSnapshot<T = DocumentData> extends LiteDocumentSnapshot<
180-
T
181-
> {
179+
export class DocumentSnapshot<
180+
T = DocumentData
181+
> extends LiteDocumentSnapshot<T> {
182182
private readonly _firestoreImpl: FirebaseFirestore;
183183

184184
/**
@@ -291,9 +291,9 @@ export class DocumentSnapshot<T = DocumentData> extends LiteDocumentSnapshot<
291291
* `exists` property will always be true and `data()` will never return
292292
* 'undefined'.
293293
*/
294-
export class QueryDocumentSnapshot<T = DocumentData> extends DocumentSnapshot<
295-
T
296-
> {
294+
export class QueryDocumentSnapshot<
295+
T = DocumentData
296+
> extends DocumentSnapshot<T> {
297297
/**
298298
* Retrieves all fields in the document as an `Object`.
299299
*

packages/firestore/lite/src/api/snapshot.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ export class DocumentSnapshot<T = DocumentData> {
211211
* `exists` property will always be true and `data()` will never return
212212
* 'undefined'.
213213
*/
214-
export class QueryDocumentSnapshot<T = DocumentData> extends DocumentSnapshot<
215-
T
216-
> {
214+
export class QueryDocumentSnapshot<
215+
T = DocumentData
216+
> extends DocumentSnapshot<T> {
217217
/**
218218
* Retrieves all fields in the document as an `Object`.
219219
*

packages/firestore/src/core/component_provider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ import { GarbageCollectionScheduler, Persistence } from '../local/persistence';
5555
import { Code, FirestoreError } from '../util/error';
5656
import { OnlineStateSource } from './types';
5757
import { LruParams, LruScheduler } from '../local/lru_garbage_collector';
58-
import { IndexFreeQueryEngine } from '../local/index_free_query_engine';
58+
import { QueryEngine } from '../local/query_engine';
5959
import {
6060
indexedDbStoragePrefix,
6161
IndexedDbPersistence
@@ -127,7 +127,7 @@ export class MemoryOfflineComponentProvider
127127
createLocalStore(cfg: ComponentConfiguration): LocalStore {
128128
return newLocalStore(
129129
this.persistence,
130-
new IndexFreeQueryEngine(),
130+
new QueryEngine(),
131131
cfg.initialUser,
132132
this.serializer
133133
);
@@ -182,7 +182,7 @@ export class IndexedDbOfflineComponentProvider extends MemoryOfflineComponentPro
182182
createLocalStore(cfg: ComponentConfiguration): LocalStore {
183183
return newLocalStore(
184184
this.persistence,
185-
new IndexFreeQueryEngine(),
185+
new QueryEngine(),
186186
cfg.initialUser,
187187
this.serializer
188188
);

packages/firestore/src/local/index_free_query_engine.ts

Lines changed: 0 additions & 217 deletions
This file was deleted.

0 commit comments

Comments
 (0)