Skip to content

chore(deps): update dependency commerceguys/intl to v2.1.0 - #3086

Open
renovate[bot] wants to merge 1 commit into
devfrom
renovate/commerceguys-intl-2.x-lockfile
Open

renovate[bot] wants to merge 1 commit into
devfrom
renovate/commerceguys-intl-2.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
commerceguys/intl 2.0.7 → 2.1.0 age confidence

Release Notes

commerceguys/intl (commerceguys/intl)

v2.1.0

Compare Source

Adds Currency::getDisplayFractionDigits(), separate from Currency::getFractionDigits():

  • getFractionDigits(): the ISO 4217 minor units, used for rounding and converting amounts to minor units (e.g. for payment gateways).
  • getDisplayFractionDigits(): the CLDR display digits, used by CurrencyFormatter as the default number of decimals. Falls back to getFractionDigits() when not set.

This restores the CLDR display digits that v2.0.10 replaced. COP, HUF, IDR, PKR, AFN, ALL, IQD, IRR, KPW, LAK, LBP, MGA, MMK, SOS, SYP and YER are formatted without their unused minor unit again (e.g. 9 505 Ft), while their fraction digits stay ISO 4217. Pass minimum_fraction_digits / maximum_fraction_digits to override.

Currency objects created without display_fraction_digits (e.g. by custom currency repositories) keep their current formatting.

v2.0.10

Compare Source

Currency fraction digits now come from ISO 4217 instead of CLDR.

CLDR 48 (shipped in v2.0.8) changed the fraction digits of COP, HUF, IDR and PKR from 2 to 0. Consumers such as Drupal Commerce use these digits to convert amounts to payment gateway minor units, so payments in those currencies were sent at 1/100 of the amount (see https://www.drupal.org/project/commerce/issues/3625166).

Fraction digit changes:

  • COP, HUF, IDR, PKR: back to 2 (as in v2.0.7).
  • AFN, ALL, IRR, KPW, LAK, LBP, MGA, MMK, SOS, SYP, YER: 0 → 2, and IQD: 0 → 3, to match ISO 4217.

The default number of decimals shown by CurrencyFormatter follows these values, so HUF is formatted with 2 decimals again. Pass maximum_fraction_digits to override.

No other data changes.

v2.0.9

Compare Source

Tagged by mistake: identical to v2.0.8. Use v2.0.10, which contains the fraction digits fix.

v2.0.8

Compare Source

Update to CLDR v48.2.

  • Fetched fresh cldr-json v48.2.0 + ISO currency list, regenerated currency/language/locale/number-format data.
  • Merged into src/Currency/CurrencyRepository.php, src/Language/LanguageRepository.php, src/Locale.php ($parents), src/NumberFormat/NumberFormatRepository.php, plus resources/currency/ and resources/language/ JSON.
  • Fixed a real bug in scripts/generate_number_format_data.php: it wasn't escaping single quotes in exported values, which broke on de-CH/de-LI's new apostrophe grouping separator (') — added addslashes().
  • Updated 2 test fixtures (fr-CH now uses ' as grouping separator per CLDR v48.2) — root cause was genuine data change, not a bad test.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@codecov

codecov Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.08%. Comparing base (ef05cc1) to head (36af74d).

Additional details and impacted files
@@            Coverage Diff            @@
##                dev    #3086   +/-   ##
=========================================
  Coverage     97.08%   97.08%           
  Complexity     2531     2531           
=========================================
  Files           392      392           
  Lines         11555    11555           
=========================================
  Hits          11218    11218           
  Misses          337      337           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate
renovate Bot force-pushed the renovate/commerceguys-intl-2.x-lockfile branch from b508867 to 36af74d Compare September 23, 2026 18:57
@renovate renovate Bot changed the title chore(deps): update dependency commerceguys/intl to v2.0.8 chore(deps): update dependency commerceguys/intl to v2.1.0 Sep 23, 2026

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants