Skip to content

Releases: euxx/github-copilot-usage

v0.5.0

27 May 13:27

Choose a tag to compare

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 requests vs Additional credits: 5).
  • individual_max (Max) and individual_edu (Student) plans in the plan-name map.
  • Per-snapshot quota_reset_at (Unix seconds) with top priority under UBB; falls back to quota_reset_date_utcquota_reset_datelimited_user_reset_date.
  • Precise used calculation via quota_remaining when present, with Intl.NumberFormat({ maximumFractionDigits: 2 }) formatting to preserve fractional precision (e.g. 195.9 instead of 196), matching upstream's quotaCreditsFormatter.
  • Pooled entitlement exhaustion: enterprise unlimited plans signaling has_quota=false (without overage) display 100% red instead of . Tooltip shows "Quota: Unlimited · pool exhausted" with reset date.

Changed

  • entitlement parse handles string values ('300') emitted under UBB; entitlement: '0' (not unlimited) correctly routes to no-data state, matching upstream parseQuotas behavior.

Full Changelog: v0.4.4...v0.5.0

v0.4.4

30 Apr 08:45

Choose a tag to compare

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

30 Apr 08:18

Choose a tag to compare

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 leave refreshInFlight stuck true, blocking all subsequent manual and automatic refreshes until VS Code reload.

Full Changelog: v0.4.2...v0.4.3

v0.4.2

16 Mar 06:17

Choose a tag to compare

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 of 100%, making overage visible at a glance without opening the tooltip.

Full Changelog: v0.4.1...v0.4.2

v0.4.1

16 Mar 05:07

Choose a tag to compare

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

15 Mar 05:21

Choose a tag to compare

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

14 Mar 14:36

Choose a tag to compare

What's Changed

Changed

  • Standardized icon spec
  • Synced config and docs from template

Full Changelog: v0.3.2...v0.3.3

v0.3.2

13 Mar 16:25

Choose a tag to compare

What's Changed

  • Update icon image to a clearer version
  • Fix: threshold.warning/threshold.critical values now coerced to numbers — non-numeric config strings (e.g. "off") no longer produce NaN and silently break status bar coloring
  • Fix: rate-limit handler no longer lets updateStatusBar errors escape as unhandled promise rejections
  • Tests: add unit tests for formatTimestamp, getConfig, and buildTooltip

Full Changelog: v0.3.1...v0.3.2

v0.3.1

12 Mar 02:44

Choose a tag to compare

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

11 Mar 09:19

Choose a tag to compare

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