Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 28, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
requests-cache (changelog) ==1.1.1 -> ==1.2.1 age adoption passing confidence

Release Notes

requests-cache/requests-cache (requests-cache)

v1.2.1

Compare Source

🪲 Bugfixes:

  • Fix normalize_headers not accepting header values in bytes
  • Fix inconsistency due to rounding in CachedResponse.expires_unix property
  • Fix form boundary used for cached multipart requests to fully comply with RFC 2046
  • Fix loading cached JSON content with decode_content=True when the root element is an empty list or object
  • Fix usage example with responses library to be compatible with requests 2.32

v1.2.0

Compare Source

⚠️ Deprecations & removals:

  • Drop support for python 3.7
  • Remove methods deprecated in 1.0 from CachedSession and BaseCache

🕗 Expiration & headers:

  • Add support for X-HTTP-Method-Override and other headers that can override request method

⚙️ Session methods:

  • Add CachedSession.wrap() classmethod to add caching to an existing requests.Session object

💾 SQLite Backend:

  • Add vacuum parameter to SQLiteCache.delete() to optionally skip vacuuming after deletion (enabled by default to free up disk space)
  • Optimize SQLiteCache.delete() when deleting a single key

🧩 Compatibility:

  • Add support for RFC 7159 JSON body with decode_content=True (root element with any type)
  • Use timezone-aware UTC datetimes for all internal expiration values
  • Add support for python 3.12
    • Note: There is a known bug with multiprocess/multithreaded usage of the SQLite backend on python 3.12.
  • Add support for cattrs 23.2

🪲 Bugfixes:

  • Fix IncompleteRead error that could sometimes occur with streaming requests due to mismatch with Content-Length header
  • Handle a corner case with streaming requests, conditional requests, and redirects
  • When redacting ignored parameters from a cached response, keep the rest of the original URL and headers without normalizing
  • Add CachedHTTPResponse._request_url property for compatibility with urllib3
  • Fix form boundary used for cached multipart requests to comply with RFC 2046
  • If an explicit CA bundle path is passed via verify param, cache the response under the same key as verify=True
  • Handle JSON Content-Type charsets and MIME type variations (such as application/vnd.api+json) during request normalization and serialization
1.1.1 (2023-11-18)
  • Backport fix from 1.2: Add compatibility with cattrs 23.2

Configuration

📅 Schedule: Branch creation - "on the 1st day of the month" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Feb 28, 2025
@codecov
Copy link

codecov bot commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.31%. Comparing base (2365cf6) to head (570eacd).
Report is 1 commits behind head on v5.

Additional details and impacted files
@@           Coverage Diff           @@
##               v5     #865   +/-   ##
=======================================
  Coverage   82.31%   82.31%           
=======================================
  Files          44       44           
  Lines        2850     2850           
=======================================
  Hits         2346     2346           
  Misses        504      504           
Flag Coverage Δ
downloader 43.21% <ø> (ø)
e2e 77.05% <ø> (ø)
unit 64.82% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot force-pushed the renovate/v5-requests-cache-1.x branch 5 times, most recently from f26a01c to ff4dfc2 Compare March 1, 2025 08:41
@renovate renovate bot force-pushed the renovate/v5-requests-cache-1.x branch from ff4dfc2 to 570eacd Compare March 1, 2025 13:00
@renovate renovate bot merged commit 4bf9f0f into v5 Mar 1, 2025
20 checks passed
@renovate renovate bot deleted the renovate/v5-requests-cache-1.x branch March 1, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants