aspen-cloud/triplit

IndexedDbStorage missing idb dependency

wernst opened this issue · 1 comments

wernst commented

When using the IndexedDbStorage provider it appears a dependency to 'idb' is missing

import { IndexedDbStorage } from "@triplit/db/storage/indexed-db";
import { TriplitClient } from "@triplit/client";
const client = new TriplitClient({
  db: {
    storage: {
      client: new IndexedDbStorage("tripchat-client"),
      outbox: new IndexedDbStorage("tripchat-outbox"),
    }
  }
});

At runtime:
ERROR: Could not resolve "idb/with-async-ittr"

wernst commented

Fixed in 0.1.1