diff --git a/ChangeLog.rst b/ChangeLog.rst index b4d3c487..e5a9fc5e 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -18,6 +18,22 @@ fmt::print("{:8}\n", floaty_mc_floatface{0.42}); // prints " 0.42" } +* Added support for fill, align and width to the time point formatter + (`#3237 `_, + `#3260 `_). + For example (`godbolt `__): + + .. code:: c++ + + #include + + int main() { + // prints " 2023" + fmt::print("{:>8%Y}\n", std::chrono::system_clock::now()); + } + + Thanks `@ShawnZhong (Shawn Zhong) `_. + * Implemented formatting of subseconds (`#3117 `_, `#3115 `_). @@ -45,6 +61,36 @@ `#3230 `_). Thanks `@ned14 (Niall Douglas) `_. +* Added support for ``%Ez`` and ``%Oz`` to chrono formatters. + (`#3220 `_, + `#3222 `_). + Thanks `@phprus (Vladislav Shchapov) `_. + +* Improved validation of format specifiers for `std::chrono::duration` + (`#3219 `_, + `#3232 `_). + Thanks `@ShawnZhong (Shawn Zhong) `_. + +* Added formatters for standard container adapters: ``std::priority_queue``, + ``std::queue`` and ``std::stack`` + (`#3215 `_, + `#3279 `_). + For example (`godbolt `__): + + .. code:: c++ + + #include + #include + #include + + int main() { + auto s = std::stack>(); + for (auto b: {true, false, true}) s.push(b); + fmt::print("{}\n", s); // prints [true, false, true] + } + + Thanks `@ShawnZhong (Shawn Zhong) `_. + * Fixed formatting of time points before the epoch (`#3117 `_, `#3261 `_). @@ -67,8 +113,24 @@ `#3214 `_). Thanks `@rbrich (Radek Brich) `_. +* Fixed formatting when both alignment and ``0`` are given + (`#3236 `_, + `#3248 `_). + Thanks `@ShawnZhong (Shawn Zhong) `_. + +* Improved Unicode support in the experimental file API on Windows + (`#3234 `_, + `#3293 `_). + Thanks `@Fros1er (Froster) `_. + * Removed the deprecated ``FMT_DEPRECATED_OSTREAM``. +* Fixed a UB when using a null ``std::string_view`` with ``fmt::to_string`` + or format string compilation + (`#3241 `_, + `#3244 `_). + Thanks `@phprus (Vladislav Shchapov) `_. + * Improved documentation (`#3108 `_, `#3169 `_). @@ -79,6 +141,12 @@ * Fixed a regression in handling empty format specifiers after a colon (`{:}`) (`#3086 `_). +* Worked around a broken implementation of ``std::is_constant_evaluated`` in + some versions of libstdc++ + (`#3247 `_, + `#3281 `_). + Thanks `@phprus (Vladislav Shchapov) `_. + * Fixed formatting of volatile variables (`#3068 `_). @@ -90,9 +158,17 @@ `#3149 `_, `#3154 `_, `#3163 `_, - `#3178 `_). + `#3178 `_, + `#3204 `_, + `#3208 `_, + `#3213 `_, + `#3224 `_, + `#3226 `_, + `#3228 `_, + `#3229 `_). Thanks `@phprus (Vladislav Shchapov) `_, - `@sergiud (Sergiu Deitsch) `_. + `@sergiud (Sergiu Deitsch) `_, + `@czudziakm (Maksymilian Czudziak) `_. 9.1.0 - 2022-08-27 ------------------