You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+24-2Lines changed: 24 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
<div style="
4
4
font-size: 2em;
5
5
font-weight: bold;
6
-
background: #88889845;
6
+
background: #86878A45;
7
7
border-radius: 0.2em;
8
8
text-align: center;
9
9
justify-content: center;
@@ -15,6 +15,28 @@
15
15
# <br><b>Changelog</b><br>
16
16
17
17
18
+
<spanid="v1-9-2" />
19
+
20
+
## 16.12.2025 `v1.9.2`
21
+
* Added a new class `LazyRegex` to the `regex` module, which is used to define regex patterns that are only compiled when they are used for the first time.
22
+
* Removed unnecessary character escaping in the precompiled regex patterns in the `console` module.
23
+
* Removed all the runtime type-checks that can also be checked using static type-checking tools, since you're supposed to use type checkers in modern python anyway, and to improve performance.
24
+
* Renamed the internal class method `FormatCodes.__config_console()` to `FormatCodes._config_console()` to make it callable, but still indicate that it's internal.
25
+
* Fixed a small bug where `Console.log_box_…()` would crash, when calling it without providing any `*values` (*content for inside the box*).
26
+
27
+
**BREAKING CHANGES:**
28
+
* The arguments when calling `Console.get_args()` are no longer specified in a single dictionary, but now each argument is passed as a separate keyword argument.<br>
29
+
You can still use a dictionary just fine by simply unpacking it with `**`, like this:
30
+
```python
31
+
Console.get_args(**{"arg": {"-a", "--arg"}})
32
+
```
33
+
* Replaced the internal `_COMPILED` regex pattern dictionaries with `LazyRegex` objects so it won't compile all regex patterns on library import, but only when they are used for the first time, which improves the library's import time.
34
+
* Renamed the internal `_COMPILED` regex pattern dictionaries to `_PATTERNS` for better clarity.
35
+
* Removed the import of the `ProgressBar` class from the `__init__.py` file, since it's not an important main class that should be imported directly.
36
+
* Renamed the constant `CLR` to `CLI_COLORS` and the constant `HELP` to `CLI_HELP` in the `cli.help` module.
37
+
* Changed the default value of the `strip_spaces` param in `Regex.brackets()` from `True` to `False`, since this is more intuitive behavior.
38
+
39
+
18
40
<spanid="v1-9-1" />
19
41
20
42
## 26.11.2025 `v1.9.1`
@@ -810,7 +832,7 @@ from XulbuX import rgb, hsl, hexa
0 commit comments