@firebase/firestore 3.12.2 → 3.13.0-20230620202556

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 (40) hide show
  1. package/dist/firestore/src/api/database.d.ts +5 -5
  2. package/dist/firestore/src/lite-api/database.d.ts +6 -6
  3. package/dist/index.cjs.js +4 -4
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.d.ts +23 -3
  6. package/dist/index.esm2017.js +4 -4
  7. package/dist/index.esm2017.js.map +1 -1
  8. package/dist/index.esm5.js +4 -4
  9. package/dist/index.esm5.js.map +1 -1
  10. package/dist/index.node.cjs.js +3 -3
  11. package/dist/index.node.cjs.js.map +1 -1
  12. package/dist/index.node.mjs +3 -3
  13. package/dist/index.node.mjs.map +1 -1
  14. package/dist/index.rn.js +4 -4
  15. package/dist/index.rn.js.map +1 -1
  16. package/dist/internal.d.ts +5 -5
  17. package/dist/lite/firestore/src/api/database.d.ts +5 -5
  18. package/dist/lite/firestore/src/lite-api/database.d.ts +6 -6
  19. package/dist/lite/index.browser.esm2017.js +2 -2
  20. package/dist/lite/index.browser.esm2017.js.map +1 -1
  21. package/dist/lite/index.browser.esm5.js +2 -2
  22. package/dist/lite/index.browser.esm5.js.map +1 -1
  23. package/dist/lite/index.cjs.js +2 -2
  24. package/dist/lite/index.cjs.js.map +1 -1
  25. package/dist/lite/index.d.ts +36 -2
  26. package/dist/lite/index.node.cjs.js +2 -2
  27. package/dist/lite/index.node.cjs.js.map +1 -1
  28. package/dist/lite/index.node.mjs +2 -2
  29. package/dist/lite/index.node.mjs.map +1 -1
  30. package/dist/lite/index.rn.esm2017.js +2 -2
  31. package/dist/lite/index.rn.esm2017.js.map +1 -1
  32. package/dist/lite/internal.d.ts +6 -6
  33. package/dist/lite/packages/firestore/src/api/database.d.ts +5 -5
  34. package/dist/lite/packages/firestore/src/lite-api/database.d.ts +6 -6
  35. package/dist/lite/private.d.ts +36 -3
  36. package/dist/packages/firestore/dist/index.esm2017.d.ts +1 -1
  37. package/dist/packages/firestore/src/api/database.d.ts +5 -5
  38. package/dist/packages/firestore/src/lite-api/database.d.ts +6 -6
  39. package/dist/private.d.ts +23 -3
  40. package/package.json +1 -1
@@ -795,8 +795,28 @@ export declare function getFirestore(): Firestore;
795
795
  * @returns The {@link Firestore} instance of the provided app.
796
796
  */
797
797
  export declare function getFirestore(app: FirebaseApp): Firestore;
798
- /* Excluded declaration from this release type: getFirestore */
799
- /* Excluded declaration from this release type: getFirestore */
798
+ /**
799
+ * Returns the existing {@link Firestore} instance that is associated with the
800
+ * default {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
801
+ * instance with default settings.
802
+ *
803
+ * @param databaseId - The name of the database.
804
+ * @returns The {@link Firestore} instance of the provided app.
805
+ * @beta
806
+ */
807
+ export declare function getFirestore(databaseId: string): Firestore;
808
+ /**
809
+ * Returns the existing {@link Firestore} instance that is associated with the
810
+ * provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
811
+ * instance with default settings.
812
+ *
813
+ * @param app - The {@link @firebase/app#FirebaseApp} instance that the returned {@link Firestore}
814
+ * instance is associated with.
815
+ * @param databaseId - The name of the database.
816
+ * @returns The {@link Firestore} instance of the provided app.
817
+ * @beta
818
+ */
819
+ export declare function getFirestore(app: FirebaseApp, databaseId: string): Firestore;
800
820
  /**
801
821
  * Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link
802
822
  * @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by
@@ -829,6 +849,20 @@ export declare function increment(n: number): FieldValue;
829
849
  * @returns A newly initialized `Firestore` instance.
830
850
  */
831
851
  export declare function initializeFirestore(app: FirebaseApp, settings: Settings): Firestore;
852
+ /**
853
+ * Initializes a new instance of Cloud Firestore with the provided settings.
854
+ * Can only be called before any other functions, including
855
+ * {@link (getFirestore:1)}. If the custom settings are empty, this function is
856
+ * equivalent to calling {@link (getFirestore:1)}.
857
+ *
858
+ * @param app - The {@link @firebase/app#FirebaseApp} with which the `Firestore` instance will
859
+ * be associated.
860
+ * @param settings - A settings object to configure the `Firestore` instance.
861
+ * @param databaseId - The name of the database.
862
+ * @returns A newly initialized `Firestore` instance.
863
+ * @beta
864
+ */
865
+ export declare function initializeFirestore(app: FirebaseApp, settings: Settings, databaseId?: string): Firestore;
832
866
  /**
833
867
  * Creates a {@link QueryLimitConstraint} that only returns the first matching
834
868
  * documents.
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
 
15
15
  var nodeFetch__default = /*#__PURE__*/_interopDefaultLegacy(nodeFetch);
16
16
 
17
- const version$1 = "3.12.2";
17
+ const version$1 = "3.13.0-20230620202556";
18
18
 
19
19
  /**
20
20
  * @license
@@ -67,7 +67,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
67
67
  User.FIRST_PARTY = new User('first-party-uid');
68
68
  User.MOCK_USER = new User('mock-user');
69
69
 
70
- const version = "9.22.2";
70
+ const version = "9.22.3-20230620202556";
71
71
 
72
72
  /**
73
73
  * @license