From 75402c5084f02644d8782e0a2a5ea896143e3089 Mon Sep 17 00:00:00 2001 From: Jordan Cook Date: Thu, 20 Oct 2022 16:01:38 -0500 Subject: Fix backwards-compatibility with deprecated remove_expired_responses --- HISTORY.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'HISTORY.md') diff --git a/HISTORY.md b/HISTORY.md index 790cdf8..9311986 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -124,15 +124,16 @@ replacements are listed below: Some relatively minor breaking changes have been made that are not expected to affect most users. If you encounter a problem not listed here after updating to 1.0, please create a bug report! -* The following undocumented behaviors have been removed: +* The `BaseCache.urls` property has been replaced with a method that returns a list of URLs +* The following **undocumented behaviors** have been removed: * The arguments `match_headers` and `ignored_parameters` must be passed to `CachedSession`. Previously, these could also be passed to a `BaseCache` instance. * The `CachedSession` `backend` argument must be either an instance or string alias. Previously it would also accept a backend class. * After initialization, cache settings can only be accesed and modified via `CachedSession.settings`. Previously, some settings could be modified by setting them on either `CachedSession` or `BaseCache`. In some cases this could silently fail or otherwise have undefined behavior. -* The following is relevant for users who have made **custom backends** that extend built-in storage classes: +* The following is relevant for **custom backends** that extend built-in storage classes: + * All serializer-specific `BaseStorage` subclasses have been removed, and merged into their respective parent classes. This includes `SQLitePickleDict`, `MongoPickleDict`, and `GridFSPickleDict`. * All `BaseStorage` subclasses now have a `serializer` attribute, which will be unused if set to `None`. - * All serializer-specific `BaseStorage` subclasses have been removed, and merged into their respective parent classes. This includes `SQLitePickleDict`, `MongoPickleDict`, and `GridFSPickleDict`. * Internal utility module changes: * The `cache_control` module (added in `0.7`) has been split up into multiple modules in a new `policy` subpackage @@ -144,6 +145,14 @@ Backport fixes from 1.0: * Add support for header values as bytes for compatibility with OAuth1 features of `requests-oauthlib` * Update to cattrs 22.2 +Add the following for forwards-compatibility with 1.0: +* `requests_cache.policy` subpackage +* `BaseCache.contains()` +* `BaseCache.delete()` +* `BaseCache.filter()` +* `CachedSession.settings` +* `DeprecationWarning`s to give an earlier notice for upcoming changes in 1.0 + ## 0.9.6 (2022-08-24) Backport fixes from 1.0: * Remove potentially problematic row count from `BaseCache.__str__()` -- cgit v1.2.1