Releases: dm4t2/vue-currency-input
Releases · dm4t2/vue-currency-input
2.0.0
Vue Currency Input was rewritten in TypeScript and now supports both Vue 2 and Vue 3. 🎉
Vue Currency Input does not provide a ready-to-use component anymore. Instead, it enables you to create your own based on your favorite input component powered by the Vue Composition API.
Please refer to the docs for more information: https://dm4t2.github.io/vue-currency-input/
🚀 New Features
- Supports both Vue 2 and Vue 3 (#166)
- Add new option
currencyDisplay
(#209) - Add new option
useGrouping
(#170) - Add new option
autoSign
(#193) - Hide decimal digits for integer numbers by default (#203)
- Move the caret position to the first or last digit when targeting the currency symbol on focus
🐛 Bug Fixes
- Prevent entering of non-numeric characters in
<v-text-field>
in Firefox (#175) - Consider precision for determining max allowed input value (#188)
- Input of decimal separators was broken for Android devices (#190)
- Allow clearing the input completely with backspace when
autoDecimalDigits
is enabled (#202)
💥 Breaking Changes
- Vue Currency Input can not be installed as Vue plugin anymore
- The
<currency-input>
component andv-currency
directive are dropped in favor of theuseCurrencyInput
composable - Option
autoDecimalMode
was renamed toautoDecimalDigits
- Option
currency
now only accepts currency ISO codes - Bundles are compiled to ES2020
- Option
allowNegative
was removed in favor of the newautoSign
option - Option
valueAsInteger
was renamed toexportValueAsInteger
- Precision range was dropped in favor of the new precision default behavior (hide decimal digits for integer numbers)
- Option
distractionFree
was replaced by single optionshideCurrencySymbolOnFocus
,hideGroupingSeparatorOnFocus
andhideNegligibleDecimalDigitsOnFocus
2.0.0-rc.5
🚀 New Features
- Add new option
currencyDisplay
(#209)
🏗 Refactorings:
- The codebase has been migrated to TypeScript
- Using Vite & VitePress for local development tooling/docs
💥 Breaking Changes
- Option
distractionFree
was replaced by single optionshideCurrencySymbolOnFocus
,hideGroupingSeparatorOnFocus
andhideNegligibleDecimalDigitsOnFocus
- Option
decimalDigitsReplacement
was removed again since it does not conform with the ECMAScript Internationalization API and causes issues with RTL locales
2.0.0-rc.4
🐛 Bug Fixes
autoSign
: avoid display of negative zero- clear input on blur if number value is null
💥 Breaking Changes
- drop precision range: the use case of a precision range is no longer given because of the new precision default behavior (hide decimal digits for integer numbers) (#203)
2.0.0-rc.3
2.0.0-rc.2
🐛 Bug Fixes
- npm 7 compatibility
2.0.0-rc.1
1.22.6
1.22.5
2.0.0-beta.3
2.0.0-beta.2
🐛 Bug Fixes
- Event listener detection is broken for Vue 3