Title: Canary builds are ordered by commit hash, not by time, and an all-digit hash loses its leading zero · Issue #3771 · angular/angularfire · GitHub
Open Graph Title: Canary builds are ordered by commit hash, not by time, and an all-digit hash loses its leading zero · Issue #3771 · angular/angularfire
X Title: Canary builds are ordered by commit hash, not by time, and an all-digit hash loses its leading zero · Issue #3771 · angular/angularfire
Description: tools/build.sh names each canary build
Open Graph Description: tools/build.sh names each canary build
X Description: tools/build.sh names each canary build <version>-canary.<short sha>. That causes two problems. Details npm orders canaries by their hash, not their age. A short sha containing a letter ...
Opengraph URL: https://github.com/angular/angularfire/issues/3771
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Canary builds are ordered by commit hash, not by time, and an all-digit hash loses its leading zero","articleBody":"`tools/build.sh` names each canary build `\u003cversion>-canary.\u003cshort sha>`. That causes two problems.\n\n### Details\n\n- **npm orders canaries by their hash, not their age.** A short sha containing a letter is compared as text, so the order is alphabetical.\n - `21.0.0-rc.0-canary.345726a`, published 2026-09-21, ranks below `21.0.0-rc.0-canary.fb6796b`, published 2026-08-20.\n - A short sha made only of digits is compared as a number, which ranks below every hash containing a letter. 11 published canaries have one.\n- **An all-digit hash that starts with 0 loses the zero.** `npm version` rewrites `21.0.0-canary.0123456` to `21.0.0-canary.123456`, so the published name no longer matches the commit.\n\n### Scope\n\nThe order matters only when a version range matches canaries and nothing ranks above them, which is before a version's first release candidate. On the 21 line, the release candidates and the canaries named after them outrank every `21.0.0-canary.*`, so this changes no install there.\n\n","author":{"url":"https://github.com/armando-navarro","@type":"Person","name":"armando-navarro"},"datePublished":"2026-09-25T19:19:49Z","url":"https://github.com/angular/angularfire/issues/3771"}
| 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:46ae0860-b34b-be67-cd4e-e20427f98655 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9314:122379:9BC616:C557A4:6B036634 |
| html-safe-nonce | 623a8584b0f73914ee0ad25b25eb248196cd7f40da3798f7ffb0a62bc94ae142 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzE0OjEyMjM3OTo5QkM2MTY6QzU1N0E0OjZCMDM2NjM0IiwidmlzaXRvcl9pZCI6IjYzNzEyMzM1NzE5MTQ2MDYxMzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | de290718bd39dd0f14efaaae8c27d99f5833e4260b04b062300f49ab48b77fa8 |
| hovercard-subject-tag | issue:5587429156 |
| 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/3771/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f1f4cdd7125fe1abc63366eb689281a5c686f8fb8ed10a4dbc9a6bafcb907a1f/angular/angularfire/issues/3771 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f1f4cdd7125fe1abc63366eb689281a5c686f8fb8ed10a4dbc9a6bafcb907a1f/angular/angularfire/issues/3771 |
| og:image:alt | tools/build.sh names each canary build |
| 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