Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(store)!: simplify store interface and improve tests #104

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

appcypher
Copy link
Owner

@appcypher appcypher commented Jan 12, 2025

BREAKING CHANGES:

  • Remove get_size() method from IpldStore trait and replace with get_block_count()
  • Remove PlaceholderStore implementation
  • Make is_empty() a default implementation based on block count
  • Rename MemoryStore::new to MemoryStore::with_chunker_and_layout

Changes:

  • Implement FlatFsStore for native-filesystem-backed store
  • Improve test coverage for MemoryStore with more focused test cases
  • Update ASCII diagram documentation for FlatLayout

BREAKING CHANGES:
- Remove `get_size()` method from IpldStore trait and replace with `get_block_count()`
- Remove PlaceholderStore implementation
- Make `is_empty()` a default implementation based on block count
- Rename MemoryStore::new to MemoryStore::with_chunker_and_layout

Changes:
- Improve test coverage for MemoryStore with more focused test cases
- Update ASCII diagram documentation for FlatLayout
- Add workspace-level tempfile dependency
- Update tempfile to 3.15.0
- Add hex and libipld dependencies to monofs
@appcypher appcypher merged commit 722b112 into main Jan 12, 2025
@appcypher appcypher deleted the appcypher/flatfsstore branch January 12, 2025 20:01
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.

1 participant