Releases: euxx/github-copilot-usage
Releases · euxx/github-copilot-usage
v0.5.0
What's Changed
Added
- Token-based billing (UBB) support: auto-detects GitHub's new credit-based billing mode via
token_based_billing. Tooltip title switches between Copilot Premium Requests (legacy) and Copilot Credits (UBB); overage line labels its unit accordingly (Overage: 5 requestsvsAdditional credits: 5). individual_max(Max) andindividual_edu(Student) plans in the plan-name map.- Per-snapshot
quota_reset_at(Unix seconds) with top priority under UBB; falls back toquota_reset_date_utc→quota_reset_date→limited_user_reset_date. - Precise
usedcalculation viaquota_remainingwhen present, withIntl.NumberFormat({ maximumFractionDigits: 2 })formatting to preserve fractional precision (e.g.195.9instead of196), matching upstream'squotaCreditsFormatter. - Pooled entitlement exhaustion: enterprise unlimited plans signaling
has_quota=false(without overage) display100%red instead of∞. Tooltip shows "Quota: Unlimited · pool exhausted" with reset date.
Changed
entitlementparse handles string values ('300') emitted under UBB;entitlement: '0'(not unlimited) correctly routes to no-data state, matching upstreamparseQuotasbehavior.
Full Changelog: v0.4.4...v0.5.0
v0.4.4
What's Changed
Changed
- README: use Marketplace links in "You may also like" section
Full Changelog: v0.4.3...v0.4.4
v0.4.3
What's Changed
Fixed
- Status bar refresh deadlock when the API response body stalls: the 15s timeout now covers
res.json()body reading, not only the headers. Previously a hung response body could leaverefreshInFlightstucktrue, blocking all subsequent manual and automatic refreshes until VS Code reload.
Full Changelog: v0.4.2...v0.4.3
v0.4.2
What's Changed
- Overage percentage in status bar: when quota is exceeded and overage is active, the status bar now shows the actual usage percentage (e.g.
111%) instead of100%, making overage visible at a glance without opening the tooltip.
Full Changelog: v0.4.1...v0.4.2
v0.4.1
What's Changed
- Automatic offline recovery: when a network error or timeout occurs, a 10-second polling loop retries the API automatically. Once connectivity is restored, the normal refresh schedule resumes — no manual intervention required.
Full Changelog: v0.4.0...v0.4.1
v0.4.0
What's Changed
Added
- Offline graceful degradation: when the network is unavailable, the last known usage data is preserved in the status bar instead of showing an error icon
- Stale data indicator: a
$(warning)suffix is appended to the status bar text after 1 hour offline (e.g.25% ⚠), signalling that cached data may be outdated - Rate-limit resilience: when rate-limited by the API, last known data is likewise preserved with a tooltip notice instead of showing a red error icon
$(alert)icon when offline or rate-limited with no cached data available (consistent with VS Code's own offline status bar behaviour)
Changed
- Tooltip notices ("Offline · data may be outdated", "Rate limit · data may be outdated") are now plain text, positioned as the last line of the tooltip
- Unlimited plan tooltip now includes a link to Premium request analytics
- README: updated status bar states table with the new states and Unicode icon representations
Full Changelog: v0.3.3...v0.4.0
v0.3.3
What's Changed
Changed
- Standardized icon spec
- Synced config and docs from template
Full Changelog: v0.3.2...v0.3.3
v0.3.2
What's Changed
- Update icon image to a clearer version
- Fix:
threshold.warning/threshold.criticalvalues now coerced to numbers — non-numeric config strings (e.g."off") no longer produceNaNand silently break status bar coloring - Fix: rate-limit handler no longer lets
updateStatusBarerrors escape as unhandled promise rejections - Tests: add unit tests for
formatTimestamp,getConfig, andbuildTooltip
Full Changelog: v0.3.1...v0.3.2
v0.3.1
What's Changed
- Packaging: exclude dev files (tests, configs, dotfiles) from the published extension
Full Changelog: v0.3.0...v0.3.1
v0.3.0
What's Changed
- ⏱️ Show last-updated timestamp in tooltip (
Updated at HH:mm:ss, or full date across days) - 📊 Add link icon in tooltip to open Premium request analytics on GitHub
Full Changelog: v0.2.0...v0.3.0