open-spaced-repetition / ts-fsrs

ts-fsrs is a versatile package based on TypeScript that supports ES modules, CommonJS, and UMD.
https://open-spaced-repetition.github.io/ts-fsrs/
MIT License
213 stars 22 forks source link

Feat/remove seedrandom #108

Closed ishiko732 closed 3 months ago

ishiko732 commented 3 months ago

The dependency on seedrandom is planned to be removed to reduce the package size. Instead, the similar Alea PRNG algorithm will be used. For implementation, refer to https://github.com/davidbau/seedrandom/blob/released/lib/alea.js.

use seedrandom: 10.36KB ( gzip: 3.83KB) 1242bd9ea9a058079111f6bb5d37334

use alea: 2.32KB (gzip: 0.971KB) 86deff86cdb0ca4c115858bfcbbc901

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (9f4d08d) to head (b482288).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #108 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 10 11 +1 Lines 553 605 +52 Branches 58 62 +4 ========================================= + Hits 553 605 +52 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.