Skip to content

Latest commit

 

History

History
106 lines (79 loc) · 5.05 KB

CHANGELOG.md

File metadata and controls

106 lines (79 loc) · 5.05 KB

v1.1.0 (2024-07-12)

  • Added a ⚠️WARNING⚠️ in the readme to call Beatmap.free whenever a Beatmap instance is no longer of use to avoid risking memory leakage.

    const beatmap = new rosu.Beatmap(content);
    const attrs = new rosu.Performance().calculate(beatmap);
    beatmap.free();
  • Updated to rosu-pp v1.1.0

  • Mods can now be specified through more types than just number (#16):

    • an integer for bitflags
    • a string for acronyms
    • a single mod object as described below
    • a sequence of types that deserialize into a single mod

    Types that deserialize into a single mod are

    • an integer for bitflags
    • a string for an acronym
    • a mod object

    A mod object must have an acronym: string property and an optional settings?: Object property.

  • For Difficulty, Performance, and BeatmapAttributesBuilder, all fields of their constructors' fields are now also available as setters after initialization. (#14)

    let calc = new rosu.Difficulty({ clockRate: 1.7 });
    calc.mods = "HDDT";
    calc.clockRate = undefined;

v1.0.2 (2024-04-16)

  • Fixed the state field of PerformanceAttributes (#9)
  • Removed the wee_alloc feature because its repository is unmaintained.

v1.0.1 (2024-04-03)

  • Fixed difficulty arguments not being considered as performance attributes

v1.0.0 (2024-04-03)

  • Updated to rosu-pp v1.0.0
  • The binding is no longer imported under the name rosu-pp but as rosu-pp-js
  • The binding is now powered by Wasm instead of Neon. As a result, Rust is no longer required to be installed and the library now works in non-nodejs environments like browsers.
  • Breaking changes ahead! There are now multiple different calculators:
    • Difficulty to calculate DifficultyAttributes, Strains, or create gradual calculators
    • Performance to calculate PerformanceAttributes
    • BeatmapAttributesBuilder to calculate BeatmapAttributes
    • GradualDifficulty to calculate DifficultyAttributes for each hitobject
    • GradualPerformance to calculate PerformanceAttributes for each hitresult

Check out the rosu_pp_js.d.ts file to see available types, methods, arguments, and fields. The README.md file provides some more explanations and examples.

v0.9.4 (2023-02-09)

v0.9.3 (2023-01-28)

  • Updated to rosu-pp v0.9.3. Only includes some bug fixes.
  • Map attributes now also include the properties mode, version, nCircles, nSliders, and nSpinners.

v0.9.1 (2022-10-26)

  • Updated to rosu-pp v0.9.1 including the big changes in v0.9.0
  • The binding interface is rewritten completely, see the readme.

v0.8.0 (2022-08-02)

  • Updated to rosu-pp v0.8.0
  • The calculation result now contains a timePreempt field for osu!standard and greatHitWindow for osu!standard, osu!taiko, and osu!mania.
  • Fixed map attributes when mods were interacting with custom clock rates

v0.7.1 (2022-07-12)

v0.7.0 (2022-07-07)

  • Updated to rosu-pp v0.7.0
  • Added strains method to calculate the strain values for all skills of the map's game mode

v0.6.0 (2022-07-05)

  • Updated to rosu-pp v0.6.0
  • The field mode can now be specified to convert maps to different modes
  • Added the typescript type enum GameMode { Osu, Taiko, Catch, Mania }

v0.5.4 (2022-06-14)

  • Bumped patch version of dependencies, including a rosu-pp update

v0.5.3 (2022-04-21)

v0.5.2 (2022-03-21)

  • Now considering custom map attributes properly

v0.5.1 (2022-03-21)

  • Updated to rosu-pp v0.5.1
  • ScoreParams may now include additional fields: clockRate, ar, cs, hp, and od
  • The return object of a calculation now also includes a clockRate field

v0.4.0 (2021-12-26)

  • Initial release with rosu-pp v0.4.0