local-first-web / state

A Redux-based state container for local-first software, offering seamless synchronization using Automerge CRDTs. (Formerly known as 🐟 Cevitxe).
187 stars 10 forks source link

Straighten out `idb` dependency #58

Closed HerbCaudill closed 4 years ago

HerbCaudill commented 4 years ago

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.

HerbCaudill commented 4 years ago

See https://github.com/jakearchibald/idb/pull/137

HerbCaudill commented 4 years ago

fixed in #67