@firebase/firestore 3.1.1 → 3.2.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/CHANGELOG.md +12 -0
- package/dist/firestore/src/register.d.ts +1 -1
- package/dist/firestore/src/remote/persistent_stream.d.ts +5 -1
- package/dist/firestore/src/util/async_queue.d.ts +4 -2
- package/dist/index.esm2017.js +1055 -1047
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +1483 -1474
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +7049 -9102
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/{index.node.cjs.esm2017.js → index.node.mjs} +51 -20
- package/dist/index.node.mjs.map +1 -0
- package/dist/index.rn.js +534 -526
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +4 -2
- package/dist/lite/firestore/src/register.d.ts +1 -1
- package/dist/lite/firestore/src/remote/persistent_stream.d.ts +5 -1
- package/dist/lite/firestore/src/util/async_queue.d.ts +4 -2
- 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.node.cjs.js +1804 -2261
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/{index.node.esm2017.js → index.node.mjs} +3 -3
- package/dist/lite/index.node.mjs.map +1 -0
- package/dist/lite/index.rn.esm2017.js +2 -2
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +4 -2
- package/dist/lite/packages/firestore/src/register.d.ts +1 -1
- package/dist/lite/packages/firestore/src/remote/persistent_stream.d.ts +5 -1
- package/dist/lite/packages/firestore/src/util/async_queue.d.ts +4 -2
- package/dist/lite/private.d.ts +4 -2
- package/dist/packages/firestore/dist/index.esm2017.d.ts +102 -102
- package/dist/packages/firestore/src/register.d.ts +1 -1
- package/dist/packages/firestore/src/remote/persistent_stream.d.ts +5 -1
- package/dist/packages/firestore/src/util/async_queue.d.ts +4 -2
- package/dist/private.d.ts +4 -2
- package/lite/package.json +1 -1
- package/package.json +15 -9
- package/dist/index.node.cjs.esm2017.js.map +0 -1
- package/dist/lite/firestore/dist/lite/index.node.esm2017.d.ts +0 -1195
- package/dist/lite/index.node.esm2017.js.map +0 -1
- package/dist/packages/firestore/dist/index.node.cjs.esm2017.d.ts +0 -1844
package/dist/internal.d.ts
CHANGED
|
@@ -4931,15 +4931,17 @@ declare const enum TimerId {
|
|
|
4931
4931
|
/** All can be used with runDelayedOperationsEarly() to run all timers. */
|
|
4932
4932
|
All = "all",
|
|
4933
4933
|
/**
|
|
4934
|
-
* The following
|
|
4934
|
+
* The following 5 timers are used in persistent_stream.ts for the listen and
|
|
4935
4935
|
* write streams. The "Idle" timer is used to close the stream due to
|
|
4936
4936
|
* inactivity. The "ConnectionBackoff" timer is used to restart a stream once
|
|
4937
|
-
* the appropriate backoff delay has elapsed.
|
|
4937
|
+
* the appropriate backoff delay has elapsed. The health check is used to mark
|
|
4938
|
+
* a stream healthy if it has not received an error during its initial setup.
|
|
4938
4939
|
*/
|
|
4939
4940
|
ListenStreamIdle = "listen_stream_idle",
|
|
4940
4941
|
ListenStreamConnectionBackoff = "listen_stream_connection_backoff",
|
|
4941
4942
|
WriteStreamIdle = "write_stream_idle",
|
|
4942
4943
|
WriteStreamConnectionBackoff = "write_stream_connection_backoff",
|
|
4944
|
+
HealthCheckTimeout = "health_check_timeout",
|
|
4943
4945
|
/**
|
|
4944
4946
|
* A timer used in online_state_tracker.ts to transition from
|
|
4945
4947
|
* OnlineState.Unknown to Offline after a set timeout, rather than waiting
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
export declare function registerFirestore(variant?: string): void;
|
|
17
|
+
export declare function registerFirestore(variant?: string, useFetchStreams?: boolean): void;
|
|
@@ -80,6 +80,7 @@ export interface PersistentStreamListener {
|
|
|
80
80
|
export declare abstract class PersistentStream<SendType, ReceiveType, ListenerType extends PersistentStreamListener> {
|
|
81
81
|
private queue;
|
|
82
82
|
private idleTimerId;
|
|
83
|
+
private healthTimerId;
|
|
83
84
|
protected connection: Connection;
|
|
84
85
|
private credentialsProvider;
|
|
85
86
|
protected listener: ListenerType;
|
|
@@ -91,9 +92,10 @@ export declare abstract class PersistentStream<SendType, ReceiveType, ListenerTy
|
|
|
91
92
|
*/
|
|
92
93
|
private closeCount;
|
|
93
94
|
private idleTimer;
|
|
95
|
+
private healthCheck;
|
|
94
96
|
private stream;
|
|
95
97
|
protected backoff: ExponentialBackoff;
|
|
96
|
-
constructor(queue: AsyncQueue, connectionTimerId: TimerId, idleTimerId: TimerId, connection: Connection, credentialsProvider: CredentialsProvider, listener: ListenerType);
|
|
98
|
+
constructor(queue: AsyncQueue, connectionTimerId: TimerId, idleTimerId: TimerId, healthTimerId: TimerId, connection: Connection, credentialsProvider: CredentialsProvider, listener: ListenerType);
|
|
97
99
|
/**
|
|
98
100
|
* Returns true if start() has been called and no error has occurred. True
|
|
99
101
|
* indicates the stream is open or in the process of opening (which
|
|
@@ -148,6 +150,8 @@ export declare abstract class PersistentStream<SendType, ReceiveType, ListenerTy
|
|
|
148
150
|
private handleIdleCloseTimer;
|
|
149
151
|
/** Marks the stream as active again. */
|
|
150
152
|
private cancelIdleCheck;
|
|
153
|
+
/** Cancels the health check delayed operation. */
|
|
154
|
+
private cancelHealthCheck;
|
|
151
155
|
/**
|
|
152
156
|
* Closes the stream and cleans up as necessary:
|
|
153
157
|
*
|
|
@@ -26,15 +26,17 @@ export declare const enum TimerId {
|
|
|
26
26
|
/** All can be used with runDelayedOperationsEarly() to run all timers. */
|
|
27
27
|
All = "all",
|
|
28
28
|
/**
|
|
29
|
-
* The following
|
|
29
|
+
* The following 5 timers are used in persistent_stream.ts for the listen and
|
|
30
30
|
* write streams. The "Idle" timer is used to close the stream due to
|
|
31
31
|
* inactivity. The "ConnectionBackoff" timer is used to restart a stream once
|
|
32
|
-
* the appropriate backoff delay has elapsed.
|
|
32
|
+
* the appropriate backoff delay has elapsed. The health check is used to mark
|
|
33
|
+
* a stream healthy if it has not received an error during its initial setup.
|
|
33
34
|
*/
|
|
34
35
|
ListenStreamIdle = "listen_stream_idle",
|
|
35
36
|
ListenStreamConnectionBackoff = "listen_stream_connection_backoff",
|
|
36
37
|
WriteStreamIdle = "write_stream_idle",
|
|
37
38
|
WriteStreamConnectionBackoff = "write_stream_connection_backoff",
|
|
39
|
+
HealthCheckTimeout = "health_check_timeout",
|
|
38
40
|
/**
|
|
39
41
|
* A timer used in online_state_tracker.ts to transition from
|
|
40
42
|
* OnlineState.Unknown to Offline after a set timeout, rather than waiting
|
|
@@ -63,7 +63,7 @@ h.MOCK_USER = new h("mock-user");
|
|
|
63
63
|
* See the License for the specific language governing permissions and
|
|
64
64
|
* limitations under the License.
|
|
65
65
|
*/
|
|
66
|
-
let l = "9.
|
|
66
|
+
let l = "9.2.0";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* @license
|
|
@@ -5911,7 +5911,7 @@ class Cr {
|
|
|
5911
5911
|
return e && r._setSettings(e), r;
|
|
5912
5912
|
}), "PUBLIC" /* PUBLIC */)),
|
|
5913
5913
|
// RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
|
|
5914
|
-
registerVersion("firestore-lite", "3.
|
|
5914
|
+
registerVersion("firestore-lite", "3.2.0", ""), registerVersion("firestore-lite", "3.2.0", "esm2017");
|
|
5915
5915
|
|
|
5916
5916
|
export { yn as Bytes, an as CollectionReference, un as DocumentReference, Gn as DocumentSnapshot, mn as FieldPath, _n as FieldValue, en as Firestore, L as FirestoreError, gn as GeoPoint, cn as Query, Jn as QueryConstraint, Wn as QueryDocumentSnapshot, Hn as QuerySnapshot, pt as Timestamp, Cr as Transaction, Dr as WriteBatch, Tr as addDoc, Rr as arrayRemove, Pr as arrayUnion, hn as collection, ln as collectionGroup, sn as connectFirestoreEmulator, Er as deleteDoc, Ir as deleteField, fn as doc, pn as documentId, lr as endAt, hr as endBefore, _r as getDoc, gr as getDocs, rn as getFirestore, Vr as increment, nn as initializeFirestore, sr as limit, ir as limitToLast, nr as orderBy, Zn as query, wn as queryEqual, dn as refEqual, Lr as runTransaction, Ar as serverTimestamp, br as setDoc, d as setLogLevel, Yn as snapshotEqual, cr as startAfter, ur as startAt, on as terminate, vr as updateDoc, tr as where, $r as writeBatch };
|
|
5917
5917
|
//# sourceMappingURL=index.browser.esm2017.js.map
|