Skip to content

fix: limit page-view history to 25 most-recent records - #123

Merged
alexs-mparticle merged 1 commit into
developmentfrom
fix/page-view-storage-budget
Aug 18, 2026
Merged

fix: limit page-view history to 25 most-recent records#123
alexs-mparticle merged 1 commit into
developmentfrom
fix/page-view-storage-budget

Conversation

@alexs-mparticle

Copy link
Copy Markdown
Collaborator

Summary

  • Replaces the 100 KB byte-budget storage cap with a simple 25-record count cap applied at both write time (writePageViews) and send time (buildPageEvents)
  • Removes writeNamespacedFieldWithinBudget usage from the page-view path; storage now writes the most-recent 25 records via a plain writeNamespacedField call
  • The send-time slice in buildPageEvents guards against oversized records already in localStorage before this fix is deployed

Testing Plan

  • Unit tests updated in pageViewStorage.spec.ts and tests.spec.ts to assert the 25-record count cap at both storage and send time
  • Existing byte-budget and quota-retry tests replaced with count-cap and graceful-failure equivalents
  • Full suite: 299/299 passing, lint clean, build clean

@alexs-mparticle
alexs-mparticle merged commit 26f5a5b into development Aug 18, 2026
4 of 5 checks passed
github-actions Bot pushed a commit that referenced this pull request Aug 18, 2026
## [1.33.3](v1.33.2...v1.33.3) (2026-08-18)

### Bug Fixes

* limit page-view history to 25 most-recent records ([#123](#123)) ([26f5a5b](26f5a5b))
@mparticle-automation

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.33.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants