You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
0.5.0: remove session and OAuth state, and lower the dependency floors #421
Follow-up to #420, which deprecates both subsystems in 0.4.0.
Delete fastapi_cachex/session/, fastapi_cachex/state/, their tests, examples, docs pages (English and zh-TW), API reference pages and nav entries, and the jwt extra.
@cache: drop the X-Session-Token and session-middleware special cases. Authorization, Cookie and a non-empty request.session from any session middleware still bypass the cache.
Drop itsdangerous and the direct starlette>=1.0.0 requirement. Find the lowest fastapi / starlette the core really needs with tox -e lowest, and record the new floors.
Also for 0.5.0 (from #428): BaseCacheBackend._delete_reporting counts a None result from a third-party delete() as removed, with a FutureWarning. In 0.5.0, drop that compat path and treat None as False (bool(result)), and update the test test_fallbacks_count_a_none_delete_as_removed_and_warn and the backend-delete section of the migration guide.
Activity
allen0099 commentedon Oct 2, 2026
Also for 0.5.0 (from #428):
BaseCacheBackend._delete_reportingcounts aNoneresult from a third-partydelete()as removed, with aFutureWarning. In 0.5.0, drop that compat path and treatNoneasFalse(bool(result)), and update the testtest_fallbacks_count_a_none_delete_as_removed_and_warnand the backend-delete section of the migration guide.feat!: remove session and OAuth state (#421)
fix: keep hashing X-Session-Token in vary keys (#421)
fix: keep hashing X-Session-Token in vary keys (#421)