Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Releases: probil/v-mask

v2.3.0

27 Sep 08:39
97e6fd9
Compare
Choose a tag to compare

2.3.0 (2021-09-27)

Features

  • filter: make filter work with RegExps, functions and respect custom replacers similarly to directive (286deda), closes #499

One of the common use cases for that is number as formatting currencies:

<template>
  <span>{{ '1000' | VMask(currencyMask) }</span>
  <!-- prints `$1,000` -->
</template>
<script>
  import createNumberMask from 'text-mask-addons/dist/createNumberMask';
  const currencyMask = createNumberMask({
    prefix: '$',
    allowDecimal: true,
    includeThousandsSeparator: true,
    allowNegative: false,
  });
  export default {
    data: () => ({
      currencyMask,
      myInputModel: ''
    })
  }
</script>

Thanks to @CristianUser for the idea.

v2.2.4

23 Jan 08:58
5f1490b
Compare
Choose a tag to compare

2.2.4 (2021-01-23)

Bug Fixes

  • filter: prevent crashes for null values, cover filter by tests (5f1490b), closes #510

v2.2.3

21 Jul 14:37
95a9abf
Compare
Choose a tag to compare

2.2.3 (2020-07-21)

Bug Fixes

v2.2.2

21 Jul 11:37
29a106d
Compare
Choose a tag to compare

2.2.2 (2020-07-21)

Bug Fixes

v2.2.1

26 May 09:19
6bbad7f
Compare
Choose a tag to compare

2.2.1 (2020-05-26)

Bug Fixes

  • regexp mask array is not working in v2.2.0 (6bbad7f), closes #481

v2.2.0

24 May 10:42
31b8f23
Compare
Choose a tag to compare

2.2.0 (2020-05-24)

Bug Fixes

  • get rid of an error caused by vue-test-utils update (75ed912)

Features

  • add support for custom placeholders and function masks (dece4fa), closes #128

v2.1.0

27 Mar 08:31
Compare
Choose a tag to compare

Features

  • Filter for static values (closes #147)
<template>
  <span>{{ '9999999999' | VMask('(###) ###-####') }}</span>
  <!-- renders -->
  <span> (999) 999-9999</span>
</template>

Thanks, @JotaVeUltra

Other changes

  • re-build with latest dependencies

v2.0.2

03 Aug 16:56
Compare
Choose a tag to compare

Bug Fixes:

  • IE 11 support

Other changes

  • No more polyfilling IE10 (it's a dead browser guys), if you need to support old browsers just add polyfill in your bundle
  • No more relying on dataset for storing previous value

v2.0.1

20 Jul 22:57
Compare
Choose a tag to compare

Bug Fixes

  • babel: enable proper code transpiling during test 3a91e2a, fixes #374

Chores

  • Reduces npm install size

v2.0.0

19 Jul 22:41
Compare
Choose a tag to compare

Bug Fixes

Features

  • format: ditch pureMask and use text-mask-core instead (9dad736)
  • jest: move to babel@7 configuration (4fea3ea)

BREAKING CHANGES

  • format: re-written from the scratch by using text-mask-core.

May not work as expected but it bring some future to the library.
Please create an issue if you have any issues with v2.X
If you satisfied with v1 - keep using it. It was almost 2x times smaller

More improvements soon!