Skip to content

Releases: parsify-dev/cashify

v2.2.0

01 Jan 18:13
Compare
Choose a tag to compare
  • Add basic parsing (#8)
  • Add new tests related to basic parsing
  • Update README (improve docs, add TOC & additional examples)
  • Update devDependencies

v2.1.1

20 Dec 18:37
Compare
Choose a tag to compare

Credits

Huge thanks to @Richienb for helping!

v2.1.0

20 Dec 11:55
Compare
Choose a tag to compare
  • 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!

v2.0.2

06 Nov 22:10
Compare
Choose a tag to compare
  • Use private modifier, instead of public on the options object
  • Update devDependencies

v2.0.1

26 Oct 13:57
Compare
Choose a tag to compare
  • Use the Except type from type-fest package, as it's stricter
  • Update devDependencies

v2.0.0

13 Oct 18:55
Compare
Choose a tag to compare
  • BREAKING: Minimum Node.js version is now 10 (although lower versions might still work)
  • Code refactor
  • Remove unnecessary comma from TypeScript configuration
  • Update devDependencies

v1.2.1

06 Sep 20:15
Compare
Choose a tag to compare
  • Simplify getRate function (move from options object to plain arguments)
  • Update devDependencies

v1.2.0

25 Aug 19:42
cb6ae41
Compare
Choose a tag to compare
  • Stricter TypeScript (no @ts-ignore statements)
  • Split tests into 2 files
  • Fix link to money.js (readme)
  • Fix float errors, at least partially (thanks @ThisIsMissEm)
  • Add .npmrc

v1.1.3

09 Aug 09:32
Compare
Choose a tag to compare
  • Update dependencies
  • Change tests
  • FIX: If from equals to, just return the amount of money

v1.1.2

07 Aug 21:51
Compare
Choose a tag to compare
  • Get rid of key validation, as it breaks the package in some use cases
  • Remove unnecessary tests