@angular/fire 16.0.0-canary.596e208 → 16.0.0-canary.78407bc

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 (253) hide show
  1. package/README.md +200 -0
  2. package/analytics/analytics.module.d.ts +2 -2
  3. package/analytics/firebase.d.ts +4 -1
  4. package/analytics/screen-tracking.service.d.ts +3 -3
  5. package/app-check/app-check.module.d.ts +3 -3
  6. package/app-check/firebase.d.ts +2 -1
  7. package/auth/auth.module.d.ts +2 -2
  8. package/auth/firebase.d.ts +3 -1
  9. package/auth-guard/auth-guard.d.ts +2 -2
  10. package/compat/analytics/analytics.d.ts +1 -3
  11. package/compat/analytics/analytics.module.d.ts +1 -1
  12. package/compat/analytics/screen-tracking.service.d.ts +1 -1
  13. package/compat/analytics/user-tracking.service.d.ts +1 -1
  14. package/compat/auth/auth.d.ts +3 -3
  15. package/compat/auth-guard/auth-guard.d.ts +2 -2
  16. package/compat/database/database.d.ts +4 -4
  17. package/compat/database/interfaces.d.ts +2 -2
  18. package/compat/database/list/audit-trail.d.ts +1 -1
  19. package/compat/database/list/create-reference.d.ts +1 -1
  20. package/compat/database/list/data-operation.d.ts +1 -1
  21. package/compat/database/list/state-changes.d.ts +1 -1
  22. package/compat/database/object/create-reference.d.ts +1 -1
  23. package/compat/database/observable/fromRef.d.ts +1 -1
  24. package/compat/database/utils.d.ts +1 -1
  25. package/compat/firebase.app.module.d.ts +1 -1
  26. package/compat/firestore/collection/collection.d.ts +2 -2
  27. package/compat/firestore/collection-group/collection-group.d.ts +2 -2
  28. package/compat/firestore/document/document.d.ts +4 -4
  29. package/compat/firestore/firestore.d.ts +7 -7
  30. package/compat/firestore/interfaces.d.ts +2 -2
  31. package/compat/functions/functions.d.ts +3 -3
  32. package/compat/messaging/messaging.d.ts +2 -2
  33. package/compat/performance/performance.d.ts +2 -2
  34. package/compat/remote-config/remote-config.d.ts +15 -49
  35. package/compat/storage/observable/fromTask.d.ts +1 -2
  36. package/compat/storage/ref.d.ts +1 -1
  37. package/compat/storage/storage.d.ts +3 -3
  38. package/compat/storage/task.d.ts +1 -1
  39. package/database/database.module.d.ts +2 -2
  40. package/docs/analytics.md +67 -0
  41. package/docs/app-check.md +53 -0
  42. package/docs/auth.md +165 -0
  43. package/docs/compat/analytics/getting-started.md +137 -0
  44. package/docs/compat/auth/getting-started.md +162 -0
  45. package/docs/compat/auth/router-guards.md +104 -0
  46. package/docs/compat/emulators/emulators.md +134 -0
  47. package/docs/compat/firestore/collections.md +326 -0
  48. package/docs/compat/firestore/documents.md +115 -0
  49. package/docs/compat/firestore/offline-data.md +39 -0
  50. package/docs/compat/firestore/querying-collections.md +204 -0
  51. package/docs/compat/functions/functions.md +166 -0
  52. package/docs/compat/messaging/messaging.md +232 -0
  53. package/docs/compat/performance/getting-started.md +132 -0
  54. package/docs/compat/remote-config/getting-started.md +134 -0
  55. package/docs/compat/rtdb/lists.md +257 -0
  56. package/docs/compat/rtdb/objects.md +182 -0
  57. package/docs/compat/rtdb/querying-lists.md +155 -0
  58. package/docs/compat/storage/storage.md +257 -0
  59. package/docs/compat.md +70 -0
  60. package/docs/database.md +175 -0
  61. package/docs/deploy/getting-started.md +204 -0
  62. package/docs/firebase.json +16 -0
  63. package/docs/firestore.md +148 -0
  64. package/docs/functions.md +52 -0
  65. package/docs/images/analytics-illo_1x.png +0 -0
  66. package/docs/images/auth-illo_1x.png +0 -0
  67. package/docs/images/cloud-messaging-illo_1x.png +0 -0
  68. package/docs/images/database-illo_1x.png +0 -0
  69. package/docs/images/firestore-illo_1x.png +0 -0
  70. package/docs/images/functions-illo_1x.png +0 -0
  71. package/docs/images/hosting-illo_1x.png +0 -0
  72. package/docs/images/performance-illo_1x.png +0 -0
  73. package/docs/images/reCAPTCHA-logo@1x.png +0 -0
  74. package/docs/images/remote-config-illo_1x.png +0 -0
  75. package/docs/images/storage-illo_1x.png +0 -0
  76. package/docs/install-and-setup.md +114 -0
  77. package/docs/install-angular-cli-windows10.md +82 -0
  78. package/docs/install-firebase-tools.md +78 -0
  79. package/docs/messaging.md +25 -0
  80. package/docs/performance.md +57 -0
  81. package/docs/remote-config.md +53 -0
  82. package/docs/storage.md +90 -0
  83. package/docs/universal/cloud-functions.md +96 -0
  84. package/docs/universal/getting-started.md +28 -0
  85. package/docs/universal/prerendering.md +72 -0
  86. package/docs/version-4-upgrade.md +119 -0
  87. package/docs/version-5-upgrade.md +82 -0
  88. package/docs/version-6-upgrade.md +16 -0
  89. package/docs/version-7-upgrade.md +298 -0
  90. package/esm2022/analytics/analytics.mjs +1 -1
  91. package/esm2022/analytics/analytics.module.mjs +10 -10
  92. package/esm2022/analytics/firebase.mjs +5 -2
  93. package/esm2022/analytics/screen-tracking.service.mjs +11 -10
  94. package/esm2022/analytics/user-tracking.service.mjs +5 -5
  95. package/esm2022/app/app.mjs +1 -1
  96. package/esm2022/app/app.module.mjs +9 -8
  97. package/esm2022/app-check/app-check.mjs +2 -2
  98. package/esm2022/app-check/app-check.module.mjs +10 -11
  99. package/esm2022/app-check/firebase.mjs +3 -2
  100. package/esm2022/auth/auth.mjs +1 -1
  101. package/esm2022/auth/auth.module.mjs +10 -10
  102. package/esm2022/auth/firebase.mjs +4 -2
  103. package/esm2022/auth-guard/auth-guard.mjs +8 -6
  104. package/esm2022/auth-guard/auth-guard.module.mjs +7 -7
  105. package/esm2022/compat/analytics/analytics.mjs +12 -13
  106. package/esm2022/compat/analytics/analytics.module.mjs +14 -11
  107. package/esm2022/compat/analytics/screen-tracking.service.mjs +9 -9
  108. package/esm2022/compat/analytics/user-tracking.service.mjs +7 -7
  109. package/esm2022/compat/auth/auth.mjs +13 -13
  110. package/esm2022/compat/auth/auth.module.mjs +7 -7
  111. package/esm2022/compat/auth-guard/auth-guard.mjs +8 -6
  112. package/esm2022/compat/auth-guard/auth-guard.module.mjs +7 -7
  113. package/esm2022/compat/cache.mjs +2 -1
  114. package/esm2022/compat/database/database.mjs +10 -10
  115. package/esm2022/compat/database/database.module.mjs +7 -7
  116. package/esm2022/compat/database/interfaces.mjs +1 -1
  117. package/esm2022/compat/database/list/audit-trail.mjs +3 -3
  118. package/esm2022/compat/database/list/changes.mjs +5 -5
  119. package/esm2022/compat/database/list/create-reference.mjs +5 -5
  120. package/esm2022/compat/database/list/data-operation.mjs +1 -1
  121. package/esm2022/compat/database/list/snapshot-changes.mjs +1 -1
  122. package/esm2022/compat/database/list/state-changes.mjs +2 -2
  123. package/esm2022/compat/database/object/create-reference.mjs +2 -2
  124. package/esm2022/compat/database/object/snapshot-changes.mjs +1 -1
  125. package/esm2022/compat/database/observable/fromRef.mjs +3 -2
  126. package/esm2022/compat/database/utils.mjs +1 -1
  127. package/esm2022/compat/firebase.app.mjs +1 -1
  128. package/esm2022/compat/firebase.app.module.mjs +11 -9
  129. package/esm2022/compat/firestore/collection/changes.mjs +2 -2
  130. package/esm2022/compat/firestore/collection/collection.mjs +4 -4
  131. package/esm2022/compat/firestore/collection-group/collection-group.mjs +4 -4
  132. package/esm2022/compat/firestore/document/document.mjs +4 -4
  133. package/esm2022/compat/firestore/firestore.mjs +11 -11
  134. package/esm2022/compat/firestore/firestore.module.mjs +7 -7
  135. package/esm2022/compat/firestore/interfaces.mjs +1 -1
  136. package/esm2022/compat/firestore/observable/fromRef.mjs +2 -2
  137. package/esm2022/compat/functions/functions.mjs +8 -8
  138. package/esm2022/compat/functions/functions.module.mjs +7 -7
  139. package/esm2022/compat/messaging/messaging.mjs +13 -12
  140. package/esm2022/compat/messaging/messaging.module.mjs +7 -7
  141. package/esm2022/compat/performance/performance.mjs +14 -20
  142. package/esm2022/compat/performance/performance.module.mjs +8 -9
  143. package/esm2022/compat/performance/performance.service.mjs +5 -4
  144. package/esm2022/compat/proxy.mjs +6 -7
  145. package/esm2022/compat/remote-config/remote-config.mjs +10 -11
  146. package/esm2022/compat/remote-config/remote-config.module.mjs +7 -7
  147. package/esm2022/compat/storage/observable/fromTask.mjs +3 -1
  148. package/esm2022/compat/storage/pipes/storageUrl.pipe.mjs +9 -9
  149. package/esm2022/compat/storage/ref.mjs +3 -3
  150. package/esm2022/compat/storage/storage.mjs +8 -8
  151. package/esm2022/compat/storage/storage.module.mjs +7 -7
  152. package/esm2022/compat/storage/task.mjs +2 -2
  153. package/esm2022/core.mjs +1 -3
  154. package/esm2022/database/database.mjs +1 -1
  155. package/esm2022/database/database.module.mjs +10 -10
  156. package/esm2022/firestore/firebase.mjs +22 -2
  157. package/esm2022/firestore/firestore.mjs +1 -1
  158. package/esm2022/firestore/firestore.module.mjs +10 -10
  159. package/esm2022/firestore/lite/firebase.mjs +11 -2
  160. package/esm2022/firestore/lite/lite.mjs +1 -1
  161. package/esm2022/firestore/lite/lite.module.mjs +9 -9
  162. package/esm2022/firestore/lite/rxfire.mjs +4 -2
  163. package/esm2022/firestore/rxfire.mjs +4 -4
  164. package/esm2022/functions/functions.mjs +1 -1
  165. package/esm2022/functions/functions.module.mjs +10 -10
  166. package/esm2022/messaging/messaging.mjs +1 -1
  167. package/esm2022/messaging/messaging.module.mjs +9 -9
  168. package/esm2022/performance/performance.mjs +1 -1
  169. package/esm2022/performance/performance.module.mjs +12 -12
  170. package/esm2022/remote-config/is-remote-config-supported-factory.mjs +2 -2
  171. package/esm2022/remote-config/remote-config.mjs +1 -1
  172. package/esm2022/remote-config/remote-config.module.mjs +9 -9
  173. package/esm2022/storage/storage.mjs +1 -1
  174. package/esm2022/storage/storage.module.mjs +10 -10
  175. package/esm2022/zones.mjs +9 -11
  176. package/fesm2022/angular-fire-analytics.mjs +18 -14
  177. package/fesm2022/angular-fire-analytics.mjs.map +1 -1
  178. package/fesm2022/angular-fire-app-check.mjs +8 -8
  179. package/fesm2022/angular-fire-app-check.mjs.map +1 -1
  180. package/fesm2022/angular-fire-app.mjs +6 -5
  181. package/fesm2022/angular-fire-app.mjs.map +1 -1
  182. package/fesm2022/angular-fire-auth-guard.mjs +13 -11
  183. package/fesm2022/angular-fire-auth-guard.mjs.map +1 -1
  184. package/fesm2022/angular-fire-auth.mjs +8 -6
  185. package/fesm2022/angular-fire-auth.mjs.map +1 -1
  186. package/fesm2022/angular-fire-compat-analytics.mjs +29 -27
  187. package/fesm2022/angular-fire-compat-analytics.mjs.map +1 -1
  188. package/fesm2022/angular-fire-compat-auth-guard.mjs +12 -10
  189. package/fesm2022/angular-fire-compat-auth-guard.mjs.map +1 -1
  190. package/fesm2022/angular-fire-compat-auth.mjs +13 -13
  191. package/fesm2022/angular-fire-compat-auth.mjs.map +1 -1
  192. package/fesm2022/angular-fire-compat-database.mjs +129 -128
  193. package/fesm2022/angular-fire-compat-database.mjs.map +1 -1
  194. package/fesm2022/angular-fire-compat-firestore.mjs +96 -96
  195. package/fesm2022/angular-fire-compat-firestore.mjs.map +1 -1
  196. package/fesm2022/angular-fire-compat-functions.mjs +10 -10
  197. package/fesm2022/angular-fire-compat-functions.mjs.map +1 -1
  198. package/fesm2022/angular-fire-compat-messaging.mjs +13 -12
  199. package/fesm2022/angular-fire-compat-messaging.mjs.map +1 -1
  200. package/fesm2022/angular-fire-compat-performance.mjs +23 -29
  201. package/fesm2022/angular-fire-compat-performance.mjs.map +1 -1
  202. package/fesm2022/angular-fire-compat-remote-config.mjs +10 -11
  203. package/fesm2022/angular-fire-compat-remote-config.mjs.map +1 -1
  204. package/fesm2022/angular-fire-compat-storage.mjs +21 -19
  205. package/fesm2022/angular-fire-compat-storage.mjs.map +1 -1
  206. package/fesm2022/angular-fire-compat.mjs +15 -13
  207. package/fesm2022/angular-fire-compat.mjs.map +1 -1
  208. package/fesm2022/angular-fire-database.mjs +5 -5
  209. package/fesm2022/angular-fire-database.mjs.map +1 -1
  210. package/fesm2022/angular-fire-firestore-lite.mjs +19 -8
  211. package/fesm2022/angular-fire-firestore-lite.mjs.map +1 -1
  212. package/fesm2022/angular-fire-firestore.mjs +30 -10
  213. package/fesm2022/angular-fire-firestore.mjs.map +1 -1
  214. package/fesm2022/angular-fire-functions.mjs +6 -6
  215. package/fesm2022/angular-fire-functions.mjs.map +1 -1
  216. package/fesm2022/angular-fire-messaging.mjs +4 -4
  217. package/fesm2022/angular-fire-messaging.mjs.map +1 -1
  218. package/fesm2022/angular-fire-performance.mjs +7 -7
  219. package/fesm2022/angular-fire-performance.mjs.map +1 -1
  220. package/fesm2022/angular-fire-remote-config.mjs +4 -4
  221. package/fesm2022/angular-fire-remote-config.mjs.map +1 -1
  222. package/fesm2022/angular-fire-storage.mjs +4 -4
  223. package/fesm2022/angular-fire-storage.mjs.map +1 -1
  224. package/fesm2022/angular-fire.mjs +7 -11
  225. package/fesm2022/angular-fire.mjs.map +1 -1
  226. package/firestore/firebase.d.ts +21 -1
  227. package/firestore/firestore.module.d.ts +2 -2
  228. package/firestore/lite/firebase.d.ts +10 -1
  229. package/firestore/lite/lite.module.d.ts +2 -2
  230. package/firestore/lite/rxfire.d.ts +3 -1
  231. package/firestore/rxfire.d.ts +3 -3
  232. package/functions/functions.module.d.ts +2 -2
  233. package/messaging/messaging.module.d.ts +2 -2
  234. package/package.json +12 -12
  235. package/performance/performance.module.d.ts +2 -2
  236. package/remote-config/remote-config.module.d.ts +2 -2
  237. package/schematics/add/index.js +1 -1
  238. package/schematics/add/schema.json +16 -0
  239. package/schematics/builders.json +10 -0
  240. package/schematics/collection.json +15 -0
  241. package/schematics/common.js +1 -1
  242. package/schematics/deploy/actions.js +11 -11
  243. package/schematics/deploy/builder.js +2 -2
  244. package/schematics/deploy/schema.json +119 -0
  245. package/schematics/migration.json +15 -0
  246. package/schematics/setup/index.js +5 -6
  247. package/schematics/setup/prompts.js +5 -6
  248. package/schematics/setup/schema.json +16 -0
  249. package/schematics/update/index.js +1 -1
  250. package/schematics/update/v7/index.js +2 -2
  251. package/schematics/utils.js +4 -4
  252. package/storage/storage.module.d.ts +2 -2
  253. package/publish.sh +0 -1
@@ -1,22 +1,32 @@
1
1
  export * from 'firebase/firestore';
2
- import { addDoc as _addDoc, arrayRemove as _arrayRemove, arrayUnion as _arrayUnion, clearIndexedDbPersistence as _clearIndexedDbPersistence, collection as _collection, collectionGroup as _collectionGroup, connectFirestoreEmulator as _connectFirestoreEmulator, deleteDoc as _deleteDoc, deleteField as _deleteField, disableNetwork as _disableNetwork, doc as _doc, documentId as _documentId, enableIndexedDbPersistence as _enableIndexedDbPersistence, enableMultiTabIndexedDbPersistence as _enableMultiTabIndexedDbPersistence, enableNetwork as _enableNetwork, endAt as _endAt, endBefore as _endBefore, getDoc as _getDoc, getDocFromCache as _getDocFromCache, getDocFromServer as _getDocFromServer, getDocs as _getDocs, getDocsFromCache as _getDocsFromCache, getDocsFromServer as _getDocsFromServer, getFirestore as _getFirestore, increment as _increment, initializeFirestore as _initializeFirestore, limit as _limit, limitToLast as _limitToLast, loadBundle as _loadBundle, namedQuery as _namedQuery, onSnapshot as _onSnapshot, onSnapshotsInSync as _onSnapshotsInSync, orderBy as _orderBy, query as _query, queryEqual as _queryEqual, refEqual as _refEqual, runTransaction as _runTransaction, serverTimestamp as _serverTimestamp, setDoc as _setDoc, setLogLevel as _setLogLevel, snapshotEqual as _snapshotEqual, startAfter as _startAfter, startAt as _startAt, terminate as _terminate, updateDoc as _updateDoc, waitForPendingWrites as _waitForPendingWrites, where as _where, writeBatch as _writeBatch } from 'firebase/firestore';
2
+ import { addDoc as _addDoc, aggregateFieldEqual as _aggregateFieldEqual, aggregateQuerySnapshotEqual as _aggregateQuerySnapshotEqual, and as _and, arrayRemove as _arrayRemove, arrayUnion as _arrayUnion, average as _average, clearIndexedDbPersistence as _clearIndexedDbPersistence, collection as _collection, collectionGroup as _collectionGroup, connectFirestoreEmulator as _connectFirestoreEmulator, count as _count, deleteAllPersistentCacheIndexes as _deleteAllPersistentCacheIndexes, deleteDoc as _deleteDoc, deleteField as _deleteField, disableNetwork as _disableNetwork, disablePersistentCacheIndexAutoCreation as _disablePersistentCacheIndexAutoCreation, doc as _doc, documentId as _documentId, enableIndexedDbPersistence as _enableIndexedDbPersistence, enableMultiTabIndexedDbPersistence as _enableMultiTabIndexedDbPersistence, enableNetwork as _enableNetwork, enablePersistentCacheIndexAutoCreation as _enablePersistentCacheIndexAutoCreation, endAt as _endAt, endBefore as _endBefore, getAggregateFromServer as _getAggregateFromServer, getCountFromServer as _getCountFromServer, getDoc as _getDoc, getDocFromCache as _getDocFromCache, getDocFromServer as _getDocFromServer, getDocs as _getDocs, getDocsFromCache as _getDocsFromCache, getDocsFromServer as _getDocsFromServer, getFirestore as _getFirestore, getPersistentCacheIndexManager as _getPersistentCacheIndexManager, increment as _increment, initializeFirestore as _initializeFirestore, limit as _limit, limitToLast as _limitToLast, loadBundle as _loadBundle, memoryEagerGarbageCollector as _memoryEagerGarbageCollector, memoryLocalCache as _memoryLocalCache, memoryLruGarbageCollector as _memoryLruGarbageCollector, namedQuery as _namedQuery, onSnapshot as _onSnapshot, onSnapshotsInSync as _onSnapshotsInSync, or as _or, orderBy as _orderBy, persistentLocalCache as _persistentLocalCache, persistentMultipleTabManager as _persistentMultipleTabManager, persistentSingleTabManager as _persistentSingleTabManager, query as _query, queryEqual as _queryEqual, refEqual as _refEqual, runTransaction as _runTransaction, serverTimestamp as _serverTimestamp, setDoc as _setDoc, setIndexConfiguration as _setIndexConfiguration, setLogLevel as _setLogLevel, snapshotEqual as _snapshotEqual, startAfter as _startAfter, startAt as _startAt, sum as _sum, terminate as _terminate, updateDoc as _updateDoc, waitForPendingWrites as _waitForPendingWrites, where as _where, writeBatch as _writeBatch } from 'firebase/firestore';
3
3
  export declare const addDoc: typeof _addDoc;
4
+ export declare const aggregateFieldEqual: typeof _aggregateFieldEqual;
5
+ export declare const aggregateQuerySnapshotEqual: typeof _aggregateQuerySnapshotEqual;
6
+ export declare const and: typeof _and;
4
7
  export declare const arrayRemove: typeof _arrayRemove;
5
8
  export declare const arrayUnion: typeof _arrayUnion;
9
+ export declare const average: typeof _average;
6
10
  export declare const clearIndexedDbPersistence: typeof _clearIndexedDbPersistence;
7
11
  export declare const collection: typeof _collection;
8
12
  export declare const collectionGroup: typeof _collectionGroup;
9
13
  export declare const connectFirestoreEmulator: typeof _connectFirestoreEmulator;
14
+ export declare const count: typeof _count;
15
+ export declare const deleteAllPersistentCacheIndexes: typeof _deleteAllPersistentCacheIndexes;
10
16
  export declare const deleteDoc: typeof _deleteDoc;
11
17
  export declare const deleteField: typeof _deleteField;
12
18
  export declare const disableNetwork: typeof _disableNetwork;
19
+ export declare const disablePersistentCacheIndexAutoCreation: typeof _disablePersistentCacheIndexAutoCreation;
13
20
  export declare const doc: typeof _doc;
14
21
  export declare const documentId: typeof _documentId;
15
22
  export declare const enableIndexedDbPersistence: typeof _enableIndexedDbPersistence;
16
23
  export declare const enableMultiTabIndexedDbPersistence: typeof _enableMultiTabIndexedDbPersistence;
17
24
  export declare const enableNetwork: typeof _enableNetwork;
25
+ export declare const enablePersistentCacheIndexAutoCreation: typeof _enablePersistentCacheIndexAutoCreation;
18
26
  export declare const endAt: typeof _endAt;
19
27
  export declare const endBefore: typeof _endBefore;
28
+ export declare const getAggregateFromServer: typeof _getAggregateFromServer;
29
+ export declare const getCountFromServer: typeof _getCountFromServer;
20
30
  export declare const getDoc: typeof _getDoc;
21
31
  export declare const getDocFromCache: typeof _getDocFromCache;
22
32
  export declare const getDocFromServer: typeof _getDocFromServer;
@@ -24,25 +34,35 @@ export declare const getDocs: typeof _getDocs;
24
34
  export declare const getDocsFromCache: typeof _getDocsFromCache;
25
35
  export declare const getDocsFromServer: typeof _getDocsFromServer;
26
36
  export declare const getFirestore: typeof _getFirestore;
37
+ export declare const getPersistentCacheIndexManager: typeof _getPersistentCacheIndexManager;
27
38
  export declare const increment: typeof _increment;
28
39
  export declare const initializeFirestore: typeof _initializeFirestore;
29
40
  export declare const limit: typeof _limit;
30
41
  export declare const limitToLast: typeof _limitToLast;
31
42
  export declare const loadBundle: typeof _loadBundle;
43
+ export declare const memoryEagerGarbageCollector: typeof _memoryEagerGarbageCollector;
44
+ export declare const memoryLocalCache: typeof _memoryLocalCache;
45
+ export declare const memoryLruGarbageCollector: typeof _memoryLruGarbageCollector;
32
46
  export declare const namedQuery: typeof _namedQuery;
33
47
  export declare const onSnapshot: typeof _onSnapshot;
34
48
  export declare const onSnapshotsInSync: typeof _onSnapshotsInSync;
49
+ export declare const or: typeof _or;
35
50
  export declare const orderBy: typeof _orderBy;
51
+ export declare const persistentLocalCache: typeof _persistentLocalCache;
52
+ export declare const persistentMultipleTabManager: typeof _persistentMultipleTabManager;
53
+ export declare const persistentSingleTabManager: typeof _persistentSingleTabManager;
36
54
  export declare const query: typeof _query;
37
55
  export declare const queryEqual: typeof _queryEqual;
38
56
  export declare const refEqual: typeof _refEqual;
39
57
  export declare const runTransaction: typeof _runTransaction;
40
58
  export declare const serverTimestamp: typeof _serverTimestamp;
41
59
  export declare const setDoc: typeof _setDoc;
60
+ export declare const setIndexConfiguration: typeof _setIndexConfiguration;
42
61
  export declare const setLogLevel: typeof _setLogLevel;
43
62
  export declare const snapshotEqual: typeof _snapshotEqual;
44
63
  export declare const startAfter: typeof _startAfter;
45
64
  export declare const startAt: typeof _startAt;
65
+ export declare const sum: typeof _sum;
46
66
  export declare const terminate: typeof _terminate;
47
67
  export declare const updateDoc: typeof _updateDoc;
48
68
  export declare const waitForPendingWrites: typeof _waitForPendingWrites;
@@ -1,7 +1,7 @@
1
- import { NgZone, InjectionToken, ModuleWithProviders, Injector } from '@angular/core';
1
+ import { InjectionToken, Injector, ModuleWithProviders, NgZone } from '@angular/core';
2
+ import { FirebaseApp } from '@angular/fire/app';
2
3
  import { Firestore as FirebaseFirestore } from 'firebase/firestore';
3
4
  import { Firestore } from './firestore';
4
- import { FirebaseApp } from '@angular/fire/app';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare const PROVIDED_FIRESTORE_INSTANCES: InjectionToken<Firestore[]>;
7
7
  export declare function defaultFirestoreInstanceFactory(provided: FirebaseFirestore[] | undefined, defaultApp: FirebaseApp): Firestore;
@@ -1,17 +1,24 @@
1
1
  export * from 'firebase/firestore/lite';
2
- import { addDoc as _addDoc, arrayRemove as _arrayRemove, arrayUnion as _arrayUnion, collection as _collection, collectionGroup as _collectionGroup, connectFirestoreEmulator as _connectFirestoreEmulator, deleteDoc as _deleteDoc, deleteField as _deleteField, doc as _doc, documentId as _documentId, endAt as _endAt, endBefore as _endBefore, getDoc as _getDoc, getDocs as _getDocs, getFirestore as _getFirestore, increment as _increment, initializeFirestore as _initializeFirestore, limit as _limit, limitToLast as _limitToLast, orderBy as _orderBy, query as _query, queryEqual as _queryEqual, refEqual as _refEqual, runTransaction as _runTransaction, serverTimestamp as _serverTimestamp, setDoc as _setDoc, setLogLevel as _setLogLevel, snapshotEqual as _snapshotEqual, startAfter as _startAfter, startAt as _startAt, terminate as _terminate, updateDoc as _updateDoc, where as _where, writeBatch as _writeBatch } from 'firebase/firestore/lite';
2
+ import { addDoc as _addDoc, aggregateFieldEqual as _aggregateFieldEqual, aggregateQuerySnapshotEqual as _aggregateQuerySnapshotEqual, and as _and, arrayRemove as _arrayRemove, arrayUnion as _arrayUnion, average as _average, collection as _collection, collectionGroup as _collectionGroup, connectFirestoreEmulator as _connectFirestoreEmulator, count as _count, deleteDoc as _deleteDoc, deleteField as _deleteField, doc as _doc, documentId as _documentId, endAt as _endAt, endBefore as _endBefore, getAggregate as _getAggregate, getCount as _getCount, getDoc as _getDoc, getDocs as _getDocs, getFirestore as _getFirestore, increment as _increment, initializeFirestore as _initializeFirestore, limit as _limit, limitToLast as _limitToLast, or as _or, orderBy as _orderBy, query as _query, queryEqual as _queryEqual, refEqual as _refEqual, runTransaction as _runTransaction, serverTimestamp as _serverTimestamp, setDoc as _setDoc, setLogLevel as _setLogLevel, snapshotEqual as _snapshotEqual, startAfter as _startAfter, startAt as _startAt, sum as _sum, terminate as _terminate, updateDoc as _updateDoc, where as _where, writeBatch as _writeBatch } from 'firebase/firestore/lite';
3
3
  export declare const addDoc: typeof _addDoc;
4
+ export declare const aggregateFieldEqual: typeof _aggregateFieldEqual;
5
+ export declare const aggregateQuerySnapshotEqual: typeof _aggregateQuerySnapshotEqual;
6
+ export declare const and: typeof _and;
4
7
  export declare const arrayRemove: typeof _arrayRemove;
5
8
  export declare const arrayUnion: typeof _arrayUnion;
9
+ export declare const average: typeof _average;
6
10
  export declare const collection: typeof _collection;
7
11
  export declare const collectionGroup: typeof _collectionGroup;
8
12
  export declare const connectFirestoreEmulator: typeof _connectFirestoreEmulator;
13
+ export declare const count: typeof _count;
9
14
  export declare const deleteDoc: typeof _deleteDoc;
10
15
  export declare const deleteField: typeof _deleteField;
11
16
  export declare const doc: typeof _doc;
12
17
  export declare const documentId: typeof _documentId;
13
18
  export declare const endAt: typeof _endAt;
14
19
  export declare const endBefore: typeof _endBefore;
20
+ export declare const getAggregate: typeof _getAggregate;
21
+ export declare const getCount: typeof _getCount;
15
22
  export declare const getDoc: typeof _getDoc;
16
23
  export declare const getDocs: typeof _getDocs;
17
24
  export declare const getFirestore: typeof _getFirestore;
@@ -19,6 +26,7 @@ export declare const increment: typeof _increment;
19
26
  export declare const initializeFirestore: typeof _initializeFirestore;
20
27
  export declare const limit: typeof _limit;
21
28
  export declare const limitToLast: typeof _limitToLast;
29
+ export declare const or: typeof _or;
22
30
  export declare const orderBy: typeof _orderBy;
23
31
  export declare const query: typeof _query;
24
32
  export declare const queryEqual: typeof _queryEqual;
@@ -30,6 +38,7 @@ export declare const setLogLevel: typeof _setLogLevel;
30
38
  export declare const snapshotEqual: typeof _snapshotEqual;
31
39
  export declare const startAfter: typeof _startAfter;
32
40
  export declare const startAt: typeof _startAt;
41
+ export declare const sum: typeof _sum;
33
42
  export declare const terminate: typeof _terminate;
34
43
  export declare const updateDoc: typeof _updateDoc;
35
44
  export declare const where: typeof _where;
@@ -1,7 +1,7 @@
1
- import { NgZone, InjectionToken, ModuleWithProviders, Injector } from '@angular/core';
1
+ import { InjectionToken, Injector, ModuleWithProviders, NgZone } from '@angular/core';
2
+ import { FirebaseApp } from '@angular/fire/app';
2
3
  import { Firestore as FirebaseFirestore } from 'firebase/firestore/lite';
3
4
  import { Firestore } from './lite';
4
- import { FirebaseApp } from '@angular/fire/app';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare const PROVIDED_FIRESTORE_INSTANCES: InjectionToken<Firestore[]>;
7
7
  export declare function defaultFirestoreInstanceFactory(provided: FirebaseFirestore[] | undefined, defaultApp: FirebaseApp): Firestore;
@@ -1,6 +1,8 @@
1
- import { collection as _collection, collectionData as _collectionData, doc as _doc, docData as _docData, snapToData as _snapToData, fromRef as _fromRef } from 'rxfire/firestore/lite';
1
+ import { collection as _collection, collectionData as _collectionData, collectionCountSnap as _collectionCountSnap, collectionCount as _collectionCount, doc as _doc, docData as _docData, snapToData as _snapToData, fromRef as _fromRef } from 'rxfire/firestore/lite';
2
2
  export declare const collectionSnapshots: typeof _collection;
3
3
  export declare const collectionData: typeof _collectionData;
4
+ export declare const collectionCountSnap: typeof _collectionCountSnap;
5
+ export declare const collectionCount: typeof _collectionCount;
4
6
  export declare const docSnapshots: typeof _doc;
5
7
  export declare const docData: typeof _docData;
6
8
  export declare const snapToData: typeof _snapToData;
@@ -1,12 +1,12 @@
1
- import { collectionChanges as _collectionChanges, collection as _collection, sortedChanges as _sortedChanges, auditTrail as _auditTrail, collectionData as _collectionData, doc as _doc, docData as _docData, snapToData as _snapToData, fromRef as _fromRef, collectionCount as _collectionCount, collectionCountSnap as _collectionCountSnap } from 'rxfire/firestore';
1
+ import { collectionChanges as _collectionChanges, collection as _collection, sortedChanges as _sortedChanges, auditTrail as _auditTrail, collectionData as _collectionData, collectionCountSnap as _collectionCountSnap, collectionCount as _collectionCount, doc as _doc, docData as _docData, snapToData as _snapToData, fromRef as _fromRef } from 'rxfire/firestore';
2
2
  export declare const collectionChanges: typeof _collectionChanges;
3
3
  export declare const collectionSnapshots: typeof _collection;
4
4
  export declare const sortedChanges: typeof _sortedChanges;
5
5
  export declare const auditTrail: typeof _auditTrail;
6
6
  export declare const collectionData: typeof _collectionData;
7
+ export declare const collectionCountSnap: typeof _collectionCountSnap;
8
+ export declare const collectionCount: typeof _collectionCount;
7
9
  export declare const docSnapshots: typeof _doc;
8
10
  export declare const docData: typeof _docData;
9
11
  export declare const snapToData: typeof _snapToData;
10
12
  export declare const fromRef: typeof _fromRef;
11
- export declare const collectionCount: typeof _collectionCount;
12
- export declare const collectionCountSnap: typeof _collectionCountSnap;
@@ -1,7 +1,7 @@
1
- import { NgZone, InjectionToken, ModuleWithProviders, Injector } from '@angular/core';
1
+ import { InjectionToken, Injector, ModuleWithProviders, NgZone } from '@angular/core';
2
+ import { FirebaseApp } from '@angular/fire/app';
2
3
  import { Functions as FirebaseFunctions } from 'firebase/functions';
3
4
  import { Functions } from './functions';
4
- import { FirebaseApp } from '@angular/fire/app';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare const PROVIDED_FUNCTIONS_INSTANCES: InjectionToken<Functions[]>;
7
7
  export declare function defaultFunctionsInstanceFactory(provided: FirebaseFunctions[] | undefined, defaultApp: FirebaseApp): Functions;
@@ -1,7 +1,7 @@
1
- import { NgZone, ModuleWithProviders, Injector } from '@angular/core';
1
+ import { Injector, ModuleWithProviders, NgZone } from '@angular/core';
2
+ import { FirebaseApp } from '@angular/fire/app';
2
3
  import { Messaging as FirebaseMessaging } from 'firebase/messaging';
3
4
  import { Messaging } from './messaging';
4
- import { FirebaseApp } from '@angular/fire/app';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare function defaultMessagingInstanceFactory(provided: FirebaseMessaging[] | undefined, defaultApp: FirebaseApp): Messaging;
7
7
  export declare function messagingInstanceFactory(fn: (injector: Injector) => FirebaseMessaging): (zone: NgZone, injector: Injector) => Messaging;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "../node_modules/ng-packagr/package.schema.json",
3
3
  "name": "@angular/fire",
4
- "version": "16.0.0-canary.596e208",
5
- "description": "The official Angular library for Firebase.",
4
+ "version": "16.0.0-canary.78407bc",
5
+ "description": "Angular + Firebase = ❤️",
6
6
  "schematics": "./schematics/collection.json",
7
7
  "builders": "./schematics/builders.json",
8
8
  "keywords": [
@@ -23,12 +23,12 @@
23
23
  "author": "angular,firebase",
24
24
  "license": "MIT",
25
25
  "peerDependencies": {
26
- "@angular/common": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
27
- "@angular/core": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
28
- "@angular/platform-browser": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
29
- "@angular/platform-browser-dynamic": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
30
- "rxjs": "~6.6.0 || ^7.0.0",
31
- "firebase-tools": "^9.9.0 || ^10.0.0 || ^11.0.0 || ^12.0.0"
26
+ "@angular/common": "^16.0.0",
27
+ "@angular/core": "^16.0.0",
28
+ "@angular/platform-browser": "^16.0.0",
29
+ "@angular/platform-browser-dynamic": "^16.0.0",
30
+ "rxjs": "^6.5.3 || ^7.4.0",
31
+ "firebase-tools": "^12.0.0"
32
32
  },
33
33
  "peerDependenciesMeta": {
34
34
  "firebase-tools": {
@@ -36,10 +36,10 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "firebase": "^9.8.0",
40
- "rxfire": "^6.0.0",
41
- "@angular-devkit/schematics": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
42
- "@schematics/angular": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
39
+ "firebase": "^10.5.0",
40
+ "rxfire": "^6.0.5",
41
+ "@angular-devkit/schematics": "^16.0.0",
42
+ "@schematics/angular": "^16.0.0",
43
43
  "tslib": "^2.0.0",
44
44
  "fuzzy": "^0.1.3",
45
45
  "inquirer-autocomplete-prompt": "^1.0.1",
@@ -1,7 +1,7 @@
1
- import { NgZone, InjectionToken, ModuleWithProviders, Injector } from '@angular/core';
1
+ import { InjectionToken, Injector, ModuleWithProviders, NgZone } from '@angular/core';
2
+ import { FirebaseApp } from '@angular/fire/app';
2
3
  import { FirebasePerformance } from 'firebase/performance';
3
4
  import { Performance } from './performance';
4
- import { FirebaseApp } from '@angular/fire/app';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare const PROVIDED_PERFORMANCE_INSTANCES: InjectionToken<Performance[]>;
7
7
  export declare function defaultPerformanceInstanceFactory(provided: FirebasePerformance[] | undefined, defaultApp: FirebaseApp, platform: Object): Performance;
@@ -1,7 +1,7 @@
1
- import { NgZone, InjectionToken, ModuleWithProviders, Injector } from '@angular/core';
1
+ import { InjectionToken, Injector, ModuleWithProviders, NgZone } from '@angular/core';
2
+ import { FirebaseApp } from '@angular/fire/app';
2
3
  import { RemoteConfig as FirebaseRemoteConfig } from 'firebase/remote-config';
3
4
  import { RemoteConfig } from './remote-config';
4
- import { FirebaseApp } from '@angular/fire/app';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare const PROVIDED_REMOTE_CONFIG_INSTANCES: InjectionToken<RemoteConfig[]>;
7
7
  export declare function defaultRemoteConfigInstanceFactory(provided: FirebaseRemoteConfig[] | undefined, defaultApp: FirebaseApp): RemoteConfig;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ngAdd = void 0;
4
+ const tasks_1 = require("@angular-devkit/schematics/tasks");
4
5
  const common_1 = require("../common");
5
6
  const versions_json_1 = require("../versions.json");
6
- const tasks_1 = require("@angular-devkit/schematics/tasks");
7
7
  const ngAdd = (options) => (tree, context) => {
8
8
  (0, common_1.addDependencies)(tree, versions_json_1.peerDependencies, context);
9
9
  const npmInstallTaskId = context.addTask(new tasks_1.NodePackageInstallTask());
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "angular-fire-ng-add",
4
+ "title": "AngularFire ng-add",
5
+ "type": "object",
6
+ "properties": {
7
+ "project": {
8
+ "type": "string",
9
+ "description": "The name of the project.",
10
+ "$default": {
11
+ "$source": "projectName"
12
+ }
13
+ }
14
+ },
15
+ "required": []
16
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json",
3
+ "builders": {
4
+ "deploy": {
5
+ "implementation": "./deploy/builder",
6
+ "schema": "./deploy/schema.json",
7
+ "description": "Deploy builder"
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json",
3
+ "schematics": {
4
+ "ng-add": {
5
+ "description": "Add firebase deploy schematic",
6
+ "factory": "./add#ngAdd",
7
+ "schema": "./add/schema.json"
8
+ },
9
+ "ng-add-setup-project": {
10
+ "description": "Setup ng deploy",
11
+ "factory": "./setup#ngAddSetupProject",
12
+ "schema": "./setup/schema.json"
13
+ }
14
+ }
15
+ }
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.addDependencies = exports.safeReadJSON = exports.generateFirebaseRc = exports.overwriteIfExists = exports.stringifyFormatted = exports.shortSiteName = void 0;
27
27
  const schematics_1 = require("@angular-devkit/schematics");
28
28
  const semver = __importStar(require("semver"));
29
- const shortSiteName = (site) => (site === null || site === void 0 ? void 0 : site.name) && site.name.split('/').pop();
29
+ const shortSiteName = (site) => { var _a; return (_a = site === null || site === void 0 ? void 0 : site.name) === null || _a === void 0 ? void 0 : _a.split('/').pop(); };
30
30
  exports.shortSiteName = shortSiteName;
31
31
  const stringifyFormatted = (obj) => JSON.stringify(obj, null, 2);
32
32
  exports.stringifyFormatted = stringifyFormatted;
@@ -36,19 +36,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
38
  exports.deployToCloudRun = exports.deployToFunction = void 0;
39
- const architect_1 = require("@angular-devkit/architect");
39
+ const child_process_1 = require("child_process");
40
40
  const fs_1 = require("fs");
41
- const fs_extra_1 = require("fs-extra");
42
41
  const path_1 = require("path");
43
- const child_process_1 = require("child_process");
44
- const functions_templates_1 = require("./functions-templates");
45
- const semver_1 = require("semver");
46
- const open_1 = __importDefault(require("open"));
42
+ const architect_1 = require("@angular-devkit/architect");
47
43
  const schematics_1 = require("@angular-devkit/schematics");
48
- const versions_json_1 = require("../versions.json");
49
- const winston = __importStar(require("winston"));
50
- const triple_beam_1 = __importDefault(require("triple-beam"));
44
+ const fs_extra_1 = require("fs-extra");
51
45
  const inquirer = __importStar(require("inquirer"));
46
+ const open_1 = __importDefault(require("open"));
47
+ const semver_1 = require("semver");
48
+ const triple_beam_1 = __importDefault(require("triple-beam"));
49
+ const winston = __importStar(require("winston"));
50
+ const versions_json_1 = require("../versions.json");
51
+ const functions_templates_1 = require("./functions-templates");
52
52
  const DEFAULT_EMULATOR_PORT = 5000;
53
53
  const DEFAULT_EMULATOR_HOST = 'localhost';
54
54
  const DEFAULT_CLOUD_RUN_OPTIONS = {
@@ -85,7 +85,7 @@ const spawnAsync = (command, options) => __awaiter(void 0, void 0, void 0, funct
85
85
  });
86
86
  });
87
87
  });
88
- const escapeRegExp = (str) => str.replace(/[\-\[\]\/{}()*+?.\\^$|]/g, '\\$&');
88
+ const escapeRegExp = (str) => str.replace(/[-[\]/{}()*+?.\\^$|]/g, '\\$&');
89
89
  const moveSync = (src, dest) => {
90
90
  (0, fs_extra_1.copySync)(src, dest);
91
91
  (0, fs_extra_1.removeSync)(src);
@@ -128,7 +128,7 @@ const defaultFsHost = {
128
128
  existsSync: fs_1.existsSync,
129
129
  };
130
130
  const findPackageVersion = (packageManager, name) => {
131
- const match = (0, child_process_1.execSync)(`${packageManager} list ${name}`).toString().match(`[^|\s]${escapeRegExp(name)}[@| ][^\s]+(\s.+)?$`);
131
+ const match = (0, child_process_1.execSync)(`${packageManager} list ${name}`).toString().match(`[^|s]${escapeRegExp(name)}[@| ][^s]+(s.+)?$`);
132
132
  return match ? match[0].split(new RegExp(`${escapeRegExp(name)}[@| ]`))[1].split(/\s/)[0] : null;
133
133
  };
134
134
  const getPackageJson = (context, workspaceRoot, options, main) => {
@@ -13,9 +13,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const architect_1 = require("@angular-devkit/architect");
16
- const actions_1 = __importDefault(require("./actions"));
17
- const utils_1 = require("../utils");
18
16
  const firebaseTools_1 = require("../firebaseTools");
17
+ const utils_1 = require("../utils");
18
+ const actions_1 = __importDefault(require("./actions"));
19
19
  exports.default = (0, architect_1.createBuilder)((options, context) => __awaiter(void 0, void 0, void 0, function* () {
20
20
  if (!context.target) {
21
21
  throw new Error('Cannot deploy the application without a target');
@@ -0,0 +1,119 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "FirebaseDeploySchema",
4
+ "title": "Firebase Deploy",
5
+ "description": "Ng Deploy target options for Firebase.",
6
+ "properties": {
7
+ "buildTarget": {
8
+ "type": "string",
9
+ "description": "Target to build.",
10
+ "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
11
+ },
12
+ "browserTarget": {
13
+ "type": "string",
14
+ "description": "Target to build.",
15
+ "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
16
+ },
17
+ "prerenderTarget": {
18
+ "type": "string",
19
+ "description": "Target to build.",
20
+ "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
21
+ },
22
+ "serverTarget": {
23
+ "type": "string",
24
+ "description": "Target to build.",
25
+ "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
26
+ },
27
+ "universalBuildTarget": {
28
+ "type": "string",
29
+ "description": "Target to build.",
30
+ "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
31
+ },
32
+ "ssr": {
33
+ "oneOf": [{ "type": "boolean" }, { "type": "string" }],
34
+ "description": "Should we attempt to deploy the function to Cloud Functions (true or 'cloud-functions') / Cloud Run ('cloud-run') or just Hosting (false)"
35
+ },
36
+ "prerender": {
37
+ "type": "boolean",
38
+ "description": "Prerender before deploy?"
39
+ },
40
+ "firebaseProject": {
41
+ "type": "string",
42
+ "description": "The Firebase project name or project alias to use when deploying"
43
+ },
44
+ "target": {
45
+ "type": "string",
46
+ "description": "The Firebase hosting target in firebase.json for multi-site"
47
+ },
48
+ "firebaseHostingSite": {
49
+ "type": "string",
50
+ "description": "The Firebase Hosting site to deploy to"
51
+ },
52
+ "functionName": {
53
+ "type": "string",
54
+ "description": "The name of the Cloud Function or Cloud Run serviceId to deploy SSR to"
55
+ },
56
+ "functionsNodeVersion": {
57
+ "oneOf": [{ "type": "number" }, { "type": "string" }],
58
+ "description": "Version of Node.js to run Cloud Functions / Run on"
59
+ },
60
+ "CF3v2": {
61
+ "type": "boolean",
62
+ "description": "Generation of the Functions product to run on"
63
+ },
64
+ "region": {
65
+ "type": "string",
66
+ "description": "The region to deploy Cloud Functions or Cloud Run to"
67
+ },
68
+ "outputPath": {
69
+ "type": "string",
70
+ "description": "Where to output the deploy artifacts"
71
+ },
72
+ "functionsRuntimeOptions": {
73
+ "type": "object",
74
+ "description": "Runtime options for Cloud Functions, if deploying to Cloud Functions"
75
+ },
76
+ "preview": {
77
+ "type": "boolean",
78
+ "description": "Do not deploy the application, just set up the Firebase Function in the project output directory. Can be used for testing the Firebase Function with `firebase serve`."
79
+ },
80
+ "cloudRunOptions": {
81
+ "type": "object",
82
+ "description": "Options passed to Cloud Run, if deploying to Cloud Run.",
83
+ "properties": {
84
+ "cpus": {
85
+ "type": "number",
86
+ "description": "Set a CPU limit in Kubernetes cpu units."
87
+ },
88
+ "maxConcurrency": {
89
+ "oneOf": [{ "type": "number" }, { "type": "string" }],
90
+ "pattern": "^(\\d+|default)$",
91
+ "description": "Set the maximum number of concurrent requests allowed per container instance. If concurrency is unspecified, any number of concurrent requests are allowed. To unset this field, provide the special value default."
92
+ },
93
+ "maxInstances": {
94
+ "oneOf": [{ "type": "number" }, { "type": "string" }],
95
+ "pattern": "^(\\d+|default)$",
96
+ "description": "The maximum number of container instances of the Service to run. Use 'default' to unset the limit and use the platform default."
97
+ },
98
+ "memory": {
99
+ "type": "string",
100
+ "pattern": "^\\d+(G|M)i$",
101
+ "description": "Set a memory limit. Ex: 1Gi, 512Mi."
102
+ },
103
+ "minInstances": {
104
+ "oneOf": [{ "type": "number" }, { "type": "string" }],
105
+ "pattern": "^(\\d+|default)$",
106
+ "description": "The minimum number of container instances of the Service to run or 'default' to remove any minimum."
107
+ },
108
+ "timeout": {
109
+ "type": "number",
110
+ "description": "Set the maximum request execution time (timeout) in seconds."
111
+ },
112
+ "vpcConnector": {
113
+ "type": "string",
114
+ "description": "Set a VPC connector for this resource."
115
+ }
116
+ }
117
+ }
118
+ }
119
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json",
3
+ "schematics": {
4
+ "migration-v7": {
5
+ "version": "7.0.0",
6
+ "description": "Update @angular/fire to v7",
7
+ "factory": "./update/v7#ngUpdate"
8
+ },
9
+ "ng-post-upgate": {
10
+ "description": "Print out results after ng-update",
11
+ "factory": "./update#ngPostUpdate",
12
+ "private": true
13
+ }
14
+ }
15
+ }
@@ -10,15 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.setupFirebase = exports.generateFirebaseJson = exports.ngAddSetupProject = exports.setupProject = void 0;
13
+ const fs_1 = require("fs");
14
+ const path_1 = require("path");
13
15
  const core_1 = require("@angular-devkit/core");
14
16
  const schematics_1 = require("@angular-devkit/schematics");
17
+ const common_1 = require("../common");
18
+ const firebaseTools_1 = require("../firebaseTools");
15
19
  const utils_1 = require("../utils");
16
20
  const prompts_1 = require("./prompts");
17
- const firebaseTools_1 = require("../firebaseTools");
18
- const fs_1 = require("fs");
19
- const path_1 = require("path");
20
- const common_1 = require("../common");
21
- ;
22
21
  const setupProject = (tree, context, features, config) => __awaiter(void 0, void 0, void 0, function* () {
23
22
  var _a;
24
23
  const { path: workspacePath, workspace } = (0, utils_1.getWorkspace)(tree);
@@ -28,7 +27,7 @@ const setupProject = (tree, context, features, config) => __awaiter(void 0, void
28
27
  const featuresToImport = features.filter(it => it !== 0);
29
28
  if (featuresToImport.length > 0) {
30
29
  (0, utils_1.addToNgModule)(tree, { features: featuresToImport, sourcePath });
31
- (0, utils_1.addFixesToServer)(tree, { features: featuresToImport, sourcePath });
30
+ (0, utils_1.addFixesToServer)(tree);
32
31
  }
33
32
  if (config.sdkConfig) {
34
33
  const source = `
@@ -35,10 +35,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
35
35
  exports.projectTypePrompt = exports.sitePrompt = exports.appPrompt = exports.projectPrompt = exports.userPrompt = exports.featuresPrompt = exports.searchSites = exports.searchApps = exports.searchProjects = void 0;
36
36
  const fuzzy = __importStar(require("fuzzy"));
37
37
  const inquirer = __importStar(require("inquirer"));
38
+ const common_1 = require("../common");
39
+ const firebaseTools_1 = require("../firebaseTools");
38
40
  const interfaces_1 = require("../interfaces");
39
41
  const utils_1 = require("../utils");
40
- const firebaseTools_1 = require("../firebaseTools");
41
- const common_1 = require("../common");
42
42
  inquirer.registerPrompt('autocomplete', require('inquirer-autocomplete-prompt'));
43
43
  const NEW_OPTION = '~~angularfire-new~~';
44
44
  const DEFAULT_SITE_TYPE = 'DEFAULT_SITE';
@@ -190,7 +190,7 @@ const projectPrompt = (defaultProject, options) => __awaiter(void 0, void 0, voi
190
190
  });
191
191
  return yield firebaseTools.projects.create(projectId, { account: options.account, displayName, nonInteractive: true });
192
192
  }
193
- return (yield projects).find(it => it.projectId === projectId);
193
+ return (projects).find(it => it.projectId === projectId);
194
194
  });
195
195
  exports.projectPrompt = projectPrompt;
196
196
  const appPrompt = ({ projectId: project }, defaultAppId, options) => __awaiter(void 0, void 0, void 0, function* () {
@@ -209,10 +209,9 @@ const appPrompt = ({ projectId: project }, defaultAppId, options) => __awaiter(v
209
209
  name: 'displayName',
210
210
  message: 'What would you like to call your app?',
211
211
  });
212
- ;
213
212
  return yield firebaseTools.apps.create('web', displayName, Object.assign(Object.assign({}, options), { nonInteractive: true, project }));
214
213
  }
215
- return (yield apps).find(it => (0, utils_1.shortAppId)(it) === appId);
214
+ return (apps).find(it => (0, utils_1.shortAppId)(it) === appId);
216
215
  });
217
216
  exports.appPrompt = appPrompt;
218
217
  const sitePrompt = ({ projectId: project }, options) => __awaiter(void 0, void 0, void 0, function* () {
@@ -245,7 +244,7 @@ const sitePrompt = ({ projectId: project }, options) => __awaiter(void 0, void 0
245
244
  });
246
245
  return yield firebaseTools.hosting.sites.create(subdomain, Object.assign(Object.assign({}, options), { nonInteractive: true, project }));
247
246
  }
248
- return (yield sites).find(it => (0, common_1.shortSiteName)(it) === siteName);
247
+ return (sites).find(it => (0, common_1.shortSiteName)(it) === siteName);
249
248
  });
250
249
  exports.sitePrompt = sitePrompt;
251
250
  const DEFAULT_REGION = 'us-central1';
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "angular-fire-ng-add",
4
+ "title": "AngularFire ng-add",
5
+ "type": "object",
6
+ "properties": {
7
+ "project": {
8
+ "type": "string",
9
+ "description": "The name of the project.",
10
+ "$default": {
11
+ "$source": "projectName"
12
+ }
13
+ }
14
+ },
15
+ "required": []
16
+ }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ngPostUpdate = void 0;
4
- const ngPostUpdate = () => (host, context) => {
4
+ const ngPostUpdate = () => (host, _context) => {
5
5
  return host;
6
6
  };
7
7
  exports.ngPostUpdate = ngPostUpdate;