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

Improve typescripting, add yieldTime parameter #138

Closed cmdcolin closed 1 year ago

cmdcolin commented 1 year ago

This PR improves typescripting mostly, by updating to typed versions of abortable-promise-cache, bgzf-filehandle, etc.

Also adds yieldTime parameter

This PR started with possibly reducing the cache size, but will probably split into another issue for that if needed

codecov[bot] commented 1 year ago

Codecov Report

Merging #138 (78317d1) into master (2ac4f39) will increase coverage by 0.69%. The diff coverage is 92.85%.

@@            Coverage Diff             @@
##           master     #138      +/-   ##
==========================================
+ Coverage   87.77%   88.47%   +0.69%     
==========================================
  Files           7        7              
  Lines         589      590       +1     
  Branches      161      144      -17     
==========================================
+ Hits          517      522       +5     
+ Misses         71       68       -3     
+ Partials        1        0       -1     
Impacted Files Coverage Δ
src/csi.ts 91.48% <83.33%> (+0.51%) :arrow_up:
src/tabixIndexedFile.ts 88.11% <93.10%> (+1.75%) :arrow_up:
src/indexFile.ts 91.30% <100.00%> (-0.37%) :arrow_down:
src/tbi.ts 96.35% <100.00%> (+0.02%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more