Skip to content

feat(data-structures/unstable): add RollingCounter serialization#7074

Open
tomas-zijdemans wants to merge 2 commits intodenoland:mainfrom
tomas-zijdemans:rolling-counter-serialize
Open

feat(data-structures/unstable): add RollingCounter serialization#7074
tomas-zijdemans wants to merge 2 commits intodenoland:mainfrom
tomas-zijdemans:rolling-counter-serialize

Conversation

@tomas-zijdemans
Copy link
Copy Markdown
Contributor

Adds serialization support to RollingCounter with toJSON(), RollingCounter.from(), and a RollingCounterSnapshot type. This enables JSON round-tripping and restoring persisted counter state

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.41%. Comparing base (1cd63ca) to head (6b4beb4).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7074   +/-   ##
=======================================
  Coverage   94.41%   94.41%           
=======================================
  Files         630      630           
  Lines       50490    50511   +21     
  Branches     8949     8955    +6     
=======================================
+ Hits        47669    47691   +22     
  Misses       2249     2249           
+ Partials      572      571    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant