Releases: hyperf/hyperf
Releases · hyperf/hyperf
v3.2.0-alpha.4
What's Changed
- refactor(database): extract HasUniqueStringIds trait to reduce code duplication by @huangdijia in #7590
- refactor(logger): optimize logger configuration structure by @huangdijia in #7563
- Fixed BC when validation rule not define. by @xuanyanwow in #7596
- chore(ci): remove symfony/console version constraint in test workflow by @huangdijia in #7595
- refactor(cache): refactor cache configuration pattern by @huangdijia in #7594
- feat: Add Htmlable contract interface for HTTP responses by @huangdijia in #6794
- Added PDO subclass support for PHP 8.4 by @huangdijia in #7019
- [3.2]Enhance array shuffle method to support custom random engines by @huangdijia in #7142
- refactor(testing): optimize ClassLoader detection in phpunit-patch by @huangdijia in #7592
- chore(ci): upgrade Swoole version from v6.1.0 to v6.1.1 by @huangdijia in #7588
- Added
Hyperf\Collection\Arr::sole()method by @huangdijia in #7600 - feat(async-queue): add result handling for job processing by @huangdijia in #7601
- fix(async-queue): relax type hint for callback message parameter by @huangdijia in #7602
- refactor(async-queue): strengthen Result type handling in Driver and AfterHandle event by @huangdijia in #7603
- Optimized AnnotationJob to support call protected / private methods. by @huangdijia in #7604
- refactor(testing): add NonCoroutine attribute for flexible test execution control by @huangdijia in #7605
- refactor(async-queue): remove JobMessage backward compatibility code by @huangdijia in #7609
- docs(command): add @param-closure-this annotation for better IDE support by @huangdijia in #7611
- refactor: remove deprecated code scheduled for v3.2 removal by @huangdijia in #7610
- Fixed setlocale set failed by @xuanyanwow in #7612
- refactor(async-queue): rename $queue property to $pool in ConsumerProcess by @huangdijia in #7615
- feat(async-queue): add automatic consumer process registration based on configuration by @huangdijia in #7618
- feat(framework): Add Symfony 7.4 compatibility with batch command registration by @Copilot in #7620
- refactor(async-queue): rename getQueueName to getPoolName for consistency by @huangdijia in #7625
Full Changelog: v3.2.0-alpha.3...v3.2.0-alpha.4
v3.1.64
Added
- #7600 Added method
Hyperf\Collection\Arr::sole(). - #7601 Added result handling for async queue jobs with
Hyperf\AsyncQueue\Resultenum.
Optimized
- #7604 Optimized
AnnotationJobto support call protected / private methods. - #7611 Added
@param-closure-thisannotation toConsole::command()for better IDE support. - #7615 Renamed
$queueproperty to$poolinConsumerProcessfor better code clarity inhyperf/async-queue.
Fixed
- #7596 Fixed BC when
validationrule not define.
Full Changelog: v3.1.63...v3.1.64
Pre-Release v3.2.0-alpha.3
What's Changed
- fix(command): add coordinator cleanup in command execution finally block by @huangdijia in #7545
- Support to rewrite the rules for scene when using validation. by @limit81995 in #7469
- Made
Hyperf\Kafka\Annotation\Consumer::$poolempty by default by @aneterial in #7547 - Support options
batchformigrate:rollback. by @albertcht in #7531 - Release v3.1.62 by @limingxinleo in #7560
- Revert constructor parameter name change for
Nacos\Applicationby @huangdijia in #7561 - Support method
PATCHforhyperf/testing. by @aneterial in #7553 - Fixed bug that the providers of nacos not support psr4. by @Ulyssesyi in #7543
- Upgrade to nikic/php-parser v5 and update parser usage by @huangdijia in #7566
- Update Symfony dependencies to ^6.0 || ^7.0 by @huangdijia in #7573
- Update PHPUnit to version 11 by @huangdijia in #7577
- Support Swoole v6.1.0 by @huangdijia in #7575
- Optimized the PHPDoc for
hyperf/database. by @storyn26383 in #7511 - Fixed bug that the parameter context on redis cluster cannot work when auth config isn't set or set with null value. by @luizmanhani in #7554
- Fixed bug that
Hyperf\Validation\ValidationRuleParser::parseParameters()cannot supportPHP 8.4. by @sy-records in #7536 - fix: 添加对CacheableSupportsMethodInterface的弃用说明 by @huangdijia in #7574
- Changed the default type of
deleted_attodatetimeforhyperf/database. by @MorriosL in #6760 - feature: Added PHPStan type analysis for
hyperf/collectionby @huangdijia in #7578 - Use
priorityMiddlewareinstead ofmiddlewarefor swagger. by @zds-s in #7537 - Add
/types export-ignoreto all.gitattributesinsrc/*by @Copilot in #7581 - Release v3.1.63 by @limingxinleo in #7582
- Fixed PHPStan type assertions in database model types by @huangdijia in #7583
New Contributors
- @aneterial made their first contribution in #7547
- @storyn26383 made their first contribution in #7511
Full Changelog: v3.2.0-alpha.2...v3.2.0-alpha.3
Release v3.1.63
Fixed
- #7536 Fixed bug that
Hyperf\Validation\ValidationRuleParser::parseParameters()cannot supportPHP 8.4. - #7543 Fixed bug that the providers of nacos not support psr4.
- #7554 Fixed bug that the parameter context on redis cluster cannot work when auth config isn't set or set with null value.
- #7561 Revert constructor parameter name change for
Nacos\Application.
Added
- #7553 Support method
PATCHforhyperf/testing.
Optimized
- #7511 Optimized the PHPDoc for
hyperf/database. - #7537 Use
priorityMiddlewareinstead ofmiddlewarefor swagger.
New Contributors
- @storyn26383 made their first contribution in #7511
- @Copilot made their first contribution in #7581
Full Changelog: v3.1.62...v3.1.63
Release v3.1.62
What's Changed
- fix(command): add coordinator cleanup in command execution finally block by @huangdijia in #7545
- Support to rewrite the rules for scene when using validation. by @limit81995 in #7469
- Made
Hyperf\Kafka\Annotation\Consumer::$poolempty by default by @aneterial in #7547 - Support options
batchformigrate:rollback. by @albertcht in #7531 - Release v3.1.62 by @limingxinleo in #7560
New Contributors
- @aneterial made their first contribution in #7547
Full Changelog: v3.1.61...v3.1.62
What's Changed
- fix(command): add coordinator cleanup in command execution finally block by @huangdijia in #7545
- Support to rewrite the rules for scene when using validation. by @limit81995 in #7469
- Made
Hyperf\Kafka\Annotation\Consumer::$poolempty by default by @aneterial in #7547 - Support options
batchformigrate:rollback. by @albertcht in #7531 - Release v3.1.62 by @limingxinleo in #7560
New Contributors
- @aneterial made their first contribution in #7547
Full Changelog: v3.1.61...v3.1.62
Pre-Release v3.2.0-alpha.2
Full Changelog: v3.2.0-alpha.1...v3.2.0-alpha.2
Pre-Release v3.2.0-alpha.1
What's Changed
- Init v3.2 by @huangdijia in #7278
- Update dependency version to ~3.2.0 by @huangdijia in #7281
- Support to specify the queue name based on the
job. by @huangdijia in #6538 - Removed abandoned
laminas/laminas-mimeby @huangdijia in #7189 - Added connection name to
QueryExceptionby @huangdijia in #7198 - Added support for elasticsearch 8.x by @huangdijia in #7202
- Upgrade
elasticsearch/elasticsearchto>=8.0by @huangdijia in #7297 - refactor(database): improve limit method validation in Query Builder by @huangdijia in #7208
- Improve
Hyperf\Support\Fluentby @huangdijia in #7214 - Add toJson method to Jsonable and Fluent classes by @huangdijia in #6761
- Added
Hyperf\Pipeline\Pipeline::finally(). by @huangdijia in #7247 - Support to take multiple items for
shift()andpop()inHyperf\Collection\Collection. by @huangdijia in #7274 - Added
partitionandrejectmethods toHyperf\Collection\Arrby @huangdijia in #7302 - Added
Macroablesupport toHyperf\Context\Contextby @huangdijia in #7312 - Fix hyperf/collection dependency version 3.1.23 to 3.2.0 by @kingIZZZY in #7446
- 更新 phpstan 和 rector 依赖版本 by @huangdijia in #7435
- Support
v3.0fornesbot/carbon. by @huangdijia in #6591 - Bump PHP requirement to >=8.2 in composer.json by @huangdijia in #7460
- Fixed bug that the the validation rule
incannot work for php 8.4 by @limingxinleo in #7471 - Fix macro validation for reference parameters by @huangdijia in #7501
- Add disassociate alias method to BelongsTo relation by @zds-s in #7483
- Added method
Hyperf\Database\Model\Model::isSoftDeletable(). by @zds-s in #7484 - Added method
Hyperf\Database\Model\Builder::except(). by @zds-s in #7486 - Added caster
Hyperf\Database\Model\Casts\AsArrayObjectforArrayObject. by @zds-s in #7487 - remove internal by @tw2066 in #7514
- Update grafana.json by @xuanyanwow in #7512
- Fix sqlite driver installation in documentation by @danielmadu in #7506
- Added
ordered_types. null_adjustment = always_firstto.php-cs-fixer.php. by @limingxinleo in #7521 - Support versions v2 and v3 for nacos sdk. by @limit81995 in #7467
- Added Macroable trait to
Hyperf\Pipeline\Pipeline. by @huangdijia in #7492 - Add InteractsWithData trait and enhance Fluent class by @huangdijia in #7476
- Added method
Hyperf\Database\Model\Builder::incrementOrCreate()by @People-Sea in #7480 - Update Swoole version from v5.1.6 to v5.1.8 in CI workflow by @huangdijia in #7477
- Added methods
Collection::doesntContainStrict()andLazyCollection::doesntContainStrict(). by @huangdijia in #7481 - Added constant
Hyperf\Kafka\Constants\KafkaStrategy::STICKY_ASSIGNOR. by @wuxi889 in #7499 - Added methods
Hyperf\Collection\Arr::push()andHyperf\Collection\Arr::array(). by @huangdijia in #7500 - Added method
Hyperf\Collection\Arr::hasAll(). by @huangdijia in #7502 - feat(component): add meilisearch for hyperf scout by @liangguifeng in #7504
- Added
Hyperf\Codec\Packer\Resp3Packer. by @huangdijia in #7509 - Added method
Hyperf\Database\Query\Grammars\Grammar::whereValueBetween(). by @zds-s in #7518 - Release v3.1.61 by @limingxinleo in #7524
New Contributors
- @danielmadu made their first contribution in #7506
Full Changelog: v3.1.60...v3.2.0-alpha.1
Release v3.1.61
Added
- #7467 Support versions v2 and v3 for nacos sdk.
- #7476 Added trait
InteractsWithDatatoHyperf\Support\Fluent. - #7480 Added method
Hyperf\Database\Model\Builder::incrementOrCreate(). - #7481 Added methods
Collection::doesntContainStrict()andLazyCollection::doesntContainStrict(). - #7483 Added the alias
disassociate()ofHyperf\Database\Model\Relations\BelongsTo::dissociate(). - #7484 Added method
Hyperf\Database\Model\Model::isSoftDeletable(). - #7486 Added method
Hyperf\Database\Model\Builder::except(). - #7487 Added caster
Hyperf\Database\Model\Casts\AsArrayObjectforArrayObject. - #7492 Added trait
MacroabletoHyperf\Pipeline\Pipeline. - #7499 Added constant
Hyperf\Kafka\Constants\KafkaStrategy::STICKY_ASSIGNOR. - #7500 Added methods
Hyperf\Collection\Arr::push()andHyperf\Collection\Arr::array(). - #7502 Added method
Hyperf\Collection\Arr::hasAll(). - #7509 Added
Hyperf\Codec\Packer\Resp3Packer. - #7518 Added method
Hyperf\Database\Query\Grammars\Grammar::whereValueBetween().
Optimized
- #7501 Added validation of
Hyperf\Macroable\Macroable::macro()to avoid unexpected results caused by using reference parameters.
New Contributors
- @danielmadu made their first contribution in #7506
- @limit81995 made their first contribution in #7467
Full Changelog: v3.1.60...v3.1.61
Release v3.1.60
Fixed
- #7447 Fixed bug that the command
migrate:freshcan't drop postgres tables by default. - #7449 Fixed bug that
Hyperf\Database\Migrations\Migrator::reset()cannot support string paths.
Added
- #7466 Added
isEmpty/isNotEmpty/getIteratormethods toHyperf\Support\Fluentclass. - #7473 Added config
produce_retryandproducer_retry_sleepforkafka.
New Contributors
- @zhoupeng-zh made their first contribution in #7449
- @luizmanhani made their first contribution in #7468
Full Changelog: v3.1.59...v3.1.60
Release v3.1.59
Fixed
- #7421 Fixed bug that the cookie value cannot be deleted when set "".
- #7424 Fixed bug that the path of
phpcannot contain spaces forwatcher. - #7427 Fixed bug that
excludecannot not work when usingvalidation.
Optimized
- #7394 Release redis connection immediately when using
transactionorpipelinewith callbacks.
New Contributors
- @ramaID made their first contribution in #7424
- @MisakiArt made their first contribution in #7434
Full Changelog: v3.1.58...v3.1.59