Skip to content

Latest commit

 

History

History
151 lines (84 loc) · 5.06 KB

changelog.md

File metadata and controls

151 lines (84 loc) · 5.06 KB

2.0.4

  • Release for security fixes in devDependencies

2.0.3

  • Fixed truncation of fractional cents when using fromCents

2.0.2

  • Fixed incorrect values from distribute() when using fromCents

2.0.1

  • Fixed incorrect values being returned from methods when using fromCents (#260 thanks @chrisvariety)

2.0.0

Breaking Changes

  • Formatter now accepts a function or static option, allowing for fine tuned customization of output formats (#213)

1.2.1

  • Updated flow definition for breaking changes in flow 0.82.x. (#149) thanks @amccloud

1.2.0

  • Adjusted internal precision to better account for some edge case precision issues. (#133) thanks @tvainika
  • Added new formatting options, pattern and negativePattern allowing for greater flexibility of currency formats. (#95)

1.1.4

1.1.3

  • Fixed grouping separator for numbers with 0 precision. (#109) thanks @hameedraha

1.1.2

  • Fixed rounding not always being consistent with half cent values and high precision. (#102) thanks @philippetrepanier
  • Fixed comma separator appearing in decimals when formatting. (#104) thanks @lanceli

1.1.1

1.1.0

  • useVedic option added for displaying groupings using the Indian Numbering System. (#74)
  • increment option added for incremental rounding on display. (#70)
  • Documentation updated to be built from source; should help keep documentation in sync.

1.0.8

  • Changed module export default currency to export = currency for Typescript definition. (#88 thanks @arturnt)

1.0.6

  • Fixed travis deployments. (#79)

1.0.5

  • Removed static properties from flow definition files.

1.0.2

  • Fixed multiplying with precisions other than 2. (#76 thanks @usb248)

1.0.1

1.0.0

  • Node < 4 support dropped.
  • Separate UMD, ES6, CommonJS modules now available.
  • Global currency settings removed. Settings are now passed per currency.js instance.
  • Different precision currencies supported. (#29)
  • Added Typescript definition. (#36)
  • Added Flow definition. (#37)

0.4.4

  • Fix for currency.min.js being compiled incorrectly.

0.4.3

  • Added AMD support.
  • Fixed issue resolving bundling with webpack/browserify. (#24)
  • Updated to latest closure compiler for minification.

0.4.2

  • Whitelist currency.js files for smaller npm size.

0.4.1

  • Switched to mocha for testing and added test coverage.

0.4.0

  • Removed deprecated "seperator" option, is now "separator".
  • Currency can now throw an error with undefined inputs with the errorOnInvalid option set to true.

0.3.4

  • Fix bower package management.

0.3.2

  • Fix spelling of "seperator" to "separator".
  • Automatic publish to npm when tags are pushed to master.

0.3.1

  • Added bower support.

0.3.0

  • Added new format option to optionally include the set currency symbol.
  • Added travis ci integration.
  • Fixed issue where international values were not being formatted correctly. (#6)

0.2.0

  • Adding nodejs / commonjs support

0.1.4

  • Fixes issue with serializing currency via JSON.stringify (#1)
  • Added grunt tasks

0.1.3

  • Switching value returned to be the real float value and not the int value.

0.1.2

  • Fixed issue with rounding not being defaulted correctly.

0.1.1

  • Fixed issue with multiplication/division not allowing precision beyond 2 decimal points.

0.1.0

  • Initial release