Skip to content

Commit 9b244b0

Browse files
authored
bump to 3.4.0 (jxmorris12#170)
1 parent eff9bbb commit 9b244b0

5 files changed

Lines changed: 28 additions & 4 deletions

File tree

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# language_tool_python Changelog
22

3+
## 3.4.0 (2026-05-15)
4+
- Corrected a bug in `language_tool_python.server.LanguageTool.check` where the LT `/check` endpoint was queried with GET instead of POST.
5+
- Corrected a bug in `language_tool_python.config_file.LanguageToolConfig` where config keys and values could contain line breaks or end with an odd number of backslashes.
6+
- Corrected the default LT download version (from `latest` snapshot to release `6.8`).
7+
- Added SHA-256 verification for downloaded LT zip files.
8+
- Added a bundled `language_tool_python/integrity.toml` manifest containing SHA-256 checksums for LT release/archive downloads.
9+
- Added new env variables for LT download verification:
10+
- `LTP_DOWNLOAD_SHA256_<VERSION>`
11+
- `LTP_DOWNLOAD_SHA256`
12+
- `LTP_BYPASS_VERIFIED_DOWNLOADS`
13+
- Added a maximum download size limit for LT zip files, configurable with `LTP_MAX_DOWNLOAD_BYTES`.
14+
- Added `language_tool_python.safe_zip.SafeZipExtractor` and `language_tool_python.safe_zip.SafeZipLimits` to extract ZIP files safely.
15+
- Edited LT ZIP extraction to reject unsafe paths, symlinks, unsupported member types, duplicate paths, file/directory conflicts, oversized archives/members, suspicious compression ratios and overwrites of existing paths.
16+
- Added new env variables for safe ZIP extraction limits:
17+
- `LTP_SAFE_ZIP_MAX_ARCHIVE_BYTES`
18+
- `LTP_SAFE_ZIP_MAX_EXTRACTED_BYTES`
19+
- `LTP_SAFE_ZIP_MAX_MEMBERS`
20+
- `LTP_SAFE_ZIP_MAX_MEMBER_EXTRACTED_BYTES`
21+
- `LTP_SAFE_ZIP_MAX_MEMBER_COMPRESSION_RATIO`
22+
- `LTP_SAFE_ZIP_MAX_TOTAL_COMPRESSION_RATIO`
23+
- Added the possibility to download LT releases 6.7 and newer from the new release page.
24+
- Added `LTP_DOWNLOAD_HOST_NEW_RELEASES` to override the new LT release download host.
25+
- Added `language_tool_python.utils.get_env_int` and `language_tool_python.utils.get_env_float`.
26+
327
## 3.3.1 (2026-05-10)
428
- Edited the LanguageTool snapshot current version (from 6.8-SNAPSHOT to 6.9-SNAPSHOT) to allow users to retrieve automatically the latest snapshot version of LT.
529

β€Žcoverage-badge.svgβ€Ž

Lines changed: 1 addition & 1 deletion
Loading

β€Ždocs/source/conf.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
project = "language_tool_python"
1010
copyright = "2025, jxmorris12"
1111
author = "jxmorris12"
12-
release = "3.3.1" # Keep in sync with pyproject.toml
12+
release = "3.4.0" # Keep in sync with pyproject.toml
1313

1414
# -- General configuration ---------------------------------------------------
1515
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

β€Žpyproject.tomlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "language_tool_python"
3-
version = "3.3.1" # Keep in sync with docs/source/conf.py
3+
version = "3.4.0" # Keep in sync with docs/source/conf.py
44
requires-python = ">=3.9"
55
description = "Checks grammar using LanguageTool."
66
readme = { file = "README.md", content-type = "text/markdown" }

β€Žuv.lockβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)