Title: Canary builds are named after the release candidate, so npm ranks them above it · Issue #3766 · angular/angularfire · GitHub
Open Graph Title: Canary builds are named after the release candidate, so npm ranks them above it · Issue #3766 · angular/angularfire
X Title: Canary builds are named after the release candidate, so npm ranks them above it · Issue #3766 · angular/angularfire
Description: ng add @angular/fire@next and ng update @angular/fire@next install a canary, not the release candidate. When #3674 was merged, 21.0.0-rc.0 was put in package.json, breaking with this repo's previous patterns. #3751 continued this break w...
Open Graph Description: ng add @angular/fire@next and ng update @angular/fire@next install a canary, not the release candidate. When #3674 was merged, 21.0.0-rc.0 was put in package.json, breaking with this repo's previou...
X Description: ng add @angular/fire@next and ng update @angular/fire@next install a canary, not the release candidate. When #3674 was merged, 21.0.0-rc.0 was put in package.json, breaking with this repo's pre...
Opengraph URL: https://github.com/angular/angularfire/issues/3766
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Canary builds are named after the release candidate, so npm ranks them above it","articleBody":"`ng add @angular/fire@next` and `ng update @angular/fire@next` install a canary, not the release candidate.\n\nWhen #3674 was merged, `21.0.0-rc.0` was put in `package.json`, breaking with this repo's previous patterns. #3751 continued this break with `21.0.0-rc.1`.\n\n#3709 mitigated the symptom for `ng add` by writing the exact installed version into the user's `package.json`. But going back to the old pattern would simplify things further.\n\n### Details\n\n- The root `package.json` version field holds `21.0.0-rc.1`, and `tools/build.sh` specifies each canary by appending `-canary.\u003cshort sha>` to that field.\n - Every merge to main therefore publishes `21.0.0-rc.1-canary.\u003csha>`, which semver ranks *above* `21.0.0-rc.1`, because the middle identifier parses as the text `1-canary` and text outranks a number.\n- **`ng add @angular/fire@next` installs a canary, not the release candidate.** The Angular CLI resolves the tag, then writes the range `^21.0.0-rc.1`, and npm resolves that to `21.0.0-rc.1-canary.95b3de1`.\n- **`ng update @angular/fire@next` does the same**, and unlike `ng add` it leaves a range in `package.json` rather than an exact version, so the app can drift again on any later install.\n- **The version field is not what a tagged release publishes.** `tools/build.sh` takes a tagged release's version from the tag name.\n - At the `19.0.0-rc.5` tag the version field in `package.json` read `19.0.0`, yet the release published to npm from that tag is `19.0.0-rc.5`.\n - At the `20.0.1` tag the field read `20.0.0` and the release published to npm is `20.0.1`.\n- **Releases through v20 named canaries after the release itself**, for example `19.0.0-canary.\u003csha>`, which ranks below every `19.0.0-rc.N`.\n - The release-candidate string first entered the version field in the v21 preparation commit (#3674).\n\n### Scope\n\nBuild and packaging. It does not remove the 25 canary builds already published on the 21 line, which keep outranking `21.0.0-rc.1` until `21.0.0` ships.\n","author":{"url":"https://github.com/armando-navarro","@type":"Person","name":"armando-navarro"},"datePublished":"2026-09-23T01:02:09Z","url":"https://github.com/angular/angularfire/issues/3766"}
| 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:eda89f4d-71f7-9e68-6126-fe4d030ad380 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D62:6AE81:2F9E343:3F524D8:6B036015 |
| html-safe-nonce | 98fad4e669c23bd82def34c209af8cc6e49bffb90e0d097b2b683d661a866360 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDYyOjZBRTgxOjJGOUUzNDM6M0Y1MjREODo2QjAzNjAxNSIsInZpc2l0b3JfaWQiOiI2ODM2MjI5MzI2MTgxMDg5NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | aa101fb76d218e88ad12262c3e71369029302bb0d2005e9899075e5ddfc96963 |
| hovercard-subject-tag | issue:5547257720 |
| 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/3766/issue_layout |
| twitter:image | https://opengraph.githubassets.com/304d260fb0ca9022370bd876ab05397d7e2b067a5e070a58f86ae44e86e6a143/angular/angularfire/issues/3766 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/304d260fb0ca9022370bd876ab05397d7e2b067a5e070a58f86ae44e86e6a143/angular/angularfire/issues/3766 |
| og:image:alt | ng add @angular/fire@next and ng update @angular/fire@next install a canary, not the release candidate. When #3674 was merged, 21.0.0-rc.0 was put in package.json, breaking with this repo's previou... |
| 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 | 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 | full |
| 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