@firebase/firestore 3.1.1 → 3.2.0-canary.477bdef13
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 +534 -526
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +757 -748
- 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 +69 -69
- 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 +38 -38
- 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 +20 -14
- 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/lite/internal.d.ts
CHANGED
|
@@ -2243,15 +2243,17 @@ declare const enum TimerId {
|
|
|
2243
2243
|
/** All can be used with runDelayedOperationsEarly() to run all timers. */
|
|
2244
2244
|
All = "all",
|
|
2245
2245
|
/**
|
|
2246
|
-
* The following
|
|
2246
|
+
* The following 5 timers are used in persistent_stream.ts for the listen and
|
|
2247
2247
|
* write streams. The "Idle" timer is used to close the stream due to
|
|
2248
2248
|
* inactivity. The "ConnectionBackoff" timer is used to restart a stream once
|
|
2249
|
-
* the appropriate backoff delay has elapsed.
|
|
2249
|
+
* the appropriate backoff delay has elapsed. The health check is used to mark
|
|
2250
|
+
* a stream healthy if it has not received an error during its initial setup.
|
|
2250
2251
|
*/
|
|
2251
2252
|
ListenStreamIdle = "listen_stream_idle",
|
|
2252
2253
|
ListenStreamConnectionBackoff = "listen_stream_connection_backoff",
|
|
2253
2254
|
WriteStreamIdle = "write_stream_idle",
|
|
2254
2255
|
WriteStreamConnectionBackoff = "write_stream_connection_backoff",
|
|
2256
|
+
HealthCheckTimeout = "health_check_timeout",
|
|
2255
2257
|
/**
|
|
2256
2258
|
* A timer used in online_state_tracker.ts to transition from
|
|
2257
2259
|
* 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
|
package/dist/lite/private.d.ts
CHANGED
|
@@ -2111,15 +2111,17 @@ declare const enum TimerId {
|
|
|
2111
2111
|
/** All can be used with runDelayedOperationsEarly() to run all timers. */
|
|
2112
2112
|
All = "all",
|
|
2113
2113
|
/**
|
|
2114
|
-
* The following
|
|
2114
|
+
* The following 5 timers are used in persistent_stream.ts for the listen and
|
|
2115
2115
|
* write streams. The "Idle" timer is used to close the stream due to
|
|
2116
2116
|
* inactivity. The "ConnectionBackoff" timer is used to restart a stream once
|
|
2117
|
-
* the appropriate backoff delay has elapsed.
|
|
2117
|
+
* the appropriate backoff delay has elapsed. The health check is used to mark
|
|
2118
|
+
* a stream healthy if it has not received an error during its initial setup.
|
|
2118
2119
|
*/
|
|
2119
2120
|
ListenStreamIdle = "listen_stream_idle",
|
|
2120
2121
|
ListenStreamConnectionBackoff = "listen_stream_connection_backoff",
|
|
2121
2122
|
WriteStreamIdle = "write_stream_idle",
|
|
2122
2123
|
WriteStreamConnectionBackoff = "write_stream_connection_backoff",
|
|
2124
|
+
HealthCheckTimeout = "health_check_timeout",
|
|
2123
2125
|
/**
|
|
2124
2126
|
* A timer used in online_state_tracker.ts to transition from
|
|
2125
2127
|
* OnlineState.Unknown to Offline after a set timeout, rather than waiting
|
|
@@ -1382,16 +1382,16 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1382
1382
|
* See the License for the specific language governing permissions and
|
|
1383
1383
|
* limitations under the License.
|
|
1384
1384
|
*/ declare class Dc {
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
wa: boolean;
|
|
1388
|
-
_a: any[];
|
|
1389
|
-
ma: any;
|
|
1385
|
+
_a: Promise<void>;
|
|
1386
|
+
ma: any[];
|
|
1390
1387
|
ga: boolean;
|
|
1391
|
-
ya:
|
|
1392
|
-
pa: any
|
|
1393
|
-
|
|
1394
|
-
|
|
1388
|
+
ya: any[];
|
|
1389
|
+
pa: any;
|
|
1390
|
+
Ta: boolean;
|
|
1391
|
+
Ea: boolean;
|
|
1392
|
+
Ia: any[];
|
|
1393
|
+
cr: Xr;
|
|
1394
|
+
Aa: () => void;
|
|
1395
1395
|
get isShuttingDown(): boolean;
|
|
1396
1396
|
/**
|
|
1397
1397
|
* Adds a new operation to the queue without waiting for it to complete (i.e.
|
|
@@ -1404,30 +1404,30 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1404
1404
|
/**
|
|
1405
1405
|
* Runs the next operation from the retryable queue. If the operation fails,
|
|
1406
1406
|
* reschedules with backoff.
|
|
1407
|
-
*/
|
|
1408
|
-
|
|
1407
|
+
*/ Pa(): Promise<void>;
|
|
1408
|
+
ba(t: any): Promise<any>;
|
|
1409
1409
|
enqueueAfterDelay(t: any, e: any, n: any): xo;
|
|
1410
|
-
|
|
1410
|
+
Ra(): void;
|
|
1411
1411
|
verifyOperationInProgress(): void;
|
|
1412
1412
|
/**
|
|
1413
1413
|
* Waits until all currently queued tasks are finished executing. Delayed
|
|
1414
1414
|
* operations are not run.
|
|
1415
|
-
*/
|
|
1415
|
+
*/ Va(): Promise<void>;
|
|
1416
1416
|
/**
|
|
1417
1417
|
* For Tests: Determine if a delayed operation with a particular TimerId
|
|
1418
1418
|
* exists.
|
|
1419
|
-
*/
|
|
1419
|
+
*/ Sa(t: any): boolean;
|
|
1420
1420
|
/**
|
|
1421
1421
|
* For Tests: Runs some or all delayed operations early.
|
|
1422
1422
|
*
|
|
1423
1423
|
* @param lastTimerId - Delayed operations up to and including this TimerId
|
|
1424
1424
|
* will be drained. Pass TimerId.All to run all delayed operations.
|
|
1425
1425
|
* @returns a Promise that resolves once all operations have been run.
|
|
1426
|
-
*/
|
|
1426
|
+
*/ Da(t: any): Promise<void>;
|
|
1427
1427
|
/**
|
|
1428
1428
|
* For Tests: Skip all subsequent delays for a timer id.
|
|
1429
|
-
*/
|
|
1430
|
-
/** Called once a DelayedOperation is run or canceled. */
|
|
1429
|
+
*/ Ca(t: any): void;
|
|
1430
|
+
/** Called once a DelayedOperation is run or canceled. */ va(t: any): void;
|
|
1431
1431
|
}
|
|
1432
1432
|
/**
|
|
1433
1433
|
* @license
|
|
@@ -1457,7 +1457,7 @@ declare function _h(t: any, e: any, n: any, ...s: any[]): Promise<any>;
|
|
|
1457
1457
|
databaseId: any;
|
|
1458
1458
|
ignoreUndefinedProperties: any;
|
|
1459
1459
|
N: any;
|
|
1460
|
-
/** Creates a new top-level parse context. */
|
|
1460
|
+
/** Creates a new top-level parse context. */ Ka(t: any, e: any, n: any, s?: boolean): ru;
|
|
1461
1461
|
}
|
|
1462
1462
|
/**
|
|
1463
1463
|
* @license
|
|
@@ -1501,13 +1501,13 @@ declare class ut {
|
|
|
1501
1501
|
}
|
|
1502
1502
|
declare class du extends Zc {
|
|
1503
1503
|
constructor(t: any, e: any);
|
|
1504
|
-
|
|
1504
|
+
ja: any;
|
|
1505
1505
|
_toFieldTransform(t: any): je;
|
|
1506
1506
|
isEqual(t: any): boolean;
|
|
1507
1507
|
}
|
|
1508
1508
|
declare class fu extends Zc {
|
|
1509
1509
|
constructor(t: any, e: any);
|
|
1510
|
-
|
|
1510
|
+
ja: any;
|
|
1511
1511
|
_toFieldTransform(t: any): je;
|
|
1512
1512
|
isEqual(t: any): boolean;
|
|
1513
1513
|
}
|
|
@@ -1518,27 +1518,27 @@ declare class uu extends Zc {
|
|
|
1518
1518
|
declare class Hu extends Fu {
|
|
1519
1519
|
constructor(t: any, e: any, n: any);
|
|
1520
1520
|
type: any;
|
|
1521
|
-
|
|
1522
|
-
|
|
1521
|
+
Xa: any;
|
|
1522
|
+
Za: any;
|
|
1523
1523
|
_apply(t: any): Ac;
|
|
1524
1524
|
}
|
|
1525
1525
|
declare class wu extends Zc {
|
|
1526
1526
|
constructor(t: any, e: any);
|
|
1527
|
-
|
|
1527
|
+
Qa: any;
|
|
1528
1528
|
_toFieldTransform(t: any): je;
|
|
1529
1529
|
isEqual(t: any): boolean;
|
|
1530
1530
|
}
|
|
1531
1531
|
declare class Ku extends Fu {
|
|
1532
1532
|
constructor(t: any, e: any, n: any);
|
|
1533
1533
|
type: any;
|
|
1534
|
-
|
|
1535
|
-
|
|
1534
|
+
Ja: any;
|
|
1535
|
+
Ya: any;
|
|
1536
1536
|
_apply(t: any): Ac;
|
|
1537
1537
|
}
|
|
1538
1538
|
declare class Uu extends Fu {
|
|
1539
1539
|
constructor(t: any, e: any);
|
|
1540
|
-
Ka: any;
|
|
1541
1540
|
Wa: any;
|
|
1541
|
+
Ha: any;
|
|
1542
1542
|
type: string;
|
|
1543
1543
|
_apply(t: any): Ac;
|
|
1544
1544
|
}
|
|
@@ -1549,15 +1549,15 @@ declare class lu extends Zc {
|
|
|
1549
1549
|
declare class Wu extends Fu {
|
|
1550
1550
|
constructor(t: any, e: any, n: any);
|
|
1551
1551
|
type: any;
|
|
1552
|
-
|
|
1553
|
-
|
|
1552
|
+
Xa: any;
|
|
1553
|
+
Za: any;
|
|
1554
1554
|
_apply(t: any): Ac;
|
|
1555
1555
|
}
|
|
1556
1556
|
declare class Lu extends Fu {
|
|
1557
1557
|
constructor(t: any, e: any, n: any);
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1558
|
+
Wa: any;
|
|
1559
|
+
Ga: any;
|
|
1560
|
+
za: any;
|
|
1561
1561
|
type: string;
|
|
1562
1562
|
_apply(t: any): Ac;
|
|
1563
1563
|
}
|
|
@@ -1733,15 +1733,15 @@ declare class xo {
|
|
|
1733
1733
|
fieldTransforms: any;
|
|
1734
1734
|
fieldMask: any;
|
|
1735
1735
|
get path(): any;
|
|
1736
|
-
get
|
|
1737
|
-
/** Returns a new context with the specified settings overwritten. */
|
|
1738
|
-
Na(t: any): ru;
|
|
1736
|
+
get xa(): any;
|
|
1737
|
+
/** Returns a new context with the specified settings overwritten. */ ka(t: any): ru;
|
|
1739
1738
|
$a(t: any): ru;
|
|
1740
|
-
|
|
1741
|
-
|
|
1739
|
+
Ma(t: any): ru;
|
|
1740
|
+
La(t: any): ru;
|
|
1741
|
+
Ba(t: any): j;
|
|
1742
1742
|
/** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(t: any): boolean;
|
|
1743
|
-
|
|
1744
|
-
|
|
1743
|
+
Na(): void;
|
|
1744
|
+
Fa(t: any): void;
|
|
1745
1745
|
}
|
|
1746
1746
|
/**
|
|
1747
1747
|
* @license
|
|
@@ -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
|
package/dist/private.d.ts
CHANGED
|
@@ -4756,15 +4756,17 @@ declare const enum TimerId {
|
|
|
4756
4756
|
/** All can be used with runDelayedOperationsEarly() to run all timers. */
|
|
4757
4757
|
All = "all",
|
|
4758
4758
|
/**
|
|
4759
|
-
* The following
|
|
4759
|
+
* The following 5 timers are used in persistent_stream.ts for the listen and
|
|
4760
4760
|
* write streams. The "Idle" timer is used to close the stream due to
|
|
4761
4761
|
* inactivity. The "ConnectionBackoff" timer is used to restart a stream once
|
|
4762
|
-
* the appropriate backoff delay has elapsed.
|
|
4762
|
+
* the appropriate backoff delay has elapsed. The health check is used to mark
|
|
4763
|
+
* a stream healthy if it has not received an error during its initial setup.
|
|
4763
4764
|
*/
|
|
4764
4765
|
ListenStreamIdle = "listen_stream_idle",
|
|
4765
4766
|
ListenStreamConnectionBackoff = "listen_stream_connection_backoff",
|
|
4766
4767
|
WriteStreamIdle = "write_stream_idle",
|
|
4767
4768
|
WriteStreamConnectionBackoff = "write_stream_connection_backoff",
|
|
4769
|
+
HealthCheckTimeout = "health_check_timeout",
|
|
4768
4770
|
/**
|
|
4769
4771
|
* A timer used in online_state_tracker.ts to transition from
|
|
4770
4772
|
* OnlineState.Unknown to Offline after a set timeout, rather than waiting
|
package/lite/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@firebase/firestore-lite",
|
|
3
3
|
"description": "A lite version of the Firestore SDK",
|
|
4
4
|
"main": "../dist/lite/index.node.cjs.js",
|
|
5
|
-
"main-esm": "../dist/lite/index.node.
|
|
5
|
+
"main-esm": "../dist/lite/index.node.mjs",
|
|
6
6
|
"module": "../dist/lite/index.browser.esm2017.js",
|
|
7
7
|
"browser": "../dist/lite/index.browser.esm2017.js",
|
|
8
8
|
"react-native": "../dist/lite/index.rn.esm2017.js",
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/firestore",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0-canary.477bdef13",
|
|
4
4
|
"engines": {
|
|
5
|
-
"node": "
|
|
5
|
+
"node": ">=10.10.0"
|
|
6
6
|
},
|
|
7
7
|
"description": "The Cloud Firestore component of the Firebase JS SDK.",
|
|
8
8
|
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dev": "rollup -c -w",
|
|
21
21
|
"lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
|
|
22
22
|
"lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
|
|
23
|
-
"prettier": "prettier --write '*.js' '
|
|
23
|
+
"prettier": "prettier --write '*.js' '@(lite|src|test)/**/*.ts'",
|
|
24
24
|
"test:lite": "node ./scripts/run-tests.js --emulator --platform node_lite --main=lite/index.ts 'test/lite/**/*.test.ts'",
|
|
25
25
|
"test:lite:prod": "node ./scripts/run-tests.js --platform node_lite --main=lite/index.ts 'test/lite/**/*.test.ts'",
|
|
26
26
|
"test:lite:browser": "karma start --single-run --lite",
|
|
@@ -49,16 +49,22 @@
|
|
|
49
49
|
},
|
|
50
50
|
"exports": {
|
|
51
51
|
".": {
|
|
52
|
-
"node":
|
|
52
|
+
"node": {
|
|
53
|
+
"require": "./dist/index.node.cjs.js",
|
|
54
|
+
"import": "./dist/index.node.mjs"
|
|
55
|
+
},
|
|
53
56
|
"default": "./dist/index.esm2017.js"
|
|
54
57
|
},
|
|
55
58
|
"./lite": {
|
|
56
|
-
"node":
|
|
59
|
+
"node": {
|
|
60
|
+
"require": "./dist/lite/index.node.cjs.js",
|
|
61
|
+
"import": "./dist/lite/index.node.mjs"
|
|
62
|
+
},
|
|
57
63
|
"default": "./dist/lite/index.browser.esm2017.js"
|
|
58
64
|
}
|
|
59
65
|
},
|
|
60
66
|
"main": "dist/index.node.cjs.js",
|
|
61
|
-
"main-esm": "dist/index.node.
|
|
67
|
+
"main-esm": "dist/index.node.mjs",
|
|
62
68
|
"react-native": "dist/index.rn.js",
|
|
63
69
|
"browser": "dist/index.esm2017.js",
|
|
64
70
|
"module": "dist/index.esm2017.js",
|
|
@@ -69,22 +75,22 @@
|
|
|
69
75
|
"lite/package.json"
|
|
70
76
|
],
|
|
71
77
|
"dependencies": {
|
|
72
|
-
"@firebase/component": "0.5.7",
|
|
73
|
-
"@firebase/logger": "0.3.0",
|
|
74
|
-
"@firebase/util": "1.4.0",
|
|
75
|
-
"@firebase/webchannel-wrapper": "0.6.0",
|
|
78
|
+
"@firebase/component": "0.5.7-canary.477bdef13",
|
|
79
|
+
"@firebase/logger": "0.3.0-canary.477bdef13",
|
|
80
|
+
"@firebase/util": "1.4.0-canary.477bdef13",
|
|
81
|
+
"@firebase/webchannel-wrapper": "0.6.0-canary.477bdef13",
|
|
76
82
|
"@grpc/grpc-js": "^1.3.2",
|
|
77
83
|
"@grpc/proto-loader": "^0.6.0",
|
|
78
84
|
"node-fetch": "2.6.5",
|
|
79
85
|
"tslib": "^2.1.0"
|
|
80
86
|
},
|
|
81
87
|
"peerDependencies": {
|
|
82
|
-
"@firebase/app": "0.
|
|
88
|
+
"@firebase/app": "0.7.5-canary.477bdef13"
|
|
83
89
|
},
|
|
84
90
|
"devDependencies": {
|
|
85
|
-
"@firebase/app": "0.7.
|
|
86
|
-
"@firebase/app-compat": "0.1.
|
|
87
|
-
"@firebase/auth": "0.
|
|
91
|
+
"@firebase/app": "0.7.5-canary.477bdef13",
|
|
92
|
+
"@firebase/app-compat": "0.1.6-canary.477bdef13",
|
|
93
|
+
"@firebase/auth": "0.19.0-canary.477bdef13",
|
|
88
94
|
"@rollup/plugin-alias": "3.1.5",
|
|
89
95
|
"@rollup/plugin-json": "4.1.0",
|
|
90
96
|
"@types/eslint": "7.28.0",
|