|
| 1 | +# language_tool_python Changelog |
| 2 | + |
| 3 | +## 3.0.0 (2025-11-20) |
| 4 | + |
| 5 | +### What's New: |
| 6 | +- Corrected a bug when the default locale is POSIX default (C). |
| 7 | +- Corrected a bug when closing `LanguageTool` instances (deadlocks). |
| 8 | +- Corrected a bug when comparing LT versions (e.g., '5.8' vs '5.10'). |
| 9 | +- Added new possible values in LT config (`trustXForwardForHeader`, `suggestionsEnabled` and lang keys). |
| 10 | +- Added a warning if you forget to explicitly close a `LanguageTool` instance. |
| 11 | +- Added online documentation for the package. |
| 12 | +- Added logging (and logs) in the package. |
| 13 | +- Added raising `exceptions.TimeoutError` in `download_lt.http_get`. |
| 14 | +- Added `packaging` as a dependency. |
| 15 | +- Moved exception classes to a separate `exceptions` module (no more importable from `utils`). |
| 16 | +- Edited raised exceptions in some methods/functions: |
| 17 | + - from `AssertionError` to `ValueError` in `config_file.LanguageToolConfig.__init__` |
| 18 | + - from `AssertionError` to `exceptions.PathError` in `download_lt.download_lt` |
| 19 | + - from `AssertionError` to `ValueError` in `download_lt.download_lt` |
| 20 | + - from `AssertionError` to `ValueError` in `server.LanguageTool.__init__` |
| 21 | + - from `AssertionError` to `ValueError` in `utils.kill_process_force` |
| 22 | +- Edited some camelCase attributes/methods to snake_case: |
| 23 | + - `server.LanguageTool.motherTongue` to `server.LanguageTool.mother_tongue` |
| 24 | + - `server.LanguageTool.newSpellings` to `server.LanguageTool.new_spellings` |
| 25 | + - `match.Match.ruleId` to `match.Match.rule_id` |
| 26 | + - `match.Match.offsetInContext` to `match.Match.offset_in_context` |
| 27 | + - `match.Match.errorLength` to `match.Match.error_length` |
| 28 | + - `match.Match.ruleIssueType` to `match.Match.rule_issue_type` |
| 29 | + - `match.Match.matchedText` to `match.Match.matched_text` |
| 30 | +- Edited types of some params: |
| 31 | + - `directory_to_extract_to` in `dowload_lt.unzip_file` from `str` to `Path` |
| 32 | + - `directory` in `download_lt.download_zip` from `str` to `Path` |
| 33 | + - `download_folder` in `utils.find_existing_language_tool_downloads` from `str` to `Path` |
| 34 | +- Edited return types of some methods/functions: |
| 35 | + - from `str` to `Path` in `utils.get_language_tool_download_path` |
| 36 | + - from `List[str]` to `List[Path]` in `utils.find_existing_language_tool_downloads` |
| 37 | + - from `str` to `Path` in `utils.get_language_tool_directory` |
| 38 | + - from `Tuple[str, str]` to `Tuple[Path, Path]` in `utils.get_jar_info` |
0 commit comments