Skip to content

Releases: jawah/niquests

Version 3.5.5

25 Mar 05:56
Compare
Choose a tag to compare

3.5.5 (2024-03-25)

Added

  • Support for Happy Eyeballs. This feature is disabled by default, you must pass happy_eyeballs=True within your session
    constructor or http adapter in order to leverage this.

Fixed

  • Missed close implementation in AsyncSession causing the underlying poolmanager to remain open.
  • Additional OCSP requests (following a redirect) did not use specified custom DNS resolver.

Changed

  • urllib3.future lower bound constraint has been raised to version 2.7.900 for the newly added happy eyeballs feature.

Version 3.5.4

17 Mar 11:05
256f887
Compare
Choose a tag to compare

3.5.4 (2024-03-17)

Added

  • Support to verify the peer certificate fingerprint using verify=... by passing a string using the following format:
    verify="sha256_748c76348778cb4a536e7ec12bc9aa559c12770bd1419c7ffe516006e1dea0ec". Doing so disable the certificate
    usual verification and only checks for its fingerprint match.

Fixed

  • Multiplexed request in async did not support awaitable in hooks.
  • Setting verify=... and cert=... then change it for the same host did not apply to the underlying (existing) connection pool.

Misc

  • Overall performance improvements in both async and sync requests.
  • Update pre-commit dependencies (ruff, pyupgrade, and mypy).
  • Fixed SessionRedirect in tests that produced an incomplete Response instance that wasn't suitable for tests.

Version 3.5.3

07 Mar 04:01
a84e41c
Compare
Choose a tag to compare

3.5.3 (2024-03-07)

Fixed

  • A rare error that occurs on PyPy, especially on Windows, complaining about a missing release call.

Misc

  • Allow latest dependencies version for httpbin, Flask and werkzeug in tests.
  • Remove wheel from test dependencies.

Version 3.5.2

05 Mar 03:25
a33ac11
Compare
Choose a tag to compare

3.5.2 (2024-03-05)

Fixed

  • ImportError in an attempt to retrieve ConnectionInfo in niquests.utils.

Changed

  • General performance improvements.

Version 3.5.0

29 Feb 05:02
9fb6f1e
Compare
Choose a tag to compare

3.5.0 (2024-02-29)

Changed

  • Replaced the thread pool executor for the true asyncio implementation. The asynchronous part is rewritten.
  • urllib3.future lower bound constraint has been raised to version 2.6.900 for the newly added asynchronous interfaces.

Added

  • Support for awaitable hooks in AsyncSession.
  • Extendable AsyncBaseAdapter.
  • Support for orjson if installed in environment to dramatically increase performance in JSON deserialization.
  • Extra speedups to increase overall performances by including optional dependencies such as zstandard, brotli and orjson.

Fixed

  • A rare error when leveraging multiplexing when a proxy is used.
  • Bypass proxies when looking to validate certificate revocation status in Python < 3.10 with OCSP.

Version 3.4.7

21 Feb 07:18
5534559
Compare
Choose a tag to compare

3.4.7 (2024-02-21)

Fixed

  • Unintentional performance regression with multiple concurrent multiplexed connection within a single Session.

Version 3.4.6

21 Feb 06:06
077b542
Compare
Choose a tag to compare

3.4.6 (2024-02-21)

Fixed

  • Unmatched filter for deprecation warning yielded by Cryptography due to some legacy CA available in Windows having a negative serial number.
  • Setting boundary in Content-Type header with no value associated (no equal sign) can cause a rare error (multipart).
  • Rare racing condition while emitting too many request across a multiplexed connections.
  • Spawning too many threads while using AsyncSession in specific contexts.

Version 3.4.5

02 Feb 05:41
cdf7324
Compare
Choose a tag to compare

3.4.5 (2024-02-02)

Fixed

  • Thread-safety issue when leveraging a single multiplexed connection across multiple threads.
  • Apparently consumed content when allow_redirect is set to True when accessing a lazy response that follow redirects.

Changed

  • urllib3.future lower bound constraint has been raised to version 2.5.900 in order to leverage the advanced multiplexing scheduler.
    This upgrade come with a noticeable performance bump with complex multiplexed requests.

Added

  • Session constructor now accepts both pool_connections and pool_maxsize parameters to scale your pools of connections at will.

Version 3.4.4

19 Jan 06:02
4f19090
Compare
Choose a tag to compare

3.4.4 (2024-01-19)

Fixed

  • Issuing a request with Session(multiplexed=True) that weren't eligible (e.g. HTTP/1.1) but was redirected to an
    eligible server (HTTP/2+) caused a rare error.
  • An anonymous netrc entry (e.g. username only) could be wrongfully used when it should be discarded. (PR #61)

Added

  • Awaitable close method within AsyncSession.

Version 3.4.3

16 Jan 05:37
9a4a06c
Compare
Choose a tag to compare

3.4.3 (2024-01-16)

Fixed

  • Accessing a lazy response (multiplexed enabled) that have multiple redirects did not work appropriately.

Changed

  • Response iter_content and iter_line read chunks as they arrive by default. The default chunk size is now -1.
    -1 mean to instruct that the chunks can be of variable sizes, depending on how packets arrives. It improves
    overall performances in content streaming.
  • urllib3.future lower bound constraint has been raised to version 2.4.904 in order to accept -1 as a chunk size.