Releases: bbangert/beaker
Releases · bbangert/beaker
Version 1.13.0
What's Changed
- Use unittest.mock instead of separate mock by @jonathanspw in #227
- Update test_memcached.py by @jonathanspw in #228
- Add support of redis clusters by @Millefeuille42 in #236
- docs: Fix validation messages for validate_key and encrypt_key by @paulmueller in #234
- Redis cluster lock by @amol- in #238
New Contributors
- @jonathanspw made their first contribution in #227
- @Millefeuille42 made their first contribution in #236
- @paulmueller made their first contribution in #234
Full Changelog: 1.12.1...1.13.0
Version 1.12.1
What's Changed
- Fix ext:database backend failing to initialize.
- docs: Fix a few typos by @timgates42 in #223
- Add some code documentation in the crypto module by @libnoon in #204
- Ignore the .eggs directory by @libnoon in #203
New Contributors
Full Changelog: 1.12.0...1.12.1
Version 1.12.0
Version 1.11.0
- Fixed cookie path option not being properly set (
self._path
was removed, onlyself.path
exists) - Documented
SameSite
option - Fixed cookie expiration being localised when it shouldn't.
Version 1.10.1
- Fix issue with Redis namespace manager TTL
- Fix for SameSite cookie option not being set in some cases
- Fix for memcached tests on Python3
Version 1.10.0
Release 1.10.0 (2018-06-04)
- Redis namespace manager now supports providing a TTL for session entries that had a
timeout
provided.
This will remove the need to manually clear expired sessions from the redis storage. nsscrypto
backend is now properly identified as providing AES support.- When a crypto backend doesn't support AES it will no longer crash if the
encrypt_key
isNone
. - Session cookies will now provide support for
SameSite
through thesamesite
option.
By default this will beLax
, but can be set toStrict
orNone
to disable it.
Version 1.9.1
Release 1.9.1 ( 2018-04-09 )
- When decorating a function with @cache_region decorator the function generated to update the cached value
will be named like the decorated function. So that during debugging it's easy to know which function is involved. - Removed usage of
async
as a variable in code, this fixes a compatibility problem with Python 3.7 where it's a keyword. - Fixed a race condition in
FileNamespaceManager
. ext.database
backend will now properly close connections.- Do not leave bhind corrupted files if
FileNamespaceManager
is interrupted while writing a new file.
Replacing content of a file or writing a new one is now always an atomic operation. DBMNamespaceManager
andFileSynchronizer
will now deal with directories disappearing while they try to write to them.- The Redis and MongoDB backends are not exposed in documentation.
Version 1.9.0
Release 1.9.0 (2017-06-19)
- Beaker now provides builtin
ext:mongodb
andext:redis
namespace managers.
Both come with a Synchronizer implemented on the storage backend instead of relying on file one. - Fixed an issue where cookie options like
Secure
,Domain
and so on where lost. - Improved support for cache entries expiration. NamespaceManagers that support it will expire their key automatically.
- Pycryptodome can be used instead of pycrypto.
- An issue with
Cookie
module import on case insensitive file systems should have been resolved. - Cryptography module is now as a crypto function provider instead of pycrypto
Version 1.8.1
Release 1.8.1 (2016-10-24)
- Sessions have a new option save_accessed_time which defaults to true for
backwards compatibility. Set to false to tell beaker not to update
_accessed_time if the session hasn't been changed, for non-cookie sessions
stores. This lets you avoid needless datastore writes. _accessed_time will
always be updated when the session is intentionally saved. - data_serializer parameter in Session accepts a custom object with
dumps
andloads
methods. - Fixed a TypeError in exception reporting when failing to load a NamespaceManager
- Allow to change Cookie Expiration from a value back to None, previously it had no effect.
- Allow SessionMiddleware to setup a custom Session class through the
session_class
argument. - Added
invalidate_corrupt
option to CookieSessions too for valid cookies containing invalid data.