Debian Codegraph @

CHANGES.rst

raw
1 0.8.0 - 2024-03-26
2 ------------------
3
4 Added
5 ~~~~~~~
6 - Add DynamoDB session interface (`#214 <https://github.com/pallets-eco/flask-session/pull/214>`_).
7 - Add ability to install client libraries for backends using optional dependencies (extras) (`#228 <https://github.com/pallets-eco/flask-session/pull/228>`_).
8
9 Fixed
10 ~~~~~
11 - Include prematurely removed ``cachelib`` dependency. Will be removed in 1.0.0 to be an optional dependency (`#223 <https://github.com/pallets-eco/flask-session/issues/223>`_).
12
13
14 0.7.0 - 2024-03-18
15 ------------------
16
17 Changed
18 ~~~~~~~~
19 - Access session interfaces via subfolder, for example ``flask_session.redis.RedisSessionInterface`` (`2bc7df <https://github.com/pallets-eco/flask-session/commit/2bc7df1be7b8929e55cb25f13845caf0503630d8>`_).
20 - Deprecate ``pickle`` in favor of ``msgspec``, which is configured with ``SESSION_SERIALIZATION_FORMAT`` to choose between ``'json'`` and ``'msgpack'``. All sessions will convert to msgspec upon first interaction with 0.7.0. Pickle is still available to read existing sessions, but will be removed in 1.0.0. (`c7f8ce <https://github.com/pallets-eco/flask-session/commit/c7f8ced0e1532dea87850d34b3328a3fcb769988>`_, `c7f8ce <https://github.com/pallets-eco/flask-session/commit/c7f8ced0e1532dea87850d34b3328a3fcb769988>`_)
21 - Deprecate ``SESSION_USE_SIGNER`` (`a5dba7 <https://github.com/pallets-eco/flask-session/commit/a5dba7022f806c8fb4412d0428b69dd4a077e4a7>`_).
22 - Deprecate :class:`flask_session.filesystem.FileSystemSessionInterface` in favor of the broader :class:`flask_session.cachelib.CacheLibSessionInterface` (`2bc7df <https://github.com/pallets-eco/flask-session/commit/2bc7df1be7b8929e55cb25f13845caf0503630d8>`_).
23
24 Added
25 ~~~~~~~
26 - Add time-to-live expiration for MongoDB (`9acee3 <https://github.com/pallets-eco/flask-session/commit/9acee3c5fb7072476f3feea923529d19d5e855c3>`_).
27 - Add retry for SQL based storage (`#211 <https://github.com/pallets-eco/flask-session/pull/211>`_).
28 - Add ``flask session_cleanup`` command and alternatively, ``SESSION_CLEANUP_N_REQUESTS`` for SQLAlchemy or future non-TTL backends (`#211 <https://github.com/pallets-eco/flask-session/pull/211>`_).
29 - Add type hints (`7d7d58 <https://github.com/pallets-eco/flask-session/commit/7d7d58ce371553da39095a421445cf639a62bd5f>`_).
30 - Add logo and additional documentation.
31 - Add vary cookie header when session modified or accessed as per flask's built-in session (`7ab698 <https://github.com/pallets-eco/flask-session/commit/7ab6980c8ba15912df13dd1e78242803e8104dd6>`_).
32 - Add regenerate method to session interface to mitigate fixation (`#27 <https://github.com/pallets-eco/flask-session/pull/27>`_, `#39 <https://github.com/pallets-eco/flask-session/issues/39>`_)(`80df63 <https://github.com/pallets-eco/flask-session/commit/80df635ffd466fa7798f6031be5469b4d5dae069>`_).
33
34 Removed
35 ~~~~~~~~~~
36 - Remove null session in favour of relevant exception messages (`#107 <https://github.com/pallets-eco/flask-session/issues/107>`_, `#182 <https://github.com/pallets-eco/flask-session/issues/182>`_)(`d7ed1c <https://github.com/pallets-eco/flask-session/commit/d7ed1c6e7eb3904888b72f0d6c006db1b9b60795>`_).
37 - Drop support for Python 3.7 which is end-of-life and precludes use of msgspec (`bd7e5b <https://github.com/pallets-eco/flask-session/commit/bd7e5b0bbfc10cdfa9c83b859593c69cc4381571>`_).
38
39 Fixed
40 ~~~~~
41 - Prevent session identifier reuse on storage miss (`#76 <https://github.com/pallets-eco/flask-session/pull/76>`_).
42 - Abstraction to improve consistency between backends.
43 - Enforce ``PERMANENT_SESSION_LIFETIME`` as expiration consistently for all backends (`#81 <https://github.com/pallets-eco/flask-session/issues/81>`_)(`86895b <https://github.com/pallets-eco/flask-session/commit/86895b523203ca67c9f87416bdbf028852dcb357>`_).
44 - Specifically include backend session interfaces in public API and document usage (`#210 <https://github.com/pallets-eco/flask-session/issues/210>`_).
45 - Fix non-permanent sessions not updating expiry (`#221 <https://github.com/pallets-eco/flask-session/issues/221>`_).
46
47
48 0.6.0 - 2024-01-16
49 ------------------
50
51 Changed
52 ~~~~~~~~
53
54 - Use :meth:`~ServerSideSession.should_set_cookie` for preventing each request from saving the session again.
55 - Do not store a permanent session that is otherwise empty.
56 - Use `secrets` module to generate session identifiers, with 256 bits of entropy (was previously 122).
57 - Explicitly name support for ``python-memcached``, ``pylibmc`` and ``pymemcache`` for ``cachelib`` backend.
58
59 Added
60 ~~~~~~~
61
62 - Introduce ``SESSION_KEY_LENGTH`` to control the length of the session key in bytes, default is 32.
63 - Support SQLAlchemy ``SESSION_SQLALCHEMY_SEQUENCE``, ``SESSION_SQLALCHEMY_SCHEMA`` and ``SESSION_SQLALCHEMY_BINDKEY``
64
65 Removed
66 ~~~~~~~~~~
67
68 - Drop support for Redis < 2.6.12.
69
70 Fixed
71 ~~~~~
72
73 - Fix pymongo 4.0 compatibility.
74 - Fix expiry is None bug in SQLAlchemy.
75 - Fix bug when existing SQLAlchemy db instance.
76 - Fix empty sessions being saved.
77 - Support Flask 3.0 and Werkzeug 3.0
78
79
80 0.5.0 - 2023-05-11
81 -------------------
82
83 - Drop support for Python < 3.7.
84 - Switch to ``pyproject.toml`` and Flit for packaging.
85 - Move to Pallets Community Ecosystem for community-driven maintenance.
86 - Replace use of ``session_cookie_name`` for Flask 2.3 compatibility.
87
88
89 0.4.1
90 -------------
91
92 - Temporarily pin Flask < 2.3.
93
94
95 0.4.0
96 -------------
97
98 - Added support for ``SESSION_COOKIE_SAMESITE``.
99
100
101 0.3.2
102 -------------
103
104 - Changed ``werkzeug.contrib.cache`` to ``cachelib``.
105
106
107 0.3.1
108 -------------
109
110 - ``SqlAlchemySessionInterface`` is using ``VARCHAR(255)`` to store session id now.
111 - ``SqlAlchemySessionInterface`` won't run `db.create_all` anymore.
112
113
114 0.3
115 -----------
116
117 - ``SqlAlchemySessionInterface`` is using ``LargeBinary`` type to store data now.
118 - Fixed ``MongoDBSessionInterface`` ``delete`` method not found.
119 - Fixed ``TypeError`` when getting ``store_id`` using a signer.
120
121
122 0.2.3
123 -------------
124
125 - Fixed signing failure in Python 3.
126 - Fixed ``MongoDBSessionInterface`` failure in Python 3.
127 - Fixed ``SqlAlchemySessionInterface`` failure in Python 3.
128 - Fixed ``StrictRedis`` support.
129
130
131 0.2.2
132 -------------
133
134 - Added support for non-permanent session.
135
136
137 0.2.1
138 -------------
139
140 - Fixed signing failure.
141
142
143 0.2
144 -----------
145
146 - Added ``SqlAlchemySessionInterface``.
147 - Added support for cookie session id signing.
148 - Various bugfixes.
149
150
151 0.1.1
152 -------------
153
154 - Fixed MongoDB backend ``InvalidDocument`` error.
155
156
157 0.1
158 -----------
159
160 - First public preview release.