Releases: jawah/niquests
Releases · jawah/niquests
Version 3.4.2
3.4.2 (2024-01-11)
Fixed
- Connection information kept targeting its original copy, thus always keeping the latest timings inside while expecting the historical ones.
Added
AsyncSession
now returns aAsyncResponse
whenstream
is set to True in order to handle properly streams in an async context.
Version 3.4.1
3.4.1 (2024-01-07)
Fixed
CaseInsensibleDict
did not properly convertHTTPHeaderDict
from urllib3 thus only letting the last entry in.- Redirect chain lead to a non waited coroutine in
AsyncSession
.
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.