@firebase/firestore 4.7.8 → 4.7.9-canary.058afa280
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/firestore/src/global_index.d.ts +9 -2
- package/dist/firestore/src/lite-api/database.d.ts +4 -0
- package/dist/firestore/src/lite-api/settings.d.ts +4 -0
- package/dist/firestore/src/lite-api/vector_value.d.ts +2 -2
- package/dist/firestore/test/integration/util/settings.d.ts +1 -0
- package/dist/index.cjs.js +108 -98
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm2017.js +109 -99
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +17 -5
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +18 -6
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +44 -34
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +9 -2
- package/dist/lite/firestore/src/lite-api/database.d.ts +4 -0
- package/dist/lite/firestore/src/lite-api/settings.d.ts +4 -0
- package/dist/lite/firestore/src/lite-api/vector_value.d.ts +2 -2
- package/dist/lite/firestore/test/integration/util/settings.d.ts +1 -0
- package/dist/lite/index.browser.esm2017.js +23 -13
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.cjs.js +23 -13
- package/dist/lite/index.cjs.js.map +1 -1
- package/dist/lite/index.d.ts +2 -2
- package/dist/lite/index.node.cjs.js +17 -5
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +18 -6
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +43 -33
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +9 -2
- package/dist/lite/private.d.ts +6 -2
- package/dist/private.d.ts +6 -2
- package/package.json +9 -9
|
@@ -5833,6 +5833,9 @@ interface PrivateSettings extends FirestoreSettings$1 {
|
|
|
5833
5833
|
experimentalAutoDetectLongPolling?: boolean;
|
|
5834
5834
|
experimentalLongPollingOptions?: ExperimentalLongPollingOptions;
|
|
5835
5835
|
useFetchStreams?: boolean;
|
|
5836
|
+
emulatorOptions?: {
|
|
5837
|
+
mockUserToken?: EmulatorMockTokenOptions | string;
|
|
5838
|
+
};
|
|
5836
5839
|
localCache?: FirestoreLocalCache;
|
|
5837
5840
|
}
|
|
5838
5841
|
/**
|
|
@@ -5928,6 +5931,7 @@ declare class Firestore$1 implements FirestoreService {
|
|
|
5928
5931
|
readonly _persistenceKey: string;
|
|
5929
5932
|
private _settings;
|
|
5930
5933
|
private _settingsFrozen;
|
|
5934
|
+
private _emulatorOptions;
|
|
5931
5935
|
private _terminateTask;
|
|
5932
5936
|
/** @hideconstructor */
|
|
5933
5937
|
constructor(_authCredentials: CredentialsProvider<User>, _appCheckCredentials: CredentialsProvider<string>, _databaseId: DatabaseId, _app?: FirebaseApp | undefined);
|
|
@@ -5940,6 +5944,9 @@ declare class Firestore$1 implements FirestoreService {
|
|
|
5940
5944
|
get _terminated(): boolean;
|
|
5941
5945
|
_setSettings(settings: PrivateSettings): void;
|
|
5942
5946
|
_getSettings(): FirestoreSettingsImpl;
|
|
5947
|
+
_getEmulatorOptions(): {
|
|
5948
|
+
mockUserToken?: EmulatorMockTokenOptions | string;
|
|
5949
|
+
};
|
|
5943
5950
|
_freezeSettings(): FirestoreSettingsImpl;
|
|
5944
5951
|
_delete(): Promise<void>;
|
|
5945
5952
|
_restart(): Promise<void>;
|
|
@@ -6071,7 +6078,7 @@ declare function documentId(): FieldPath;
|
|
|
6071
6078
|
*/
|
|
6072
6079
|
/**
|
|
6073
6080
|
* Represents a vector type in Firestore documents.
|
|
6074
|
-
* Create an instance with {@link
|
|
6081
|
+
* Create an instance with <code>{@link vector}</code>.
|
|
6075
6082
|
*
|
|
6076
6083
|
* @class VectorValue
|
|
6077
6084
|
*/
|
|
@@ -6087,7 +6094,7 @@ declare class VectorValue {
|
|
|
6087
6094
|
*/
|
|
6088
6095
|
toArray(): number[];
|
|
6089
6096
|
/**
|
|
6090
|
-
* Returns `true` if the two VectorValue
|
|
6097
|
+
* Returns `true` if the two `VectorValue` values have the same raw number arrays, returns `false` otherwise.
|
|
6091
6098
|
*/
|
|
6092
6099
|
isEqual(other: VectorValue): boolean;
|
|
6093
6100
|
}
|
|
@@ -44,6 +44,7 @@ export declare class Firestore implements FirestoreService {
|
|
|
44
44
|
readonly _persistenceKey: string;
|
|
45
45
|
private _settings;
|
|
46
46
|
private _settingsFrozen;
|
|
47
|
+
private _emulatorOptions;
|
|
47
48
|
private _terminateTask;
|
|
48
49
|
/** @hideconstructor */
|
|
49
50
|
constructor(_authCredentials: CredentialsProvider<User>, _appCheckCredentials: CredentialsProvider<string>, _databaseId: DatabaseId, _app?: FirebaseApp | undefined);
|
|
@@ -56,6 +57,9 @@ export declare class Firestore implements FirestoreService {
|
|
|
56
57
|
get _terminated(): boolean;
|
|
57
58
|
_setSettings(settings: PrivateSettings): void;
|
|
58
59
|
_getSettings(): FirestoreSettingsImpl;
|
|
60
|
+
_getEmulatorOptions(): {
|
|
61
|
+
mockUserToken?: EmulatorMockTokenOptions | string;
|
|
62
|
+
};
|
|
59
63
|
_freezeSettings(): FirestoreSettingsImpl;
|
|
60
64
|
_delete(): Promise<void>;
|
|
61
65
|
_restart(): Promise<void>;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
+
import { EmulatorMockTokenOptions } from '@firebase/util';
|
|
17
18
|
import { FirestoreLocalCache } from '../api/cache_config';
|
|
18
19
|
import { CredentialsSettings } from '../api/credentials';
|
|
19
20
|
import { ExperimentalLongPollingOptions } from '../api/long_polling_options';
|
|
@@ -47,6 +48,9 @@ export interface PrivateSettings extends FirestoreSettings {
|
|
|
47
48
|
experimentalAutoDetectLongPolling?: boolean;
|
|
48
49
|
experimentalLongPollingOptions?: ExperimentalLongPollingOptions;
|
|
49
50
|
useFetchStreams?: boolean;
|
|
51
|
+
emulatorOptions?: {
|
|
52
|
+
mockUserToken?: EmulatorMockTokenOptions | string;
|
|
53
|
+
};
|
|
50
54
|
localCache?: FirestoreLocalCache;
|
|
51
55
|
}
|
|
52
56
|
/**
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
/**
|
|
18
18
|
* Represents a vector type in Firestore documents.
|
|
19
|
-
* Create an instance with {@link
|
|
19
|
+
* Create an instance with <code>{@link vector}</code>.
|
|
20
20
|
*
|
|
21
21
|
* @class VectorValue
|
|
22
22
|
*/
|
|
@@ -32,7 +32,7 @@ export declare class VectorValue {
|
|
|
32
32
|
*/
|
|
33
33
|
toArray(): number[];
|
|
34
34
|
/**
|
|
35
|
-
* Returns `true` if the two VectorValue
|
|
35
|
+
* Returns `true` if the two `VectorValue` values have the same raw number arrays, returns `false` otherwise.
|
|
36
36
|
*/
|
|
37
37
|
isEqual(other: VectorValue): boolean;
|
|
38
38
|
}
|
|
@@ -18,6 +18,7 @@ import { PrivateSettings } from './firebase_export';
|
|
|
18
18
|
export declare const TARGET_DB_ID: string | '(default)';
|
|
19
19
|
export declare const USE_EMULATOR: boolean;
|
|
20
20
|
export declare const DEFAULT_SETTINGS: PrivateSettings;
|
|
21
|
+
export declare function getEmulatorPort(): number;
|
|
21
22
|
export declare const DEFAULT_PROJECT_ID: any;
|
|
22
23
|
export declare const ALT_PROJECT_ID = "test-db2";
|
|
23
24
|
export declare const COMPOSITE_INDEX_TEST_COLLECTION = "composite-index-test-collection";
|