Skip to content

v2.1.0

Compare
Choose a tag to compare
@xxczaki xxczaki released this 20 Dec 11:55
· 71 commits to master since this release
  • Modularisation
    • Split functions into separate files for modularisation.
    • Documented all functions for future readability.
    • The Cashify class now accepts any of the 4 options as defaults and can be changed after initialisation.
    • The Options interface has been documented directly to avoid code duplication.
    • The convert function in the Cashify class proxies the non-constructor convert function to avoid code duplication.
    • Correctly define typings for rates object.
    • Since we're targeting Node.js v10+, we don't need to target ES5 in the tsconfig.json file. According to node.green, we can safely target ES2018 (ES7).
    • Removed dom lib from the tsconfig.json since this code also works for Node which doesn't have those APIs.
    • Since we're using Ava, import typescript files directly for tests to avoid issues with polyfills not being used and to increase iteration.
    • Since there isn't a lockfile already in the repository, added a gitignore rule for this.
    • Removed types in the param definitions since in Typescript, they are already specified.
  • Update devDependencies

Credits

Huge thanks to @Richienb for helping!