Releases: philihp/openskill.js
v4.1.0
v4.0.3
v4.0.2
v4.0.1
v4.0.0
- Breaking change fixes a bug with with predictWin and predictDraw. These now return different predictions
- Deprecates
preventSigmaIncrease
, rename tolimitSigma
. Former syntax will go away in the next major version. - Removes building for Node 14 through 17 and 19. Might still work, but no guarantees.
- Adds explicit build/testing for Node 22
v3.1.0
- Explicit support for Node 19 and Node 20
v3.0.1
v3.0.0
- Breaking Changes Change the way alternate models are used. Rather than sending in a string/name of the model, you now import the model function itself and pass that in. This enables people to extend the library and experiment with models that support partial play.(#296) c477d12, as an example of how your calls would change, see this test
- Breaking Changes Removes support for node 11-13 (#286) 5bb0a94, this version will also support Node 14/es2020. Next major version will not be until sometime after 2023-04-30 when 16/es2021 is the current LTS compile target.
- Adds Typescript types (#240) 8e46c2a
v2.1.0
Thank you @JLaferri! New options:
tau
(defaults to 0): Additive dynamics factor, which keeps a player's rating from getting stuck at a level. Normally, a player's sigma will only decrease as we gain more information about their performance. This option will put some pressure on this back up. This default will change to be sigma/100 with v3, to be more congruent with TrueSkill, but higher may make your rating system more exciting.
preventSigmaIncrease
(defaults to false): for a tau > 0, it is possible that a player could play someone with a low enough rating that even if they win, their ordinal rating will still go down slightly. If your players have no agency in matchmaking, it is not desirable to have a situation where a player goes down on the leaderboard even though they win.
rate([team1, team2, ...], {
tau: 0.083333,
preventSigmaIncrease: true,
})