feat(redis): add native JSON session storage for 4.1.0
Build & Publish Package / publish (push) Successful in 49s
Build & Publish Package / publish (push) Successful in 49s
- Add opt-in SESSION_REDIS_JSON storage for asyncio Redis backends. - Check JSON command support at startup and reject JSON mode on Trio. - Read legacy strings and migrate sessions on their next save. - Validate JSON objects before transactional replacement and expiry. - Preserve tagged serialization for datetime, tuple, and other types. - Cover command contracts, error handling, and session round-trips. - Document server requirements, permissions, and migration limits. - Normalize indentation and whitespace across code, tests, and examples. - Bump the package and lockfile to 4.1.0 and update the changelog. - Refresh the locked pycparser dependency to 3.12.
This commit is contained in:
+7
-1
@@ -1,3 +1,9 @@
|
||||
### 4.1.0
|
||||
|
||||
- Add opt-in native JSON session storage for Redis/Valkey via `SESSION_REDIS_JSON`.
|
||||
- Read existing string sessions and migrate them to native JSON on their next save.
|
||||
- Validate JSON command support at startup and apply session expiry transactionally.
|
||||
|
||||
### 4.0.0
|
||||
|
||||
- **Breaking:** require Python 3.15 or newer (`requires-python = ">=3.15"`, classifier, `.python-version`).
|
||||
@@ -41,7 +47,7 @@
|
||||
### 1.0.0 2020-01-15
|
||||
|
||||
- Added support for arbitrary usage of caching backends.
|
||||
- Exposed `get`, `set`, `delete` on the session interface for direct usage.
|
||||
- Exposed `get`, `set`, `delete` on the session interface for direct usage.
|
||||
- Renamed `SESSION_HIJACK_REVERSE_PROXY` to `SESSION_REVERSE_PROXY`.
|
||||
- Renamed `SESSION_HIJACK_PROTECTION` to `SESSION_PROTECTION`.
|
||||
- Removed fallback when `X-Forwarded-For` is not present whilst USING `SESSION_REVERSE_PROXY`, emit error instead.
|
||||
|
||||
Reference in New Issue
Block a user