mirror of
https://github.com/beenuar/AiSOC.git
synced 2026-11-24 08:35:46 +08:00
chore(deps): bump python-multipart from 0.0.33 to 0.0.34 in /services/api (#2027)
Bumps [python-multipart](https://github.com/Kludex/python-multipart) from 0.0.33 to 0.0.34. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/Kludex/python-multipart/releases">python-multipart's releases</a>.</em></p> <blockquote> <h2>Version 0.0.34</h2> <h2>⚡ Faster form parsing</h2> <p>This release reduces parser overhead for forms with many fields and corrects multipart boundary and header handling. Parsers created without callbacks also no longer share callback registrations.</p> <pre lang="console"><code>pip install python-multipart==0.0.34 </code></pre> <ul> <li><strong>Faster query-string parsing</strong> (<a href="https://redirect.github.com/Kludex/python-multipart/pull/372">#372</a>). The parser reuses separator positions and starts the next field directly when its data is already available.</li> <li><strong>Less overhead for multipart forms</strong> (<a href="https://redirect.github.com/Kludex/python-multipart/pull/370">#370</a>, <a href="https://redirect.github.com/Kludex/python-multipart/pull/373">#373</a>). Complete CRLF sequences are consumed without stepping through each intermediate parser state, and mark-helper functions are no longer created on each write.</li> </ul> <h2>🧩 More predictable multipart handling</h2> <ul> <li><strong>Padded boundaries no longer merge adjacent parts</strong> (<a href="https://redirect.github.com/Kludex/python-multipart/pull/363">#363</a>). Spaces and tabs after delimiters between parts are recognized as transport padding. Malformed padding now raises <code>MultipartParseError</code> instead of being returned as part data. Padded opening boundaries remain unsupported.</li> <li><strong>Non-ASCII parameter bytes are preserved</strong> (<a href="https://redirect.github.com/Kludex/python-multipart/pull/364">#364</a>). <code>parse_options_header</code> trims only spaces and tabs, rather than all Unicode whitespace. This avoids changing parameter values such as names ending in the UTF-8 bytes for <code>à</code>.</li> <li><strong>Whitespace around part header values is ignored by <code>FormParser</code></strong> (<a href="https://redirect.github.com/Kludex/python-multipart/pull/366">#366</a>). For example, <code>Content-Transfer-Encoding: base64 </code> is recognized and decoded despite the trailing space. Low-level <code>MultipartParser</code> callbacks still receive the raw header value bytes.</li> </ul> <h2>🛡️ Isolated callbacks and clearer security scope</h2> <ul> <li><strong>Callback registrations stay with their parser</strong> (<a href="https://redirect.github.com/Kludex/python-multipart/pull/362">#362</a>). Parsers constructed without <code>callbacks</code> now get separate dictionaries, so calling <code>set_callback()</code> on one no longer changes another parser's handlers.</li> <li><strong>A documented threat model</strong> (<a href="https://redirect.github.com/Kludex/python-multipart/pull/358">#358</a>, <a href="https://redirect.github.com/Kludex/python-multipart/pull/359">#359</a>, <a href="https://redirect.github.com/Kludex/python-multipart/pull/367">#367</a>). The <a href="https://github.com/Kludex/python-multipart/blob/0.0.34/THREAT_MODEL.md">threat model</a> defines trust boundaries, application responsibilities, and vulnerability scope. Bugs in deprecated <code>Content-Transfer-Encoding</code> decoding are handled as public bug reports rather than security reports.</li> </ul> <h2>💜 Thank you</h2> <p>Thanks to <a href="https://github.com/deadstrobe5"><code>@deadstrobe5</code></a> and <a href="https://github.com/g4lb"><code>@g4lb</code></a> for the parser performance proposals that informed this release.</p> <p><strong>Full changelog:</strong> <a href="https://github.com/Kludex/python-multipart/compare/0.0.33...0.0.34">0.0.33...0.0.34</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Kludex/python-multipart/blob/main/CHANGELOG.md">python-multipart's changelog</a>.</em></p> <blockquote> <h2>0.0.34 (2026-11-16)</h2> <ul> <li>Reduce multipart parser overhead by removing mark-helper closures and consuming buffered line endings <a href="https://redirect.github.com/Kludex/python-multipart/pull/370">#370</a>, <a href="https://redirect.github.com/Kludex/python-multipart/pull/373">#373</a>.</li> <li>Speed up query-string parsing by reusing separators and starting fields directly <a href="https://redirect.github.com/Kludex/python-multipart/pull/372">#372</a>.</li> <li>Keep default callback dictionaries separate between parser instances <a href="https://redirect.github.com/Kludex/python-multipart/pull/362">#362</a>.</li> <li>Recognize transport padding after between-part boundaries and reject malformed padding <a href="https://redirect.github.com/Kludex/python-multipart/pull/363">#363</a>.</li> <li>Only trim spaces and tabs in <code>parse_options_header</code>, preserving other whitespace in media types and parameters <a href="https://redirect.github.com/Kludex/python-multipart/pull/364">#364</a>.</li> <li>Strip spaces and tabs around part header values in <code>FormParser</code> <a href="https://redirect.github.com/Kludex/python-multipart/pull/366">#366</a>.</li> <li>Add a threat model and clarify vulnerability scope <a href="https://redirect.github.com/Kludex/python-multipart/pull/358">#358</a>, <a href="https://redirect.github.com/Kludex/python-multipart/pull/359">#359</a>.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Kludex/python-multipart/commit/c511ff0a76fa4dd4282b00730b92ac9708a81314"><code>c511ff0</code></a> Exclude <code>Content-Transfer-Encoding</code> decoding from the threat model (<a href="https://redirect.github.com/Kludex/python-multipart/issues/367">#367</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/783f37ab8de525bcbe6e5d5c3187dd6507a11612"><code>783f37a</code></a> Bump version to 0.0.34 (<a href="https://redirect.github.com/Kludex/python-multipart/issues/374">#374</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/8ee1f50ba8ea857925be4584c1e5fc069f1c1668"><code>8ee1f50</code></a> Skip buffered multipart line endings (<a href="https://redirect.github.com/Kludex/python-multipart/issues/373">#373</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/55ba6f4241d07639d77b326173f4a7e9f041ffcd"><code>55ba6f4</code></a> Reuse query-string separators and start fields directly (<a href="https://redirect.github.com/Kludex/python-multipart/issues/372">#372</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/89a8013e32fbc28c68129bcdc8cecc34617efe0f"><code>89a8013</code></a> Inline multipart mark operations (<a href="https://redirect.github.com/Kludex/python-multipart/issues/370">#370</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/9bd038eb9ff714b99615c4b8b7f4d39a1e80276b"><code>9bd038e</code></a> Strip whitespace around part header values in <code>FormParser</code> (<a href="https://redirect.github.com/Kludex/python-multipart/issues/366">#366</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/6cebfd8439763215fa5d07283ff4ce716e31b491"><code>6cebfd8</code></a> Only trim spaces and tabs around header parameters (<a href="https://redirect.github.com/Kludex/python-multipart/issues/364">#364</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/70297b7cb80e5e645f26ecf7405170324cab44b2"><code>70297b7</code></a> Bump the python-packages group with 9 updates (<a href="https://redirect.github.com/Kludex/python-multipart/issues/361">#361</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/17334ce86f735935be953d0c0ee40930dd7e26ea"><code>17334ce</code></a> Handle transport padding after multipart boundaries (<a href="https://redirect.github.com/Kludex/python-multipart/issues/363">#363</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/66e4fa49edd931ad1669674078844b1cbf2c0456"><code>66e4fa4</code></a> Create a new default callbacks dict for each parser (<a href="https://redirect.github.com/Kludex/python-multipart/issues/362">#362</a>)</li> <li>Additional commits viewable in <a href="https://github.com/Kludex/python-multipart/compare/0.0.33...0.0.34">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
Generated
+4
-4
@@ -3317,14 +3317,14 @@ cli = ["click (>=5.0)"]
|
||||
|
||||
[[package]]
|
||||
name = "python-multipart"
|
||||
version = "0.0.33"
|
||||
version = "0.0.34"
|
||||
description = "A streaming multipart parser for Python"
|
||||
optional = false
|
||||
python-versions = ">=3.11"
|
||||
groups = ["main"]
|
||||
files = [
|
||||
{file = "python_multipart-0.0.33-py3-none-any.whl", hash = "sha256:8f16c07b36add9da6b2ee87d3efcaf0a45a6de9c3d0a5dd94e9ccf7675a7bc45"},
|
||||
{file = "python_multipart-0.0.33.tar.gz", hash = "sha256:b8112424a6abd162ec08d390565dd113ad699f2fe6fef3c987b8bbcbfe9e390d"},
|
||||
{file = "python_multipart-0.0.34-py3-none-any.whl", hash = "sha256:ebacd224bd686eee2f9aa1066a657affe07435a185834e05e5235e2e59173e91"},
|
||||
{file = "python_multipart-0.0.34.tar.gz", hash = "sha256:b998ae90ca6e1e363261ce2e0e230281b8af53867b757970abd69ee9edcd843a"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -4617,4 +4617,4 @@ test = ["pytest"]
|
||||
[metadata]
|
||||
lock-version = "2.1"
|
||||
python-versions = "^3.11"
|
||||
content-hash = "a249f078fc61a483ef42bdc77be36c07b7f212795bbcdf0c16ca50d5bbce4f87"
|
||||
content-hash = "3386c76596e3a9a033617634e4e648e44f998dfdd14681faff1ef244b20e42cb"
|
||||
|
||||
@@ -54,7 +54,7 @@ PyJWT = ">=2.8,<3"
|
||||
# that reads or writes a vault token — see services/connectors/pyproject.toml.
|
||||
cryptography = ">=46,<51"
|
||||
bcrypt = ">=4.1.2,<6.0.0" # Used directly by app.core.security (passlib is no longer compatible with bcrypt >= 4)
|
||||
python-multipart = ">=0.0.9,<0.0.34"
|
||||
python-multipart = ">=0.0.9,<0.0.35"
|
||||
tenacity = ">=8.3,<10.0"
|
||||
structlog = ">=24.1,<27.0"
|
||||
prometheus-client = ">=0.20,<0.27"
|
||||
|
||||
Reference in New Issue
Block a user