Releases: jawah/niquests
Releases · jawah/niquests
Version 3.4.0
3.4.0 (2024-01-01)
Added
- Support for specifying a custom DNS resolver in
Session
. - Support for passing the source address in
Session
. - Support for disabling either IPv4 or IPv6 within a
Session
.
Changed
- PySocks is no longer used for SOCKS proxies. Replaced by python-socks instead.
- urllib3.future minimal version raised to 2.4+ to leverage newly added features.
- Improve compatibility when end-user inadvertently pass a
Timeout
orRetry
instance from the legacyurllib3
instead ofurllib3_future
.
Fixed
- Blocking the event loop when closing the
AsyncSession
usingwith
. - Rare exception on older PyPy interpreters due to Generic having unsupported type variable in
extensions._sync_to_async
module.
Misc
- Project extras aligned with urllib3.future.
- Using nox instead of tox.
- Switch to ruff instead of black and isort.
Version 3.3.4
3.3.4 (2023-12-03)
Fixed
- Overall, the static typing experience has been improved.
- Code HTTP 425 is now registered as
too_early
in addition to the legacyunordered_collection
.
Removed
- Private module
niquests._internal_utils
has been removed as it no longer serves its purposes.
Version 3.3.3
3.3.3 (2023-11-26)
Added
- Hook
on_upload
that allows you to monitor/track the upload progress. - Model
TransferProgress
that is used inPreparedRequest
as public propertyupload_progress
.
Version 3.3.2
3.3.2 (2023-11-19)
Fixed
- Hooks that do not accept keyword arguments are rejected.
- Applying
max_fetch
toSession.gather(...)
did not prevent the adapter from draining all pending responses. - Closed session having unconsumed multiplexed requests leaked an exception from urllib3.future.
Changed
- Aligned
qh3
version constraint inhttp3
extra with urllib3.future.
Version 3.3.1
3.3.1 (2023-11-18)
Fixed
- Warning filter (ignore) for
DependencyWarning
within urllib3.future wasn't applied in time.
Version 3.3.0
3.3.0 (2023-11-18)
Added
- Maximum of (lazy) response(s) to be resolved when calling
Session.gather(..., max_fetch = ...)
. Specifying a valid int tomax_fetch
will stop after resolving the right amount of responses.
Changed
- urllib3.future minimal version raised to 2.3.900 to leverage the fallback top-level package
urllib3_future
.
Fixed
- Runtime error when accidentally overriding
urllib3.future
by an external dependency. - Undesirable warning yielded by
cryptography
because of a Microsoft root certificate. "Parsed a negative serial number, which is disallowed by RFC 5280." - Consider newly registered custom CA when using
wassima.register_ca(...)
.
Removed
- Dependency check at runtime for
urllib3
. There are no more checks and warnings at runtime for that subject. Ever.
Version 3.2.4
3.2.4 (2023-11-15)
Fixed
- Compatibility with some third-party mock tools.
Changed
- Relax IllegalHeader constraint when the value is an integer, or float.
Version 3.2.3
3.2.3 (2023-11-11)
Fixed
- Overall performance improvement.
- A racing condition in
HTTPAdapter
with multiplexed enabled while in threads.
Removed
- Checks for header validity as it is duplicated (upstream does it already).
Warning: Functioncheck_header_validity
has been removed. It was not public in the first place.
Changed
- Cached proxies from environment to avoid unnecessary scans on each request.
Version 3.2.2
3.2.2 (2023-11-08)
Changed
- Enforced a maximum in-flight request when using multiplexed connections. Default to 124 per connection
so, actually 1240 per Session (default is 10 connections). This can be overridden in ourHTTPAdapter
for advanced users.
This limit was changed due to a constraint inqh3
, for now, we have no way to set this dynamically. We choose the safest
lowest value in h2, and qh3. This will be improved later.
Fixed
- Performance issue in
get_environ_proxies()
.
Version 3.2.1
3.2.1 (2023-11-06)
Fixed
- Performance issues in HTTP/2, and HTTP/3, with or without multiplexed connections.
Changed
- Enforced a maximum in-flight request when using multiplexed connections. Default to 200 per connection
so, actually 2000 per Session (default is 10 connections). This can be overridden in ourHTTPAdapter
for advanced users.