Releases: BubbleBuffer/opencode-go-stats
Releases · BubbleBuffer/opencode-go-stats
Release list
v1.3.2
Full Changelog: v1.3.1...v1.3.2
v1.3.1
v1.3.0
v1.2.3 - Fix SPA navigation detection
Fixed
- Broaden
@match/content script pattern fromopencode.ai/workspace/*/usagetoopencode.ai/*so the extension/userscript injects on all pages of the site - Existing
watchNavigation()function now correctly detects SPA route changes to the usage page viahistory.pushState/replaceStateandpopstatemonitoring
v1.2.2 - Cache-first rendering
Performance
- Cache-first rendering: Tables and charts now render instantly from localStorage cache on page load. The network fetch runs silently in the background, updating the UI only when new data arrives.
- Silent chart updates: Background data refreshes update the chart in place, so it doesn't flicker weirdly should the cache get updated.
Changes
renderChartsnow accepts a getter (() => UsageRecord[]) instead of a static array, so refreshes always see the latest data.renderChartsreturns{ refreshData: () => void }for efficient in-place data updates.- Extension entry point no longer blocks on network before first render.
Full Changelog: v1.2.1...v1.2.2
v1.2.1 - Fix cache staleness bug
Changes
- Fix cache staleness: The
completeflag inrunPipeline()was preventing any new records from being fetched from the API once the cache was fully populated. Users had to completely wipe localStorage to see new usage data on subsequent visits. - The pipeline now always calls
fetchAllPages(), which already has an efficient early-stop when no new records appear on page 0 (one lightweight network roundtrip) - Hide the filter container UI element on the usage page
- Updated pipeline test to verify fetching occurs even with a complete cache
v1.2.0 - Firefox CSP fix + CI
Changes
- Bundle Chart.js instead of loading from CDN — fixes Firefox content security policy blocking the extension entirely
- Add
data_collection_permissionstobrowser_specific_settingsfor Firefox manifest compliance (required by Mozilla) - Output all build artifacts to
dist/instead of polluting the repo root - Add GitHub Actions CI (lint, typecheck, test on push/PR)
- Update README for new project structure
Assets
extension.zip— browser extension (Chrome/Firefox/Edge)opencode-stats.user.js— userscriptpull-stats.js— console script