Skip to content

Bump icu_provider from 1.5.0 to 2.0.0 #4256

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 19, 2025

Bumps icu_provider from 1.5.0 to 2.0.0.

Release notes

Sourced from icu_provider's releases.

ICU4X 2.0.0

The ICU4X Technical Committee is happy to announce ICU4X 2.0, a major update to our modular, portable, and secure i18n library.

Important changes since ICU4X 1.5 include:

  1. Preference Objects: Instead of directly passing Locale objects to formatters, most constructors now accept "preference bags." These can be derived from locales but also constructed directly with type-safe enums, and they are more efficient.

  2. Date, Time, and Time Zone Rewrite: The icu::datetime component underwent a complete rewrite with APIs that improve performance and make it easier to do the right thing. The new icu::time component replaces icu::timezone and handles i18n-focused date, time, and time zone representations.

  3. FFI Overhaul: C++ namespaces, improvements to function versioning, and idiomatic improvements in all languages, such as getters/setters, iterators, and constructors.

  4. Borrowed variants: More types have separate owned and borrowed variants, which improves performance. This also enables more components to be compiled without an allocator, making some crates fully #[no_std].

  5. Compiled data updated: All components ship with the latest versions of CLDR (47.0) and Unicode (16.0).

Thanks to everyone who tried the 2.0 Beta releases. We have used your feedback to improve the 2.0 release.

ICU4X 2.0 Beta 2

This release includes a lot of the remaining changes slated for 2.0. The major difference from 2.0-beta1 is that it fills in FFI for all new APIs except for those in datetime.

This release also brings ICU4X to CLDR 47 Beta 1, ICU 77 RC, and TZDB 2025a.

This release is intended to be a stepping stone to the final 2.0 release: we do not expect major changes after this, except potentially to datetime FFI. Clients are encouraged to update to this to experience a smoother 2.0 upgrade.

This release includes some breaking changes over 2.0 beta 1.

  • The datetime crate has continued to evolve, with some API renames, though the shape of the crate is mostly the same.
  • icu_timezone has been renamed to icu_time, and has been restructured.
  • Users of --no-default-features may find themselves needing to explicitly opt in to an alloc feature for some crates, as ICU4X is gaining the ability to be no-alloc.
  • Many std features have been removed from crates that no longer need them.

Please refer to the changelog for a full set of differences.

Please send feedback by creating an issue or discussion on GitHub.

ICU4X 2.0 Beta 1

This release includes a rewritten datetime component, type-safe preferences in all constructors, CLDR 46 and Unicode 16 data, new experimental duration and unit formatting components, an all-new WebAssembly demo, and improvements to many other components including locale tailoring in segmenter, algorithmic plural selection, and IXDTF parsing for zoned datetimes.

This release includes breaking changes. The most common you will encounter include:

  1. All constructors take a preference bag by value instead of a &DataLocale.
  2. Many functions had subtle renames, such as try_from_bytes becoming try_from_utf8.
  3. The datetime component was rewritten, and call sites will need to be migrated.

Refer to the latest documentation for more information. Please also ask questions on GitHub.

This is a beta release, meaning that the team expects this to be mostly compatible with the upcoming 2.0 final release, but there is still room to make changes. Please send feedback by creating an issue or discussion on GitHub.

Changelog

Sourced from icu_provider's changelog.

Changelog

icu4x 2.0.1

Several crates have had patch releases in the 2.0 stream:

  • icu_calendar
    • Fix chinese day-of-year (unicode-org#6567)
  • icu_properties, icu_properties_data
    • Fix a visibility bug in compiled data (unicode-org#6580)
  • icu_provider_baked
    • Fix an issue where a single-locale data generation would skip fallback (unicode-org#6582)
  • icu_capi
    • Rename string-methods on DecomposingNormalizer to match those on ComposingNormalizer (unicode-org#6594)
    • Add DataProvider constructors in JS and Dart (unicode-org#6596)

icu4x 2.0

ICU4X 2.0 is ICU4X's new major release. Many things have changed, we recommend going through the full changelog for 2.0, 2.0-beta1, and 2.0-beta2 to understand the changes fully.

This changelog entry only covers changes from ICU4X 2.0.0-beta2 to ICU4X 2.0.

Some major changes worth highlighting:

  • Most locale-dependent APIs now take type-safe "preferences" objects instead of locales.

    • Preference bags are often built from a locale, but they can also be built manually or merged from other sources.
    • Preference bags are taken by value, so most call sites will need to change from &locale.into() to locale.into() or (&locale).into()
  • The datetime formatting APIs have been completely redesigned for better data usage and performance. We recommend looking at the new API and using it from the ground up, rather than replacing API calls one at a time.

  • Components

    • General
      • 1.82 MSRV (unicode-org#6413)
      • Fix reexport documentation to be clearer when things are reexports (unicode-org##6372)
      • Put MaybeEncodeAsVarULE impls behind the "export" feature (unicode-org#6221)
    • icu_calendar
      • Rename Islamic calendars to Hijri (unicode-org#6214)
      • Collapse IslamicCivil into IslamicTabular (unicode-org#6384)
      • Rename IslamicObservational to IslamicSimulated (unicode-org#6387)
      • Rename wrap_calendar_in_* APIs to as_borrowed, into_ref_counted, into_atomic_ref_counted (unicode-org#6392)
      • Make am era have index 0 and remove bd era from Coptic calendar (unicode-org#6458)
      • Update era codes to match CLDR/Temporal (unicode-org#6405, unicode-org#6525, unicode-org#6246)
      • Change cyclic calendar constructors to use ISO years (unicode-org##6431)
      • Fix Meiji start date (unicode-org##6432)
      • Mark Calendar UnstableSealed (unicode-org##6483)
      • Simplify EraYear (unicode-org##6443)
      • Allow different calendars to return different year-info types (unicode-org##6439)
      • Remove Umm-al-Qura data struct (unicode-org##6404)
      • Remove prev_year info (unicode-org#6382)
      • Use regions, not languages, for calendar algorithm defaults (unicode-org#6325)
      • Hide week-of-month, non-iso week-of-year (unicode-org#6319)
      • Expose Date to/from RataDie (#6369)

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [icu_provider](https://github.com/unicode-org/icu4x) from 1.5.0 to 2.0.0.
- [Release notes](https://github.com/unicode-org/icu4x/releases)
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md)
- [Commits](https://github.com/unicode-org/icu4x/compare/[email protected]@2.0.0)

---
updated-dependencies:
- dependency-name: icu_provider
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants