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

0.7.0 #212

Merged
merged 86 commits into from
Mar 18, 2024
Merged

0.7.0 #212

merged 86 commits into from
Mar 18, 2024

Conversation

Lxstr
Copy link
Contributor

@Lxstr Lxstr commented Feb 25, 2024

Lots of changes and fixes. The main two being a refactor for maintainability and adding msgspec.

Added

-   Use msgpack for serialization, along with ``SESSION_SERIALIZATION_FORMAT`` to choose between ``'json'`` and ``'msgpack'``.
-   All sessions that are accessed or modified while using 0.7.0 will convert to msgspec. Once using 1.0.0, any sessions that are still in pickle will be cleared upon access.
-   Add time-to-live expiration for MongoDB.
-   Add retry for SQL based storage.
-   Add ``flask session_cleanup`` command and alternatively, ``SESSION_CLEANUP_N_REQUESTS`` for SQLAlchemy or future non-TTL backends.
-   Type hints.
-   Add logo and additional documentation.

Deprecated
  • Deprecated pickle. It is still available to read existing sessions, but will be removed in 1.0.0. All sessions will transfer to msgspec upon first interaction with 0.1.0.
  • Remove null session in favour of specific exception messages.
  • Deprecate SESSION_USE_SIGNER.
  • Deprecate :class:flask_session.filesystem.FileSystemSessionInterface in favor of the broader :class:flask_session.cachelib.CacheLibSessionInterface.

Fixed

-   Prevent sid reuse on storage miss.
-   Abstraction to improve consistency between backends.
-   Enforce ``PERMANENT_SESSION_LIFETIME`` as expiration consistently for all backends.
-   Use Vary cookie header as per Flask.
-   Specifically include backend session interfaces in public API and document usage.


@Lxstr Lxstr merged commit 4dc5d29 into main Mar 18, 2024
13 checks passed
@Lxstr Lxstr deleted the development branch March 18, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants