@firebase/firestore 3.12.1 → 3.12.2-20230531163950
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/api/cache_config.d.ts +4 -0
- package/dist/firestore/src/api/database.d.ts +2 -0
- package/dist/firestore/src/api/settings.d.ts +6 -0
- package/dist/index.cjs.js +22 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.esm2017.js +22 -15
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +21 -14
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +20 -13
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +20 -13
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +22 -15
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +12 -0
- package/dist/lite/firestore/src/api/cache_config.d.ts +4 -0
- package/dist/lite/firestore/src/api/database.d.ts +2 -0
- package/dist/lite/firestore/src/api/settings.d.ts +6 -0
- 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.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +2 -2
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/packages/firestore/src/api/cache_config.d.ts +4 -0
- package/dist/lite/packages/firestore/src/api/database.d.ts +2 -0
- package/dist/lite/packages/firestore/src/api/settings.d.ts +6 -0
- package/dist/packages/firestore/dist/index.esm2017.d.ts +4 -0
- package/dist/packages/firestore/src/api/cache_config.d.ts +4 -0
- package/dist/packages/firestore/src/api/database.d.ts +2 -0
- package/dist/packages/firestore/src/api/settings.d.ts +6 -0
- package/dist/private.d.ts +12 -0
- package/package.json +2 -2
|
@@ -129,6 +129,8 @@ export declare type MemoryCacheSettings = {
|
|
|
129
129
|
export declare function memoryLocalCache(settings?: MemoryCacheSettings): MemoryLocalCache;
|
|
130
130
|
/**
|
|
131
131
|
* An settings object to configure an `PersistentLocalCache` instance.
|
|
132
|
+
*
|
|
133
|
+
* Persistent cache cannot be used in a Node.js environment.
|
|
132
134
|
*/
|
|
133
135
|
export declare type PersistentCacheSettings = {
|
|
134
136
|
/**
|
|
@@ -150,6 +152,8 @@ export declare type PersistentCacheSettings = {
|
|
|
150
152
|
/**
|
|
151
153
|
* Creates an instance of `PersistentLocalCache`. The instance can be set to
|
|
152
154
|
* `FirestoreSettings.cache` to tell the SDK which cache layer to use.
|
|
155
|
+
*
|
|
156
|
+
* Persistent cache cannot be used in a Node.js environment.
|
|
153
157
|
*/
|
|
154
158
|
export declare function persistentLocalCache(settings?: PersistentCacheSettings): PersistentLocalCache;
|
|
155
159
|
/**
|
|
@@ -129,6 +129,8 @@ export declare function configureFirestore(firestore: Firestore): void;
|
|
|
129
129
|
* * unimplemented: The browser is incompatible with the offline
|
|
130
130
|
* persistence implementation.
|
|
131
131
|
*
|
|
132
|
+
* Persistence cannot be used in a Node.js environment.
|
|
133
|
+
*
|
|
132
134
|
* @param firestore - The {@link Firestore} instance to enable persistence for.
|
|
133
135
|
* @param persistenceSettings - Optional settings object to configure
|
|
134
136
|
* persistence.
|
|
@@ -21,6 +21,8 @@ export { DEFAULT_HOST } from '../lite-api/settings';
|
|
|
21
21
|
/**
|
|
22
22
|
* Settings that can be passed to `enableIndexedDbPersistence()` to configure
|
|
23
23
|
* Firestore persistence.
|
|
24
|
+
*
|
|
25
|
+
* Persistence cannot be used in a Node.js environment.
|
|
24
26
|
*/
|
|
25
27
|
export interface PersistenceSettings {
|
|
26
28
|
/**
|
|
@@ -74,6 +76,8 @@ export interface FirestoreSettings extends LiteSettings {
|
|
|
74
76
|
* may be removed in a future release. If you find yourself using it to
|
|
75
77
|
* work around a specific network reliability issue, please tell us about
|
|
76
78
|
* it in https://github.com/firebase/firebase-js-sdk/issues/1674.
|
|
79
|
+
*
|
|
80
|
+
* This setting cannot be used in a Node.js environment.
|
|
77
81
|
*/
|
|
78
82
|
experimentalForceLongPolling?: boolean;
|
|
79
83
|
/**
|
|
@@ -87,6 +91,8 @@ export interface FirestoreSettings extends LiteSettings {
|
|
|
87
91
|
* polling is now enabled by default. To disable it, set this setting to
|
|
88
92
|
* `false`, and please open a GitHub issue to share the problems that
|
|
89
93
|
* motivated you disabling long-polling auto-detection.
|
|
94
|
+
*
|
|
95
|
+
* This setting cannot be used in a Node.js environment.
|
|
90
96
|
*/
|
|
91
97
|
experimentalAutoDetectLongPolling?: boolean;
|
|
92
98
|
/**
|
package/dist/index.cjs.js
CHANGED
|
@@ -70,7 +70,7 @@ V.MOCK_USER = new V("mock-user");
|
|
|
70
70
|
* See the License for the specific language governing permissions and
|
|
71
71
|
* limitations under the License.
|
|
72
72
|
*/
|
|
73
|
-
let S = "9.22.
|
|
73
|
+
let S = "9.22.2-20230531163950";
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
@@ -7969,25 +7969,28 @@ function $r(t, e) {
|
|
|
7969
7969
|
const e = ft(t);
|
|
7970
7970
|
if (void 0 !== e && !this.en(e)) return !1;
|
|
7971
7971
|
const n = dt(t);
|
|
7972
|
-
let s =
|
|
7972
|
+
let s = new Set, i = 0, r = 0;
|
|
7973
7973
|
// Process all equalities first. Equalities can appear out of order.
|
|
7974
|
-
for (;
|
|
7974
|
+
for (;i < n.length && this.en(n[i]); ++i) s = s.add(n[i].fieldPath.canonicalString());
|
|
7975
7975
|
// If we already have processed all segments, all segments are used to serve
|
|
7976
7976
|
// the equality filters and we do not need to map any segments to the
|
|
7977
7977
|
// target's inequality and orderBy clauses.
|
|
7978
|
-
if (
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
if (!
|
|
7984
|
-
|
|
7978
|
+
if (i === n.length) return !0;
|
|
7979
|
+
if (void 0 !== this.Ze) {
|
|
7980
|
+
// If there is an inequality filter and the field was not in one of the
|
|
7981
|
+
// equality filters above, the next segment must match both the filter
|
|
7982
|
+
// and the first orderBy clause.
|
|
7983
|
+
if (!s.has(this.Ze.field.canonicalString())) {
|
|
7984
|
+
const t = n[i];
|
|
7985
|
+
if (!this.nn(this.Ze, t) || !this.sn(this.Ye[r++], t)) return !1;
|
|
7986
|
+
}
|
|
7987
|
+
++i;
|
|
7985
7988
|
}
|
|
7986
7989
|
// All remaining segments need to represent the prefix of the target's
|
|
7987
7990
|
// orderBy.
|
|
7988
|
-
for (;
|
|
7989
|
-
const t = n[
|
|
7990
|
-
if (
|
|
7991
|
+
for (;i < n.length; ++i) {
|
|
7992
|
+
const t = n[i];
|
|
7993
|
+
if (r >= this.Ye.length || !this.sn(this.Ye[r++], t)) return !1;
|
|
7991
7994
|
}
|
|
7992
7995
|
return !0;
|
|
7993
7996
|
}
|
|
@@ -18409,6 +18412,8 @@ function Vh(t) {
|
|
|
18409
18412
|
* * unimplemented: The browser is incompatible with the offline
|
|
18410
18413
|
* persistence implementation.
|
|
18411
18414
|
*
|
|
18415
|
+
* Persistence cannot be used in a Node.js environment.
|
|
18416
|
+
*
|
|
18412
18417
|
* @param firestore - The {@link Firestore} instance to enable persistence for.
|
|
18413
18418
|
* @param persistenceSettings - Optional settings object to configure
|
|
18414
18419
|
* persistence.
|
|
@@ -20908,6 +20913,8 @@ class Sf {
|
|
|
20908
20913
|
/**
|
|
20909
20914
|
* Creates an instance of `PersistentLocalCache`. The instance can be set to
|
|
20910
20915
|
* `FirestoreSettings.cache` to tell the SDK which cache layer to use.
|
|
20916
|
+
*
|
|
20917
|
+
* Persistent cache cannot be used in a Node.js environment.
|
|
20911
20918
|
*/ function Nf(t) {
|
|
20912
20919
|
return new bf(t);
|
|
20913
20920
|
}
|
|
@@ -21375,9 +21382,9 @@ function Jf(t, e) {
|
|
|
21375
21382
|
return s = Object.assign({
|
|
21376
21383
|
useFetchStreams: e
|
|
21377
21384
|
}, s), r._setSettings(s), r;
|
|
21378
|
-
}), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(b, "3.12.
|
|
21385
|
+
}), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(b, "3.12.2-20230531163950", t),
|
|
21379
21386
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
21380
|
-
app.registerVersion(b, "3.12.
|
|
21387
|
+
app.registerVersion(b, "3.12.2-20230531163950", "cjs2017");
|
|
21381
21388
|
}();
|
|
21382
21389
|
|
|
21383
21390
|
exports.AbstractUserDataWriter = Wl;
|