Skip to content

feat(store): prune persisted slices on schema version bump (#1173) - #1285

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
OpensrcLord:fix/issue-1173
Aug 29, 2026
Merged

feat(store): prune persisted slices on schema version bump (#1173)#1285
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
OpensrcLord:fix/issue-1173

Conversation

@OpensrcLord

Copy link
Copy Markdown
Contributor

Summary

Closes #1173

Versions the persisted store payload so unknown/stale slices are pruned on a schema bump instead of hydrating invalid state.

  • src/store/persistenceLayer.tspruneUnknownKeys and persistedStateVersion helpers
  • src/store/stateManager.tsPERSISTED_SCHEMA_VERSION with a persist migrate that drops slices outside the allowed set
  • Adds unit tests for pruning, version detection, and migration

Verification

tsc clean; store suite: 12 passing.

@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@OpensrcLord Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Well done on the job done so far!
Kindly resolve conflict

Version the persisted payload so a schema change drops unknown/stale
slices instead of hydrating invalid state.

Closes rinafcode#1173
@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project.

@RUKAYAT-CODER
RUKAYAT-CODER merged commit 2bfce61 into rinafcode:main Aug 29, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prune persisted store slices on schema version bump

2 participants