Skip to content

chore(deps): update dependency requests-cache to v1.3.1#206

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/requests-cache-1.x-lockfile
Open

chore(deps): update dependency requests-cache to v1.3.1#206
renovate[bot] wants to merge 1 commit intomainfrom
renovate/requests-cache-1.x-lockfile

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Feb 28, 2026

This PR contains the following updates:

Package Change Age Confidence
requests-cache 1.2.11.3.1 age confidence

Release Notes

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

v1.3.1

Compare Source

  • Add support for multiple response variations based on Vary
  • Fix overwriting headers after revalidation in read_only mode
  • Add tests for python 3.15 (alpha)

v1.3.0

Compare Source

⚠️ Deprecations & removals:

  • See changes to BSON and JSON serializers below:

💾 Serialization:

  • Significantly reduce the memory usage of JSON serialization
  • ⚠️ serializer='json' will no longer automatically use ultrajson if installed; it must be specified explicitly
  • ⚠️ Drop support for standalone bson codec; please install pymongo to use BSON serialization
  • Remove [bson] package extra to prevent accidentally installing it in the same environment as pymongo
  • When using BSON serialization with the filesystem backend, add a .bson file extension by default
  • Add support for orjson as a JSON serializer
  • Add the following serializer objects to specify a JSON library: json_serializer, ujson_serializer, and orjson_serializer
  • Remove [json] package extra due to multiple supported JSON libraries
  • Allow decode_content to be set to different values across multiple sessions in use at the same time

💾 Backends:

  • SQLite:
    • Use exclusive transaction locks to prevent write contention; replaces retry behavior
  • *Filesystem:
    • Add {py:class}requests_cache.backends.filesystem.LRUFileDict class to optionally limit the size of the filesystem cache. Enabled with max_cache_bytes argument.
  • Redis:
    • For maintenance/inspection methods that iterate over the cache, use SCAN and HSCAN instead of KEYS, HKEYS, and HGETALL
  • DynamoDB:
    • Add optional parameter create_table of DynamoDBCache to control if the class attempts to create the table in DynamoDB or not.
  • GridFS:
    • Add a connection parameter to allow passing an existing MongoClient object

🕗 Expiration & headers:

  • Add support for Vary: Cookie

⚙️ Session settings:

  • Add autoclose option to close backend connections when the session is closed
  • Add read_only option to read existing cached responses, but not write any new responses to the cache

ℹ️ Cache convenience methods:

  • Add verify parameter to BaseCache.contains() and delete() to handle requests made with SSL verification disabled

🧩 Compatibility and packaging:

  • Add support for Python 3.13 and 3.14
  • Add compatibility with url-normalize 2.0
  • Add compatibility with FIPS-compliant systems
    • Note: Due to using a different hashing algorithm for cache keys, caches cannot be shared between FIPS- and non-FIPS-compliant systems
  • Packaging and project config are now managed by uv
    • This has no impact for users; installation from PyPI still works the same
    • For developers, see Contributing Guide for details

🪲 Bugfixes:

  • Allow content_root_key setting to target a sub-tree in normalize_json_body, so only listed fields under that key are ignored in cache keys
  • Fix sqlite3.InterfaceError: bad parameter or other API misuse with concurrent SQLite usage in python 3.12+
  • Add support for normalizing file-like request bodies
  • Ignore and log timezone errors when attempting to reuse responses cached in requests-cache <= 1.1
  • Fix error handling with stale_if_error during revalidation requests
  • By default, do not automatically close backend connections when using install_cache()
  • Fix request headers sent when expire_after is set to DO_NOT_CACHE
  • Show a warning when initializing a cache with both cache_name and a backend instance (database names, file paths, etc. cannot be reliably updated after initialization)
  • When updating response headers after revalidating a cached response, don't set both Content-Length and Transfer-Encoding
  • Treat invalid HTTP dates (eg. 'Expires: 0' and 'Expires: -1') as 'already expired' as per RFC 2616, section 14.21
1.2.1 (2024-06-18)

🪲 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

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 Feb 28, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 15.06%. Comparing base (138a694) to head (a556cc1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #206   +/-   ##
=======================================
  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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate renovate bot force-pushed the renovate/requests-cache-1.x-lockfile branch from 17a90c1 to a556cc1 Compare March 4, 2026 18:36
@renovate renovate bot changed the title chore(deps): update dependency requests-cache to v1.3.0 chore(deps): update dependency requests-cache to v1.3.1 Mar 4, 2026
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