Title: Why is firebase not a peerDependency? · Issue #623 · angular/angularfire · GitHub
Open Graph Title: Why is firebase not a peerDependency? · Issue #623 · angular/angularfire
X Title: Why is firebase not a peerDependency? · Issue #623 · angular/angularfire
Description: From https://github.com/angular/angularfire2/blob/c3a954cd857fc297438f53d3a1e3bf69b6af01c2/tools/rewrite-published-package.js Firebase SDK should be a dependency since it's not required that projects will install/use the SDK directly. An...
Open Graph Description: From https://github.com/angular/angularfire2/blob/c3a954cd857fc297438f53d3a1e3bf69b6af01c2/tools/rewrite-published-package.js Firebase SDK should be a dependency since it's not required that projec...
X Description: From https://github.com/angular/angularfire2/blob/c3a954cd857fc297438f53d3a1e3bf69b6af01c2/tools/rewrite-published-package.js Firebase SDK should be a dependency since it's not required that pr...
Opengraph URL: https://github.com/angular/angularfire/issues/623
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Why is firebase not a peerDependency?","articleBody":"From https://github.com/angular/angularfire2/blob/c3a954cd857fc297438f53d3a1e3bf69b6af01c2/tools/rewrite-published-package.js\n\n> Firebase SDK should be a dependency since it's not required that \n> projects will install/use the SDK directly. And since Firebase uses\n> semver, the version restriction is more permissive. This means if the user\n> has installed Firebase already, npm is more likely to find a matching version.\n\nFrom https://github.com/angular/angularfire2/blob/master/docs/1-install-and-setup.md\n\n> `npm install angularfire2 firebase --save`\n\nInstalling firebase currently resolves firebase@3.5.0, which is incompatible in some cases with 3.3.0.\n\nNot listing firebase as a peerDependency gives me no warning that this is not the case, resulting in some headache.\n### Version info\n\n**Angular:** ^2.0.0\n\n**Firebase:** ^3.5.0\n\n**AngularFire:** 2.0.0-beta.5\n### Test case\n\nExample that doesn't work with different firebase versions:\n\n``` typescript\nimport * as firebase from 'firebase';\nimport { AngularFire } from 'angularfire2';\n\n@Injectable()\nexport class TestService {\n constructor(private af: AngularFire) {\n this.af.auth.subscribe(user => {\n //Following line will fail since I'm sending an object created with firebase@3.5.0 into firebase@3.3.0, which are not compatible\n user.auth.linkWithPopup(new firebase.auth.GoogleAuthProvider());\n }\n }\n}\n```\n\nSo, why isn't firebase a peerDependency? It seems quite crucial that the versions are the same for some use cases.\n","author":{"url":"https://github.com/Maistho","@type":"Person","name":"Maistho"},"datePublished":"2016-10-18T15:33:14Z","url":"https://github.com/angular/angularfire/issues/623"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d508dc16-029f-8b98-fbe7-c04398057288 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF16:18D8CC:FABF1F:1403F5C:6B03C1CF |
| html-safe-nonce | bb8667827ee4fc19896deded087af2e59feed3842685755f4714398215b962a4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjE2OjE4RDhDQzpGQUJGMUY6MTQwM0Y1Qzo2QjAzQzFDRiIsInZpc2l0b3JfaWQiOiI4MzA1NjI3MjI3ODg2OTYxMTAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6bf1b609dd5b610ec46d846d7a2342739f2cddbebbf2c2d695e9b78b35612e5a |
| hovercard-subject-tag | issue:183722218 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/angular/angularfire/623/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6559d55c10318858314910e62587c56d96a6a9725666bc12e0334f6370b5fb95/angular/angularfire/issues/623 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6559d55c10318858314910e62587c56d96a6a9725666bc12e0334f6370b5fb95/angular/angularfire/issues/623 |
| og:image:alt | From https://github.com/angular/angularfire2/blob/c3a954cd857fc297438f53d3a1e3bf69b6af01c2/tools/rewrite-published-package.js Firebase SDK should be a dependency since it's not required that projec... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Maistho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width