Title: ng add @angular/fire@next records a caret range that silently drifts to canary builds · Issue #3708 · angular/angularfire · GitHub
Open Graph Title: ng add @angular/fire@next records a caret range that silently drifts to canary builds · Issue #3708 · angular/angularfire
X Title: ng add @angular/fire@next records a caret range that silently drifts to canary builds · Issue #3708 · angular/angularfire
Description: Version info Angular: 21.2.x Firebase: 12.x AngularFire: 21.0.0-rc.0 (@next) How to reproduce these conditions ng add @angular/fire@next — package.json records "@angular/fire": "^21.0.0-rc.0" (npm's default caret). Any later fresh instal...
Open Graph Description: Version info Angular: 21.2.x Firebase: 12.x AngularFire: 21.0.0-rc.0 (@next) How to reproduce these conditions ng add @angular/fire@next — package.json records "@angular/fire": "^21.0.0-rc.0" (npm'...
X Description: Version info Angular: 21.2.x Firebase: 12.x AngularFire: 21.0.0-rc.0 (@next) How to reproduce these conditions ng add @angular/fire@next — package.json records "@angular/fire": "^21....
Opengraph URL: https://github.com/angular/angularfire/issues/3708
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng add @angular/fire@next records a caret range that silently drifts to canary builds","articleBody":"### Version info\n\n**Angular:** 21.2.x\n\n**Firebase:** 12.x\n\n**AngularFire:** 21.0.0-rc.0 (`@next`)\n\n### How to reproduce these conditions\n\n1. `ng add @angular/fire@next` — package.json records `\"@angular/fire\": \"^21.0.0-rc.0\"` (npm's default caret).\n2. Any later fresh install (new clone without a reused lockfile, `npm update`, CI without a lockfile) resolves that range again.\n\n### Expected behavior\n\nInstalling a specific prerelease keeps that prerelease until the developer deliberately upgrades.\n\n### Actual behavior\n\nThe caret range also matches the `21.0.0-rc.0-canary.\u003csha\u003e` builds auto-published for every merge to main, which sort higher than `rc.0` — so the resolved version silently becomes an unreviewed canary snapshot. Nothing in the project changed, but the installed code did, and the resulting breakage doesn't look like a version problem. (Stable ranges like `^21.0.0` don't have this failure — they only drift to reviewed releases.)\n\nProposal: after install, the ng-add schematic pins the `@angular/fire` entry to the exact installed version when the recorded spec is a caret/tilde range around a prerelease. Stable ranges and hand-written range expressions stay untouched.\n","author":{"url":"https://github.com/armando-navarro","@type":"Person","name":"armando-navarro"},"datePublished":"2026-07-09T04:19:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3708/angularfire/issues/3708"}
| 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:499d40e2-b035-0872-fb4d-5abd36432649 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4F4:2E83F4:2BDC059:39AFBF3:6A5CE170 |
| html-safe-nonce | 6d97a1b25fb34372db566ab674a47ac283fa8a35ddeef5a2ee0b04acf21d24ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEY0OjJFODNGNDoyQkRDMDU5OjM5QUZCRjM6NkE1Q0UxNzAiLCJ2aXNpdG9yX2lkIjoiNzEyODU0NzI5MTMxODc2NzIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 22c44c437201f4b00888cda5d8a46ab0bd05ff5a85746fe1aace680bc20c2fc6 |
| hovercard-subject-tag | issue:4843133581 |
| 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/3708/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cd243918a4368c25d3d62cb52411f233d0c2a2bebb99737943dc70440fb4a417/angular/angularfire/issues/3708 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cd243918a4368c25d3d62cb52411f233d0c2a2bebb99737943dc70440fb4a417/angular/angularfire/issues/3708 |
| og:image:alt | Version info Angular: 21.2.x Firebase: 12.x AngularFire: 21.0.0-rc.0 (@next) How to reproduce these conditions ng add @angular/fire@next — package.json records "@angular/fire": "^21.0.0-rc.0" (npm'... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | armando-navarro |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width