v0.14.0
More breaking changes in this one, reverting the new split class approach to the original approach in 0.12.0 and earlier.
Added
- Adds comma formatting option to the
pluralmethod inPolyNumclass, with a newcommasparameter (enabled by default). - Adds support for date objects in
get_pretty_time, allowing date-only formatting, and introduces theget_date_onlyconvenience function. - Adds Peacock color customizations with a purple theme for better visual identification of the workspace.
Fixed
- Fixes help text processing in
PolyArgsto preserve uppercase in acronyms, preventing "API" from becoming "aPI" in help messages.
Changed
- BREAKING: Deprecates
PolyText,PolyColors,PolyMoji,PolyNum,PolySplit, andPolyTruncateclasses and returns to the previous structure with theTextandTimeclasses, plus the addition of theMarkupclass so thatTextcan be a normal class instead of aStrEnum. Backward compatibility is maintained for now. I realized that the previous attempt at separation caused more headaches than it avoided and is not worth applying that level of granular separation. I'm sorry, mostly to myself, who now has to undo all this across all my other scripts. - BREAKING: Renames parameter
with_counttoshow_numin plural methods for better clarity acrossPolyNumandPolyTimeclasses. - Reverts the more complicated pluralization logic in
PolyNumto fix issues like "photoes." Turns out the simpler approach is best. - Adds usage guidance for
PolyNum.formatmethod, recommending the use of the simplerPolyNum.pluralmethod if pluralization is all you need. - Deprecates the
html_escapemethod, recommending the use ofhtml.escapefrom the standard library instead. - Updates development dependencies including
mypy(1.17.0 to 1.17.1),ruff(0.12.5 to 0.12.7),distlib,virtualenv, andcertifi.
Full Changelog: v0.13.0...v0.14.0