Skip to content

Release v3.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 18 Jul 09:33
· 400 commits to main since this release
dc6a2c9

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