Skip to content

Releases: taiga-family/maskito

Release v2.3.2

16 May 13:46
1f3c6ae
Compare
Choose a tag to compare

2.3.2 (2024-05-16)

Bug Fixes

  • kit: Number pads integer part with zero if user selects all and then types decimal separator
    (#1220)
    (8371e45)
  • phone: revert mistakenly fixated libphonenumber-js peer-dependency to just >=1.0.0
    (#1234)
    (27ee4a1)
  • react: revert mistakenly fixated react & react-demo peer-dependencies to just >=16.8
    (#1231)
    (ae89d6f)
  • vue: revert mistakenly fixated vue peer-dependency to just >=3.0.0
    (#1232)
    (22d84e2)

Release v2.3.1

23 Apr 13:58
e993783
Compare
Choose a tag to compare

2.3.1 (2024-04-23)

Bug Fixes

  • kit: Number should drop decimal separator if all digits are erased
    (#1211)
    (5836c96)
  • kit: Number with decimalZeroPadding=true should erase everything on .00
    (#1207)
    (d72f225)
  • kit: Placeholder can have now the same character as textfield's value
    (#1209)
    (ed06936)

Release v2.3.0

16 Apr 08:51
497b54f
Compare
Choose a tag to compare

2.3.0 (2024-04-16)

Features

  • core: add contenteditable support (#1039)
    (0d5bb31)
  • kit: DateTime supports configurable parameter dateTimeSeparator
    (#1143)
    (ec86284)

Bug Fixes

  • kit: Date formatting errors for mm/yyyy, yyyy/mm, mm/yy modes
    (#1177)
    (948a350)

Release v2.2.0

07 Mar 09:39
a7bec35
Compare
Choose a tag to compare

2.2.0 (2024-03-07)

Features

  • kit: Number supports new configurable parameter minusSign
    (#1118)
    (a7bec35)

Bug Fixes

  • totally disable Maskito if nullable options are passed inside @maskito/{angular,react,vue}
    (#1117)
    (8cbadcf)

Release v2.1.0

04 Mar 10:11
b152698
Compare
Choose a tag to compare

2.1.0 (2024-03-04)

⚠ Deprecations

  • angular: MaskitoCVA is no longer needed (just use MaskitoDirective) (#1083)

Features

  • kit: Date & DateRange & DateTime has improved zero-padding support for browser autofill & IME composition
    (#1027)
    (77ac01c)
  • kit: add full-width numbers support for Time, Date, DateTime, DateRange
    (#1043)
    (434c9c5)

Bug Fixes

  • kit: maskitoParseNumber should interpret japanese prolonged sound mark as pseudo minus
    (#1115)
    (b152698)

Release v2.0.2

01 Feb 14:22
18e3e0c
Compare
Choose a tag to compare

2.0.2 (2024-02-01)

Bug Fixes

  • kit: Number with initial value has problems with the first time input
    (#986)
    (e40d3ff)
  • react: @maskito/react includes again missing cjs module format
    (#991)
    (18e3e0c)

Release v2.0.1

31 Jan 12:15
2410b64
Compare
Choose a tag to compare

2.0.1 (2024-01-31)

Bug Fixes

  • core: maskitoUpdateElement should not dispatch InputEvent if value is not changed
    (#977)
    (2410b64)
  • core: don't execute setSelectionRange if element is not focused
    (#937)
    (92f288b)
  • kit: Number rejects the first time input of full width digits
    (#955)
    (c416884)
  • react: @maskito/react library should not include core-js imports
    (#962)
    (3b7e401)

Release v2.0.0

22 Jan 05:45
0cde2c1
Compare
Choose a tag to compare

2.0.0 (2024-01-22)

⚠ BREAKING CHANGES

  • core: merge MaskitoElementPredicate & MaskitoElementPredicateAsync into single type (#757)

Before:

import {
    MaskitoElementPredicate,
    MaskitoElementPredicateAsync,
} from '@maskito/core';

const syncPredicate: MaskitoElementPredicate = element =>
    element.querySelectorAll('input')[1]!;

const asyncPredicate: MaskitoElementPredicateAsync = async element =>
    Promise.resolve(element.querySelectorAll('input')[1]!);

After:

import {MaskitoElementPredicate} from '@maskito/core';

const syncPredicate: MaskitoElementPredicate = element =>
    element.querySelectorAll('input')[1]!;

const asyncPredicate: MaskitoElementPredicate = async element =>
    Promise.resolve(element.querySelectorAll('input')[1]!);

  • core: remove value's calibration on initialization + new maskitoInitialCalibrationPlugin (#778)

Before: execution of new Maskito(element, options) immediately invokes sync mask calibration.
After: no initial calibration. Maskito calibrates textfield's value only on user's interactions. Developer can enable previous behaviour by using maskitoInitialCalibrationPlugin.
Why: The previous implementation is not so flexible as required. Sometimes the such initial calibration is not required for developer, and developer wants calibration to work only on user's interactions. The new way allows to select: use maskitoInitialCalibrationPlugin or not.

Learn more: https://maskito.dev/core-concepts/plugins#initial-calibration


  • core: bump Firefox browser support (55+ => 87+) (#876) and drop legacy fallbacks for Firefox (#756)

  • kit: delete deprecated separator for DateRange (use dateSeparator instead) (#790)

Before:

import {maskitoDateRangeOptionsGenerator} from '@maskito/kit';

const options = maskitoDateRangeOptionsGenerator({
    mode: 'mm/dd/yyyy',
    separator: '/', // <-------- deprecated
    rangeSeparator: ' ~ ',
});

After:

import {maskitoDateRangeOptionsGenerator} from '@maskito/kit';

const options = maskitoDateRangeOptionsGenerator({
    mode: 'mm/dd/yyyy',
    dateSeparator: '/',
    rangeSeparator: ' ~ ',
});

  • angular: bump minimum required Angular version (12+ => 15+) (#710) (#720) (#725)

  • angular: deprecate MaskitoModule (use standalone MaskitoDirective, MaskitoCVA, MaskitoPipe) (#754)

🚀 More features

  • core: new built-in maskitoStrictCompositionPlugin (#881)
  • kit: Number allows to enter full width numbers (#864)

🐛 Bug Fixes

  • core: drop some excess dispatches of Input-event (#882)
  • kit: add {bubbles:true} for input events inside all built-in plugins to support ReactSyntheticEvent (#806)
  • kit: Number has problems when prefix/postfix includes decimalSeparator symbol (#874) (#816) (#921)
  • kit: Placeholder is not compatible with maskitoEventHandler + focus/blur events (#928)

Release v1.9.0

23 Nov 12:33
d65670f
Compare
Choose a tag to compare

1.9.0 (2023-11-23)

Features

  • phone: add ability to configure the separator (#685)
    (ab6bb11)

Release v1.8.2

16 Nov 12:05
be459e5
Compare
Choose a tag to compare

1.8.2 (2023-11-16)

Bug Fixes

  • kit: PrefixPostprocessor has problems with multi-character prefix
    (#669)
    (be459e5)