@firebase/firestore 4.0.0-20230706020734 → 4.0.0
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 +24 -8
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +3 -3
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +3 -3
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +2 -2
- package/dist/index.node.mjs +2 -2
- package/dist/index.rn.js +3 -3
- package/dist/index.rn.js.map +1 -1
- package/dist/lite/index.browser.esm2017.js +2 -2
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +2 -2
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.cjs.js +2 -2
- package/dist/lite/index.cjs.js.map +1 -1
- package/dist/lite/index.node.cjs.js +2 -2
- package/dist/lite/index.node.mjs +2 -2
- package/dist/lite/index.rn.esm2017.js +2 -2
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/package.json +4 -4
|
@@ -603,7 +603,10 @@ interface GetOptions {
|
|
|
603
603
|
readonly source?: 'default' | 'server' | 'cache';
|
|
604
604
|
}
|
|
605
605
|
|
|
606
|
-
declare class DocumentReference$1<
|
|
606
|
+
declare class DocumentReference$1<
|
|
607
|
+
T = DocumentData$1,
|
|
608
|
+
T2 extends DocumentData$1 = DocumentData$1
|
|
609
|
+
> {
|
|
607
610
|
private constructor();
|
|
608
611
|
|
|
609
612
|
readonly id: string;
|
|
@@ -669,7 +672,10 @@ interface SnapshotMetadata$1 {
|
|
|
669
672
|
isEqual(other: SnapshotMetadata$1): boolean;
|
|
670
673
|
}
|
|
671
674
|
|
|
672
|
-
declare class DocumentSnapshot$2<
|
|
675
|
+
declare class DocumentSnapshot$2<
|
|
676
|
+
T = DocumentData$1,
|
|
677
|
+
T2 extends DocumentData$1 = DocumentData$1
|
|
678
|
+
> {
|
|
673
679
|
protected constructor();
|
|
674
680
|
|
|
675
681
|
readonly exists: boolean;
|
|
@@ -685,8 +691,9 @@ declare class DocumentSnapshot$2<T = DocumentData$1> {
|
|
|
685
691
|
}
|
|
686
692
|
|
|
687
693
|
declare class QueryDocumentSnapshot$2<
|
|
688
|
-
T = DocumentData$1
|
|
689
|
-
|
|
694
|
+
T = DocumentData$1,
|
|
695
|
+
T2 extends DocumentData$1 = DocumentData$1
|
|
696
|
+
> extends DocumentSnapshot$2<T, T2> {
|
|
690
697
|
private constructor();
|
|
691
698
|
|
|
692
699
|
data(options?: SnapshotOptions$1): T;
|
|
@@ -706,7 +713,7 @@ type WhereFilterOp$1 =
|
|
|
706
713
|
| 'array-contains-any'
|
|
707
714
|
| 'not-in';
|
|
708
715
|
|
|
709
|
-
declare class Query$2<T = DocumentData$1> {
|
|
716
|
+
declare class Query$2<T = DocumentData$1, T2 extends DocumentData$1 = DocumentData$1> {
|
|
710
717
|
protected constructor();
|
|
711
718
|
|
|
712
719
|
readonly firestore: FirebaseFirestore;
|
|
@@ -771,7 +778,10 @@ declare class Query$2<T = DocumentData$1> {
|
|
|
771
778
|
withConverter<U>(converter: FirestoreDataConverter$2<U>): Query$2<U>;
|
|
772
779
|
}
|
|
773
780
|
|
|
774
|
-
declare class QuerySnapshot$1<
|
|
781
|
+
declare class QuerySnapshot$1<
|
|
782
|
+
T = DocumentData$1,
|
|
783
|
+
T2 extends DocumentData$1 = DocumentData$1
|
|
784
|
+
> {
|
|
775
785
|
private constructor();
|
|
776
786
|
|
|
777
787
|
readonly query: Query$2<T>;
|
|
@@ -792,14 +802,20 @@ declare class QuerySnapshot$1<T = DocumentData$1> {
|
|
|
792
802
|
|
|
793
803
|
type DocumentChangeType$1 = 'added' | 'removed' | 'modified';
|
|
794
804
|
|
|
795
|
-
interface DocumentChange$1<
|
|
805
|
+
interface DocumentChange$1<
|
|
806
|
+
T = DocumentData$1,
|
|
807
|
+
T2 extends DocumentData$1 = DocumentData$1
|
|
808
|
+
> {
|
|
796
809
|
readonly type: DocumentChangeType$1;
|
|
797
810
|
readonly doc: QueryDocumentSnapshot$2<T>;
|
|
798
811
|
readonly oldIndex: number;
|
|
799
812
|
readonly newIndex: number;
|
|
800
813
|
}
|
|
801
814
|
|
|
802
|
-
declare class CollectionReference$1<
|
|
815
|
+
declare class CollectionReference$1<
|
|
816
|
+
T = DocumentData$1,
|
|
817
|
+
T2 extends DocumentData$1 = DocumentData$1
|
|
818
|
+
> extends Query$2<T, T2> {
|
|
803
819
|
private constructor();
|
|
804
820
|
|
|
805
821
|
readonly id: string;
|
package/dist/index.cjs.js
CHANGED
|
@@ -70,7 +70,7 @@ User.MOCK_USER = new User("mock-user");
|
|
|
70
70
|
* See the License for the specific language governing permissions and
|
|
71
71
|
* limitations under the License.
|
|
72
72
|
*/
|
|
73
|
-
let b = "10.0.0
|
|
73
|
+
let b = "10.0.0";
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
@@ -21551,9 +21551,9 @@ function __PRIVATE_tryGetString(e, t) {
|
|
|
21551
21551
|
return r = Object.assign({
|
|
21552
21552
|
useFetchStreams: t
|
|
21553
21553
|
}, r), s._setSettings(r), s;
|
|
21554
|
-
}), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(S, "4.0.0
|
|
21554
|
+
}), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(S, "4.0.0", e),
|
|
21555
21555
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
21556
|
-
app.registerVersion(S, "4.0.0
|
|
21556
|
+
app.registerVersion(S, "4.0.0", "cjs2017");
|
|
21557
21557
|
}();
|
|
21558
21558
|
|
|
21559
21559
|
exports.AbstractUserDataWriter = AbstractUserDataWriter;
|