Skip to content

Release v1.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Jun 09:08
· 1366 commits to main since this release

1.0.0 (2023-06-21)

We are happy to introduce the first stable major release πŸŽ‰

⚠ BREAKING CHANGES


  • core: delete deprecated preprocessor & postprocessor from MaskitoOptions
    (#337)
    (0b6aad2)

Before:

const options: MaskitoOptions = {
    mask: /.../,
    preprocessor: maskitoPipe(
        preprocessor1,
        preprocessor2,
        preprocessor3,
    ),
    postprocessor: postprocessor1,
};

After:

const options: MaskitoOptions = {
    mask: /.../,
    preprocessors: [
        preprocessor1,
        preprocessor2,
        preprocessor3,
    ],
    postprocessors: [ postprocessor1 ],
};

  • kit: delete deprecated isNegativeAllowed parameter from Number mask
    (#338)
    (9fd3005)

Before:

import {maskitoNumberOptionsGenerator} from '@maskito/kit';
 
const options = maskitoNumberOptionsGenerator({
    isNegativeAllowed: false,
});

After:

import {maskitoNumberOptionsGenerator} from '@maskito/kit';
 
const options = maskitoNumberOptionsGenerator({
    min: 0,
});