GMOD / tabix-js

Read Tabix-indexed files, either with .tbi or .csi indexes, in node or the browser
MIT License
14 stars 5 forks source link

Accept cache as a parameter to constructor #139

Open cmdcolin opened 1 year ago

cmdcolin commented 1 year ago

Our packages have stayed on old versions of quick-lru because updating to the latest causes bundling issues. jbrowse-web bundles at least three versions of quick-lru: v2, v4, and v6 (quick-lru v6 is vendored in @jbrowse/core/util/QuickLRU)

Two possible solutions are

accept quick-lru as parameter to constructor. this also gives maximum cache control to the application, which may have specialized needs

use quick-lru as a peerDependency, and still initialize it import it this library