|
15 | 15 | # <br><b>Changelog</b><br> |
16 | 16 |
|
17 | 17 |
|
| 18 | +<span id="v1-9-6" /> |
| 19 | + |
| 20 | +## 13.04.2026 `v1.9.6` |
| 21 | + |
| 22 | +* The compiled version of the library now includes the type stub files (`.pyi`), so type checkers can properly check types. |
| 23 | +* Made all type hints in the whole library way more strict and accurate. |
| 24 | +* Removed leftover unnecessary runtime type-checks in several methods throughout the whole library. |
| 25 | + |
| 26 | +**BREAKING CHANGES:** |
| 27 | +* All methods that should use positional-only and/or keyword-only params, now actually enforce that by using the `/` and `*` syntax in the method definitions. |
| 28 | +* Renamed the `Spinner` class from the `console` module to `Throbber`, since that name is closer to what it's actually used for. |
| 29 | +* Changed the name of the TypeAlias `DataStructure` to `DataObj` because that name is shorter and more general. |
| 30 | +* Changed both names `DataStructureTypes` and `IndexIterableTypes` to `DataObjTT` and `IndexIterableTT` respectively (`TT` *stands for type-tuple*). |
| 31 | +* Made the return value of `String.single_char_repeats()` always be *`int`* and not <code>*int* | *bool*</code>. |
| 32 | + |
| 33 | + |
18 | 34 | <span id="v1-9-5" /> |
19 | 35 |
|
20 | 36 | ## 25.01.2026 `v1.9.5` |
21 | 37 |
|
22 | | -* Add new class property `Console.encoding`, which returns the encoding used by the console (*e.g.* `utf-8`*,* `cp1252`*, …*). |
23 | | -* Add multiple new class properties to the `System` class: |
| 38 | +* Added a new class property `Console.encoding`, which returns the encoding used by the console (*e.g.* `utf-8`*,* `cp1252`*, …*). |
| 39 | +* Added multiple new class properties to the `System` class: |
24 | 40 | - `is_linux` Whether the current OS is Linux or not. |
25 | 41 | - `is_mac` Whether the current OS is macOS or not. |
26 | 42 | - `is_unix` Whether the current OS is a Unix-like OS (Linux, macOS, BSD, …) or not. |
|
482 | 498 | ## 21.12.2024 `v1.5.9` |
483 | 499 |
|
484 | 500 | * Fixed bugs in method `to_ansi()` in module `xx_format_codes`:<br> |
485 | | - 1. The method always returned an empty string, because the color validation was broken, and it would identify all colors as invalid.<br> |
486 | | - Now the validation `Color.is_valid_rgba()` and `Color.is_valid_hexa()` are fixed and now, if a color is identified as invalid, the method returns the original string instead of an empty string. |
487 | | - 2. Previously the method `to_ansi()` couldn't handle formats inside `[]` because everything inside the brackets was recognized as an invalid format.<br> |
488 | | - Now you are able to use formats inside `[]` (*e.g.* `"[[red](Red text [b](inside) square brackets!)]"`). |
| 501 | + 1. The method always returned an empty string, because the color validation was broken, and it would identify all colors as invalid.<br> |
| 502 | + Now the validation `Color.is_valid_rgba()` and `Color.is_valid_hexa()` are fixed and now, if a color is identified as invalid, the method returns the original string instead of an empty string. |
| 503 | + 2. Previously the method `to_ansi()` couldn't handle formats inside `[]` because everything inside the brackets was recognized as an invalid format.<br> |
| 504 | + Now you are able to use formats inside `[]` (*e.g.* `"[[red](Red text [b](inside) square brackets!)]"`). |
489 | 505 | * Introduced a new test for the `xx_format_codes` module. |
490 | 506 | * Fixed a small bug in the help client-command:<br> |
491 | 507 | Added back the default text color. |
|
849 | 865 | ## 15.10.2024 `v1.0.1` `v1.0.2` `v1.0.3` `v1.0.4` `v1.0.5` |
850 | 866 |
|
851 | 867 | * Fixed `f-string` issues for Python 3.10: |
852 | | - 1. Not making use of same quotes inside f-strings any more. |
853 | | - 2. No backslash escaping in f-strings. |
| 868 | + 1. Not making use of same quotes inside f-strings any more. |
| 869 | + 2. No backslash escaping in f-strings. |
854 | 870 |
|
855 | 871 |
|
856 | 872 | <span id="release" /><span id="v1-0-0" /> |
|
0 commit comments