Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: simplify store interface, move query/batch to datastore, add g…
…etAll to blockstore (#189) - Removes open/close from store as not every implementation needs them - Removes query from store as it doesn't make sense for blockstores - Removes batch from store as storing blocks in memory before writing is a bad idea - Adds query/batch to datastore interface - Adds getAll to blockstore interface - Converts datastore tests to typescript - Improves typing of datastore/blockstore tests to allow setup/teardown to recieve the right store type to open/close, etc - Blockstore pair is now `{ cid, block }` instead of `{ key, value }` BREAKING CHANGE: open/close/batch/query methods have been removed from store interface, query/batch added to datastore, getAll added to blockstore
- Loading branch information