fireproof
fireproof copied to clipboard
Fireproof v0.19.112 throws `store-file not implemented`
When upgrading from @fireproof/core v0.19.111 to v0.19.112, attempting to store files throws store-file not implemented error.
Reproduction
Environment
- @fireproof/core: ^0.19.112 (previously working on 0.19.111)
Steps to Reproduce
- Create
package.json
{
"dependencies": {
"parcel": "^2.13.0"
},
"scripts": {
"start": "parcel index.html"
}
}
- Create
index.html
<script src="https://cdn.jsdelivr.net/npm/@fireproof/[email protected]/index.global.js"></script>
<script src="./app.js" type="module"></script>
- Create
app.js
(async() => {
const testFile = new Blob(['test'], { type: 'image/png' })
const db = Fireproof.fireproof('my-synced-db')
const doc = {
type: 'image-entry',
_files: {
'test.png': testFile
}
}
await db.put(doc) // Throws error
})()
- Run the code
npm start
Expected Behavior
The file should be stored successfully as it did in v0.19.111.
Actual Behavior
Operation fails with error: Error: store-file not implemented