summaryrefslogtreecommitdiff
path: root/HISTORY.md
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook.git@proton.me>2022-12-13 18:37:04 -0600
committerJordan Cook <jordan.cook.git@proton.me>2022-12-30 14:46:02 -0600
commit94a4449cdc05e1a1460a50f8d696f8032223558b (patch)
tree5442039d47d91723068776c1395996dc25a7037c /HISTORY.md
parente8ea4ca58845afeda358c31c15dcdb28b2b62896 (diff)
downloadrequests-cache-94a4449cdc05e1a1460a50f8d696f8032223558b.tar.gz
Make CachedResponse.cache_key available from all cache access methods
Diffstat (limited to 'HISTORY.md')
-rw-r--r--HISTORY.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/HISTORY.md b/HISTORY.md
index 7737f56..202a398 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -81,7 +81,7 @@
(e.g., to preserve cache data after an update that changes request matching behavior)
* Update `BaseCache.urls` into a method that takes optional filter params, and returns sorted unique URLs
-ℹ️ **Type hints:**
+ℹ️ **Response attributes and type hints:**
* Add `OriginalResponse` type, which adds type hints to `requests.Response` objects for extra attributes added by requests-cache:
* `cache_key`
* `created_at`
@@ -91,6 +91,8 @@
* `revalidated`
* `OriginalResponse.cache_key` and `expires` will be populated for any new response that was written to the cache
* Add request wrapper methods with return type hints for all HTTP methods (`CachedSession.get()`, `head()`, etc.)
+* Set `CachedResponse.cache_key` attribute for responses read from lower-level storage methods
+ (`items()`, `values()`, etc.)
🧩 **Compatibility fixes:**
* **PyInstaller:** Fix potential `AttributeError` due to undetected imports when requests-cache is bundled in a PyInstaller package