Title: fix(schematics): only emit FirebaseOptions keys in the generated app config by armando-navarro · Pull Request #3707 · angular/angularfire · GitHub
Open Graph Title: fix(schematics): only emit FirebaseOptions keys in the generated app config by armando-navarro · Pull Request #3707 · angular/angularfire
X Title: fix(schematics): only emit FirebaseOptions keys in the generated app config by armando-navarro · Pull Request #3707 · angular/angularfire
Description: ng add @angular/fire inlines the Firebase CLI's apps.sdkconfig response into initializeApp(). That response includes management-API fields (projectNumber, version, locationId) that FirebaseOptions does not accept; only locationId was being stripped (added for #3452 / #3556), so the generated app fails to compile with TS2769: 'projectNumber' does not exist in type 'FirebaseOptions'. This is the third report of the class. This replaces the single-key delete with an allowlist of the keys initializeApp() accepts, so future additions to the CLI response can't break the generated config. Companion PR #3706 declares the ES2022 lib the Object.fromEntries here relies on (IDE-only; not required for CI). Fixes #3675
Open Graph Description: ng add @angular/fire inlines the Firebase CLI's apps.sdkconfig response into initializeApp(). That response includes management-API fields (projectNumber, version, locationId) that FirebaseOpti...
X Description: ng add @angular/fire inlines the Firebase CLI's apps.sdkconfig response into initializeApp(). That response includes management-API fields (projectNumber, version, locationId) that Firebase...
Opengraph URL: https://github.com/angular/angularfire/pull/3707
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4310b6ac-cb8c-e63c-fea9-1d62c54a74c7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E0A8:21674C:114B246:17065E5:6A5BE0A3 |
| html-safe-nonce | 035a5690d301907cb0846966e4a026de0dde0b140b11843db3fc2a35b77c2cac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEE4OjIxNjc0QzoxMTRCMjQ2OjE3MDY1RTU6NkE1QkUwQTMiLCJ2aXNpdG9yX2lkIjoiNzc5MDA3NjQwNDY4NDI4NDA2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a2074204f1b373e8da5ba8cb7c59ec0d264d8c1ead2373a2a4ccffc2196c2b41 |
| hovercard-subject-tag | pull_request:4017619030 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/angular/angularfire/pull/3707/files |
| twitter:image | https://avatars.githubusercontent.com/u/13904589?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/13904589?s=400&v=4 |
| og:image:alt | ng add @angular/fire inlines the Firebase CLI's apps.sdkconfig response into initializeApp(). That response includes management-API fields (projectNumber, version, locationId) that FirebaseOpti... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/angular/angularfire git https://github.com/angular/angularfire.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 49453413 |
| octolytics-dimension-repository_nwo | angular/angularfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49453413 |
| octolytics-dimension-repository_network_root_nwo | angular/angularfire |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width