Skip to content

Releases: hyperf/hyperf

Release v3.1.69

09 May 02:22
c28fdd7

Choose a tag to compare

Fixed

  • #7731 Fixed bug that the Macroable of Hyperf\HttpServer\Response cannot work.
  • #7734 Fixed bug that memory leak when using Redis::pipeline() for long-lived environment.
  • #7736 Fixed bug that keys method in RedisDriver does not return array when sMembers returns a non-array value.
  • #7737 Fixed bug that PostgresProcessor cannot process indexes and foreign keys when columns is null.
  • #7745 Fixed bug that getUri()->getHost() returns server IP instead of domain when using Swoole 6.2.0, due to server_addr having higher priority than header['host'] in getUriFromGlobals().

New Contributors

Full Changelog: v3.1.68...v3.1.69

Release v3.1.68

21 Apr 09:04
e611146

Choose a tag to compare

Fixed

  • #7738 Fixed bug that Hyperf\Database\Concerns\BuildsQueries::getOriginalColumnNameForCursorPagination cannot work.
  • #7739 Fixed bug that http server broken by nacos service not found.
  • #7740 Fixed bug that Aws\Handler\GuzzleV6\GuzzleHandler not found.

Optimized

  • #7741 Optimized the Hyperf\Amqp\Message\Message::getTypeString() method to prevent conflicts between property and getter methods.

Full Changelog: v3.1.67...v3.1.68

Release v3.1.67

24 Feb 02:51
38fdb8b

Choose a tag to compare

Added

  • #7459 Support using model name like App\\Model\\User for validation rule exists and unique.
  • #7555 Added Hyperf\Crontab\Mutex\RedisServerMutexByNodeName.
  • #7607 Added casts AsCollection for hyperf/database.
  • #7648 Support aliyun mse signature for nacos.

Optimized

  • #7676 Optimized the client tagging for hyperf/tracer.

Fixed

  • #7703 Fixed bug that the default ttl cannot work for memory driver of hyperf/cache.
  • #7705 Fixed bug that eachById cannot work for Hyperf\Database\Query\Builder.
  • #7712 Fixed bug that the classes cache cannot decode.

New Contributors

Full Changelog: v3.1.66...v3.1.67

Release v3.1.66

25 Jan 07:42
6e12cf3

Choose a tag to compare

Added

  • #7667 #7672 Added support for client_count option to create multiple gRPC clients with load balancing in hyperf/grpc-client.
  • #7668 Added the $isCookiePersistent parameter to Hyperf\Guzzle\PoolHandler to enable persistent cookies.
  • #7670 Added --path option to generator commands for specifying custom output locations.
  • #7684 Added method Hyperf\Database\Schema\Builder::withoutForeignKeyConstraints().
  • #7693 Added methods cascadeOnDelete(), restrictOnDelete(), noActionOnDelete(), restrictOnUpdate(), nullOnUpdate(), noActionOnUpdate() for ForeignKeyDefinition.
  • #7698 Added Pool::flushAll() and PoolFactory::flushAll() methods to close all pool connections.
  • #7699 Added methods whereJsonContainsKey(), orWhereJsonContainsKey(), whereJsonDoesntContainKey(), orWhereJsonDoesntContainKey() for Query Builder.

Optimized

  • #7675 Removed redundant timer cleanup code from metric listeners since the Timer component now handles cleanup automatically.
  • #7687 Optimized handling of ValidationException in JSON-RPC core middleware to properly return INVALID_PARAMS error responses.

Fixed

  • #7669 Fix PostgreSQL boolean handling for emulated prepares and raw SQL.
  • #7682 Fixed incorrect return type for Blueprint::foreign() which caused static analysis errors when chaining references(), on(), etc.

New Contributors

Full Changelog: v3.1.65...v3.1.66

v3.2.0-alpha.4

15 Nov 02:41
54b2ecb

Choose a tag to compare

v3.2.0-alpha.4 Pre-release
Pre-release

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

12 Nov 07:15
6dc7531

Choose a tag to compare

Added

  • #7600 Added method Hyperf\Collection\Arr::sole().
  • #7601 Added result handling for async queue jobs with Hyperf\AsyncQueue\Result enum.

Optimized

  • #7604 Optimized AnnotationJob to support call protected / private methods.
  • #7611 Added @param-closure-this annotation to Console::command() for better IDE support.
  • #7615 Renamed $queue property to $pool in ConsumerProcess for better code clarity in hyperf/async-queue.

Fixed

  • #7596 Fixed BC when validation rule not define.

Full Changelog: v3.1.63...v3.1.64

Pre-Release v3.2.0-alpha.3

15 Nov 02:10
cfdb564

Choose a tag to compare

Pre-release

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::$pool empty by default by @aneterial in #7547
  • Support options batch for migrate:rollback. by @albertcht in #7531
  • Release v3.1.62 by @limingxinleo in #7560
  • Revert constructor parameter name change for Nacos\Application by @huangdijia in #7561
  • Support method PATCH for hyperf/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 support PHP 8.4. by @sy-records in #7536
  • fix: 添加对CacheableSupportsMethodInterface的弃用说明 by @huangdijia in #7574
  • Changed the default type of deleted_at to datetime for hyperf/database. by @MorriosL in #6760
  • feature: Added PHPStan type analysis for hyperf/collection by @huangdijia in #7578
  • Use priorityMiddleware instead of middleware for swagger. by @zds-s in #7537
  • Add /types export-ignore to all .gitattributes in src/* 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

Full Changelog: v3.2.0-alpha.2...v3.2.0-alpha.3

Release v3.1.63

30 Oct 02:11
ded8b96

Choose a tag to compare

Fixed

  • #7536 Fixed bug that Hyperf\Validation\ValidationRuleParser::parseParameters() cannot support PHP 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 PATCH for hyperf/testing.

Optimized

  • #7511 Optimized the PHPDoc for hyperf/database.
  • #7537 Use priorityMiddleware instead of middleware for swagger.

New Contributors

Full Changelog: v3.1.62...v3.1.63

Release v3.1.62

11 Oct 10:00
2e152f2

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.1.61...v3.1.62

What's Changed

New Contributors

Full Changelog: v3.1.61...v3.1.62

Pre-Release v3.2.0-alpha.2

28 Oct 06:01

Choose a tag to compare

Pre-release