@firebase/firestore 4.7.7-canary.4e6a5c670 → 4.7.7-canary.604133f8d

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.
Files changed (38) hide show
  1. package/dist/firestore/src/global_index.d.ts +9 -2
  2. package/dist/firestore/src/lite-api/database.d.ts +4 -0
  3. package/dist/firestore/src/lite-api/settings.d.ts +4 -0
  4. package/dist/firestore/src/lite-api/vector_value.d.ts +2 -2
  5. package/dist/firestore/src/util/misc.d.ts +0 -2
  6. package/dist/firestore/test/integration/util/settings.d.ts +1 -0
  7. package/dist/index.cjs.js +245 -243
  8. package/dist/index.cjs.js.map +1 -1
  9. package/dist/index.d.ts +2 -2
  10. package/dist/index.esm2017.js +246 -244
  11. package/dist/index.esm2017.js.map +1 -1
  12. package/dist/index.node.cjs.js +56 -55
  13. package/dist/index.node.cjs.js.map +1 -1
  14. package/dist/index.node.mjs +57 -56
  15. package/dist/index.node.mjs.map +1 -1
  16. package/dist/index.rn.js +198 -196
  17. package/dist/index.rn.js.map +1 -1
  18. package/dist/internal.d.ts +9 -2
  19. package/dist/lite/firestore/src/lite-api/database.d.ts +4 -0
  20. package/dist/lite/firestore/src/lite-api/settings.d.ts +4 -0
  21. package/dist/lite/firestore/src/lite-api/vector_value.d.ts +2 -2
  22. package/dist/lite/firestore/src/util/misc.d.ts +0 -2
  23. package/dist/lite/firestore/test/integration/util/settings.d.ts +1 -0
  24. package/dist/lite/index.browser.esm2017.js +148 -168
  25. package/dist/lite/index.browser.esm2017.js.map +1 -1
  26. package/dist/lite/index.cjs.js +148 -168
  27. package/dist/lite/index.cjs.js.map +1 -1
  28. package/dist/lite/index.d.ts +2 -2
  29. package/dist/lite/index.node.cjs.js +112 -130
  30. package/dist/lite/index.node.cjs.js.map +1 -1
  31. package/dist/lite/index.node.mjs +113 -131
  32. package/dist/lite/index.node.mjs.map +1 -1
  33. package/dist/lite/index.rn.esm2017.js +161 -181
  34. package/dist/lite/index.rn.esm2017.js.map +1 -1
  35. package/dist/lite/internal.d.ts +9 -2
  36. package/dist/lite/private.d.ts +6 -2
  37. package/dist/private.d.ts +6 -2
  38. package/package.json +9 -9
@@ -1866,6 +1866,7 @@ declare class Firestore_2 implements FirestoreService {
1866
1866
  readonly _persistenceKey: string;
1867
1867
  private _settings;
1868
1868
  private _settingsFrozen;
1869
+ private _emulatorOptions;
1869
1870
  private _terminateTask;
1870
1871
  /** @hideconstructor */
1871
1872
  constructor(_authCredentials: CredentialsProvider<User>, _appCheckCredentials: CredentialsProvider<string>, _databaseId: _DatabaseId, _app?: FirebaseApp | undefined);
@@ -1878,6 +1879,9 @@ declare class Firestore_2 implements FirestoreService {
1878
1879
  get _terminated(): boolean;
1879
1880
  _setSettings(settings: PrivateSettings): void;
1880
1881
  _getSettings(): FirestoreSettingsImpl;
1882
+ _getEmulatorOptions(): {
1883
+ mockUserToken?: EmulatorMockTokenOptions | string;
1884
+ };
1881
1885
  _freezeSettings(): FirestoreSettingsImpl;
1882
1886
  _delete(): Promise<void>;
1883
1887
  _restart(): Promise<void>;
@@ -5299,6 +5303,9 @@ export declare interface PrivateSettings extends FirestoreSettings_2 {
5299
5303
  experimentalAutoDetectLongPolling?: boolean;
5300
5304
  experimentalLongPollingOptions?: ExperimentalLongPollingOptions;
5301
5305
  useFetchStreams?: boolean;
5306
+ emulatorOptions?: {
5307
+ mockUserToken?: EmulatorMockTokenOptions | string;
5308
+ };
5302
5309
  localCache?: FirestoreLocalCache;
5303
5310
  }
5304
5311
 
@@ -7519,7 +7526,7 @@ export declare function vector(values?: number[]): VectorValue;
7519
7526
  */
7520
7527
  /**
7521
7528
  * Represents a vector type in Firestore documents.
7522
- * Create an instance with {@link FieldValue.vector}.
7529
+ * Create an instance with <code>{@link vector}</code>.
7523
7530
  *
7524
7531
  * @class VectorValue
7525
7532
  */
@@ -7535,7 +7542,7 @@ export declare class VectorValue {
7535
7542
  */
7536
7543
  toArray(): number[];
7537
7544
  /**
7538
- * Returns `true` if the two VectorValue has the same raw number arrays, returns `false` otherwise.
7545
+ * Returns `true` if the two `VectorValue` values have the same raw number arrays, returns `false` otherwise.
7539
7546
  */
7540
7547
  isEqual(other: VectorValue): boolean;
7541
7548
  }
@@ -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 FieldValue.vector}.
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 has the same raw number arrays, returns `false` otherwise.
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
  }
@@ -31,8 +31,6 @@ export declare function primitiveComparator<T>(left: T, right: T): number;
31
31
  export interface Equatable<T> {
32
32
  isEqual(other: T): boolean;
33
33
  }
34
- /** Compare strings in UTF-8 encoded byte order */
35
- export declare function compareUtf8Strings(left: string, right: string): number;
36
34
  export interface Iterable<V> {
37
35
  forEach: (cb: (v: V) => void) => void;
38
36
  }
@@ -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";