Releases: kytta/pretty-money
Releases · kytta/pretty-money
v1.1.2: Project deprecated
Starting with Node 14, the currency values are formatted correctly. Use
the built-in `Number.prototype.toLocaleString` instead.
v1.1.0
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
v1.0.5...v1.1.0
1.0.5
This version is built using updated dependencies. The package is now developed with Yarn instead of NPM
1.0.4
This version improves the build process and updates the README. The package contents shouldn't have changed.
1.0.3
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
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
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