Skip to content

Releases: brainix/pottery

v1.2.1

14 Jun 19:00
Compare
Choose a tag to compare

Quality of Life: Log when Redlock is enqueued, waiting to acquire

What's Changed

Full Changelog: v1.2.0...v1.2.1

v1.2.0

27 May 02:27
75ae6a3
Compare
Choose a tag to compare
  1. Quality of Life: Allow re-raising on RedisErrors #404
  2. Bug Fix: Don't let RedisLists equal tuples

This is how Python behaves:

>>> [1, 2, 3] == (1, 2, 3)
False

As of this release, this is also how Pottery behaves:

>>> from pottery import RedisList
>>> RedisList((1, 2, 3)) == (1, 2, 3)
False

What's Changed

Full Changelog: v1.1.8...v1.2.0

v1.1.8

07 May 18:56
Compare
Choose a tag to compare

Optimization: Make Redlock.locked() slightly more efficient

Bail out of Redlock.locked() as soon as we've achieved quorum.

What's Changed

Full Changelog: v1.1.7...v1.1.8

v1.1.7

23 Apr 08:06
Compare
Choose a tag to compare
  1. Quality of Life: Fix Redlock.acquire() type annotation
  2. Quality of Life: Specify that Pottery requires Python 3.6+

What's Changed

Full Changelog: v1.1.6...v1.1.7

v1.1.6

18 Mar 01:09
Compare
Choose a tag to compare
  1. Quality of Life: Use UUIDs (instead of random alphanumeric characters) as Redlock values
  2. Quality of Life: Tighten up .__exit__() type annotations

What's Changed

Full Changelog: v1.1.5...v1.1.6

v1.1.5

23 Feb 00:58
35c841d
Compare
Choose a tag to compare
  1. Bug Fix: Raise TypeError for invalid RedisList slice types
  2. Bug Fix: Raise TypeError for invalid RedisDeque.rotate() steps
  3. Bug Fix: Implement RedisDeque.__bool__()
    • Previously, all RedisDeques were falsey, even RedisDeques that contained elements

What's Changed

Full Changelog: v1.1.4...v1.1.5

v1.1.4

05 Feb 22:28
Compare
Choose a tag to compare

Bug Fix: RedisList slicing

This was the previous buggy behavior:

>>> list_ = RedisList([1, 2, 3, 4, 5])
>>> list_[len(list_)-1:3-1:-1]
[]

This is the current correct behavior:

>>> list_ = RedisList([1, 2, 3, 4, 5])
>>> list_[len(list_)-1:3-1:-1]
[5, 4]

What's Changed

Full Changelog: v1.1.3...v1.1.4

v1.1.3

02 Feb 04:51
Compare
Choose a tag to compare

Bug Fix: RedisList slicing

This was the previous buggy behavior:

>>> a = RedisList((1, 66.25, 1234.5))
>>> del a[:0]
>>> a
[]

This is the current correct behavior:

>>> a = RedisList((1, 66.25, 1234.5))
>>> del a[:0]
>>> a
[1, 66.25, 1234.5]

What's Changed

Full Changelog: v1.1.2...v1.1.3

v1.1.2

27 Jan 08:16
b0d5cd6
Compare
Choose a tag to compare

Bug Fix: RedisDeque.rotate()

I’ve fixed two bugs in RedisDeque.rotate(), and I’ve also written unit tests to prevent a regression.

What's Changed

Full Changelog: v1.1.1...v1.1.2

v1.1.1

25 Jan 20:57
45e1c66
Compare
Choose a tag to compare

Bug Fix: JSON encoder monkey patch

This release fixes the exception description when trying to JSON encode a non-JSON-encodable object.

Reported in #323, fixed in #324.

What's Changed

Full Changelog: v1.1.0...v1.1.1