Skip to content

Releases: epispot/EpiJS

v2.1.0

23 Jul 22:58
0ea9e47
Compare
Choose a tag to compare

New Features

  • Adds manipulate to manipulate outputs with plots
  • Adds mexport and mimport to model, which allow for exporting and importing models to .js and .json files.
  • Adds version locking to the dependencies. This prevents users from installing incompatible releases when installing the package.

v2.0.0 - LTS

19 Jul 00:59
789d83e
Compare
Choose a tag to compare
  • [#37] Stochastic modelling
  • [#40] Custom models in com module
  • [#28] New pre-built compartments for you to use in comp, including:
    • Susceptible,
    • Exposed,
    • Infected,
    • Hospitalized,
    • Critical,
    • Recovered,
    • Dead,
    • and Vaccinated compartments,
  • A new utils compartment, which has epidemiological related utilities,
  • Bug fixes,
  • [#59] Customizable plotting, with the plots module,
  • [#59] Allows for more interaction with data from pre module,
  • And metadata on the web, through EpiJS.about, EpiJS.version, etc.

What makes this a major release?

This release is a major release for 2 reasons:

  • [#54] Drops 10.x support
  • [#37] Syntax for functions/classes was changed with stochastic models
  • [#59] pre module no longer outputs graphs, and is instead replaced with the plots module for graphs.

This release is also an LTS release, so bug fixes and security fixes will continue for longer than a usual release.

EpiJS v1.3.1

27 Jun 23:51
Compare
Choose a tag to compare

v1.3.1

Bug Fixes

  • Fix formula parsing error in the model module.

v1.3.0

20 Jun 03:02
Compare
Choose a tag to compare

v1.3.0

Features

  • Add comp module.
    • Create comp module, which allows for creating custom compartments, which can then be combined into models
    • Add Idiom class, for custom compartments
  • Add model module.
    • Create model module which combines compartments from comp into models.
  • Add com module.
    • Create com module, which models communities.
    • Create the virus class, which creates a virus which can infect a community.
    • Create the community class which can be infected with a virus, and modeled.
    • Create the compare function, which compares two different outbreaks, whether it's two different communities infected with a virus, two viruses infecting the same community, or even two communities infected by two viruses.

Unrelated

  • Add documentation from vuepress, which provides much better documentation than that of mkdocs.
  • Add new dependency - math.js which is used in the comp module.

v1.2.1

12 Jun 01:02
Compare
Choose a tag to compare

Bug Fixes

  • Add custom recovered population. Takes difference of population and sum of infected and susceptible populations, instead of automatically setting population to 0 at the beggining of the outbreak.

v1.2.0

10 Jun 20:51
Compare
Choose a tag to compare

New Features

  • Add SEIHCRD model

Bug Fixes

  • Fix import error for npm package.

v1.1.0

07 Jun 22:23
Compare
Choose a tag to compare

v1.1.0

New Features

  • Add SEIHRD model

Bug Fixes

None.

v1.0.1

18 Apr 01:36
7f68046
Compare
Choose a tag to compare

v1.0.1

Minor update

New Features

None.

Bug Fixes

None.

Deprecations

Remove the check function from the pre module.

v1.0.0

07 Apr 21:32
Compare
Choose a tag to compare

v1.0.0

Initial release.

Features

The pre module. Pre-built models for EpiJS. For example:
HTML:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>EpiJS Test</title>
</head>
<body>
    <canvas id="ctxsir"></canvas>
    <script src="js/pre.min.js"></script> <!-- EpiJS Library -->
    <script src="js/chart.min.js"></script> <!-- The Chart.js Requirement -->
    <script src="js/plot.js"></script> <!-- Our JavaScript Code -->
</body>
</html>

JavaScript:

let sirchart = document.getElementById('ctxsir')
sir(sirchart, 4, 9999, 1, 100, 1/21, 10000)

This includes the SIR, SEIR, and SEIRD models.