Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Release/v2.0.0 #934

Merged
merged 2 commits into from
Jan 22, 2024
Merged

🚀 Release/v2.0.0 #934

merged 2 commits into from
Jan 22, 2024

Conversation

taiga-family-bot
Copy link
Contributor

@taiga-family-bot taiga-family-bot commented Jan 22, 2024

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)

DO NOT SQUASH OR REBASE ME

if user merges this PR via rebasing or using squash, it will cause lost of the tag. It happens because tag is already
attached to the initial release commit SHA. If we use rebase or squash, the commit sha changes and already created tag
points to not-existing commit.

@taiga-family-bot taiga-family-bot self-assigned this Jan 22, 2024
Copy link
Contributor

⛔ Publish job has failed!

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (Automated approved)

Copy link

@taiga-family-approve-bot taiga-family-approve-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (Automated approved)

@github-actions github-actions bot added the ready to merge ready label Jan 22, 2024
@nsbarsukov nsbarsukov merged commit 48ed144 into main Jan 22, 2024
24 checks passed
@nsbarsukov nsbarsukov deleted the release/2.0.0 branch January 22, 2024 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants