@rebasepro/firebase 0.28.2 → 0.29.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/index.es.js +4 -3
- package/dist/index.es.js.map +1 -1
- package/package.json +8 -8
package/dist/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import { deleteObject, getDownloadURL, getMetadata, getStorage, list, ref, uploa
|
|
|
5
5
|
import { deleteApp, getApps, initializeApp } from "firebase/app";
|
|
6
6
|
import { getToken, initializeAppCheck } from "firebase/app-check";
|
|
7
7
|
import { DEFAULT_DATA_SOURCE_KEY, EntityReference, GeoPoint } from "@rebasepro/types";
|
|
8
|
-
import { COLLECTION_PATH_SEPARATOR, buildRebaseData, normalizeDriverOrderBy, sortProperties, stripCollectionPath, toFilterTuples } from "@rebasepro/common";
|
|
8
|
+
import { COLLECTION_PATH_SEPARATOR, buildRebaseData, buildSdkData, normalizeDriverOrderBy, sortProperties, stripCollectionPath, toFilterTuples } from "@rebasepro/common";
|
|
9
9
|
import { DocumentReference, GeoPoint as GeoPoint$1, Timestamp, VectorValue, and, collection, deleteDoc, deleteField, doc, getCountFromServer, getDoc, getDocs, getFirestore, limit, onSnapshot, or, orderBy, query, serverTimestamp, setDoc, startAfter, vector, where } from "firebase/firestore";
|
|
10
10
|
import Fuse from "fuse.js";
|
|
11
11
|
import { getFunctions, httpsCallable } from "firebase/functions";
|
|
@@ -1043,6 +1043,7 @@ function firestoreCondition(key, op, value, firestore) {
|
|
|
1043
1043
|
if (op === "is-null") return where(key, "==", null);
|
|
1044
1044
|
if (op === "is-not-null") return where(key, "!=", null);
|
|
1045
1045
|
if (op === "like" || op === "ilike" || op === "not-like" || op === "not-ilike") throw new Error(`Firestore does not support the "${op}" operator (SQL pattern matching). Use a full-text search index or the collection's searchString instead.`);
|
|
1046
|
+
if (op === "array-contains-all" || op === "array-contained-by") throw new Error(`Firestore does not support the "${op}" operator: it matches one element of an array (array-contains) or any of a list (array-contains-any).`);
|
|
1046
1047
|
return where(key, op, rebaseToFirestoreModel(value, firestore));
|
|
1047
1048
|
}
|
|
1048
1049
|
/**
|
|
@@ -2801,7 +2802,7 @@ function RebaseFirebaseApp({ name, logo, logoDark, accessGate, collections, view
|
|
|
2801
2802
|
views,
|
|
2802
2803
|
adminViews,
|
|
2803
2804
|
authController,
|
|
2804
|
-
data:
|
|
2805
|
+
data: buildSdkData(firestoreDelegate),
|
|
2805
2806
|
plugins,
|
|
2806
2807
|
collectionRegistryController,
|
|
2807
2808
|
urlController,
|
|
@@ -2831,7 +2832,7 @@ function RebaseFirebaseApp({ name, logo, logoDark, accessGate, collections, view
|
|
|
2831
2832
|
driver: firestoreDelegate
|
|
2832
2833
|
}],
|
|
2833
2834
|
storageSource,
|
|
2834
|
-
entityLinkBuilder: ({
|
|
2835
|
+
entityLinkBuilder: ({ id, path }) => `https://console.firebase.google.com/project/${firebaseApp.options.projectId}/firestore/data/${path}/${id}`,
|
|
2835
2836
|
locale,
|
|
2836
2837
|
onAnalyticsEvent,
|
|
2837
2838
|
plugins,
|