@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.
Files changed (40) hide show
  1. package/dist/firestore/src/api/cache_config.d.ts +4 -0
  2. package/dist/firestore/src/api/database.d.ts +2 -0
  3. package/dist/firestore/src/api/settings.d.ts +6 -0
  4. package/dist/index.cjs.js +22 -15
  5. package/dist/index.cjs.js.map +1 -1
  6. package/dist/index.d.ts +12 -0
  7. package/dist/index.esm2017.js +22 -15
  8. package/dist/index.esm2017.js.map +1 -1
  9. package/dist/index.esm5.js +21 -14
  10. package/dist/index.esm5.js.map +1 -1
  11. package/dist/index.node.cjs.js +20 -13
  12. package/dist/index.node.cjs.js.map +1 -1
  13. package/dist/index.node.mjs +20 -13
  14. package/dist/index.node.mjs.map +1 -1
  15. package/dist/index.rn.js +22 -15
  16. package/dist/index.rn.js.map +1 -1
  17. package/dist/internal.d.ts +12 -0
  18. package/dist/lite/firestore/src/api/cache_config.d.ts +4 -0
  19. package/dist/lite/firestore/src/api/database.d.ts +2 -0
  20. package/dist/lite/firestore/src/api/settings.d.ts +6 -0
  21. package/dist/lite/index.browser.esm2017.js +2 -2
  22. package/dist/lite/index.browser.esm2017.js.map +1 -1
  23. package/dist/lite/index.browser.esm5.js +2 -2
  24. package/dist/lite/index.browser.esm5.js.map +1 -1
  25. package/dist/lite/index.cjs.js +2 -2
  26. package/dist/lite/index.cjs.js.map +1 -1
  27. package/dist/lite/index.node.cjs.js +2 -2
  28. package/dist/lite/index.node.mjs +2 -2
  29. package/dist/lite/index.node.mjs.map +1 -1
  30. package/dist/lite/index.rn.esm2017.js +2 -2
  31. package/dist/lite/index.rn.esm2017.js.map +1 -1
  32. package/dist/lite/packages/firestore/src/api/cache_config.d.ts +4 -0
  33. package/dist/lite/packages/firestore/src/api/database.d.ts +2 -0
  34. package/dist/lite/packages/firestore/src/api/settings.d.ts +6 -0
  35. package/dist/packages/firestore/dist/index.esm2017.d.ts +4 -0
  36. package/dist/packages/firestore/src/api/cache_config.d.ts +4 -0
  37. package/dist/packages/firestore/src/api/database.d.ts +2 -0
  38. package/dist/packages/firestore/src/api/settings.d.ts +6 -0
  39. package/dist/private.d.ts +12 -0
  40. 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
  /**
@@ -1247,6 +1247,8 @@ declare function gh(t: any, e: any, ...n: any[]): fh;
1247
1247
  * * unimplemented: The browser is incompatible with the offline
1248
1248
  * persistence implementation.
1249
1249
  *
1250
+ * Persistence cannot be used in a Node.js environment.
1251
+ *
1250
1252
  * @param firestore - The {@link Firestore} instance to enable persistence for.
1251
1253
  * @param persistenceSettings - Optional settings object to configure
1252
1254
  * persistence.
@@ -1547,6 +1549,8 @@ declare function Tf(t: any, e: any): () => void;
1547
1549
  /**
1548
1550
  * Creates an instance of `PersistentLocalCache`. The instance can be set to
1549
1551
  * `FirestoreSettings.cache` to tell the SDK which cache layer to use.
1552
+ *
1553
+ * Persistent cache cannot be used in a Node.js environment.
1550
1554
  */ declare function Nf(t: any): bf;
1551
1555
  /**
1552
1556
  * Creates an instance of `PersistentMultipleTabManager`.
@@ -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/private.d.ts CHANGED
@@ -1263,6 +1263,8 @@ export { EmulatorMockTokenOptions }
1263
1263
  * * unimplemented: The browser is incompatible with the offline
1264
1264
  * persistence implementation.
1265
1265
  *
1266
+ * Persistence cannot be used in a Node.js environment.
1267
+ *
1266
1268
  * @param firestore - The {@link Firestore} instance to enable persistence for.
1267
1269
  * @param persistenceSettings - Optional settings object to configure
1268
1270
  * persistence.
@@ -2000,6 +2002,8 @@ export declare interface FirestoreSettings extends FirestoreSettings_2 {
2000
2002
  * may be removed in a future release. If you find yourself using it to
2001
2003
  * work around a specific network reliability issue, please tell us about
2002
2004
  * it in https://github.com/firebase/firebase-js-sdk/issues/1674.
2005
+ *
2006
+ * This setting cannot be used in a Node.js environment.
2003
2007
  */
2004
2008
  experimentalForceLongPolling?: boolean;
2005
2009
  /**
@@ -2013,6 +2017,8 @@ export declare interface FirestoreSettings extends FirestoreSettings_2 {
2013
2017
  * polling is now enabled by default. To disable it, set this setting to
2014
2018
  * `false`, and please open a GitHub issue to share the problems that
2015
2019
  * motivated you disabling long-polling auto-detection.
2020
+ *
2021
+ * This setting cannot be used in a Node.js environment.
2016
2022
  */
2017
2023
  experimentalAutoDetectLongPolling?: boolean;
2018
2024
  /**
@@ -4402,6 +4408,8 @@ declare class PersistencePromise<T> {
4402
4408
  /**
4403
4409
  * Settings that can be passed to `enableIndexedDbPersistence()` to configure
4404
4410
  * Firestore persistence.
4411
+ *
4412
+ * Persistence cannot be used in a Node.js environment.
4405
4413
  */
4406
4414
  export declare interface PersistenceSettings {
4407
4415
  /**
@@ -4433,6 +4441,8 @@ declare type PersistenceTransactionMode = 'readonly' | 'readwrite' | 'readwrite-
4433
4441
 
4434
4442
  /**
4435
4443
  * An settings object to configure an `PersistentLocalCache` instance.
4444
+ *
4445
+ * Persistent cache cannot be used in a Node.js environment.
4436
4446
  */
4437
4447
  export declare type PersistentCacheSettings = {
4438
4448
  /**
@@ -4468,6 +4478,8 @@ export declare type PersistentLocalCache = {
4468
4478
  /**
4469
4479
  * Creates an instance of `PersistentLocalCache`. The instance can be set to
4470
4480
  * `FirestoreSettings.cache` to tell the SDK which cache layer to use.
4481
+ *
4482
+ * Persistent cache cannot be used in a Node.js environment.
4471
4483
  */
4472
4484
  export declare function persistentLocalCache(settings?: PersistentCacheSettings): PersistentLocalCache;
4473
4485
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/firestore",
3
- "version": "3.12.1",
3
+ "version": "3.12.2-20230531163950",
4
4
  "engines": {
5
5
  "node": ">=10.10.0"
6
6
  },
@@ -107,7 +107,7 @@
107
107
  "devDependencies": {
108
108
  "@firebase/app": "0.9.11",
109
109
  "@firebase/app-compat": "0.2.11",
110
- "@firebase/auth": "0.23.2",
110
+ "@firebase/auth": "0.23.3-20230531163950",
111
111
  "@rollup/plugin-alias": "3.1.9",
112
112
  "@rollup/plugin-json": "4.1.0",
113
113
  "@types/eslint": "7.29.0",