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

Add forwards-compatibility with 1.0 changes in 0.9 #704

Closed
JWCook opened this issue Oct 8, 2022 · 0 comments · Fixed by #710
Closed

Add forwards-compatibility with 1.0 changes in 0.9 #704

JWCook opened this issue Oct 8, 2022 · 0 comments · Fixed by #710
Labels
docs Documentation and examples logistics CI builds, project config, refactoring, and other logistical details
Milestone

Comments

@JWCook
Copy link
Member

JWCook commented Oct 8, 2022

For the upcoming changes in 1.0, I would like to release a patch for 0.9 that adds forwards-compatibility with these changes. This will mainly include API changes, not new features.

The intent is to reduce the likelihood of problems with a version constraint like requests-cache <= 0.9.7 for anyone who is using any of the features that are changing in 1.0:

  • New policy subpackage (previously in cache_control module)
    • Show a DeprecationWarning if importing from requests_cache.cache_control instead of from requests_cache
  • BaseCache.delete(), contains(), and filter()
    • Show a DeprecationWarning if calling BaseCache methods that are deprecated in 1.0 (but not removed yet)
  • Changing caching settings after initialization via session.settings
    • Show a DeprecationWarning if directly accessing CachedSession attributes
@JWCook JWCook added the logistics CI builds, project config, refactoring, and other logistical details label Oct 8, 2022
@JWCook JWCook added this to the v1.0 milestone Oct 8, 2022
@JWCook JWCook added the docs Documentation and examples label Oct 26, 2022
@JWCook JWCook closed this as completed Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation and examples logistics CI builds, project config, refactoring, and other logistical details
Projects
None yet
1 participant