local-first-web/state

Straighten out `idb` dependency

HerbCaudill opened this issue · 2 comments

We're currently using my fork of idb.

https://github.com/DevResults/cevitxe/blob/8929b0347ef6d477366cfd1fcfb1ca22dc6fa509/packages/cevitxe/package.json#L29

My fork just adds a file called with-async-ittr-cjs.d.ts that is a copy of the existing with-async-ittr-es.d.ts. We then import that file in the IndexedDb adapter.

https://github.com/DevResults/cevitxe/blob/8929b0347ef6d477366cfd1fcfb1ca22dc6fa509/packages/cevitxe-storage-indexeddb/index.ts#L3

IIRC everything works fine with the es version of that file, except Jest is unhappy.

fixed in #67