Skip to main content

general_date_format_core 3.0.0 copy "general_date_format_core: ^3.0.0" to clipboard
general_date_format_core: ^3.0.0 copied to clipboard

Pure Dart localized formatting and parsing for Persian, Hebrew and Umm al-Qura dates.

Changelog #

3.0.0 — 2026-11-09 #

  • Require general_datetime_core ^3.0.0 for compatibility with the current chronology release, including its new CalendarId.chinese enum case.
  • Preserve Persian, Hebrew and Hijri formatting/parsing. Chinese inputs and parse selectors continue to throw UnsupportedError, including nullable APIs.
  • Add coexistence coverage for rejected Chinese operations and exact microsecond round trips through the supported calendars.

2.0.0 — 2026-10-28 #

  • Verify Hebrew locale tables, all-locale round trips, minimum Dart support, and JavaScript parsing across three historical/DST timezone fixtures.

  • Add JavaScript format/parse regressions for odd microseconds in ancient and future Hebrew/Persian dates, consuming the chronology precision correction.

  • Require general_datetime_core ^2.0.0, including the Hebrew calendar APIs and new public CalendarId case.

  • Support HebrewDateTime with CLDR 48 month and AM era names for all locales.

  • Format Adar II by year type; validate parsed leap-month names and stable numeric month slots against the input year. Preserve microseconds, digit policy, ordinal/weekday/era validation, and rolling Hebrew year windows.

  • Add locale round trips and leap-name regressions, including numeric name boundaries. Quarter patterns explicitly remain unsupported for Hebrew.

  • Preserve Persian/Hijri output in 850,228 before/after comparison records. Add five formatter coexistence regressions; the complete core suite has 75 tests and the timezone/Node selection has 64 tests per zone.

  • Remove the unused deprecated locale initialization hook. Locale data continues to load lazily; Flutter adapters reference the core directly.

  • Export locale resolution helpers through the public core library so Material adapters do not import core implementation files.

  • Validate strict/loose era labels against the resolved year's sign, preserving ambiguous labels and signed-year round trips, including year zero.

  • Resolve two-digit years across chronology bounds and negative centuries; compare wall-field window endpoints and keep repeated-year range failures within the documented FormatException/nullable parsing contracts.

  • Reject local DST normalization that changes minutes, seconds, or fractional seconds during strict/loose parsing; preserve permissive parsing and the date-only one-hour midnight exception.

  • Remove Gregorian formatting/parsing from GeneralDateFormat; applications use intl.DateFormat directly and choose their own locale initialization.

  • Bundle Persian/Hijri neutral locale metadata and remove intl and clock from the Dart core. The Flutter adapter also has no direct intl dependency.

  • Add a per-formatter native now callback for two-digit year parsing.

  • Default pre-operation dateSymbols to Persian; reject native DateTime selectors with UnsupportedError, including nullable parsing APIs.

1.0.0 — release preparation #

  • Extract the corrected pure Dart implementation from the Flutter package.
  • Preserve exact microseconds in six-digit fraction formatting/parsing, including localized digits, and reject excess nonzero precision in strict/loose parsing.
  • Generate Persian and Umm al-Qura names from checksum-locked CLDR 48 sources, preserving documented locale and shared-pattern compatibility policies.
5
likes
140
points
761
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Pure Dart localized formatting and parsing for Persian, Hebrew and Umm al-Qura dates.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

general_datetime_core

More

Packages that depend on general_date_format_core