Skip to content

Commit a4a3ba9

Browse files
committed
rename aggregateQuerySnapshotEqual
1 parent d2a8bd0 commit a4a3ba9

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

packages/firestore/lite/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ registerFirestore();
2929

3030
export { FirestoreSettings as Settings } from '../src/lite-api/settings';
3131

32+
33+
export {
34+
AggregateField,
35+
AggregateSpec,
36+
AggregateSpecData,
37+
AggregateQuerySnapshot,
38+
getCount,
39+
aggregateQuerySnapshotEqual
40+
} from '../src/lite-api/aggregate';
41+
3242
export {
3343
Firestore as Firestore,
3444
EmulatorMockTokenOptions,

packages/firestore/src/api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export {
2020
AggregateSpec,
2121
AggregateSpecData,
2222
AggregateQuerySnapshot,
23-
getCountFromServer
23+
getCountFromServer,
24+
aggregateQuerySnapshotEqual
2425
} from './api/aggregate';
2526

2627
export { FieldPath, documentId } from './api/field_path';

packages/firestore/src/core/firestore_client.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,14 @@
1717

1818
import { GetOptions } from '@firebase/firestore-types';
1919

20-
import { AggregateField } from '../api/aggregate';
20+
import { AggregateField, AggregateQuerySnapshot } from '../api/aggregate';
2121
import { LoadBundleTask } from '../api/bundle';
2222
import {
2323
CredentialChangeListener,
2424
CredentialsProvider
2525
} from '../api/credentials';
2626
import { User } from '../auth/user';
27-
import {
28-
getCount,
29-
AggregateQuerySnapshot
30-
} from '../lite-api/aggregate';
27+
import { getCount } from '../lite-api/aggregate';
3128
import { Query as LiteQuery } from '../lite-api/reference';
3229
import { LocalStore } from '../local/local_store';
3330
import {

packages/firestore/test/lite/integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2228,7 +2228,7 @@ describe('countQuery()', () => {
22282228
});
22292229
});
22302230

2231-
it('aggregateSnapshotEqual on same queries be truthy', () => {
2231+
it('aggregateQuerySnapshotEqual on same queries be truthy', () => {
22322232
const testDocs = [
22332233
{ author: 'authorA', title: 'titleA' },
22342234
{ author: 'authorA', title: 'titleB' },
@@ -2245,7 +2245,7 @@ describe('countQuery()', () => {
22452245
});
22462246
});
22472247

2248-
it('aggregateSnapshotEqual on different queries be falsy', () => {
2248+
it('aggregateQuerySnapshotEqual on different queries be falsy', () => {
22492249
const testDocs = [
22502250
{ author: 'authorA', title: 'titleA' },
22512251
{ author: 'authorA', title: 'titleB' },

0 commit comments

Comments
 (0)