Release v3.0.0
3.0.0 (2024-07-18)
⚠ BREAKING CHANGES
-
phone: remove built-in
RemoveOnBlur
/AddOnFocus
plugins from@maskito/phone
(#1352)
Learn more: https://maskito.dev/addons/phone#focus-blur -
angular: bump minimum required Angular version (15+ => 16+) (#1328)
-
angular: delete deprecated
MaskitoModule
&MaskitoCVA
(#1391)Previous behavior:
import {Component} from '@angular/core'; import {MaskitoModule} from '@maskito/angular'; import type {MaskitoOptions} from '@maskito/core'; @Component({ standalone: true, selector: 'app', imports: [MaskitoModule], template: ` <input [maskito]="options" /> {{ 'abc123def' | maskito: options }} `, }) export class App { public readonly options: MaskitoOptions = { mask: /^\d+$/, }; }
⬇️
New behavior:
import {Component} from '@angular/core'; import {MaskitoDirective, MaskitoPipe} from '@maskito/angular'; import type {MaskitoOptions} from '@maskito/core'; @Component({ standalone: true, selector: 'app', imports: [MaskitoDirective, MaskitoPipe], // <--- standalone entities template: ` <input [maskito]="options" /> {{ 'abc123def' | maskito: options }} `, }) export class App { public readonly options: MaskitoOptions = { mask: /^\d+$/, }; }
Features
- core: new built-in
maskitoChangeEventPlugin
(#1338)
Learn more: https://maskito.dev/core-concepts/plugins#change-event