Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Releases: kytta/pretty-money

v1.1.2: Project deprecated

17 Feb 11:40
v1.1.2
9617f1e
Compare
Choose a tag to compare
Starting with Node 14, the currency values are formatted correctly. Use
the built-in `Number.prototype.toLocaleString` instead.

v1.1.1

08 Apr 08:51
Compare
Choose a tag to compare

Fixed

  • invalid formatting of numbers smaller than 1 (#8)

v1.1.0...v1.1.1

v1.1.0

20 Mar 18:24
Compare
Choose a tag to compare

Added

  • this changelog
  • CommonJS version separate from UMD (pretty-money.js)
  • ESM version for use in modern browsers (pretty-money.modern.js)
  • source maps for generated files

Changed

  • source file language from TS to JS
  • files for Node (.esm.js, .js) are built unminified, files for Web (.modern.js, .umd.js) are built minified

Security

  • bumped dev dependencies

v1.0.5...v1.1.0

1.0.5

04 Apr 19:25
Compare
Choose a tag to compare

This version is built using updated dependencies. The package is now developed with Yarn instead of NPM

1.0.4

17 Jan 14:00
Compare
Choose a tag to compare

This version improves the build process and updates the README. The package contents shouldn't have changed.

1.0.3

24 Oct 16:39
Compare
Choose a tag to compare

Improvements

  • TypeScript definitions now use a better, easier to understand overloading syntax
  • bundle size is now 468 bytes (16% less than before)

P.S. Don't try to find the 1.0.2 version — I messed up with Travis and it didn't publish it properly, oh well

1.0.1

08 Sep 10:56
60e7d85
Compare
Choose a tag to compare

Fixes

  • minDecimal had no effect if the number had no decimal part (#2)

New

  • bundles now have the header comment with @license

Regressions

  • bundle size is now 19% bigger (469 to 559 bytes minzipped)

1.0.0

07 Sep 23:44
bcfd43f
Compare
Choose a tag to compare

The initial release of pretty-money

This version includes control of:

  • currency sign and its position
  • spacing
  • delimiters for decimal part and thousands
  • decimal part formatting