-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feat: add DataStore.writeRaw method #334
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
src/datastore/index.js
Outdated
async readRaw(versionId) { | ||
const { coreDiscoveryKey, index } = parseVersionId(versionId) | ||
const core = this.#coreManager.getCoreByDiscoveryKey(coreDiscoveryKey) | ||
if (!core) throw new Error('Invalid versionId') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually a not found error, because the versionId parsed ok so it is valid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would happen when a peer has not synced the core that has the data.
* main: feat: NamespaceSyncState improvements (#339) chore: update better-sqlite3 to 8.7.0 (#337) chore: update @mapeo/crypto to latest (#336) fix: write own device info when creating and adding projects (#297) Feat: add DataStore.writeRaw method (#334) feat: Add NamespaceSyncState (#313) chore: run CI on PRs against any branch (#330) feat: add capabilities.getAll() (#326)
closes #332