@firebase/firestore 3.8.0-20221206221533 → 3.8.0-canary.06dc1364d
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/CHANGELOG.md +5 -6
- package/dist/firestore/src/api/reference_impl.d.ts +2 -1
- package/dist/firestore/src/lite-api/query.d.ts +14 -12
- package/dist/index.d.ts +2 -1
- package/dist/index.esm2017.js +27 -16
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +29 -16
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +27 -15
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +27 -15
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +27 -16
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +17 -14
- package/dist/lite/firestore/src/api/reference_impl.d.ts +2 -1
- package/dist/lite/firestore/src/lite-api/query.d.ts +14 -12
- package/dist/lite/index.browser.esm2017.js +16 -14
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +17 -15
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +16 -14
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +16 -14
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +16 -14
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +15 -13
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +15 -13
- package/dist/lite/packages/firestore/src/api/reference_impl.d.ts +2 -1
- package/dist/lite/packages/firestore/src/lite-api/query.d.ts +14 -12
- package/dist/packages/firestore/dist/index.esm2017.d.ts +17 -14
- package/dist/packages/firestore/src/api/reference_impl.d.ts +2 -1
- package/dist/packages/firestore/src/lite-api/query.d.ts +14 -12
- package/dist/private.d.ts +2 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @firebase/firestore
|
|
2
2
|
|
|
3
|
-
## 3.8.0
|
|
3
|
+
## 3.8.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -13,11 +13,10 @@
|
|
|
13
13
|
### Patch Changes
|
|
14
14
|
|
|
15
15
|
- Updated dependencies [[`c20633ed3`](https://github.com/firebase/firebase-js-sdk/commit/c20633ed35056cbadc9d65d9ceddf4e28d1ea666), [`1625f7a95`](https://github.com/firebase/firebase-js-sdk/commit/1625f7a95cc3ffb666845db0a8044329be74b5be)]:
|
|
16
|
-
- @firebase/util@1.8.0
|
|
17
|
-
- @firebase/
|
|
18
|
-
- @firebase/
|
|
19
|
-
- @firebase/
|
|
20
|
-
- @firebase/webchannel-wrapper@0.9.0-20221206221533
|
|
16
|
+
- @firebase/util@1.8.0
|
|
17
|
+
- @firebase/component@0.6.0
|
|
18
|
+
- @firebase/logger@0.4.0
|
|
19
|
+
- @firebase/webchannel-wrapper@0.9.0
|
|
21
20
|
|
|
22
21
|
## 3.7.3
|
|
23
22
|
|
|
@@ -83,7 +83,8 @@ export declare function getDocFromServer<T>(reference: DocumentReference<T>): Pr
|
|
|
83
83
|
export declare function getDocs<T>(query: Query<T>): Promise<QuerySnapshot<T>>;
|
|
84
84
|
/**
|
|
85
85
|
* Executes the query and returns the results as a `QuerySnapshot` from cache.
|
|
86
|
-
* Returns an
|
|
86
|
+
* Returns an empty result set if no documents matching the query are currently
|
|
87
|
+
* cached.
|
|
87
88
|
*
|
|
88
89
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
89
90
|
*/
|
|
@@ -167,24 +167,26 @@ export declare type QueryNonFilterConstraint = QueryOrderByConstraint | QueryLim
|
|
|
167
167
|
*/
|
|
168
168
|
export declare type QueryFilterConstraint = QueryFieldFilterConstraint | QueryCompositeFilterConstraint;
|
|
169
169
|
/**
|
|
170
|
-
* Creates a {@link QueryCompositeFilterConstraint} that
|
|
171
|
-
*
|
|
170
|
+
* Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
|
|
171
|
+
* the given filter constraints. A disjunction filter includes a document if it
|
|
172
|
+
* satisfies any of the given filters.
|
|
172
173
|
*
|
|
173
|
-
* @param queryConstraints - Optional. The
|
|
174
|
-
*
|
|
175
|
-
* {@link or}, or {@link and}.
|
|
176
|
-
* @returns The created {@link QueryCompositeFilterConstraint}.
|
|
174
|
+
* @param queryConstraints - Optional. The list of
|
|
175
|
+
* {@link QueryFilterConstraint}s to perform a disjunction for. These must be
|
|
176
|
+
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
177
|
+
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
177
178
|
* @internal TODO remove this internal tag with OR Query support in the server
|
|
178
179
|
*/
|
|
179
180
|
export declare function or(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
|
|
180
181
|
/**
|
|
181
|
-
* Creates a {@link QueryCompositeFilterConstraint} that
|
|
182
|
-
*
|
|
182
|
+
* Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
|
|
183
|
+
* the given filter constraints. A conjunction filter includes a document if it
|
|
184
|
+
* satisfies all of the given filters.
|
|
183
185
|
*
|
|
184
|
-
* @param queryConstraints - Optional. The
|
|
185
|
-
*
|
|
186
|
-
* {@link or}, or {@link and}.
|
|
187
|
-
* @returns The created {@link QueryCompositeFilterConstraint}.
|
|
186
|
+
* @param queryConstraints - Optional. The list of
|
|
187
|
+
* {@link QueryFilterConstraint}s to perform a conjunction for. These must be
|
|
188
|
+
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
189
|
+
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
188
190
|
* @internal TODO remove this internal tag with OR Query support in the server
|
|
189
191
|
*/
|
|
190
192
|
export declare function and(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
|
package/dist/index.d.ts
CHANGED
|
@@ -974,7 +974,8 @@ export declare function getDocFromServer<T>(reference: DocumentReference<T>): Pr
|
|
|
974
974
|
export declare function getDocs<T>(query: Query<T>): Promise<QuerySnapshot<T>>;
|
|
975
975
|
/**
|
|
976
976
|
* Executes the query and returns the results as a `QuerySnapshot` from cache.
|
|
977
|
-
* Returns an
|
|
977
|
+
* Returns an empty result set if no documents matching the query are currently
|
|
978
|
+
* cached.
|
|
978
979
|
*
|
|
979
980
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
980
981
|
*/
|
package/dist/index.esm2017.js
CHANGED
|
@@ -66,7 +66,7 @@ P.MOCK_USER = new P("mock-user");
|
|
|
66
66
|
* See the License for the specific language governing permissions and
|
|
67
67
|
* limitations under the License.
|
|
68
68
|
*/
|
|
69
|
-
let v = "9.15.0-
|
|
69
|
+
let v = "9.15.0-canary.06dc1364d";
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
@@ -2994,6 +2994,14 @@ function De(t) {
|
|
|
2994
2994
|
// the same description, such as the int 3 and the string "3". So we should
|
|
2995
2995
|
// add the types in here somehow, too.
|
|
2996
2996
|
return t.field.canonicalString() + t.op.toString() + oe(t.value);
|
|
2997
|
+
if (Ve(t))
|
|
2998
|
+
// Older SDK versions use an implicit AND operation between their filters.
|
|
2999
|
+
// In the new SDK versions, the developer may use an explicit AND filter.
|
|
3000
|
+
// To stay consistent with the old usages, we add a special case to ensure
|
|
3001
|
+
// the canonical ID for these two are the same. For example:
|
|
3002
|
+
// `col.whereEquals("a", 1).whereEquals("b", 2)` should have the same
|
|
3003
|
+
// canonical ID as `col.where(and(equals("a",1), equals("b",2)))`.
|
|
3004
|
+
return t.filters.map((t => De(t))).join(",");
|
|
2997
3005
|
{
|
|
2998
3006
|
// filter instanceof CompositeFilter
|
|
2999
3007
|
const e = t.filters.map((t => De(t))).join(",");
|
|
@@ -19040,13 +19048,14 @@ function sl(t, e, ...n) {
|
|
|
19040
19048
|
}
|
|
19041
19049
|
|
|
19042
19050
|
/**
|
|
19043
|
-
* Creates a {@link QueryCompositeFilterConstraint} that
|
|
19044
|
-
*
|
|
19051
|
+
* Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
|
|
19052
|
+
* the given filter constraints. A disjunction filter includes a document if it
|
|
19053
|
+
* satisfies any of the given filters.
|
|
19045
19054
|
*
|
|
19046
|
-
* @param queryConstraints - Optional. The
|
|
19047
|
-
*
|
|
19048
|
-
* {@link or}, or {@link and}.
|
|
19049
|
-
* @returns The created {@link QueryCompositeFilterConstraint}.
|
|
19055
|
+
* @param queryConstraints - Optional. The list of
|
|
19056
|
+
* {@link QueryFilterConstraint}s to perform a disjunction for. These must be
|
|
19057
|
+
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
19058
|
+
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
19050
19059
|
* @internal TODO remove this internal tag with OR Query support in the server
|
|
19051
19060
|
*/ function ul(...t) {
|
|
19052
19061
|
// Only support QueryFilterConstraints
|
|
@@ -19054,13 +19063,14 @@ function sl(t, e, ...n) {
|
|
|
19054
19063
|
}
|
|
19055
19064
|
|
|
19056
19065
|
/**
|
|
19057
|
-
* Creates a {@link QueryCompositeFilterConstraint} that
|
|
19058
|
-
*
|
|
19066
|
+
* Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
|
|
19067
|
+
* the given filter constraints. A conjunction filter includes a document if it
|
|
19068
|
+
* satisfies all of the given filters.
|
|
19059
19069
|
*
|
|
19060
|
-
* @param queryConstraints - Optional. The
|
|
19061
|
-
*
|
|
19062
|
-
* {@link or}, or {@link and}.
|
|
19063
|
-
* @returns The created {@link QueryCompositeFilterConstraint}.
|
|
19070
|
+
* @param queryConstraints - Optional. The list of
|
|
19071
|
+
* {@link QueryFilterConstraint}s to perform a conjunction for. These must be
|
|
19072
|
+
* created with calls to {@link where}, {@link or}, or {@link and}.
|
|
19073
|
+
* @returns The newly created {@link QueryCompositeFilterConstraint}.
|
|
19064
19074
|
* @internal TODO remove this internal tag with OR Query support in the server
|
|
19065
19075
|
*/ function cl(...t) {
|
|
19066
19076
|
// Only support QueryFilterConstraints
|
|
@@ -19840,7 +19850,8 @@ class Ml extends Pl {
|
|
|
19840
19850
|
|
|
19841
19851
|
/**
|
|
19842
19852
|
* Executes the query and returns the results as a `QuerySnapshot` from cache.
|
|
19843
|
-
* Returns an
|
|
19853
|
+
* Returns an empty result set if no documents matching the query are currently
|
|
19854
|
+
* cached.
|
|
19844
19855
|
*
|
|
19845
19856
|
* @returns A `Promise` that will be resolved with the results of the query.
|
|
19846
19857
|
*/ function Ll(t) {
|
|
@@ -20512,9 +20523,9 @@ function lf(t, e) {
|
|
|
20512
20523
|
return s = Object.assign({
|
|
20513
20524
|
useFetchStreams: e
|
|
20514
20525
|
}, s), r._setSettings(s), r;
|
|
20515
|
-
}), "PUBLIC").setMultipleInstances(!0)), registerVersion(b, "3.8.0-
|
|
20526
|
+
}), "PUBLIC").setMultipleInstances(!0)), registerVersion(b, "3.8.0-canary.06dc1364d", t),
|
|
20516
20527
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
20517
|
-
registerVersion(b, "3.8.0-
|
|
20528
|
+
registerVersion(b, "3.8.0-canary.06dc1364d", "esm2017");
|
|
20518
20529
|
}();
|
|
20519
20530
|
|
|
20520
20531
|
export { Pl as AbstractUserDataWriter, Sa as AggregateField, Da as AggregateQuerySnapshot, Ih as Bytes, sh as CACHE_SIZE_UNLIMITED, Ia as CollectionReference, ya as DocumentReference, Dl as DocumentSnapshot, Th as FieldPath, Ah as FieldValue, ih as Firestore, L as FirestoreError, Rh as GeoPoint, nh as LoadBundleTask, pa as Query, ol as QueryCompositeFilterConstraint, nl as QueryConstraint, Cl as QueryDocumentSnapshot, gl as QueryEndAtConstraint, il as QueryFieldFilterConstraint, ll as QueryLimitConstraint, al as QueryOrderByConstraint, xl as QuerySnapshot, _l as QueryStartAtConstraint, Sl as SnapshotMetadata, nt as Timestamp, ef as Transaction, Zl as WriteBatch, Ft as _DatabaseId, ct as _DocumentKey, J as _EmptyAppCheckTokenProvider, K as _EmptyAuthCredentialsProvider, ut as _FieldPath, fa as _cast, F as _debugAssert, Gt as _isBase64Available, N as _logWarn, ca as _validateIsNotUsedTogether, Ql as addDoc, Jl as aggregateQuerySnapshotEqual, cl as and, uf as arrayRemove, of as arrayUnion, fh as clearIndexedDbPersistence, Ta as collection, Ea as collectionGroup, ga as connectFirestoreEmulator, Gl as deleteDoc, sf as deleteField, wh as disableNetwork, Aa as doc, Eh as documentId, ah as enableIndexedDbPersistence, hh as enableMultiTabIndexedDbPersistence, _h as enableNetwork, pl as endAt, yl as endBefore, uh as ensureFirestoreConfigured, zl as executeWrite, Yl as getCountFromServer, Ol as getDoc, Fl as getDocFromCache, $l as getDocFromServer, Bl as getDocs, Ll as getDocsFromCache, ql as getDocsFromServer, oh as getFirestore, cf as increment, rh as initializeFirestore, fl as limit, dl as limitToLast, gh as loadBundle, yh as namedQuery, jl as onSnapshot, Wl as onSnapshotsInSync, ul as or, hl as orderBy, sl as query, ba as queryEqual, Ra as refEqual, nf as runTransaction, rf as serverTimestamp, Ul as setDoc, hf as setIndexConfiguration, D as setLogLevel, kl as snapshotEqual, ml as startAfter, wl as startAt, mh as terminate, Kl as updateDoc, dh as waitForPendingWrites, rl as where, af as writeBatch };
|