fireproof icon indicating copy to clipboard operation
fireproof copied to clipboard

Fireproof v0.19.112 throws `store-file not implemented`

Open mudcube opened this issue 1 year ago • 0 comments

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

  1. Create package.json
{
  "dependencies": {
    "parcel": "^2.13.0"
  },
  "scripts": {
    "start": "parcel index.html"
  }
}
  1. Create index.html
<script src="https://cdn.jsdelivr.net/npm/@fireproof/[email protected]/index.global.js"></script>
<script src="./app.js" type="module"></script>
  1. 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
})()
  1. 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

mudcube avatar Nov 22 '24 01:11 mudcube