V Mask Versions Save

🔡 Tiny input mask library for Vue.js (directive)

v2.3.0

2 years ago

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

3 years ago

2.2.4 (2021-01-23)

Bug Fixes

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

v2.2.3

3 years ago

2.2.3 (2020-07-21)

Bug Fixes

v2.2.2

3 years ago

2.2.2 (2020-07-21)

Bug Fixes

v2.2.1

3 years ago

2.2.1 (2020-05-26)

Bug Fixes

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

v2.2.0

3 years ago

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

4 years ago

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

4 years ago

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

4 years ago

Bug Fixes

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

Chores

  • Reduces npm install size

v2.0.0

4 years ago

Bug Fixes

  • #423
  • #282
  • #146
  • #126
  • #65
  • #53

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!