File tree Expand file tree Collapse file tree 23 files changed +167
-83
lines changed Expand file tree Collapse file tree 23 files changed +167
-83
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ export interface Settings {
34
34
ssl ?: boolean ;
35
35
ignoreUndefinedProperties ?: boolean ;
36
36
cacheSizeBytes ?: number ;
37
- experimentalForceLongPolling ?: boolean ;
38
37
}
39
38
40
39
export interface SnapshotListenOptions {
@@ -45,7 +44,9 @@ export interface SnapshotOptions {
45
44
readonly serverTimestamps ?: 'estimate' | 'previous' | 'none' ;
46
45
}
47
46
48
- export interface SnapshotMetadata {
47
+ export class SnapshotMetadata {
48
+ private constructor ( ) ;
49
+
49
50
readonly hasPendingWrites : boolean ;
50
51
readonly fromCache : boolean ;
51
52
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @firebase/firestore/exp" ,
3
3
"description" : " A tree-shakeable version of the Firestore SDK" ,
4
- "main" : " ../dist/exp/index.node.esm2017.js" ,
4
+ "main" : " ../dist/lite/index.node.esm2017.js" ,
5
+ "browser" : " ../dist/lite/index.browser.esm2017.js" ,
6
+ "react-native" : " ../dist/lite/index.rn.esm2017.js" ,
5
7
"private" : true
6
8
}
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import * as firestore from '../../index ' ;
18
+ import * as firestore from '../../../exp-types ' ;
19
19
20
20
import { _getProvider , _removeServiceInstance } from '@firebase/app-exp' ;
21
21
import { FirebaseApp , _FirebaseService } from '@firebase/app-types-exp' ;
@@ -101,7 +101,7 @@ export class Firestore extends LiteFirestore
101
101
const databaseInfo = this . _makeDatabaseInfo (
102
102
settings . host ,
103
103
settings . ssl ,
104
- settings . experimentalForceLongPolling
104
+ /* experimentalForceLongPolling= */ false
105
105
) ;
106
106
107
107
this . _deferredInitialization = this . _firestoreClient . start (
Original file line number Diff line number Diff line change 17
17
18
18
// See https://github.com/typescript-eslint/typescript-eslint/issues/363
19
19
// eslint-disable-next-line @typescript-eslint/no-unused-vars
20
- import * as firestore from '../../index ' ;
20
+ import * as firestore from '../../../exp-types ' ;
21
21
22
22
import { Firestore } from './database' ;
23
23
import {
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import * as firestore from '../../index ' ;
18
+ import * as firestore from '../../../exp-types ' ;
19
19
20
20
import { DocumentKey } from '../../../src/model/document_key' ;
21
21
import { Document } from '../../../src/model/document' ;
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import * as firestore from '../../index ' ;
18
+ import * as firestore from '../../../exp-types ' ;
19
19
20
20
import { Transaction as LiteTransaction } from '../../../lite/src/api/transaction' ;
21
21
import { DocumentSnapshot } from './snapshot' ;
Original file line number Diff line number Diff line change 17
17
18
18
// See https://github.com/typescript-eslint/typescript-eslint/issues/363
19
19
// eslint-disable-next-line @typescript-eslint/no-unused-vars
20
- import * as firestore from '../../index ' ;
20
+ import * as firestore from '../../../exp-types ' ;
21
21
22
22
import { cast } from '../../../lite/src/api/util' ;
23
23
import { WriteBatch } from '../../../lite/src/api/write_batch' ;
Original file line number Diff line number Diff line change 14
14
" node_modules/typescript/lib/lib.es2017.string.d.ts" ,
15
15
" packages/app-types/index.d.ts" ,
16
16
" packages/app-types/private.d.ts" ,
17
+ " packages-exp/app-types-exp/index.d.ts" ,
17
18
" packages/auth-interop-types/index.d.ts" ,
19
+ " packages/firestore/exp-types/index.d.ts" ,
20
+ " packages/firestore/lite-types/index.d.ts" ,
18
21
" packages/firestore-types/index.d.ts" ,
19
22
" packages/firebase/index.d.ts" ,
20
23
" packages/component/dist/src/component.d.ts" ,
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 2
2
"name" : " @firebase/firestore/lite" ,
3
3
"description" : " A lite version of the Firestore SDK" ,
4
4
"main" : " ../dist/lite/index.node.esm2017.js" ,
5
+ "browser" : " ../dist/lite/index.browser.esm2017.js" ,
6
+ "react-native" : " ../dist/lite/index.rn.esm2017.js" ,
5
7
"private" : true
6
8
}
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import * as firestore from '../../' ;
18
+ import * as firestore from '../../../lite-types ' ;
19
19
20
20
import { _getProvider , _removeServiceInstance } from '@firebase/app-exp' ;
21
21
import { FirebaseApp , _FirebaseService } from '@firebase/app-types-exp' ;
@@ -36,7 +36,6 @@ import {
36
36
import { newConnection } from '../../../src/platform/connection' ;
37
37
import { newSerializer } from '../../../src/platform/serializer' ;
38
38
import { cast } from './util' ;
39
- import { Settings } from '../../' ;
40
39
41
40
// settings() defaults:
42
41
export const DEFAULT_HOST = 'firestore.googleapis.com' ;
@@ -81,7 +80,7 @@ export class Firestore
81
80
this . _settings = settings ;
82
81
}
83
82
84
- _getSettings ( ) : Settings {
83
+ _getSettings ( ) : firestore . Settings {
85
84
if ( ! this . _settings ) {
86
85
this . _settings = { } ;
87
86
}
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import * as firestore from '../../index ' ;
18
+ import * as firestore from '../../../lite-types ' ;
19
19
20
20
import { BaseFieldPath } from '../../../src/api/field_path' ;
21
21
import { cast } from './util' ;
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import * as firestore from '../../' ;
18
+ import * as firestore from '../../../lite-types ' ;
19
19
20
20
import { validateAtLeastNumberOfArgs } from '../../../src/util/input_validation' ;
21
21
import {
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import * as firestore from '../../index ' ;
18
+ import * as firestore from '../../../lite-types ' ;
19
19
20
20
import { Document } from '../../../src/model/document' ;
21
21
import { DocumentKey } from '../../../src/model/document_key' ;
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import * as firestore from '../../index ' ;
18
+ import * as firestore from '../../../lite-types ' ;
19
19
20
20
import { Firestore } from './database' ;
21
21
import { DocumentReference , queryEqual } from './reference' ;
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import * as firestore from '../../' ;
18
+ import * as firestore from '../../../lite-types ' ;
19
19
20
20
import {
21
21
parseSetData ,
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import * as firestore from '../../index' ;
18
+ import * as firestore from '../../../lite-types' ;
19
+
19
20
import {
20
21
DeleteMutation ,
21
22
Mutation ,
You can’t perform that action at this time.
0 commit comments