Update dependency niquests to v3.21.0 - #43
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==3.20.1→==3.21.0Release Notes
jawah/niquests (niquests)
v3.21.0Compare Source
Added
First-class support for the WebAssembly System Interface (WASI) Component Model. (#364)
Niquests can now run inside sandboxed WebAssembly components using the same
Requests-compatible API available on native Python. This enables HTTP clients for
edge functions, plug-ins, agent runtimes, and other capability-constrained
applications without requiring application-specific adapters.
Niquests automatically discovers the interfaces imported by the component and
selects the most capable available transport. Synchronous applications can use
native WASI Preview 2 sockets, while asynchronous applications can use Preview 3
sockets. The socket transports retain urllib3.future's native behavior, including
connection pooling, HTTP/2 multiplexing, streaming, trailers, WebSocket, SSE,
redirects, retries, cookies, and timeout handling.
Components that intentionally omit raw socket authority can instead use the
host-managed
wasi:httpinterfaces: HTTP 0.2 for synchronous applications andHTTP 0.3 for asynchronous applications. This provides a narrower capability surface
in which the host controls DNS, TCP, TLS, certificate trust, protocol negotiation,
and connection reuse. Niquests also supports hybrid worlds, using sockets where
possible and WIT HTTP where host-managed TLS is required.
No network or filesystem authority is ambient under WASI. A component's WIT world
declares which interfaces it can access, while the runtime independently decides
which capabilities to grant. Native hostname resolution therefore requires an
explicit DNS grant, and host filesystem access remains unavailable unless a
directory is deliberately preopened.
HTTPS over native WASI sockets requires the
rtlsextra and urllib3.future2.24.900 or newer. When using WIT HTTP, TLS is provided according to the host's
security policy instead.
With this release, Niquests supports native Python, browser-side WebAssembly through
Pyodide, and server-side WebAssembly through WASI while preserving the same familiar
request API. See the WASI quickstart and advanced capability guide for deployment
examples and transport-specific constraints.
Explicit support for Python 3.15
Custom
json_encoderinSessionandAsyncSessionfor request bodies. (#437)Top-level request APIs accept custom JSON encoders and TLS configuration.
Fixed
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.