@angular/fire 7.6.0 → 16.0.0-canary.596e208

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 (466) hide show
  1. package/analytics/is-analytics-supported-factory.d.ts +4 -0
  2. package/app-check/app-check.d.ts +0 -6
  3. package/app-check/app-check.module.d.ts +0 -1
  4. package/app-check/public_api.d.ts +2 -1
  5. package/auth-guard/auth-guard.d.ts +4 -4
  6. package/compat/auth/auth.d.ts +1 -1
  7. package/compat/auth-guard/auth-guard.d.ts +6 -4
  8. package/compat/database/interfaces.d.ts +12 -12
  9. package/compat/firestore/interfaces.d.ts +17 -17
  10. package/compat/proxy.d.ts +8 -8
  11. package/compat/remote-config/interfaces.d.ts +1 -1
  12. package/compat/storage/interfaces.d.ts +8 -8
  13. package/compat/storage/pipes/storageUrl.pipe.d.ts +1 -1
  14. package/core.d.ts +8 -12
  15. package/esm2022/analytics/analytics.module.mjs +94 -0
  16. package/esm2022/analytics/is-analytics-supported-factory.mjs +16 -0
  17. package/esm2022/analytics/overrides.mjs +3 -0
  18. package/esm2022/analytics/screen-tracking.service.mjs +147 -0
  19. package/esm2022/analytics/user-tracking.service.mjs +44 -0
  20. package/esm2022/app/app.module.mjs +84 -0
  21. package/esm2022/app-check/app-check.mjs +10 -0
  22. package/esm2022/app-check/app-check.module.mjs +79 -0
  23. package/esm2022/app-check/public_api.mjs +5 -0
  24. package/esm2022/auth/auth.module.mjs +71 -0
  25. package/esm2022/auth-guard/auth-guard.mjs +51 -0
  26. package/{esm2015/auth-guard/auth-guard.module.js → esm2022/auth-guard/auth-guard.module.mjs} +5 -5
  27. package/esm2022/compat/analytics/analytics.mjs +161 -0
  28. package/{esm2015/compat/analytics/analytics.module.js → esm2022/compat/analytics/analytics.module.mjs} +5 -5
  29. package/esm2022/compat/analytics/screen-tracking.service.mjs +49 -0
  30. package/esm2022/compat/analytics/user-tracking.service.mjs +53 -0
  31. package/esm2022/compat/auth/auth.mjs +161 -0
  32. package/{esm2015/compat/auth/auth.module.js → esm2022/compat/auth/auth.module.mjs} +5 -5
  33. package/{esm2015/compat/auth/public_api.js → esm2022/compat/auth/public_api.mjs} +1 -1
  34. package/esm2022/compat/auth-guard/auth-guard.mjs +51 -0
  35. package/{esm2015/compat/auth-guard/auth-guard.module.js → esm2022/compat/auth-guard/auth-guard.module.mjs} +5 -5
  36. package/{esm2015/compat/cache.js → esm2022/compat/cache.mjs} +3 -3
  37. package/esm2022/compat/database/database.mjs +119 -0
  38. package/{esm2015/compat/database/database.module.js → esm2022/compat/database/database.module.mjs} +5 -5
  39. package/esm2022/compat/database/list/create-reference.mjs +44 -0
  40. package/{esm2015/compat/firebase.app.module.js → esm2022/compat/firebase.app.module.mjs} +11 -11
  41. package/esm2022/compat/firestore/collection/changes.mjs +108 -0
  42. package/esm2022/compat/firestore/collection/collection.mjs +123 -0
  43. package/esm2022/compat/firestore/collection-group/collection-group.mjs +86 -0
  44. package/esm2022/compat/firestore/document/document.mjs +87 -0
  45. package/esm2022/compat/firestore/firestore.mjs +257 -0
  46. package/{esm2015/compat/firestore/firestore.module.js → esm2022/compat/firestore/firestore.module.mjs} +5 -5
  47. package/esm2022/compat/firestore/interfaces.mjs +2 -0
  48. package/esm2022/compat/firestore/observable/fromRef.mjs +40 -0
  49. package/esm2022/compat/functions/functions.mjs +69 -0
  50. package/{esm2015/compat/functions/functions.module.js → esm2022/compat/functions/functions.module.mjs} +5 -5
  51. package/{esm2015/compat/functions/public_api.js → esm2022/compat/functions/public_api.mjs} +1 -1
  52. package/esm2022/compat/messaging/messaging.mjs +80 -0
  53. package/{esm2015/compat/messaging/messaging.module.js → esm2022/compat/messaging/messaging.module.mjs} +5 -5
  54. package/{esm2015/compat/performance/performance.js → esm2022/compat/performance/performance.mjs} +7 -6
  55. package/{esm2015/compat/performance/performance.module.js → esm2022/compat/performance/performance.module.mjs} +5 -5
  56. package/esm2022/compat/performance/performance.service.mjs +27 -0
  57. package/esm2022/compat/proxy.mjs +59 -0
  58. package/esm2022/compat/remote-config/remote-config.mjs +207 -0
  59. package/{esm2015/compat/remote-config/remote-config.module.js → esm2022/compat/remote-config/remote-config.module.mjs} +5 -5
  60. package/esm2022/compat/storage/pipes/storageUrl.pipe.mjs +58 -0
  61. package/esm2022/compat/storage/storage.mjs +95 -0
  62. package/{esm2015/compat/storage/storage.module.js → esm2022/compat/storage/storage.module.mjs} +5 -5
  63. package/esm2022/core.mjs +45 -0
  64. package/esm2022/database/database.module.mjs +74 -0
  65. package/esm2022/firestore/firestore.module.mjs +74 -0
  66. package/esm2022/firestore/lite/lite.module.mjs +73 -0
  67. package/esm2022/firestore/rxfire.mjs +15 -0
  68. package/esm2022/functions/functions.module.mjs +74 -0
  69. package/esm2022/messaging/is-messaging-supported-factory.mjs +16 -0
  70. package/esm2022/messaging/messaging.module.mjs +86 -0
  71. package/esm2022/messaging/overrides.mjs +3 -0
  72. package/{esm2015/performance/performance.module.js → esm2022/performance/performance.module.mjs} +8 -8
  73. package/esm2022/remote-config/is-remote-config-supported-factory.mjs +16 -0
  74. package/esm2022/remote-config/overrides.mjs +3 -0
  75. package/esm2022/remote-config/remote-config.module.mjs +86 -0
  76. package/esm2022/storage/storage.module.mjs +74 -0
  77. package/esm2022/zones.mjs +196 -0
  78. package/{fesm2015/angular-fire-analytics.js → fesm2022/angular-fire-analytics.mjs} +61 -38
  79. package/fesm2022/angular-fire-analytics.mjs.map +1 -0
  80. package/{fesm2015/angular-fire-app-check.js → fesm2022/angular-fire-app-check.mjs} +15 -22
  81. package/fesm2022/angular-fire-app-check.mjs.map +1 -0
  82. package/{fesm2015/angular-fire-app.js → fesm2022/angular-fire-app.mjs} +8 -8
  83. package/fesm2022/angular-fire-app.mjs.map +1 -0
  84. package/{fesm2015/angular-fire-auth-guard.js → fesm2022/angular-fire-auth-guard.mjs} +25 -23
  85. package/fesm2022/angular-fire-auth-guard.mjs.map +1 -0
  86. package/{fesm2015/angular-fire-auth.js → fesm2022/angular-fire-auth.mjs} +10 -11
  87. package/fesm2022/angular-fire-auth.mjs.map +1 -0
  88. package/{fesm2015/angular-fire-compat-analytics.js → fesm2022/angular-fire-compat-analytics.mjs} +28 -28
  89. package/fesm2022/angular-fire-compat-analytics.mjs.map +1 -0
  90. package/{fesm2015/angular-fire-compat-auth-guard.js → fesm2022/angular-fire-compat-auth-guard.mjs} +25 -23
  91. package/fesm2022/angular-fire-compat-auth-guard.mjs.map +1 -0
  92. package/{fesm2015/angular-fire-compat-auth.js → fesm2022/angular-fire-compat-auth.mjs} +32 -10
  93. package/fesm2022/angular-fire-compat-auth.mjs.map +1 -0
  94. package/{fesm2015/angular-fire-compat-database.js → fesm2022/angular-fire-compat-database.mjs} +17 -12
  95. package/fesm2022/angular-fire-compat-database.mjs.map +1 -0
  96. package/{fesm2015/angular-fire-compat-firestore.js → fesm2022/angular-fire-compat-firestore.mjs} +37 -16
  97. package/fesm2022/angular-fire-compat-firestore.mjs.map +1 -0
  98. package/{fesm2015/angular-fire-compat-functions.js → fesm2022/angular-fire-compat-functions.mjs} +10 -9
  99. package/fesm2022/angular-fire-compat-functions.mjs.map +1 -0
  100. package/{fesm2015/angular-fire-compat-messaging.js → fesm2022/angular-fire-compat-messaging.mjs} +20 -15
  101. package/fesm2022/angular-fire-compat-messaging.mjs.map +1 -0
  102. package/{fesm2015/angular-fire-compat-performance.js → fesm2022/angular-fire-compat-performance.mjs} +16 -15
  103. package/fesm2022/angular-fire-compat-performance.mjs.map +1 -0
  104. package/{fesm2015/angular-fire-compat-remote-config.js → fesm2022/angular-fire-compat-remote-config.mjs} +33 -19
  105. package/fesm2022/angular-fire-compat-remote-config.mjs.map +1 -0
  106. package/{fesm2015/angular-fire-compat-storage.js → fesm2022/angular-fire-compat-storage.mjs} +23 -18
  107. package/fesm2022/angular-fire-compat-storage.mjs.map +1 -0
  108. package/{fesm2015/angular-fire-compat.js → fesm2022/angular-fire-compat.mjs} +15 -17
  109. package/fesm2022/angular-fire-compat.mjs.map +1 -0
  110. package/{fesm2015/angular-fire-database.js → fesm2022/angular-fire-database.mjs} +10 -11
  111. package/fesm2022/angular-fire-database.mjs.map +1 -0
  112. package/{fesm2015/angular-fire-firestore-lite.js → fesm2022/angular-fire-firestore-lite.mjs} +10 -11
  113. package/fesm2022/angular-fire-firestore-lite.mjs.map +1 -0
  114. package/{fesm2015/angular-fire-firestore.js → fesm2022/angular-fire-firestore.mjs} +14 -13
  115. package/fesm2022/angular-fire-firestore.mjs.map +1 -0
  116. package/{fesm2015/angular-fire-functions.js → fesm2022/angular-fire-functions.mjs} +10 -11
  117. package/fesm2022/angular-fire-functions.mjs.map +1 -0
  118. package/{fesm2015/angular-fire-messaging.js → fesm2022/angular-fire-messaging.mjs} +33 -19
  119. package/fesm2022/angular-fire-messaging.mjs.map +1 -0
  120. package/{fesm2015/angular-fire-performance.js → fesm2022/angular-fire-performance.mjs} +8 -8
  121. package/fesm2022/angular-fire-performance.mjs.map +1 -0
  122. package/{fesm2015/angular-fire-remote-config.js → fesm2022/angular-fire-remote-config.mjs} +34 -20
  123. package/fesm2022/angular-fire-remote-config.mjs.map +1 -0
  124. package/{fesm2015/angular-fire-storage.js → fesm2022/angular-fire-storage.mjs} +10 -11
  125. package/fesm2022/angular-fire-storage.mjs.map +1 -0
  126. package/{fesm2015/angular-fire.js → fesm2022/angular-fire.mjs} +31 -52
  127. package/fesm2022/angular-fire.mjs.map +1 -0
  128. package/firestore/rxfire.d.ts +3 -1
  129. package/messaging/is-messaging-supported-factory.d.ts +4 -0
  130. package/package.json +159 -9
  131. package/publish.sh +1 -0
  132. package/remote-config/is-remote-config-supported-factory.d.ts +4 -0
  133. package/schematics/add/index.js +1 -1
  134. package/schematics/common.js +8 -4
  135. package/schematics/deploy/actions.js +59 -59
  136. package/schematics/deploy/builder.js +5 -5
  137. package/schematics/firebaseTools.js +9 -5
  138. package/schematics/setup/index.js +24 -23
  139. package/schematics/setup/prompts.js +20 -15
  140. package/schematics/update/v7/index.js +5 -5
  141. package/schematics/utils.js +30 -30
  142. package/README.md +0 -216
  143. package/analytics/package.json +0 -11
  144. package/app/package.json +0 -11
  145. package/app-check/package.json +0 -11
  146. package/auth/package.json +0 -11
  147. package/auth-guard/package.json +0 -11
  148. package/bundles/angular-fire-analytics.umd.js +0 -673
  149. package/bundles/angular-fire-analytics.umd.js.map +0 -1
  150. package/bundles/angular-fire-app-check.umd.js +0 -465
  151. package/bundles/angular-fire-app-check.umd.js.map +0 -1
  152. package/bundles/angular-fire-app.umd.js +0 -477
  153. package/bundles/angular-fire-app.umd.js.map +0 -1
  154. package/bundles/angular-fire-auth-guard.umd.js +0 -109
  155. package/bundles/angular-fire-auth-guard.umd.js.map +0 -1
  156. package/bundles/angular-fire-auth.umd.js +0 -557
  157. package/bundles/angular-fire-auth.umd.js.map +0 -1
  158. package/bundles/angular-fire-compat-analytics.umd.js +0 -672
  159. package/bundles/angular-fire-compat-analytics.umd.js.map +0 -1
  160. package/bundles/angular-fire-compat-auth-guard.umd.js +0 -112
  161. package/bundles/angular-fire-compat-auth-guard.umd.js.map +0 -1
  162. package/bundles/angular-fire-compat-auth.umd.js +0 -559
  163. package/bundles/angular-fire-compat-auth.umd.js.map +0 -1
  164. package/bundles/angular-fire-compat-database.umd.js +0 -799
  165. package/bundles/angular-fire-compat-database.umd.js.map +0 -1
  166. package/bundles/angular-fire-compat-firestore.umd.js +0 -1073
  167. package/bundles/angular-fire-compat-firestore.umd.js.map +0 -1
  168. package/bundles/angular-fire-compat-functions.umd.js +0 -443
  169. package/bundles/angular-fire-compat-functions.umd.js.map +0 -1
  170. package/bundles/angular-fire-compat-messaging.umd.js +0 -465
  171. package/bundles/angular-fire-compat-messaging.umd.js.map +0 -1
  172. package/bundles/angular-fire-compat-performance.umd.js +0 -212
  173. package/bundles/angular-fire-compat-performance.umd.js.map +0 -1
  174. package/bundles/angular-fire-compat-remote-config.umd.js +0 -605
  175. package/bundles/angular-fire-compat-remote-config.umd.js.map +0 -1
  176. package/bundles/angular-fire-compat-storage.umd.js +0 -598
  177. package/bundles/angular-fire-compat-storage.umd.js.map +0 -1
  178. package/bundles/angular-fire-compat.umd.js +0 -535
  179. package/bundles/angular-fire-compat.umd.js.map +0 -1
  180. package/bundles/angular-fire-database.umd.js +0 -557
  181. package/bundles/angular-fire-database.umd.js.map +0 -1
  182. package/bundles/angular-fire-firestore-lite.umd.js +0 -531
  183. package/bundles/angular-fire-firestore-lite.umd.js.map +0 -1
  184. package/bundles/angular-fire-firestore.umd.js +0 -565
  185. package/bundles/angular-fire-firestore.umd.js.map +0 -1
  186. package/bundles/angular-fire-functions.umd.js +0 -461
  187. package/bundles/angular-fire-functions.umd.js.map +0 -1
  188. package/bundles/angular-fire-messaging.umd.js +0 -473
  189. package/bundles/angular-fire-messaging.umd.js.map +0 -1
  190. package/bundles/angular-fire-performance.umd.js +0 -473
  191. package/bundles/angular-fire-performance.umd.js.map +0 -1
  192. package/bundles/angular-fire-remote-config.umd.js +0 -499
  193. package/bundles/angular-fire-remote-config.umd.js.map +0 -1
  194. package/bundles/angular-fire-storage.umd.js +0 -485
  195. package/bundles/angular-fire-storage.umd.js.map +0 -1
  196. package/bundles/angular-fire.umd.js +0 -308
  197. package/bundles/angular-fire.umd.js.map +0 -1
  198. package/compat/analytics/package.json +0 -11
  199. package/compat/auth/package.json +0 -11
  200. package/compat/auth-guard/package.json +0 -11
  201. package/compat/database/package.json +0 -11
  202. package/compat/firestore/package.json +0 -11
  203. package/compat/functions/package.json +0 -11
  204. package/compat/messaging/package.json +0 -11
  205. package/compat/package.json +0 -11
  206. package/compat/performance/package.json +0 -11
  207. package/compat/remote-config/package.json +0 -11
  208. package/compat/storage/package.json +0 -11
  209. package/database/package.json +0 -11
  210. package/docs/analytics.md +0 -67
  211. package/docs/app-check.md +0 -53
  212. package/docs/auth.md +0 -165
  213. package/docs/compat/analytics/getting-started.md +0 -137
  214. package/docs/compat/auth/getting-started.md +0 -162
  215. package/docs/compat/auth/router-guards.md +0 -104
  216. package/docs/compat/emulators/emulators.md +0 -134
  217. package/docs/compat/firestore/collections.md +0 -326
  218. package/docs/compat/firestore/documents.md +0 -115
  219. package/docs/compat/firestore/offline-data.md +0 -39
  220. package/docs/compat/firestore/querying-collections.md +0 -204
  221. package/docs/compat/functions/functions.md +0 -166
  222. package/docs/compat/messaging/messaging.md +0 -232
  223. package/docs/compat/performance/getting-started.md +0 -132
  224. package/docs/compat/remote-config/getting-started.md +0 -134
  225. package/docs/compat/rtdb/lists.md +0 -257
  226. package/docs/compat/rtdb/objects.md +0 -182
  227. package/docs/compat/rtdb/querying-lists.md +0 -155
  228. package/docs/compat/storage/storage.md +0 -257
  229. package/docs/compat.md +0 -70
  230. package/docs/database.md +0 -175
  231. package/docs/deploy/getting-started.md +0 -204
  232. package/docs/firebase.json +0 -16
  233. package/docs/firestore.md +0 -148
  234. package/docs/functions.md +0 -52
  235. package/docs/images/analytics-illo_1x.png +0 -0
  236. package/docs/images/auth-illo_1x.png +0 -0
  237. package/docs/images/cloud-messaging-illo_1x.png +0 -0
  238. package/docs/images/database-illo_1x.png +0 -0
  239. package/docs/images/firestore-illo_1x.png +0 -0
  240. package/docs/images/functions-illo_1x.png +0 -0
  241. package/docs/images/hosting-illo_1x.png +0 -0
  242. package/docs/images/performance-illo_1x.png +0 -0
  243. package/docs/images/reCAPTCHA-logo@1x.png +0 -0
  244. package/docs/images/remote-config-illo_1x.png +0 -0
  245. package/docs/images/storage-illo_1x.png +0 -0
  246. package/docs/install-and-setup.md +0 -114
  247. package/docs/install-angular-cli-windows10.md +0 -82
  248. package/docs/messaging.md +0 -25
  249. package/docs/performance.md +0 -57
  250. package/docs/remote-config.md +0 -53
  251. package/docs/storage.md +0 -90
  252. package/docs/universal/cloud-functions.md +0 -75
  253. package/docs/universal/getting-started.md +0 -153
  254. package/docs/universal/prerendering.md +0 -72
  255. package/docs/version-4-upgrade.md +0 -119
  256. package/docs/version-5-upgrade.md +0 -82
  257. package/docs/version-6-upgrade.md +0 -16
  258. package/docs/version-7-upgrade.md +0 -298
  259. package/esm2015/analytics/analytics.module.js +0 -93
  260. package/esm2015/analytics/overrides.js +0 -3
  261. package/esm2015/analytics/screen-tracking.service.js +0 -139
  262. package/esm2015/analytics/user-tracking.service.js +0 -43
  263. package/esm2015/app/app.module.js +0 -84
  264. package/esm2015/app-check/app-check.js +0 -16
  265. package/esm2015/app-check/app-check.module.js +0 -81
  266. package/esm2015/app-check/public_api.js +0 -4
  267. package/esm2015/auth/auth.module.js +0 -71
  268. package/esm2015/auth-guard/auth-guard.js +0 -49
  269. package/esm2015/compat/analytics/analytics.js +0 -163
  270. package/esm2015/compat/analytics/screen-tracking.service.js +0 -49
  271. package/esm2015/compat/analytics/user-tracking.service.js +0 -52
  272. package/esm2015/compat/auth/auth.js +0 -139
  273. package/esm2015/compat/auth-guard/auth-guard.js +0 -49
  274. package/esm2015/compat/database/database.js +0 -117
  275. package/esm2015/compat/database/list/create-reference.js +0 -41
  276. package/esm2015/compat/firestore/collection/changes.js +0 -107
  277. package/esm2015/compat/firestore/collection/collection.js +0 -117
  278. package/esm2015/compat/firestore/collection-group/collection-group.js +0 -81
  279. package/esm2015/compat/firestore/document/document.js +0 -82
  280. package/esm2015/compat/firestore/firestore.js +0 -254
  281. package/esm2015/compat/firestore/interfaces.js +0 -2
  282. package/esm2015/compat/firestore/observable/fromRef.js +0 -39
  283. package/esm2015/compat/functions/functions.js +0 -68
  284. package/esm2015/compat/messaging/messaging.js +0 -75
  285. package/esm2015/compat/performance/performance.service.js +0 -27
  286. package/esm2015/compat/proxy.js +0 -61
  287. package/esm2015/compat/remote-config/remote-config.js +0 -193
  288. package/esm2015/compat/storage/pipes/storageUrl.pipe.js +0 -54
  289. package/esm2015/compat/storage/storage.js +0 -94
  290. package/esm2015/core.js +0 -79
  291. package/esm2015/database/database.module.js +0 -74
  292. package/esm2015/firestore/firestore.module.js +0 -74
  293. package/esm2015/firestore/lite/lite.module.js +0 -74
  294. package/esm2015/firestore/rxfire.js +0 -13
  295. package/esm2015/functions/functions.module.js +0 -74
  296. package/esm2015/messaging/messaging.module.js +0 -85
  297. package/esm2015/messaging/overrides.js +0 -3
  298. package/esm2015/remote-config/overrides.js +0 -3
  299. package/esm2015/remote-config/remote-config.module.js +0 -85
  300. package/esm2015/storage/storage.module.js +0 -74
  301. package/esm2015/zones.js +0 -183
  302. package/fesm2015/angular-fire-analytics.js.map +0 -1
  303. package/fesm2015/angular-fire-app-check.js.map +0 -1
  304. package/fesm2015/angular-fire-app.js.map +0 -1
  305. package/fesm2015/angular-fire-auth-guard.js.map +0 -1
  306. package/fesm2015/angular-fire-auth.js.map +0 -1
  307. package/fesm2015/angular-fire-compat-analytics.js.map +0 -1
  308. package/fesm2015/angular-fire-compat-auth-guard.js.map +0 -1
  309. package/fesm2015/angular-fire-compat-auth.js.map +0 -1
  310. package/fesm2015/angular-fire-compat-database.js.map +0 -1
  311. package/fesm2015/angular-fire-compat-firestore.js.map +0 -1
  312. package/fesm2015/angular-fire-compat-functions.js.map +0 -1
  313. package/fesm2015/angular-fire-compat-messaging.js.map +0 -1
  314. package/fesm2015/angular-fire-compat-performance.js.map +0 -1
  315. package/fesm2015/angular-fire-compat-remote-config.js.map +0 -1
  316. package/fesm2015/angular-fire-compat-storage.js.map +0 -1
  317. package/fesm2015/angular-fire-compat.js.map +0 -1
  318. package/fesm2015/angular-fire-database.js.map +0 -1
  319. package/fesm2015/angular-fire-firestore-lite.js.map +0 -1
  320. package/fesm2015/angular-fire-firestore.js.map +0 -1
  321. package/fesm2015/angular-fire-functions.js.map +0 -1
  322. package/fesm2015/angular-fire-messaging.js.map +0 -1
  323. package/fesm2015/angular-fire-performance.js.map +0 -1
  324. package/fesm2015/angular-fire-remote-config.js.map +0 -1
  325. package/fesm2015/angular-fire-storage.js.map +0 -1
  326. package/fesm2015/angular-fire.js.map +0 -1
  327. package/firestore/lite/package.json +0 -11
  328. package/firestore/package.json +0 -11
  329. package/firestore-protos.js +0 -4
  330. package/functions/package.json +0 -11
  331. package/messaging/package.json +0 -11
  332. package/performance/package.json +0 -11
  333. package/remote-config/package.json +0 -11
  334. package/schematics/add/schema.json +0 -16
  335. package/schematics/builders.json +0 -10
  336. package/schematics/collection.json +0 -15
  337. package/schematics/deploy/schema.json +0 -119
  338. package/schematics/migration.json +0 -15
  339. package/schematics/setup/schema.json +0 -16
  340. package/storage/package.json +0 -11
  341. /package/analytics/{angular-fire-analytics.d.ts → index.d.ts} +0 -0
  342. /package/app/{angular-fire-app.d.ts → index.d.ts} +0 -0
  343. /package/app-check/{angular-fire-app-check.d.ts → index.d.ts} +0 -0
  344. /package/auth/{angular-fire-auth.d.ts → index.d.ts} +0 -0
  345. /package/auth-guard/{angular-fire-auth-guard.d.ts → index.d.ts} +0 -0
  346. /package/compat/analytics/{angular-fire-compat-analytics.d.ts → index.d.ts} +0 -0
  347. /package/compat/auth/{angular-fire-compat-auth.d.ts → index.d.ts} +0 -0
  348. /package/compat/auth-guard/{angular-fire-compat-auth-guard.d.ts → index.d.ts} +0 -0
  349. /package/compat/database/{angular-fire-compat-database.d.ts → index.d.ts} +0 -0
  350. /package/compat/firestore/{angular-fire-compat-firestore.d.ts → index.d.ts} +0 -0
  351. /package/compat/functions/{angular-fire-compat-functions.d.ts → index.d.ts} +0 -0
  352. /package/compat/{angular-fire-compat.d.ts → index.d.ts} +0 -0
  353. /package/compat/messaging/{angular-fire-compat-messaging.d.ts → index.d.ts} +0 -0
  354. /package/compat/performance/{angular-fire-compat-performance.d.ts → index.d.ts} +0 -0
  355. /package/compat/remote-config/{angular-fire-compat-remote-config.d.ts → index.d.ts} +0 -0
  356. /package/compat/storage/{angular-fire-compat-storage.d.ts → index.d.ts} +0 -0
  357. /package/database/{angular-fire-database.d.ts → index.d.ts} +0 -0
  358. /package/{esm2015/analytics/analytics.js → esm2022/analytics/analytics.mjs} +0 -0
  359. /package/{esm2015/analytics/angular-fire-analytics.js → esm2022/analytics/angular-fire-analytics.mjs} +0 -0
  360. /package/{esm2015/analytics/firebase.js → esm2022/analytics/firebase.mjs} +0 -0
  361. /package/{esm2015/analytics/public_api.js → esm2022/analytics/public_api.mjs} +0 -0
  362. /package/{esm2015/angular-fire.js → esm2022/angular-fire.mjs} +0 -0
  363. /package/{esm2015/app/angular-fire-app.js → esm2022/app/angular-fire-app.mjs} +0 -0
  364. /package/{esm2015/app/app.js → esm2022/app/app.mjs} +0 -0
  365. /package/{esm2015/app/firebase.js → esm2022/app/firebase.mjs} +0 -0
  366. /package/{esm2015/app/public_api.js → esm2022/app/public_api.mjs} +0 -0
  367. /package/{esm2015/app-check/angular-fire-app-check.js → esm2022/app-check/angular-fire-app-check.mjs} +0 -0
  368. /package/{esm2015/app-check/firebase.js → esm2022/app-check/firebase.mjs} +0 -0
  369. /package/{esm2015/auth/angular-fire-auth.js → esm2022/auth/angular-fire-auth.mjs} +0 -0
  370. /package/{esm2015/auth/auth.js → esm2022/auth/auth.mjs} +0 -0
  371. /package/{esm2015/auth/firebase.js → esm2022/auth/firebase.mjs} +0 -0
  372. /package/{esm2015/auth/public_api.js → esm2022/auth/public_api.mjs} +0 -0
  373. /package/{esm2015/auth/rxfire.js → esm2022/auth/rxfire.mjs} +0 -0
  374. /package/{esm2015/auth-guard/angular-fire-auth-guard.js → esm2022/auth-guard/angular-fire-auth-guard.mjs} +0 -0
  375. /package/{esm2015/auth-guard/public_api.js → esm2022/auth-guard/public_api.mjs} +0 -0
  376. /package/{esm2015/compat/analytics/angular-fire-compat-analytics.js → esm2022/compat/analytics/angular-fire-compat-analytics.mjs} +0 -0
  377. /package/{esm2015/compat/analytics/base.js → esm2022/compat/analytics/base.mjs} +0 -0
  378. /package/{esm2015/compat/analytics/public_api.js → esm2022/compat/analytics/public_api.mjs} +0 -0
  379. /package/{esm2015/compat/angular-fire-compat.js → esm2022/compat/angular-fire-compat.mjs} +0 -0
  380. /package/{esm2015/compat/auth/angular-fire-compat-auth.js → esm2022/compat/auth/angular-fire-compat-auth.mjs} +0 -0
  381. /package/{esm2015/compat/auth/base.js → esm2022/compat/auth/base.mjs} +0 -0
  382. /package/{esm2015/compat/auth-guard/angular-fire-compat-auth-guard.js → esm2022/compat/auth-guard/angular-fire-compat-auth-guard.mjs} +0 -0
  383. /package/{esm2015/compat/auth-guard/public_api.js → esm2022/compat/auth-guard/public_api.mjs} +0 -0
  384. /package/{esm2015/compat/database/angular-fire-compat-database.js → esm2022/compat/database/angular-fire-compat-database.mjs} +0 -0
  385. /package/{esm2015/compat/database/interfaces.js → esm2022/compat/database/interfaces.mjs} +0 -0
  386. /package/{esm2015/compat/database/list/audit-trail.js → esm2022/compat/database/list/audit-trail.mjs} +0 -0
  387. /package/{esm2015/compat/database/list/changes.js → esm2022/compat/database/list/changes.mjs} +0 -0
  388. /package/{esm2015/compat/database/list/data-operation.js → esm2022/compat/database/list/data-operation.mjs} +0 -0
  389. /package/{esm2015/compat/database/list/remove.js → esm2022/compat/database/list/remove.mjs} +0 -0
  390. /package/{esm2015/compat/database/list/snapshot-changes.js → esm2022/compat/database/list/snapshot-changes.mjs} +0 -0
  391. /package/{esm2015/compat/database/list/state-changes.js → esm2022/compat/database/list/state-changes.mjs} +0 -0
  392. /package/{esm2015/compat/database/list/utils.js → esm2022/compat/database/list/utils.mjs} +0 -0
  393. /package/{esm2015/compat/database/object/create-reference.js → esm2022/compat/database/object/create-reference.mjs} +0 -0
  394. /package/{esm2015/compat/database/object/snapshot-changes.js → esm2022/compat/database/object/snapshot-changes.mjs} +0 -0
  395. /package/{esm2015/compat/database/observable/fromRef.js → esm2022/compat/database/observable/fromRef.mjs} +0 -0
  396. /package/{esm2015/compat/database/public_api.js → esm2022/compat/database/public_api.mjs} +0 -0
  397. /package/{esm2015/compat/database/utils.js → esm2022/compat/database/utils.mjs} +0 -0
  398. /package/{esm2015/compat/firebase.app.js → esm2022/compat/firebase.app.mjs} +0 -0
  399. /package/{esm2015/compat/firestore/angular-fire-compat-firestore.js → esm2022/compat/firestore/angular-fire-compat-firestore.mjs} +0 -0
  400. /package/{esm2015/compat/firestore/public_api.js → esm2022/compat/firestore/public_api.mjs} +0 -0
  401. /package/{esm2015/compat/functions/angular-fire-compat-functions.js → esm2022/compat/functions/angular-fire-compat-functions.mjs} +0 -0
  402. /package/{esm2015/compat/functions/base.js → esm2022/compat/functions/base.mjs} +0 -0
  403. /package/{esm2015/compat/messaging/angular-fire-compat-messaging.js → esm2022/compat/messaging/angular-fire-compat-messaging.mjs} +0 -0
  404. /package/{esm2015/compat/messaging/base.js → esm2022/compat/messaging/base.mjs} +0 -0
  405. /package/{esm2015/compat/messaging/public_api.js → esm2022/compat/messaging/public_api.mjs} +0 -0
  406. /package/{esm2015/compat/performance/angular-fire-compat-performance.js → esm2022/compat/performance/angular-fire-compat-performance.mjs} +0 -0
  407. /package/{esm2015/compat/performance/base.js → esm2022/compat/performance/base.mjs} +0 -0
  408. /package/{esm2015/compat/performance/public_api.js → esm2022/compat/performance/public_api.mjs} +0 -0
  409. /package/{esm2015/compat/public_api.js → esm2022/compat/public_api.mjs} +0 -0
  410. /package/{esm2015/compat/remote-config/angular-fire-compat-remote-config.js → esm2022/compat/remote-config/angular-fire-compat-remote-config.mjs} +0 -0
  411. /package/{esm2015/compat/remote-config/base.js → esm2022/compat/remote-config/base.mjs} +0 -0
  412. /package/{esm2015/compat/remote-config/interfaces.js → esm2022/compat/remote-config/interfaces.mjs} +0 -0
  413. /package/{esm2015/compat/remote-config/public_api.js → esm2022/compat/remote-config/public_api.mjs} +0 -0
  414. /package/{esm2015/compat/storage/angular-fire-compat-storage.js → esm2022/compat/storage/angular-fire-compat-storage.mjs} +0 -0
  415. /package/{esm2015/compat/storage/interfaces.js → esm2022/compat/storage/interfaces.mjs} +0 -0
  416. /package/{esm2015/compat/storage/observable/fromTask.js → esm2022/compat/storage/observable/fromTask.mjs} +0 -0
  417. /package/{esm2015/compat/storage/public_api.js → esm2022/compat/storage/public_api.mjs} +0 -0
  418. /package/{esm2015/compat/storage/ref.js → esm2022/compat/storage/ref.mjs} +0 -0
  419. /package/{esm2015/compat/storage/task.js → esm2022/compat/storage/task.mjs} +0 -0
  420. /package/{esm2015/database/angular-fire-database.js → esm2022/database/angular-fire-database.mjs} +0 -0
  421. /package/{esm2015/database/database.js → esm2022/database/database.mjs} +0 -0
  422. /package/{esm2015/database/firebase.js → esm2022/database/firebase.mjs} +0 -0
  423. /package/{esm2015/database/public_api.js → esm2022/database/public_api.mjs} +0 -0
  424. /package/{esm2015/database/rxfire.js → esm2022/database/rxfire.mjs} +0 -0
  425. /package/{esm2015/firestore/angular-fire-firestore.js → esm2022/firestore/angular-fire-firestore.mjs} +0 -0
  426. /package/{esm2015/firestore/firebase.js → esm2022/firestore/firebase.mjs} +0 -0
  427. /package/{esm2015/firestore/firestore.js → esm2022/firestore/firestore.mjs} +0 -0
  428. /package/{esm2015/firestore/lite/angular-fire-firestore-lite.js → esm2022/firestore/lite/angular-fire-firestore-lite.mjs} +0 -0
  429. /package/{esm2015/firestore/lite/firebase.js → esm2022/firestore/lite/firebase.mjs} +0 -0
  430. /package/{esm2015/firestore/lite/lite.js → esm2022/firestore/lite/lite.mjs} +0 -0
  431. /package/{esm2015/firestore/lite/public_api.js → esm2022/firestore/lite/public_api.mjs} +0 -0
  432. /package/{esm2015/firestore/lite/rxfire.js → esm2022/firestore/lite/rxfire.mjs} +0 -0
  433. /package/{esm2015/firestore/public_api.js → esm2022/firestore/public_api.mjs} +0 -0
  434. /package/{esm2015/functions/angular-fire-functions.js → esm2022/functions/angular-fire-functions.mjs} +0 -0
  435. /package/{esm2015/functions/firebase.js → esm2022/functions/firebase.mjs} +0 -0
  436. /package/{esm2015/functions/functions.js → esm2022/functions/functions.mjs} +0 -0
  437. /package/{esm2015/functions/public_api.js → esm2022/functions/public_api.mjs} +0 -0
  438. /package/{esm2015/functions/rxfire.js → esm2022/functions/rxfire.mjs} +0 -0
  439. /package/{esm2015/messaging/angular-fire-messaging.js → esm2022/messaging/angular-fire-messaging.mjs} +0 -0
  440. /package/{esm2015/messaging/firebase.js → esm2022/messaging/firebase.mjs} +0 -0
  441. /package/{esm2015/messaging/messaging.js → esm2022/messaging/messaging.mjs} +0 -0
  442. /package/{esm2015/messaging/public_api.js → esm2022/messaging/public_api.mjs} +0 -0
  443. /package/{esm2015/performance/angular-fire-performance.js → esm2022/performance/angular-fire-performance.mjs} +0 -0
  444. /package/{esm2015/performance/firebase.js → esm2022/performance/firebase.mjs} +0 -0
  445. /package/{esm2015/performance/performance.js → esm2022/performance/performance.mjs} +0 -0
  446. /package/{esm2015/performance/public_api.js → esm2022/performance/public_api.mjs} +0 -0
  447. /package/{esm2015/performance/rxfire.js → esm2022/performance/rxfire.mjs} +0 -0
  448. /package/{esm2015/public_api.js → esm2022/public_api.mjs} +0 -0
  449. /package/{esm2015/remote-config/angular-fire-remote-config.js → esm2022/remote-config/angular-fire-remote-config.mjs} +0 -0
  450. /package/{esm2015/remote-config/firebase.js → esm2022/remote-config/firebase.mjs} +0 -0
  451. /package/{esm2015/remote-config/public_api.js → esm2022/remote-config/public_api.mjs} +0 -0
  452. /package/{esm2015/remote-config/remote-config.js → esm2022/remote-config/remote-config.mjs} +0 -0
  453. /package/{esm2015/remote-config/rxfire.js → esm2022/remote-config/rxfire.mjs} +0 -0
  454. /package/{esm2015/storage/angular-fire-storage.js → esm2022/storage/angular-fire-storage.mjs} +0 -0
  455. /package/{esm2015/storage/firebase.js → esm2022/storage/firebase.mjs} +0 -0
  456. /package/{esm2015/storage/public_api.js → esm2022/storage/public_api.mjs} +0 -0
  457. /package/{esm2015/storage/rxfire.js → esm2022/storage/rxfire.mjs} +0 -0
  458. /package/{esm2015/storage/storage.js → esm2022/storage/storage.mjs} +0 -0
  459. /package/firestore/{angular-fire-firestore.d.ts → index.d.ts} +0 -0
  460. /package/firestore/lite/{angular-fire-firestore-lite.d.ts → index.d.ts} +0 -0
  461. /package/functions/{angular-fire-functions.d.ts → index.d.ts} +0 -0
  462. /package/{angular-fire.d.ts → index.d.ts} +0 -0
  463. /package/messaging/{angular-fire-messaging.d.ts → index.d.ts} +0 -0
  464. /package/performance/{angular-fire-performance.d.ts → index.d.ts} +0 -0
  465. /package/remote-config/{angular-fire-remote-config.d.ts → index.d.ts} +0 -0
  466. /package/storage/{angular-fire-storage.d.ts → index.d.ts} +0 -0
@@ -18,16 +18,17 @@ const firebaseTools_1 = require("../firebaseTools");
18
18
  const fs_1 = require("fs");
19
19
  const path_1 = require("path");
20
20
  const common_1 = require("../common");
21
+ ;
21
22
  const setupProject = (tree, context, features, config) => __awaiter(void 0, void 0, void 0, function* () {
22
23
  var _a;
23
- const { path: workspacePath, workspace } = utils_1.getWorkspace(tree);
24
- const { project, projectName } = utils_1.getProject(config, tree);
24
+ const { path: workspacePath, workspace } = (0, utils_1.getWorkspace)(tree);
25
+ const { project, projectName } = (0, utils_1.getProject)(config, tree);
25
26
  const sourcePath = (_a = project.sourceRoot) !== null && _a !== void 0 ? _a : project.root;
26
- utils_1.addIgnoreFiles(tree);
27
+ (0, utils_1.addIgnoreFiles)(tree);
27
28
  const featuresToImport = features.filter(it => it !== 0);
28
29
  if (featuresToImport.length > 0) {
29
- utils_1.addToNgModule(tree, { features: featuresToImport, sourcePath });
30
- utils_1.addFixesToServer(tree, { features: featuresToImport, sourcePath });
30
+ (0, utils_1.addToNgModule)(tree, { features: featuresToImport, sourcePath });
31
+ (0, utils_1.addFixesToServer)(tree, { features: featuresToImport, sourcePath });
31
32
  }
32
33
  if (config.sdkConfig) {
33
34
  const source = `
@@ -35,12 +36,12 @@ const setupProject = (tree, context, features, config) => __awaiter(void 0, void
35
36
  ${Object.entries(config.sdkConfig).reduce((c, [k, v]) => c.concat(` ${k}: '${v}'`), []).join(',\n')},
36
37
  }`;
37
38
  const environmentPath = `${sourcePath}/environments/environment.ts`;
38
- utils_1.addEnvironmentEntry(tree, `/${environmentPath}`, source);
39
+ (0, utils_1.addEnvironmentEntry)(tree, `/${environmentPath}`, source);
39
40
  Object.values(project.architect || {}).forEach(builder => {
40
41
  Object.values(builder.configurations || {}).forEach(configuration => {
41
42
  (configuration.fileReplacements || []).forEach((replacement) => {
42
43
  if (replacement.replace === environmentPath) {
43
- utils_1.addEnvironmentEntry(tree, `/${replacement.with}`, source);
44
+ (0, utils_1.addEnvironmentEntry)(tree, `/${replacement.with}`, source);
44
45
  }
45
46
  });
46
47
  });
@@ -59,7 +60,7 @@ ${Object.entries(config.sdkConfig).reduce((c, [k, v]) => c.concat(` ${k}: '${
59
60
  ssrRegion: config.ssrRegion,
60
61
  };
61
62
  if (features.includes(0)) {
62
- return exports.setupFirebase({
63
+ return (0, exports.setupFirebase)({
63
64
  workspace,
64
65
  workspacePath,
65
66
  options,
@@ -76,41 +77,41 @@ exports.setupProject = setupProject;
76
77
  const ngAddSetupProject = (options) => (host, context) => __awaiter(void 0, void 0, void 0, function* () {
77
78
  let projectRoot = host._backend._root;
78
79
  if (process.platform.startsWith('win32')) {
79
- projectRoot = core_1.asWindowsPath(core_1.normalize(projectRoot));
80
+ projectRoot = (0, core_1.asWindowsPath)((0, core_1.normalize)(projectRoot));
80
81
  }
81
- const features = yield prompts_1.featuresPrompt();
82
+ const features = yield (0, prompts_1.featuresPrompt)();
82
83
  if (features.length > 0) {
83
- const firebaseTools = yield firebaseTools_1.getFirebaseTools();
84
+ const firebaseTools = yield (0, firebaseTools_1.getFirebaseTools)();
84
85
  if (!host.exists('/firebase.json')) {
85
- fs_1.writeFileSync(path_1.join(projectRoot, 'firebase.json'), '{}');
86
+ (0, fs_1.writeFileSync)((0, path_1.join)(projectRoot, 'firebase.json'), '{}');
86
87
  }
87
- const user = yield prompts_1.userPrompt({ projectRoot });
88
+ const user = yield (0, prompts_1.userPrompt)({ projectRoot });
88
89
  yield firebaseTools.login.use(user.email, { projectRoot });
89
- const { project: ngProject, projectName: ngProjectName } = utils_1.getProject(options, host);
90
- const [defaultProjectName] = utils_1.getFirebaseProjectNameFromHost(host, ngProjectName);
91
- const firebaseProject = yield prompts_1.projectPrompt(defaultProjectName, { projectRoot, account: user.email });
90
+ const { project: ngProject, projectName: ngProjectName } = (0, utils_1.getProject)(options, host);
91
+ const [defaultProjectName] = (0, utils_1.getFirebaseProjectNameFromHost)(host, ngProjectName);
92
+ const firebaseProject = yield (0, prompts_1.projectPrompt)(defaultProjectName, { projectRoot, account: user.email });
92
93
  let hosting = {};
93
94
  let firebaseHostingSite;
94
95
  if (features.includes(0)) {
95
- const results = yield prompts_1.projectTypePrompt(ngProject, ngProjectName);
96
+ const results = yield (0, prompts_1.projectTypePrompt)(ngProject, ngProjectName);
96
97
  hosting = Object.assign(Object.assign({}, hosting), results);
97
- firebaseHostingSite = yield prompts_1.sitePrompt(firebaseProject, { projectRoot });
98
+ firebaseHostingSite = yield (0, prompts_1.sitePrompt)(firebaseProject, { projectRoot });
98
99
  }
99
100
  let firebaseApp;
100
101
  let sdkConfig;
101
102
  if (features.find(it => it !== 0)) {
102
103
  const defaultAppId = firebaseHostingSite === null || firebaseHostingSite === void 0 ? void 0 : firebaseHostingSite.appId;
103
- firebaseApp = yield prompts_1.appPrompt(firebaseProject, defaultAppId, { projectRoot });
104
+ firebaseApp = yield (0, prompts_1.appPrompt)(firebaseProject, defaultAppId, { projectRoot });
104
105
  const result = yield firebaseTools.apps.sdkconfig('web', firebaseApp.appId, { nonInteractive: true, projectRoot });
105
106
  sdkConfig = result.sdkConfig;
106
107
  }
107
- yield exports.setupProject(host, context, features, Object.assign(Object.assign(Object.assign({}, options), hosting), { firebaseProject, firebaseApp, firebaseHostingSite, sdkConfig }));
108
+ yield (0, exports.setupProject)(host, context, features, Object.assign(Object.assign(Object.assign({}, options), hosting), { firebaseProject, firebaseApp, firebaseHostingSite, sdkConfig }));
108
109
  }
109
110
  });
110
111
  exports.ngAddSetupProject = ngAddSetupProject;
111
112
  function generateFirebaseJson(tree, path, project, region) {
112
113
  const firebaseJson = tree.exists(path)
113
- ? common_1.safeReadJSON(path, tree)
114
+ ? (0, common_1.safeReadJSON)(path, tree)
114
115
  : {};
115
116
  const newConfig = {
116
117
  target: project,
@@ -134,7 +135,7 @@ function generateFirebaseJson(tree, path, project, region) {
134
135
  else {
135
136
  firebaseJson.hosting = [firebaseJson.hosting, newConfig];
136
137
  }
137
- common_1.overwriteIfExists(tree, path, common_1.stringifyFormatted(firebaseJson));
138
+ (0, common_1.overwriteIfExists)(tree, path, (0, common_1.stringifyFormatted)(firebaseJson));
138
139
  }
139
140
  exports.generateFirebaseJson = generateFirebaseJson;
140
141
  const setupFirebase = (config) => {
@@ -149,7 +150,7 @@ const setupFirebase = (config) => {
149
150
  };
150
151
  tree.overwrite(workspacePath, JSON.stringify(workspace, null, 2));
151
152
  generateFirebaseJson(tree, 'firebase.json', options.project, options.ssrRegion);
152
- common_1.generateFirebaseRc(tree, '.firebaserc', options.firebaseProject.projectId, options.firebaseHostingSite, options.project);
153
+ (0, common_1.generateFirebaseRc)(tree, '.firebaserc', options.firebaseProject.projectId, options.firebaseHostingSite, options.project);
153
154
  return tree;
154
155
  };
155
156
  exports.setupFirebase = setupFirebase;
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -92,7 +96,7 @@ const searchApps = (apps) => (_, input) => __awaiter(void 0, void 0, void 0, fun
92
96
  return {
93
97
  name: original.displayName,
94
98
  title: original.displayName,
95
- value: utils_1.shortAppId(original),
99
+ value: (0, utils_1.shortAppId)(original),
96
100
  };
97
101
  });
98
102
  });
@@ -117,7 +121,7 @@ const searchSites = (sites) => (_, input) => __awaiter(void 0, void 0, void 0, f
117
121
  return {
118
122
  name: original.defaultUrl,
119
123
  title: original.defaultUrl,
120
- value: common_1.shortSiteName(original),
124
+ value: (0, common_1.shortSiteName)(original),
121
125
  };
122
126
  });
123
127
  });
@@ -136,7 +140,7 @@ const featuresPrompt = () => __awaiter(void 0, void 0, void 0, function* () {
136
140
  exports.featuresPrompt = featuresPrompt;
137
141
  const userPrompt = (options) => __awaiter(void 0, void 0, void 0, function* () {
138
142
  var _a;
139
- const firebaseTools = yield firebaseTools_1.getFirebaseTools();
143
+ const firebaseTools = yield (0, firebaseTools_1.getFirebaseTools)();
140
144
  const users = yield firebaseTools.login.list();
141
145
  if (!users || users.length === 0) {
142
146
  yield firebaseTools.login();
@@ -163,12 +167,12 @@ const userPrompt = (options) => __awaiter(void 0, void 0, void 0, function* () {
163
167
  });
164
168
  exports.userPrompt = userPrompt;
165
169
  const projectPrompt = (defaultProject, options) => __awaiter(void 0, void 0, void 0, function* () {
166
- const firebaseTools = yield firebaseTools_1.getFirebaseTools();
170
+ const firebaseTools = yield (0, firebaseTools_1.getFirebaseTools)();
167
171
  const projects = yield firebaseTools.projects.list(options);
168
172
  const { projectId } = yield autocomplete({
169
173
  type: 'autocomplete',
170
174
  name: 'projectId',
171
- source: exports.searchProjects(projects),
175
+ source: (0, exports.searchProjects)(projects),
172
176
  message: 'Please select a project:',
173
177
  default: defaultProject,
174
178
  });
@@ -190,12 +194,12 @@ const projectPrompt = (defaultProject, options) => __awaiter(void 0, void 0, voi
190
194
  });
191
195
  exports.projectPrompt = projectPrompt;
192
196
  const appPrompt = ({ projectId: project }, defaultAppId, options) => __awaiter(void 0, void 0, void 0, function* () {
193
- const firebaseTools = yield firebaseTools_1.getFirebaseTools();
197
+ const firebaseTools = yield (0, firebaseTools_1.getFirebaseTools)();
194
198
  const apps = yield firebaseTools.apps.list('web', Object.assign(Object.assign({}, options), { project }));
195
199
  const { appId } = yield autocomplete({
196
200
  type: 'autocomplete',
197
201
  name: 'appId',
198
- source: exports.searchApps(apps),
202
+ source: (0, exports.searchApps)(apps),
199
203
  message: 'Please select an app:',
200
204
  default: defaultAppId,
201
205
  });
@@ -205,13 +209,14 @@ const appPrompt = ({ projectId: project }, defaultAppId, options) => __awaiter(v
205
209
  name: 'displayName',
206
210
  message: 'What would you like to call your app?',
207
211
  });
212
+ ;
208
213
  return yield firebaseTools.apps.create('web', displayName, Object.assign(Object.assign({}, options), { nonInteractive: true, project }));
209
214
  }
210
- return (yield apps).find(it => utils_1.shortAppId(it) === appId);
215
+ return (yield apps).find(it => (0, utils_1.shortAppId)(it) === appId);
211
216
  });
212
217
  exports.appPrompt = appPrompt;
213
218
  const sitePrompt = ({ projectId: project }, options) => __awaiter(void 0, void 0, void 0, function* () {
214
- const firebaseTools = yield firebaseTools_1.getFirebaseTools();
219
+ const firebaseTools = yield (0, firebaseTools_1.getFirebaseTools)();
215
220
  const sites = yield firebaseTools.hosting.sites.list(Object.assign(Object.assign({}, options), { project })).then(it => {
216
221
  if (it.sites.length === 0) {
217
222
  return [{
@@ -228,9 +233,9 @@ const sitePrompt = ({ projectId: project }, options) => __awaiter(void 0, void 0
228
233
  const { siteName } = yield autocomplete({
229
234
  type: 'autocomplete',
230
235
  name: 'siteName',
231
- source: exports.searchSites(sites),
236
+ source: (0, exports.searchSites)(sites),
232
237
  message: 'Please select a hosting site:',
233
- default: _ => common_1.shortSiteName(sites.find(site => site.type === DEFAULT_SITE_TYPE)),
238
+ default: _ => (0, common_1.shortSiteName)(sites.find(site => site.type === DEFAULT_SITE_TYPE)),
234
239
  });
235
240
  if (siteName === NEW_OPTION) {
236
241
  const { subdomain } = yield inquirer.prompt({
@@ -240,7 +245,7 @@ const sitePrompt = ({ projectId: project }, options) => __awaiter(void 0, void 0
240
245
  });
241
246
  return yield firebaseTools.hosting.sites.create(subdomain, Object.assign(Object.assign({}, options), { nonInteractive: true, project }));
242
247
  }
243
- return (yield sites).find(it => common_1.shortSiteName(it) === siteName);
248
+ return (yield sites).find(it => (0, common_1.shortSiteName)(it) === siteName);
244
249
  });
245
250
  exports.sitePrompt = sitePrompt;
246
251
  const DEFAULT_REGION = 'us-central1';
@@ -256,10 +261,10 @@ const projectTypePrompt = (project, name) => __awaiter(void 0, void 0, void 0, f
256
261
  let serverTarget;
257
262
  let browserTarget = `${name}:build:${((_c = (_b = project.architect) === null || _b === void 0 ? void 0 : _b.build) === null || _c === void 0 ? void 0 : _c.defaultConfiguration) || 'production'}`;
258
263
  let prerenderTarget;
259
- if (utils_1.isUniversalApp(project)) {
264
+ if ((0, utils_1.isUniversalApp)(project)) {
260
265
  serverTarget = `${name}:server:${((_e = (_d = project.architect) === null || _d === void 0 ? void 0 : _d.server) === null || _e === void 0 ? void 0 : _e.defaultConfiguration) || 'production'}`;
261
266
  browserTarget = `${name}:build:${((_g = (_f = project.architect) === null || _f === void 0 ? void 0 : _f.build) === null || _g === void 0 ? void 0 : _g.defaultConfiguration) || 'production'}`;
262
- const prerender = utils_1.hasPrerenderOption(project);
267
+ const prerender = (0, utils_1.hasPrerenderOption)(project);
263
268
  prerenderTarget = prerender && `${name}:prerender:${prerender.defaultConfiguration || 'production'}`;
264
269
  const { ssrRegion } = yield inquirer.prompt({
265
270
  type: 'list',
@@ -8,7 +8,7 @@ const versions_json_1 = require("../../versions.json");
8
8
  const path_1 = require("path");
9
9
  const IMPORT_REGEX = /(?<key>import|export)\s+(?:(?<alias>[\w,{}\s\*]+)\s+from)?\s*(?:(?<quote>["'])?(?<ref>[@\w\s\\\/.-]+)\3?)\s*(?<term>[;\n])/g;
10
10
  const ngUpdate = () => (host, context) => {
11
- const packageJson = host.exists('package.json') && common_1.safeReadJSON('package.json', host);
11
+ const packageJson = host.exists('package.json') && (0, common_1.safeReadJSON)('package.json', host);
12
12
  if (packageJson === undefined) {
13
13
  throw new schematics_1.SchematicsException('Could not locate package.json');
14
14
  }
@@ -27,13 +27,13 @@ const ngUpdate = () => (host, context) => {
27
27
  packageJson.dependencies[depName] = dep.version;
28
28
  }
29
29
  });
30
- common_1.overwriteIfExists(host, 'package.json', common_1.stringifyFormatted(packageJson));
30
+ (0, common_1.overwriteIfExists)(host, 'package.json', (0, common_1.stringifyFormatted)(packageJson));
31
31
  context.addTask(new tasks_1.NodePackageInstallTask());
32
- const angularJson = host.exists('angular.json') && common_1.safeReadJSON('angular.json', host);
32
+ const angularJson = host.exists('angular.json') && (0, common_1.safeReadJSON)('angular.json', host);
33
33
  if (packageJson === undefined) {
34
34
  throw new schematics_1.SchematicsException('Could not locate angular.json');
35
35
  }
36
- const srcRoots = Object.values(angularJson.projects).map((it) => path_1.join(...['/', it.root, it.sourceRoot].filter(it => !!it)));
36
+ const srcRoots = Object.values(angularJson.projects).map((it) => (0, path_1.join)(...['/', it.root, it.sourceRoot].filter(it => !!it)));
37
37
  host.visit(filePath => {
38
38
  var _a;
39
39
  if (!filePath.endsWith('.ts') ||
@@ -59,7 +59,7 @@ const ngUpdate = () => (host, context) => {
59
59
  return substring;
60
60
  });
61
61
  if (content !== newContent) {
62
- common_1.overwriteIfExists(host, filePath, newContent);
62
+ (0, common_1.overwriteIfExists)(host, filePath, newContent);
63
63
  }
64
64
  });
65
65
  return host;
@@ -61,9 +61,9 @@ function getFirebaseProjectNameFromHost(host, target) {
61
61
  }
62
62
  exports.getFirebaseProjectNameFromHost = getFirebaseProjectNameFromHost;
63
63
  function getFirebaseProjectNameFromFs(root, target) {
64
- const path = path_1.join(root, '.firebaserc');
64
+ const path = (0, path_1.join)(root, '.firebaserc');
65
65
  try {
66
- const buffer = fs_1.readFileSync(path);
66
+ const buffer = (0, fs_1.readFileSync)(path);
67
67
  const rc = JSON.parse(buffer.toString());
68
68
  return projectFromRc(rc, target);
69
69
  }
@@ -87,7 +87,7 @@ function addEnvironmentEntry(host, filePath, data) {
87
87
  throw new schematics_1.SchematicsException(`Cannot read ${filePath}`);
88
88
  }
89
89
  const sourceFile = typescript_1.default.createSourceFile(filePath, buffer.toString('utf-8'), typescript_1.default.ScriptTarget.Latest, true);
90
- const envIdentifier = ast_utils_1.findNode(sourceFile, typescript_1.default.SyntaxKind.Identifier, 'environment');
90
+ const envIdentifier = (0, ast_utils_1.findNode)(sourceFile, typescript_1.default.SyntaxKind.Identifier, 'environment');
91
91
  if (!envIdentifier || !envIdentifier.parent) {
92
92
  throw new schematics_1.SchematicsException(`Cannot find 'environment' identifier in ${filePath}`);
93
93
  }
@@ -95,17 +95,17 @@ function addEnvironmentEntry(host, filePath, data) {
95
95
  if (!envObjectLiteral) {
96
96
  throw new schematics_1.SchematicsException(`${filePath} is not in the expected format`);
97
97
  }
98
- const firebaseIdentifier = ast_utils_1.findNode(envObjectLiteral, typescript_1.default.SyntaxKind.Identifier, 'firebase');
98
+ const firebaseIdentifier = (0, ast_utils_1.findNode)(envObjectLiteral, typescript_1.default.SyntaxKind.Identifier, 'firebase');
99
99
  const recorder = host.beginUpdate(filePath);
100
100
  if (firebaseIdentifier && firebaseIdentifier.parent) {
101
101
  const change = new change_1.ReplaceChange(filePath, firebaseIdentifier.parent.pos, firebaseIdentifier.parent.getFullText(), data);
102
- change_1.applyToUpdateRecorder(recorder, [change]);
102
+ (0, change_1.applyToUpdateRecorder)(recorder, [change]);
103
103
  }
104
104
  else {
105
105
  const openBracketToken = envObjectLiteral.getChildren().find(({ kind }) => kind === typescript_1.default.SyntaxKind.OpenBraceToken);
106
106
  if (openBracketToken) {
107
107
  const change = new change_1.InsertChange(filePath, openBracketToken.end, `${data},`);
108
- change_1.applyToUpdateRecorder(recorder, [change]);
108
+ (0, change_1.applyToUpdateRecorder)(recorder, [change]);
109
109
  }
110
110
  else {
111
111
  throw new schematics_1.SchematicsException(`${filePath} is not in the expected format`);
@@ -132,7 +132,7 @@ function addFixesToServer(host, options) {
132
132
  const sourceText = text.toString('utf-8');
133
133
  const addZonePatch = !sourceText.includes('import \'zone.js/dist/zone-patch-rxjs\';');
134
134
  if (addZonePatch) {
135
- common_1.overwriteIfExists(host, serverPath, sourceText.replace('import \'zone.js/dist/zone-node\';', `import 'zone.js/dist/zone-node';
135
+ (0, common_1.overwriteIfExists)(host, serverPath, sourceText.replace('import \'zone.js/dist/zone-node\';', `import 'zone.js/dist/zone-node';
136
136
  ${addZonePatch ? 'import \'zone.js/dist/zone-patch-rxjs\';' : ''}`));
137
137
  }
138
138
  return host;
@@ -149,49 +149,49 @@ function addToNgModule(host, options) {
149
149
  }
150
150
  const sourceText = text.toString('utf-8');
151
151
  const source = typescript_1.default.createSourceFile(modulePath, sourceText, typescript_1.default.ScriptTarget.Latest, true);
152
- const environmentsPath = find_module_1.buildRelativePath(modulePath, `/${options.sourcePath}/environments/environment`);
152
+ const environmentsPath = (0, find_module_1.buildRelativePath)(modulePath, `/${options.sourcePath}/environments/environment`);
153
153
  const changes = [];
154
- if (!ast_utils_1.findNode(source, typescript_1.default.SyntaxKind.Identifier, 'provideFirebaseApp')) {
155
- changes.push(ast_utils_1.insertImport(source, modulePath, ['initializeApp', 'provideFirebaseApp'], '@angular/fire/app'), ast_utils_1.insertImport(source, modulePath, 'environment', environmentsPath), ...ast_utils_1.addImportToModule(source, modulePath, `provideFirebaseApp(() => initializeApp(environment.firebase))`, null));
154
+ if (!(0, ast_utils_1.findNode)(source, typescript_1.default.SyntaxKind.Identifier, 'provideFirebaseApp')) {
155
+ changes.push((0, ast_utils_1.insertImport)(source, modulePath, ['initializeApp', 'provideFirebaseApp'], '@angular/fire/app'), (0, ast_utils_1.insertImport)(source, modulePath, 'environment', environmentsPath), ...(0, ast_utils_1.addImportToModule)(source, modulePath, `provideFirebaseApp(() => initializeApp(environment.firebase))`, null));
156
156
  }
157
157
  if (options.features.includes(2) &&
158
- !ast_utils_1.findNode(source, typescript_1.default.SyntaxKind.Identifier, 'provideAnalytics')) {
159
- changes.push(ast_utils_1.insertImport(source, modulePath, ['provideAnalytics', 'getAnalytics', 'ScreenTrackingService', 'UserTrackingService'], '@angular/fire/analytics'), ...ast_utils_1.addImportToModule(source, modulePath, `provideAnalytics(() => getAnalytics())`, null), ...ast_utils_1.addProviderToModule(source, modulePath, ['ScreenTrackingService', 'UserTrackingService'], null));
158
+ !(0, ast_utils_1.findNode)(source, typescript_1.default.SyntaxKind.Identifier, 'provideAnalytics')) {
159
+ changes.push((0, ast_utils_1.insertImport)(source, modulePath, ['provideAnalytics', 'getAnalytics', 'ScreenTrackingService', 'UserTrackingService'], '@angular/fire/analytics'), ...(0, ast_utils_1.addImportToModule)(source, modulePath, `provideAnalytics(() => getAnalytics())`, null), ...(0, ast_utils_1.addProviderToModule)(source, modulePath, ['ScreenTrackingService', 'UserTrackingService'], null));
160
160
  }
161
161
  if (options.features.includes(1) &&
162
- !ast_utils_1.findNode(source, typescript_1.default.SyntaxKind.Identifier, 'provideAuth')) {
163
- changes.push(ast_utils_1.insertImport(source, modulePath, ['provideAuth', 'getAuth'], '@angular/fire/auth'), ...ast_utils_1.addImportToModule(source, modulePath, `provideAuth(() => getAuth())`, null));
162
+ !(0, ast_utils_1.findNode)(source, typescript_1.default.SyntaxKind.Identifier, 'provideAuth')) {
163
+ changes.push((0, ast_utils_1.insertImport)(source, modulePath, ['provideAuth', 'getAuth'], '@angular/fire/auth'), ...(0, ast_utils_1.addImportToModule)(source, modulePath, `provideAuth(() => getAuth())`, null));
164
164
  }
165
165
  if (options.features.includes(3) &&
166
- !ast_utils_1.findNode(source, typescript_1.default.SyntaxKind.Identifier, 'provideDatabase')) {
167
- changes.push(ast_utils_1.insertImport(source, modulePath, ['provideDatabase', 'getDatabase'], '@angular/fire/database'), ...ast_utils_1.addImportToModule(source, modulePath, `provideDatabase(() => getDatabase())`, null));
166
+ !(0, ast_utils_1.findNode)(source, typescript_1.default.SyntaxKind.Identifier, 'provideDatabase')) {
167
+ changes.push((0, ast_utils_1.insertImport)(source, modulePath, ['provideDatabase', 'getDatabase'], '@angular/fire/database'), ...(0, ast_utils_1.addImportToModule)(source, modulePath, `provideDatabase(() => getDatabase())`, null));
168
168
  }
169
169
  if (options.features.includes(7) &&
170
- !ast_utils_1.findNode(source, typescript_1.default.SyntaxKind.Identifier, 'provideFirestore')) {
171
- changes.push(ast_utils_1.insertImport(source, modulePath, ['provideFirestore', 'getFirestore'], '@angular/fire/firestore'), ...ast_utils_1.addImportToModule(source, modulePath, `provideFirestore(() => getFirestore())`, null));
170
+ !(0, ast_utils_1.findNode)(source, typescript_1.default.SyntaxKind.Identifier, 'provideFirestore')) {
171
+ changes.push((0, ast_utils_1.insertImport)(source, modulePath, ['provideFirestore', 'getFirestore'], '@angular/fire/firestore'), ...(0, ast_utils_1.addImportToModule)(source, modulePath, `provideFirestore(() => getFirestore())`, null));
172
172
  }
173
173
  if (options.features.includes(4) &&
174
- !ast_utils_1.findNode(source, typescript_1.default.SyntaxKind.Identifier, 'provideFunctions')) {
175
- changes.push(ast_utils_1.insertImport(source, modulePath, ['provideFunctions', 'getFunctions'], '@angular/fire/functions'), ...ast_utils_1.addImportToModule(source, modulePath, `provideFunctions(() => getFunctions())`, null));
174
+ !(0, ast_utils_1.findNode)(source, typescript_1.default.SyntaxKind.Identifier, 'provideFunctions')) {
175
+ changes.push((0, ast_utils_1.insertImport)(source, modulePath, ['provideFunctions', 'getFunctions'], '@angular/fire/functions'), ...(0, ast_utils_1.addImportToModule)(source, modulePath, `provideFunctions(() => getFunctions())`, null));
176
176
  }
177
177
  if (options.features.includes(5) &&
178
- !ast_utils_1.findNode(source, typescript_1.default.SyntaxKind.Identifier, 'provideMessaging')) {
179
- changes.push(ast_utils_1.insertImport(source, modulePath, ['provideMessaging', 'getMessaging'], '@angular/fire/messaging'), ...ast_utils_1.addImportToModule(source, modulePath, `provideMessaging(() => getMessaging())`, null));
178
+ !(0, ast_utils_1.findNode)(source, typescript_1.default.SyntaxKind.Identifier, 'provideMessaging')) {
179
+ changes.push((0, ast_utils_1.insertImport)(source, modulePath, ['provideMessaging', 'getMessaging'], '@angular/fire/messaging'), ...(0, ast_utils_1.addImportToModule)(source, modulePath, `provideMessaging(() => getMessaging())`, null));
180
180
  }
181
181
  if (options.features.includes(6) &&
182
- !ast_utils_1.findNode(source, typescript_1.default.SyntaxKind.Identifier, 'providePerformance')) {
183
- changes.push(ast_utils_1.insertImport(source, modulePath, ['providePerformance', 'getPerformance'], '@angular/fire/performance'), ...ast_utils_1.addImportToModule(source, modulePath, `providePerformance(() => getPerformance())`, null));
182
+ !(0, ast_utils_1.findNode)(source, typescript_1.default.SyntaxKind.Identifier, 'providePerformance')) {
183
+ changes.push((0, ast_utils_1.insertImport)(source, modulePath, ['providePerformance', 'getPerformance'], '@angular/fire/performance'), ...(0, ast_utils_1.addImportToModule)(source, modulePath, `providePerformance(() => getPerformance())`, null));
184
184
  }
185
185
  if (options.features.includes(9) &&
186
- !ast_utils_1.findNode(source, typescript_1.default.SyntaxKind.Identifier, 'provideRemoteConfig')) {
187
- changes.push(ast_utils_1.insertImport(source, modulePath, ['provideRemoteConfig', 'getRemoteConfig'], '@angular/fire/remote-config'), ...ast_utils_1.addImportToModule(source, modulePath, `provideRemoteConfig(() => getRemoteConfig())`, null));
186
+ !(0, ast_utils_1.findNode)(source, typescript_1.default.SyntaxKind.Identifier, 'provideRemoteConfig')) {
187
+ changes.push((0, ast_utils_1.insertImport)(source, modulePath, ['provideRemoteConfig', 'getRemoteConfig'], '@angular/fire/remote-config'), ...(0, ast_utils_1.addImportToModule)(source, modulePath, `provideRemoteConfig(() => getRemoteConfig())`, null));
188
188
  }
189
189
  if (options.features.includes(8) &&
190
- !ast_utils_1.findNode(source, typescript_1.default.SyntaxKind.Identifier, 'provideStorage')) {
191
- changes.push(ast_utils_1.insertImport(source, modulePath, ['provideStorage', 'getStorage'], '@angular/fire/storage'), ...ast_utils_1.addImportToModule(source, modulePath, `provideStorage(() => getStorage())`, null));
190
+ !(0, ast_utils_1.findNode)(source, typescript_1.default.SyntaxKind.Identifier, 'provideStorage')) {
191
+ changes.push((0, ast_utils_1.insertImport)(source, modulePath, ['provideStorage', 'getStorage'], '@angular/fire/storage'), ...(0, ast_utils_1.addImportToModule)(source, modulePath, `provideStorage(() => getStorage())`, null));
192
192
  }
193
193
  const recorder = host.beginUpdate(modulePath);
194
- change_1.applyToUpdateRecorder(recorder, changes);
194
+ (0, change_1.applyToUpdateRecorder)(recorder, changes);
195
195
  host.commitUpdate(recorder);
196
196
  return host;
197
197
  }
@@ -207,7 +207,7 @@ const addIgnoreFiles = (host) => {
207
207
  }
208
208
  const content = buffer.toString();
209
209
  if (!content.includes('# Firebase')) {
210
- common_1.overwriteIfExists(host, path, content.concat(`
210
+ (0, common_1.overwriteIfExists)(host, path, content.concat(`
211
211
  # Firebase
212
212
  .firebase
213
213
  *-debug.log
package/README.md DELETED
@@ -1,216 +0,0 @@
1
- # AngularFire
2
- The official [Angular](https://angular.io/) library for [Firebase](https://firebase.google.com/).
3
-
4
- <strong><pre>ng add @angular/fire</pre></strong>
5
-
6
- AngularFire smooths over the rough edges an Angular developer might encounter when implementing the framework-agnostic [Firebase JS SDK](https://github.com/firebase/firebase-js-sdk) & aims to provide a more natural developer experience by conforming to Angular conventions.
7
-
8
- - **Dependency injection** - Provide and Inject Firebase services in your components
9
- - **Zone.js wrappers** - Stable zones allow proper functionality of service workers, forms, SSR, and pre-rendering
10
- - **Observable based** - Utilize RxJS rather than callbacks for realtime streams
11
- - **NgRx friendly API** - Integrate with NgRx using AngularFire's action based APIs.
12
- - **Lazy-loading** - AngularFire dynamically imports much of Firebase, reducing time to load your app
13
- - **Deploy schematics** - Get your Angular application deployed on Firebase Hosting with a single command
14
- - **Google Analytics** - Zero-effort Angular Router awareness in Google Analytics
15
- - **Router Guards** - Guard your Angular routes with built-in Firebase Authentication checks
16
-
17
- ## Example use
18
-
19
- ```ts
20
- import { provideFirebaseApp, getApp, initializeApp } from '@angular/fire/app';
21
- import { getFirestore, provideFirestore } from '@angular/fire/firestore';
22
-
23
- @NgModule({
24
- imports: [
25
- provideFirebaseApp(() => initializeApp({ ... })),
26
- provideFirestore(() => getFirestore()),
27
- ],
28
- ...
29
- })
30
- export class AppModule { }
31
- ```
32
-
33
- ```ts
34
- import { inject } from '@angular/core';
35
- import { Firestore, collectionData, collection } from '@angular/fire/firestore';
36
- import { Observable } from 'rxjs';
37
-
38
- interface Item {
39
- name: string,
40
- ...
41
- };
42
-
43
- @Component({
44
- selector: 'app-root',
45
- template: `
46
- <ul>
47
- <li *ngFor="let item of item$ | async">
48
- {{ item.name }}
49
- </li>
50
- </ul>
51
- `
52
- })
53
- export class AppComponent {
54
- item$: Observable<Item[]>;
55
- firestore: Firestore = inject(Firestore);
56
-
57
- constructor() {
58
- const itemCollection = collection(this.firestore, 'items');
59
- this.item$ = collectionData(collection);
60
- }
61
- }
62
- ```
63
-
64
- ## Compatibility
65
-
66
- ### Angular and Firebase versions
67
-
68
- AngularFire doesn't follow Angular's versioning as Firebase also has breaking changes throughout the year. Instead we try to maintain compatibility with both Firebase and Angular majors for as long as possible, only breaking when we need to support a new major of one or the other.
69
-
70
- | Angular | Firebase | AngularFire |
71
- | --------|----------|--------------|
72
- | 16 | 9 | ^7.6 |
73
- | 15 | 9 | ^7.5 |
74
- | 14 | 9 | ^7.4 |
75
- | 13 | 9 | ^7.2 |
76
- | 12 | 9 | ^7.0 |
77
- | 12 | 7,8 | ^6.1.5 |
78
- | 11 | 7,8 | ^6.1 |
79
- | 10 | 8 | ^6.0.4 |
80
- | 10 | 7 | ^6.0.3 |
81
- | 9 | 8 | ^6.0.4 |
82
- | 9 | 7 | ^6.0 |
83
-
84
- <sub>Version combinations not documented here __may__ work but are untested and you will see NPM peer warnings.</sub>
85
-
86
- ### Polyfills
87
-
88
- Neither AngularFire or Firebase ship with polyfills. To have compatability across as wide-range of environments we suggest the following polyfills be added to your application:
89
-
90
- | API | Environments | Suggested Polyfill | License |
91
- |-----|--------------|--------------------|---------|
92
- | Various ES5+ features | Safari &lt; 10 | [`core-js/stable`](https://github.com/zloirock/core-js#readme) | MIT |
93
- | `globalThis` | [Chrome &lt; 71<br>Safari &lt; 12.1<br>iOS &lt; 12.2<br>Node &lt; 12](https://caniuse.com/mdn-javascript_builtins_globalthis) | [`globalThis`](https://github.com/es-shims/globalThis#readme) | MIT |
94
- | `Proxy` | [Safari &lt; 10](https://caniuse.com/proxy) | [`proxy-polyfill`](https://github.com/GoogleChrome/proxy-polyfill#readme) | Apache 2.0 |
95
- | `fetch` | [Safari &lt; 10.1<br>iOS &lt; 10.3](https://caniuse.com/fetch) | [`cross-fetch`](https://github.com/lquixada/cross-fetch#readme) | MIT |
96
-
97
- ## Resources
98
-
99
- [Quickstart](docs/install-and-setup.md) - Get your first application up and running by following our quickstart guide.
100
-
101
- [Contributing](CONTRIBUTING.md)
102
-
103
- [Stackblitz Template](https://stackblitz.com/edit/angular-fire-start) - Remember to set your Firebase configuration in `app/app.module.ts`.
104
-
105
- [Upgrading to v7.0? Check out our guide.](docs/version-7-upgrade.md)
106
-
107
- ### Sample apps
108
-
109
- We have three sample apps in this repository:
110
-
111
- 1. [`samples/compat`](samples/compat) a kitchen sink application that demonstrates use of the "compatability" API
112
- 1. [`samples/modular`](samples/modular) a kitchen sink application that demonstrates the new tree-shakable API
113
- 1. [`samples/advanced`](samples/advanced) the same app as `samples/modular` but demonstrates more advanced concepts such as Angular Universal state-transfer, dynamically importing Firebase feature modules, and Firestore data bundling.
114
-
115
- ### Having troubles?
116
-
117
- Get help on our [Q&A board](https://github.com/angular/angularfire/discussions?discussions_q=category%3AQ%26A), the official [Firebase Mailing List](https://groups.google.com/forum/#!forum/firebase-talk), the [Firebase Community Slack](https://firebase.community/) (`#angularfire2`), the [Angular Community Discord](http://discord.gg/angular) (`#firebase`), [Gitter](https://gitter.im/angular/angularfire2), the [Firebase subreddit](https://www.reddit.com/r/firebase), or [Stack Overflow](https://stackoverflow.com/questions/tagged/angularfire2).
118
-
119
- > **NOTE:** AngularFire is maintained by Googlers but is not a supported Firebase product. Questions on the mailing list and issues filed here are answered on a <strong>best-effort basis</strong> by maintainers and other community members. If you are able to reproduce a problem with Firebase <em>outside of AngularFire's implementation</em>, please [file an issue on the Firebase JS SDK](https://github.com/firebase/firebase-js-sdk/issues) or reach out to the personalized [Firebase support channel](https://firebase.google.com/support/).
120
-
121
- ## Developer Guide
122
-
123
- This developer guide assimes you're using the new tree-shakable AngularFire API, [if you're looking for the compatability API you can find the documentation here](docs/compat.md).
124
-
125
- [See the v7 upgrade guide for more information on this change.](docs/version-7-upgrade.md).
126
-
127
- ### Firebase product integrations
128
-
129
- <table>
130
- <tr>
131
- <td>
132
-
133
- #### [Analytics](docs/analytics.md#analytics)
134
- ```ts
135
- import { } from '@angular/fire/analytics';
136
- ```
137
- </td>
138
- <td>
139
-
140
- #### [Authentication](docs/auth.md#authentication)
141
- ```ts
142
- import { } from '@angular/fire/auth';
143
- ```
144
- </td>
145
- </tr>
146
- <tr>
147
- <td>
148
-
149
- #### [Cloud Firestore](docs/firestore.md#cloud-firestore)
150
- ```ts
151
- import { } from '@angular/fire/firestore';
152
- ```
153
- </td>
154
- <td>
155
-
156
- #### [Cloud Functions](docs/functions.md#cloud-functions)
157
- ```ts
158
- import { } from '@angular/fire/functions';
159
- ```
160
- </td>
161
- </tr>
162
- <tr>
163
- <td>
164
-
165
- #### [Cloud Messaging](docs/messaging.md#cloud-messaging)
166
- ```ts
167
- import { } from '@angular/fire/messaging';
168
- ```
169
- </td>
170
- <td>
171
-
172
- #### [Cloud Storage](docs/storage.md#cloud-storage)
173
- ```ts
174
- import { } from '@angular/fire/storage';
175
- ```
176
- </td>
177
- </tr>
178
- <tr>
179
- <td>
180
-
181
- #### [Performance Monitoring](docs/performance.md#performance-monitoring)
182
- ```ts
183
- import { } from '@angular/fire/performance';
184
- ```
185
- </td>
186
- <td>
187
-
188
- #### [Realtime Database](docs/database.md#realtime-database)
189
- ```ts
190
- import { } from '@angular/fire/database';
191
- ```
192
- </td>
193
- </tr>
194
- <tr>
195
- <td>
196
-
197
- #### [Remote Config](docs/remote-config.md#remote-config)
198
- ```ts
199
- import { } from '@angular/fire/remote-config';
200
- ```
201
- </td>
202
- <td>
203
-
204
- #### [App Check](docs/app-check.md#app-check)
205
- ```ts
206
- import { } from '@angular/fire/app-check';
207
- ```
208
- </td>
209
- </tr>
210
- </table>
211
-
212
- ### Deploying your site
213
-
214
- * Deploy to Firebase Hosting
215
- * Angular Universal: Deploy to Cloud Functions
216
- * Angular Universal: Deploy to Cloud Run
@@ -1,11 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/package.schema.json",
3
- "main": "../bundles/angular-fire-analytics.umd.js",
4
- "module": "../fesm2015/angular-fire-analytics.js",
5
- "es2015": "../fesm2015/angular-fire-analytics.js",
6
- "esm2015": "../esm2015/analytics/angular-fire-analytics.js",
7
- "fesm2015": "../fesm2015/angular-fire-analytics.js",
8
- "typings": "angular-fire-analytics.d.ts",
9
- "sideEffects": false,
10
- "name": "@angular/fire/analytics"
11
- }