Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: alpha
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 5, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
requests-cache (changelog) 1.0.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

v1.1.1

Compare Source

  • Backport fix from 1.2: Add compatibility with cattrs 23.2

v1.1.0

Compare Source

⚙️ Session settings:

  • Add support for regular expressions with urls_expire_after

💾 SQLite Backend:

  • Add busy_timeout argument (see SQLite docs for details)
  • In WAL journaling mode (wal=True), default to 'normal' synchronous mode instead of 'full'
  • Fix potential OperationalError: database is locked in multithreaded SQLite usage during bulk delete operations
  • Fix deadlock in multithreaded SQLite usage if a thread encounters an error during COMMIT

🪲 Bugfixes:

  • Fix loading cached JSON content with decode_content=True when the root element is a list
  • Fix BaseCache.recreate_keys() to normalize response bodies with b'None'
  • Fix BaseCache.contains() for multipart POST requests
  • Fix CachedResponse.history not being fully deserialized on python<=3.8
  • Fix request matching with Vary and redirects
  • Skip normalizing CachedResponse.url so it always matches the original request URL
  • Avoid unnecessary cache writes for revalidation requests if headers and expiration are unchanged
  • Add compatibility with urllib3 2.0
1.0.1 (2023-03-24)
  • Ignore Cache-Control: must-revalidate and no-cache response headers with cache_control=False

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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.

@codecov-commenter
Copy link

codecov-commenter commented Jul 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (b272c85) to head (df75778).

Additional details and impacted files
@@            Coverage Diff            @@
##             alpha       #41   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines          237       237           
  Branches        56        56           
=========================================
  Hits           237       237           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

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/requests-cache-1.x-lockfile branch from 3629094 to 47a8c8b Compare November 23, 2023 09:41
@renovate renovate bot changed the title fix(deps): update dependency requests-cache to v1.1.0 fix(deps): update dependency requests-cache to v1.1.1 Nov 23, 2023
@renovate renovate bot force-pushed the renovate/requests-cache-1.x-lockfile branch from 47a8c8b to 52bf62a Compare February 22, 2024 00:48
@renovate renovate bot changed the title fix(deps): update dependency requests-cache to v1.1.1 fix(deps): update dependency requests-cache to v1.2.0 Feb 22, 2024
@renovate renovate bot force-pushed the renovate/requests-cache-1.x-lockfile branch from 52bf62a to df75778 Compare June 22, 2024 19:56
@renovate renovate bot changed the title fix(deps): update dependency requests-cache to v1.2.0 fix(deps): update dependency requests-cache to v1.2.1 Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant