Skip to content

Releases: jawah/niquests

Version 3.4.2

11 Jan 17:58
26e8b12
Compare
Choose a tag to compare

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 a AsyncResponse when stream is set to True in order to handle properly streams in an async context.

Version 3.4.1

07 Jan 21:24
f173bdc
Compare
Choose a tag to compare

3.4.1 (2024-01-07)

Fixed

  • CaseInsensibleDict did not properly convert HTTPHeaderDict from urllib3 thus only letting the last entry in.
  • Redirect chain lead to a non waited coroutine in AsyncSession.

Version 3.4.0

01 Jan 04:40
17383fa
Compare
Choose a tag to compare

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 or Retry instance from the legacy urllib3 instead of urllib3_future.

Fixed

  • Blocking the event loop when closing the AsyncSession using with.
  • 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

03 Dec 20:04
3dd7328
Compare
Choose a tag to compare

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 legacy unordered_collection.

Removed

  • Private module niquests._internal_utils has been removed as it no longer serves its purposes.

Version 3.3.3

26 Nov 09:34
67a285c
Compare
Choose a tag to compare

3.3.3 (2023-11-26)

Added

  • Hook on_upload that allows you to monitor/track the upload progress.
  • Model TransferProgress that is used in PreparedRequest as public property upload_progress.

Version 3.3.2

19 Nov 20:02
8f18ad7
Compare
Choose a tag to compare

3.3.2 (2023-11-19)

Fixed

  • Hooks that do not accept keyword arguments are rejected.
  • Applying max_fetch to Session.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 in http3 extra with urllib3.future.

Version 3.3.1

18 Nov 18:32
73c2c2e
Compare
Choose a tag to compare

3.3.1 (2023-11-18)

Fixed

  • Warning filter (ignore) for DependencyWarning within urllib3.future wasn't applied in time.

Version 3.3.0

18 Nov 16:20
82a5a31
Compare
Choose a tag to compare

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 to max_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

15 Nov 17:33
0058bcf
Compare
Choose a tag to compare

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

11 Nov 16:08
af7b1c4
Compare
Choose a tag to compare

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: Function check_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.