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

2.0.0

Compare
Choose a tag to compare
@baumandm baumandm released this 14 Feb 01:14
· 5 commits to master since this release

This release switches to track the Numeral.js 2.x branch. There are several breaking changes, both in Numeral.js itself as well as this library. If you need compatibility with Numeral.js 1.x, please use the latest angular-numeraljs 1.x release (code on the 1.x branch).

Features

  • Upgrade to Numeral.js 2.x
  • Fixed indentation to match EditorConfig settings
  • Upgraded Karma & related test dependencies

Breaking Changes

  • $numeraljsConfigProvider's interface has been modified to better match Numeral.js:
    • $numeraljsConfigProvider.setCurrentLanguage(lang) has been renamed to locale(locale)
    • $numeraljsConfigProvider.setDefaultFormat(format) has been renamed to defaultFormat(format)
    • $numeraljsConfigProvider.setFormat(name, formatString) has been renamed to namedFormat(name, formatString)
    • $numeraljsConfigProvider.setLanguage(lang, def) has been renamed to register('locale', name, def)