Skip to content

deduplicate dependency maskito and date-fns - #2278

Open
dmitrbrvsk wants to merge 2 commits into
masterfrom
fix/deduplicate-maskito
Open

deduplicate dependency maskito and date-fns#2278
dmitrbrvsk wants to merge 2 commits into
masterfrom
fix/deduplicate-maskito

Conversation

@dmitrbrvsk

@dmitrbrvsk dmitrbrvsk commented Jul 20, 2026

Copy link
Copy Markdown
Contributor
  1. обновлены зависимости @maskito/core / @maskito/react до ^4.0.1, чтобы в бандлах потребителей не дублировались версии maskito
  2. исправлен maskUtils.prefixPostprocessor для корректной работы с @maskito/core v4
    (вставка недостающих символов префикса на нужные позиции)
  3. date-fns переведён в peerDependencies (^4.1.0): приложение должно предоставлять одну версию библиотеки, чтобы она не дублировалась в бандле

прикладываю скрин из отчет команды yarn bundle-analyze на проекте
Снимок экрана — 2026-07-20 в 14 32 08

@changeset-bot

changeset-bot Bot commented Jul 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 925fa87

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 93 packages
Name Type
@alfalab/core-components-international-phone-input Minor
@alfalab/core-components-universal-date-input Minor
@alfalab/core-components-input-autocomplete Minor
@alfalab/core-components-date-range-input Minor
@alfalab/core-components-date-time-input Minor
@alfalab/core-components-calendar-input Minor
@alfalab/core-components-calendar-range Minor
@alfalab/core-components-number-input Minor
@alfalab/core-components-date-input Minor
@alfalab/core-components-calendar Minor
@alfalab/core-components-shared Minor
@alfalab/core-components Patch
@alfalab/core-components-intl-phone-input Patch
@alfalab/core-components-amount-input Patch
@alfalab/core-components-calendar-with-skeleton Patch
@alfalab/core-components-accordion Patch
@alfalab/core-components-action-button Patch
@alfalab/core-components-base-modal Patch
@alfalab/core-components-bottom-sheet Patch
@alfalab/core-components-button Patch
@alfalab/core-components-carousel Patch
@alfalab/core-components-cdn-icon Patch
@alfalab/core-components-checkbox-group Patch
@alfalab/core-components-checkbox Patch
@alfalab/core-components-circular-progress-bar Patch
@alfalab/core-components-file-upload-item-v1 Patch
@alfalab/core-components-file-upload-item Patch
@alfalab/core-components-form-control Patch
@alfalab/core-components-input Patch
@alfalab/core-components-modal Patch
@alfalab/core-components-mq Patch
@alfalab/core-components-navigation-bar-private Patch
@alfalab/core-components-navigation-bar Patch
@alfalab/core-components-notification Patch
@alfalab/core-components-page-indicator Patch
@alfalab/core-components-pass-code-v1 Patch
@alfalab/core-components-pass-code Patch
@alfalab/core-components-pattern-lock-v1 Patch
@alfalab/core-components-pattern-lock Patch
@alfalab/core-components-plate Patch
@alfalab/core-components-popover Patch
@alfalab/core-components-popup-sheet Patch
@alfalab/core-components-portal Patch
@alfalab/core-components-product-cover Patch
@alfalab/core-components-pure-cell Patch
@alfalab/core-components-radio-group Patch
@alfalab/core-components-radio Patch
@alfalab/core-components-scrollbar Patch
@alfalab/core-components-select Patch
@alfalab/core-components-side-panel Patch
@alfalab/core-components-sortable-list Patch
@alfalab/core-components-spinner Patch
@alfalab/core-components-steps Patch
@alfalab/core-components-switch Patch
@alfalab/core-components-system-message Patch
@alfalab/core-components-tab-bar Patch
@alfalab/core-components-tabs Patch
@alfalab/core-components-tag Patch
@alfalab/core-components-textarea Patch
@alfalab/core-components-toast-plate Patch
@alfalab/core-components-toast Patch
@alfalab/core-components-tooltip Patch
@alfalab/core-components-typography Patch
@alfalab/core-components-universal-modal Patch
@alfalab/core-components-drawer Patch
@alfalab/core-components-gallery Patch
@alfalab/core-components-select-with-tags Patch
@alfalab/core-components-attach Patch
@alfalab/core-components-confirmation-v1 Patch
@alfalab/core-components-confirmation Patch
@alfalab/core-components-custom-button Patch
@alfalab/core-components-icon-button Patch
@alfalab/core-components-picker-button Patch
@alfalab/core-components-table Patch
@alfalab/core-components-masked-input Patch
@alfalab/core-components-password-input Patch
@alfalab/core-components-slider-input Patch
@alfalab/core-components-time-input Patch
@alfalab/core-components-with-suffix Patch
@alfalab/core-components-code-input Patch
@alfalab/core-components-custom-picker-button Patch
@alfalab/core-components-filter-tag Patch
@alfalab/core-components-markdown Patch
@alfalab/core-components-notification-manager Patch
@alfalab/core-components-alert Patch
@alfalab/core-components-pagination Patch
@alfalab/core-components-chart Patch
@alfalab/core-components-comment Patch
@alfalab/core-components-list-header Patch
@alfalab/core-components-list Patch
@alfalab/core-components-stepped-progress-bar Patch
@alfalab/core-components-bank-card Patch
@alfalab/core-components-phone-input Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Bundle size report

Entry point Size (minified)
@alfalab/core-components-calendar-range/index.js 294.6 (+2.20 KB ❌)
@alfalab/core-components-input-autocomplete/index.js 252.8 (+1.40 KB ❌)
@alfalab/core-components-input-autocomplete/mobile/index.js 225.5 (+1.40 KB ❌)
@alfalab/core-components-international-phone-input/index.js 551.1 (+2.30 KB ❌)
@alfalab/core-components-international-phone-input/desktop/index.js 468.7 (+2.30 KB ❌)
@alfalab/core-components-international-phone-input/mobile/index.js 523.1 (+2.30 KB ❌)
@alfalab/core-components-number-input/index.js 48.8 (+2.30 KB ❌)
@alfalab/core-components-number-input/desktop/index.js 48 (+2.20 KB ❌)
@alfalab/core-components-number-input/mobile/index.js 48 (+2.30 KB ❌)
@alfalab/core-components-number-input/shared/index.js 14.6 (+1.00 KB ❌)
@alfalab/core-components-universal-date-input/index.js 141 (+2.30 KB ❌)
@alfalab/core-components-universal-date-input/desktop/index.js 140.8 (+2.20 KB ❌)
@alfalab/core-components-universal-date-input/mobile/index.js 140.8 (+2.20 KB ❌)

@coveralls

coveralls commented Jul 20, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 29727568473

Coverage decreased (-0.06%) to 82.104%

Details

  • Coverage decreased (-0.06%) from the base build.
  • Patch coverage: 3 of 3 lines across 1 file are fully covered (100%).
  • 5 coverage regressions across 1 file.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

5 previously-covered lines in 1 file lost coverage.

File Lines Losing Coverage Coverage
packages/shared/src/maskUtils.ts 5 66.27%

Coverage Stats

Coverage Status
Relevant Lines: 11796
Covered Lines: 9760
Line Coverage: 82.74%
Relevant Branches: 2246
Covered Branches: 1769
Branch Coverage: 78.76%
Branches in Coverage %: Yes
Coverage Strength: 237.54 hits per line

💛 - Coveralls

@dmitrbrvsk
dmitrbrvsk force-pushed the fix/deduplicate-maskito branch from e67b2c0 to 4f4f55f Compare July 20, 2026 08:20
@dmitrbrvsk dmitrbrvsk changed the title deduplicate dependency maskito deduplicate dependency maskito and date-fns Jul 20, 2026
@dmitrbrvsk
dmitrbrvsk force-pushed the fix/deduplicate-maskito branch from 549d40d to 925fa87 Compare July 20, 2026 11:34
@denisx

denisx commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

а зачем мы выносим зависимости в пир? не пойму как это поможет с размером сборки. если у тебя по семверу всё ровно, твоя сборка будет без дубликатов и так.
а обновить мажорку это да, полезне. но это в след мажорку кор-компонентов скорее всего. мажорка же

@dmitrbrvsk

Copy link
Copy Markdown
Contributor Author

а зачем мы выносим зависимости в пир? не пойму как это поможет с размером сборки. если у тебя по семверу всё ровно, твоя сборка будет без дубликатов и так. а обновить мажорку это да, полезне. но это в след мажорку кор-компонентов скорее всего. мажорка же

а если представить, что условно завтра опять такая же ситуация возникнет:
когда отличаются версии в core-components и в том, проекте, который использует,
то получается опять нужно будет сравнивать версии?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants