bangla_utilities 2.0.2
bangla_utilities: ^2.0.2 copied to clipboard
A utility library for Bangla date-time and number conversion.
2.0.2 #
Bug fixes:
- Fixed README.md file.
2.0.1 #
Bug fixes:
- Fixed
BanglaDate.monthIntandBanglaDate.monthto return the correct 1-based Bangla month number (বৈশাখ=1 … পৌষ=9 … চৈত্র=12) instead of a 0-based internal array index. - Added
BanglaDateFormatter— format aBanglaDatewith pattern tokens (DD,MM,YYYY,YY,D,M,d,S). - Fixed token replacement order in
BanglaDateFormatter(longest tokens first) to prevent partial collision (e.g.Dconsuming part ofDD). - Fixed
BanglaDateFormatterzero-padding to use rune-safe counting so single-digit Bangla numerals are padded with০correctly. - Exported
BanglaDateFormatterfrom the mainbangla_utilitieslibrary.
2.0.0 #
Breaking changes:
- Removed deprecated
BanglaUtilityclass — useBanglaDateandBanglaNumberdirectly. - Module-level constants
banglaWeekdays,totalDaysInBanglaMonths, andgregEquivalentLeapYearIndexInBanglaMonthsare now private (were accidentally public). - Minimum Dart SDK bumped to
^3.4.0.
New features:
BanglaDate.today()— convenience constructor for today's date.BanglaDate.fromDateTime(DateTime)— construct directly from aDateTime.BanglaDate.dayInt,monthInt,yearInt— raw integer accessors alongside the existing Bangla numeral strings.BanglaDate.dateis now a computed getter (no stored state).BanglaNumber.fromString(String)— converts digits in an arbitrary string (decimals, timestamps, mixed text).BanglaNumber.englishValue— stores the originalintwhen constructed viafromEnglish.
Performance:
BanglaNumberdigit conversion switched from O(n)indexOfto O(1) code-unit arithmetic.DateTime.now()is resolved once per factory call instead of once per helper.
Quality:
- Switched dev lint rule set from
flutter_lintstolints(pure-Dart package). - Added GitHub Actions CI workflow (
analyze,format,test). - Comprehensive test suite with grouped tests and edge cases.
1.5.0 #
- Updated SDK
- Deprecated old API
1.0.0 #
- Migrated to sound null safety
0.2.1 #
- Added API documentation
0.2.0 #
- Added support for Web, Linux, MacOS and Windows
- Improved API
0.1.1 #
- Added API documentations
0.0.1 #
initial release:
- Added English to Bangla number converter
- Added leap year checker
- Added Bangla weekday, day, month, monthName, year and season