Releases: Kdyby/Redis
Releases · Kdyby/Redis
v6.1.4
What's Changed
- Run tests on PHP 8.2 by @KacerCZ in #125
- change redis v6 auth data type param by @conflictboy in #124
- Allow use of nette/utils 4.0 by @KacerCZ in #126
New Contributors
- @conflictboy made their first contribution in #124
Full Changelog: v6.1.3...v6.1.4
v6.1.3
What's Changed
- Fix compatibility with Nette/Caching v3.1.3 by @jakubenglicky in #120
New Contributors
- @jakubenglicky made their first contribution in #120
Full Changelog: v6.1.2...v6.1.3
v6.1.2
v6.1.1
What's Changed
- revert by @Jakub-Fajkus in #117
- PhpGenerator nově používá Dumper namísto helperu by @Jakub-Fajkus in #118
New Contributors
- @Jakub-Fajkus made their first contribution in #116
Full Changelog: v6.1.0...v6.1.1
v6.1.0
v6.0.0
- 🐘 PHP Support only 7.4 | 8.0
- Only Nette 3 support
- Dropped support for Redis client version 3 and older. Removed Kdyby/Redis/Driver/PhpRedisDriverOld
- Dropped Travis, using GHA
- Added makefile for composer, cs, phpstan, tests
- Dropped old exception aliases, use new namespace
- Added ClientSchema
- Added RedisSchema
Thanks @PavelJurasek & @pechondra
v5.2.0
PHP 8 support
- Thanks for PR #100 @KacerCZ and testing @martinvenus
- PHP 8 is supported since version 5.3.0 of redis extension so update accordingly.
Internal
- To be resolved in PHP8 version consistence/coding-standard#65
v5.1.0
Features in this release
Added support for PHP 7.4 and only Nette/Utils 3.0
BC breaks
- Dropped support for Nette/Utils 2.5 now only in version 3.0 @KacerCZ #95
- Updated compatibility with PHP 7.4 thanks @KacerCZ #95
Internal
- Updated Nette/Tester support thanks @martinvenus and @KacerCZ #93
- Bumped PHPStan to 0.12 @KacerCZ #92
5.0.1
v5.0.0
Features in this release
- Nette 3 support
- Coding standard updated
- Travis cleanup and unification
- Composer, compatibility packages and loading
PR #85
Features:
Coding standard
- Use
strict_types
- Return types where posible, anotated all the array returned
- Typed method arguments where possible, anotated otherwise
- Upper cased null/false/true
- Global function fqn
Travis
- Removed unused nette libraries
- Added PHPStan to travis
- Added CodingStandard to travis
Composer
- Autoload set to PSR4
Changes:
- Supported PHP => 7.1
- Nette/Caching to ~3.0
- Nette/Deprecated to ~3.0
- Nette/DI to ~2.4.10 || ~3.0
- Nette/Http ~2.4.7 || ~3.0
- Nette/Utils ~2.5 || ~3.0
- Nette/Reflection ~2.4
- Removed
\Kdyby\Redis\IRedisDriver::class
and\Kdyby\Redis\IRedisDriverOld::class
because they had outdated methods and docblocks, needed to be updated with redis changes. Also they had same methods as\Redis
and as interfaces they needed to have same type hints as implemented classes wich depends on installed version on client server. All this meant 30+ CS and PHPStan skipped rules and no added value. So use default\Redis
hinting and if needed add some undocumented stuff add it in docblok of\Kdyby\Redis\Driver\PhpRedisDriver::class
since it is named driver it is appropriate place. class RedisLuaJournal extends RedisJournal implements Nette\Caching\Storages\IJournal
->class RedisLuaJournal extends \Kdyby\Redis\RedisJournal
- Composer requires ext-redis (php check remains)
Exceptions moved to separate files and changed namespace. For compatibility there is Typo3/ClassAliasLoader with aliased old namespaces. For future uses please use new namespaces.
\Kdyby\Redis\ConnectionException => \Kdyby\Redis\Exception\ConnectionException
\Kdyby\Redis\Exception => \Kdyby\Redis\Exception\IException
\Kdyby\Redis\InvalidArgumentException => \Kdyby\Redis\Exception\InvalidArgumentException
\Kdyby\Redis\LockException => \Kdyby\Redis\Exception\LockException
\Kdyby\Redis\MissingExtensionException => \Kdyby\Redis\Exception\MissingExtensionException
\Kdyby\Redis\RedisClientException => \Kdyby\Redis\Exception\RedisClientException
\Kdyby\Redis\SessionHandlerException => \Kdyby\Redis\Exception\SessionHandlerException
\Kdyby\Redis\TransactionException => \Kdyby\Redis\Exception\TransactionException
Argument types and return types (mentioning only some which can be problem)
\Kdyby\Redis\DI\RedisExtension::PANEL_COUNT_MODE
is private- Config option array_key(
redis.client
) is expected string|null \Kdyby\Redis\Diagnostics::TIMER_NAME
is private- Added types
\Kdyby\Redis\Diagnostics\Panel::begin
\Kdyby\Redis\Driver\PhpRedisDriverOld::script
now accepts only declared arguments, droppedfunc_get_args
- Added types
\Kdyby\Redis\ExclusiveLock::acquireLock
- Added types
\Kdyby\Redis\ExclusiveLock::release
- Added types
\Kdyby\Redis\ExclusiveLock::increaseLockTimeout
- Added types
\Kdyby\Redis\ExclusiveLock::getLockTimeout
- Added types
\Kdyby\Redis\ExclusiveLock::formatLock
- Added types
\Kdyby\Redis\RedisClient::__construct
- Added types
\Kdyby\Redis\RedisClient::unlock
- Added types
\Kdyby\Redis\RedisClient::lock
- Added types
\Kdyby\Redis\RedisClient::__call
- Added types
\Kdyby\Redis\RedisClient::__get
- Added types
\Kdyby\Redis\RedisClient::__set
- Added types
\Kdyby\Redis\RedisClient::__isset
\Kdyby\Redis\RedisJournal
and Lua version constants made private- Added types
\Kdyby\Redis\RedisJournal::write
- Added types
\Kdyby\Redis\RedisJournal::formatKey
\Kdyby\Redis\RedisStorage
constants made private- Added types
\Kdyby\Redis\RedisStorage::read
- Added types
\Kdyby\Redis\RedisStorage::lock
- Added types
\Kdyby\Redis\RedisStorage::unlock
- Added types
\Kdyby\Redis\RedisStorage::write
- Added types
\Kdyby\Redis\RedisStorage::remove
And more, see #85 for all changes