fireproof-storage / fireproof

Realtime database, runs anywhere. Install Fireproof in your front-end app or edge function, and sync data via any backend.
https://fireproof.storage
Other
576 stars 21 forks source link

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

Open mudcube opened 4 days ago

mudcube commented 4 days ago

When upgrading from @fireproof/core v0.19.111 to v0.19.112, attempting to store files throws store-file not implemented error.

Reproduction

Environment

Steps to Reproduce

  1. Create package.json

    {
    "dependencies": {
    "parcel": "^2.13.0"
    },
    "scripts": {
    "start": "parcel index.html"
    }
    }
  2. Create index.html

    <script src="https://cdn.jsdelivr.net/npm/@fireproof/core@0.19.112/index.global.js"></script>
    <script src="./app.js" type="module"></script>
  3. 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