Skip to content

fix(deps): update dependency requests-cache to v1.2.1#183

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/requests-cache-1.x-lockfile
Nov 16, 2024
Merged

fix(deps): update dependency requests-cache to v1.2.1#183
renovate[bot] merged 1 commit into
mainfrom
renovate/requests-cache-1.x-lockfile

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Nov 16, 2024

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 - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • 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 Nov 16, 2024
@renovate renovate Bot enabled auto-merge (squash) November 16, 2024 03:23
@renovate renovate Bot merged commit b25700c into main Nov 16, 2024
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.06%. Comparing base (f117c38) to head (161c5ae).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #183   +/-   ##
=======================================
  Coverage   15.06%   15.06%           
=======================================
  Files           5        5           
  Lines         146      146           
  Branches       49       49           
=======================================
  Hits           22       22           
  Misses        124      124           

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

@renovate renovate Bot deleted the renovate/requests-cache-1.x-lockfile branch November 16, 2024 03:26
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.

0 participants