334a8c40d9d1738465268f58a8405b6b58daa866109b5617c8b15f760643a64964b5e63d0e7f4ed463043e054568be296faffee4a54228544dac08329335fd 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. _This is the historical changelog for the [`numeral-js`
  2. project](https://github.com/adamwdraper/Numeral-js), which `numbro` is built upon. The `numbro`
  3. changelog is at [CHANGELOG.md](CHANGELOG.md)._
  4. ### 1.5.3
  5. Added currency symbol to optionally appear before negative sign / open paren
  6. Added float precision math support
  7. Added specification of abbreviation in thousands, millions, billions
  8. ### 1.5.2
  9. Bug fix: Unformat should pass through if given a number
  10. Added a mechanism to control rounding behaviour
  11. Added languageData() for getting and setting language props at runtime
  12. ### 1.5.1
  13. Bug fix: Make sure values aren't changed during formatting
  14. ### 1.5.0
  15. Add defaultFormat(). numeral().format() uses the default to format if no string is provided
  16. .unformat() returns 0 when passed no string
  17. Added languages.js that contains all languages
  18. Bug fix: Fix bug while unformatting ordinals
  19. Add format option to always show signed value
  20. Added ability to instantiate numeral with a string value of a number
  21. ### 1.4.9
  22. Bug fix: Fix bug while unformatting ordinals
  23. ### 1.4.8
  24. Bug fix: Throw error if language is not defined
  25. ### 1.4.7
  26. Bug fix: Fix typo for trillion
  27. ### 1.4.6
  28. Bug fix: remove ' from unformatting regex that was causing an error with fr-CH.js
  29. ### 1.4.5
  30. Add zeroFormat() function that accepts a string for custom formating of zeros
  31. Add valueOf() function
  32. Chain functionality to language function
  33. Make all minified files have the same .min.js filename ending
  34. ### 1.4.1
  35. Bug fix: Bytes not formatting correctly
  36. ### 1.4.0
  37. Add optional format for all decimals
  38. ### 1.3.4
  39. Remove AMD module id. (This is encouraged by require.js to make the module more portable, and keep it from creating a global)
  40. ### 1.3.3
  41. AMD define() compatibility.
  42. ### 1.3.2
  43. Bug fix: Formatting some numbers results in the wrong value. Issue #21
  44. ### 1.3.1
  45. Bug fix: Minor fix to unformatting parser
  46. ### 1.3.0
  47. Add support for spaces before/after $, a, o, b in a format string
  48. Bug fix: Fix unformat for languages that use '.' in ordinals
  49. Bug fix: Fix round up floating numbers with no precision correctly.
  50. Bug fix: Fix currency signs at the end in unformat
  51. ### 1.2.6
  52. Add support for optional decimal places
  53. ### 1.2.5
  54. Add support for appending currency symbol
  55. ### 1.2.4
  56. Add support for humanized filesizes
  57. ### 1.2.3
  58. Bug Fix: Fix unformatting for languages that use '.' as thousands delimiter
  59. ### 1.2.2
  60. Changed language definition property 'money' to 'currency'
  61. ### 1.2.1
  62. Bug fix: Fix unformatting non-negative abbreviations
  63. ### 1.2.0
  64. Add language support
  65. Update testing for to include languages
  66. ### 1.1.0
  67. Add Tests
  68. Bug fix: Fix difference returning negative values
  69. ### 1.0.4
  70. Bug fix: Non negative numbers were displaying as negative when using parentheses
  71. ### 1.0.3
  72. Add ordinal formatting using 'o' in the format
  73. ### 1.0.2
  74. Add clone functionality
  75. ### 1.0.1
  76. Added abbreviations for thousands and millions using 'a' in the format
  77. ### 1.0.0
  78. Initial release