Skip to content

Releases: xShadowBlade/emath.js

Version 9.0.1

07 Jun 10:40
bea79fc
Compare
Choose a tag to compare

Release Notes

Overview

This patch version fixes and changes some things including:

  • CDN usage for emath.js/presets now also includes emath.js and emath.js/game
  • Update README.md

Full Changelog: v9.0.0...v9.0.1

Known Bugs

  • calculateUpgrade sometimes inaccurate

Feedback

We value your feedback! If you encounter any issues or have suggestions for improvement, please open a new issue.

Thank you for using this project!

Version 9.0.0

07 Jun 09:57
Compare
Choose a tag to compare

Release Notes

Overview

This major version introduces some backward incompatible changes such as:

  • Deprecated the use of E and ESource. For more info, visit the migration docs
  • Updates break_eternity.js from version 1.4.2 to version 2.0.0
  • Change numericalAnalysis to be more efficient, but slightly less accurate (fix coming soon)
  • Update dependency version

Full Changelog: v8.4.0...v9.0.0

Known Bugs

  • calculateUpgrade sometimes inaccurate

Feedback

We value your feedback! If you encounter any issues or have suggestions for improvement, please open a new issue.

Thank you for using this project!

Version 8.4.0

24 May 16:06
Compare
Choose a tag to compare

Release Notes

Overview

This minor version introduces changes such as:

  • Remove pixiGame
  • Optimizations to numericalAnalysis
  • Various code optimizations
  • Update dependency version

Full Changelog: v8.3.0...v8.4.0

Known Bugs

  • calculateUpgrade slow for large numbers (above ~1e1000)

Feedback

We value your feedback! If you encounter any issues or have suggestions for improvement, please open a new issue.

Thank you for using this project!

Version 8.3.0

14 May 13:18
Compare
Choose a tag to compare

Release Notes

Overview

This minor version introduces changes such as:

  • Fix upgrade typing in <CurrencyStatic>
  • Fix upgrade maxLevel
  • Add currencyContext to <Upgrade>.effect
  • Update dependency version

Here is an example of the new upgrade typing system.

// CurrencyStatic usage (typescript)
import { E, CurrencyStatic } from "emath.js";
import type { UpgradeStatic, UpgradeInit } from "emath.js";

const upgsList = [
    {
        id: "upgId1",
        cost: (level: E): E => level.mul(10),
        effect: (level: E, upgradeContext: UpgradeStatic, currencyContext: CurrencyStatic): void => {
            currencyContext.boost.setBoost(
                // add boost here ...
            );
        }
    },
    {
        id: "upgId2",
        cost: (level: E): E => level.mul(20),
    },
] as const satisfies UpgradeInit[];

const myCurrency = new CurrencyStatic(undefined, upgsList);

const upgrade1 = myCurrency.getUpgrade("upgId1a"); // Typed upgrade get

// Game usage (typescript)
import { myGame } from "./game";

const myGameCurrency = myGame.addCurrency("myCurrency", upgsList);

const upgrade = myGameCurrency.static.getUpgrade("upgId1a"); // Typed upgrade get

Full Changelog: v8.2.1...v8.3.0

Known Bugs

  • TBD

Feedback

We value your feedback! If you encounter any issues or have suggestions for improvement, please open a new issue.

Thank you for using this project!

Version 8.2.1

07 May 13:13
Compare
Choose a tag to compare

Release Notes

Overview

This patch version introduces minor changes such as:

  • Added <CurrencyStatic>.getNextCostMax
  • Various type changes to CurrencyStatic and GameCurrency

Full Changelog: v8.2.0...v8.2.1

Known Bugs

  • <Upgrade>.maxLevel not working

Feedback

We value your feedback! If you encounter any issues or have suggestions for improvement, please open a new issue.

Thank you for using this project!

Version 8.2.0

02 May 13:35
3c73485
Compare
Choose a tag to compare

Release Notes

Overview

This minor version fixes some bugs and introduces minor changes such as:

  • Changed numericalAnalysis DEFAULT_ITERATIONS from 25 to 35
  • ResetLayer now resets upgrade levels correctly and applies the effect
  • ConfigManager is now exported
  • Various code styling changes

Full Changelog: v8.1.0...v8.2.0

Known Bugs

  • <Upgrade>.maxLevel not working

Feedback

We value your feedback! If you encounter any issues or have suggestions for improvement, please open a new issue.

Thank you for using this project!

Version 8.1.0

28 Apr 01:48
Compare
Choose a tag to compare

Release Notes

Overview

This minor version fixes some bugs and introduces minor changes such as:

  • Update dependencies: Change lz-string and md5 from prod to dev dependencies
  • Fix <CurrencyStatic>.calculateUpgrade target parameter
  • Added more documentation
  • Various code optimizations

Full Changelog: v8.0.0...v8.1.0

Known Bugs

  • <Upgrade>.maxLevel not working

Feedback

We value your feedback! If you encounter any issues or have suggestions for improvement, please open a new issue.

Thank you for using this project!

Version 8.0.0

23 Apr 22:30
Compare
Choose a tag to compare

Release Notes

Overview

This major version introduces some major backwards-incompatible changes in the code:

  • Changed all classes to PascalCase
  • Changed typings for certain classes
  • numericalAnalysis: A set of functions for approximating inverse functions and summations
  • Currency overhaul: Better upgrade support, and a buy max approximation
  • Fix support for .mjs
  • DataManager - You can parse custom classes now
  • Grid changes
  • Attribute boost type template
  • Change ResetLayer
  • DataManager changes
  • Various code optimizations and bug fixes

For more details, see the various release candidate versions.

Full Changelog: v7.1.0...v8.0.0

Known Bugs

  • currency.calculateUpgrade sometimes inaccurate for complicated functions

Feedback

We value your feedback! If you encounter any issues or have suggestions for improvement, please open a new issue.

Thank you for using this project!

Version 8.0.0 - Release Candidate 2

22 Apr 18:07
Compare
Choose a tag to compare
Pre-release

Release Notes

Overview

This release candidate optimizes the code in various ways including:

  • Actually fix mjs (hopefully)
  • DataManager - You can parse custom classes now, with the help of class-transformer
  • Grid changes
  • Attribute boost type template
  • Change ResetLayer
  • roundBase in numericalAnalysis
  • Various code optimizations

Full Changelog: v8.0.0-rc.1...v8.0.0-rc.2

Known Bugs

  • currency.calculateUpgrade sometimes inaccurate for complicated functions

Feedback

We value your feedback! If you encounter any issues or have suggestions for improvement, please open a new issue.

Thank you for using this project!

Version 8.0.0 - Release Candidate 1

19 Apr 16:32
Compare
Choose a tag to compare
Pre-release

Release Notes - Version 8.0.0 - Release Candidate 1

Overview

This release candidate fixes various bugs, including:

  • Fixed mjs support
  • DataManager changes
  • numericalAnalysis changes

Full Changelog: v8.0.0-rc.0...v8.0.0-rc.1

Known Bugs

  • currency.calculateUpgrade sometimes inaccurate for lower levels

Feedback

We value your feedback! If you encounter any issues or have suggestions for improvement, please open a new issue.

Thank you for using this project!