2024-08-01 10:04:27 +08:00
# v3.1.35 - TBD
2024-08-05 15:18:12 +08:00
## Fixed
- [#6987 ](https://github.com/hyperf/hyperf/pull/6987 ) Fixed bug that the root path of swagger server cannot work.
2024-08-01 10:04:27 +08:00
# v3.1.34 - 2024-08-01
2024-07-25 10:09:02 +08:00
2024-07-31 13:43:47 +08:00
## Added
2024-07-31 13:56:16 +08:00
- [#6978 ](https://github.com/hyperf/hyperf/pull/6978 ) Support static method for `#[AsCommand]` .
- [#6979 ](https://github.com/hyperf/hyperf/pull/6979 ) Added command `queue:dynamic-reload` .
2024-07-31 13:43:47 +08:00
2024-07-25 10:09:02 +08:00
# v3.1.33 - 2024-07-25
2024-07-18 10:14:23 +08:00
2024-07-22 09:50:05 +08:00
## Optimized
2024-07-22 10:33:44 +08:00
- [#6962 ](https://github.com/hyperf/hyperf/pull/6962 ) Optimized error message of command exceptions.
- [#6963 ](https://github.com/hyperf/hyperf/pull/6963 ) Optimized code for `Model/JsonResource::toJson` .
2024-07-22 09:50:05 +08:00
2024-07-19 11:47:39 +08:00
## Fixed
- [#6954 ](https://github.com/hyperf/hyperf/pull/6954 ) Fixed bug that the connection cannot reconnect to the server in a situation where there was a failover and exchange of read and write hosts.
2024-07-20 15:46:28 +08:00
- [#6961 ](https://github.com/hyperf/hyperf/pull/6961 ) Fixed bug that `websocket sender` not support `Swow` .
2024-07-19 11:47:39 +08:00
2024-07-18 10:14:23 +08:00
# v3.1.32 - 2024-07-18
2024-07-11 10:05:39 +08:00
2024-07-13 20:44:54 +08:00
## Fixed
- [#6949 ](https://github.com/hyperf/hyperf/pull/6949 ) Fixed bug that restart failed when don't have `.env` .
2024-07-17 18:31:09 +08:00
- [#6953 ](https://github.com/hyperf/hyperf/pull/6953 ) Fixed bug that socketio-server cannot work for swow engine.
2024-07-13 20:44:54 +08:00
2024-07-12 14:10:34 +08:00
## Optimized
- [#6946 ](https://github.com/hyperf/hyperf/pull/6946 ) Removed Swoole Atomic dependency and useless restart counter in watcher.
2024-07-15 18:06:11 +08:00
## Added
- [#6950 ](https://github.com/hyperf/hyperf/pull/6950 ) Support `where bit functions and operators` for `database` .
2024-07-11 10:05:39 +08:00
# v3.1.31 - 2024-07-11
2024-07-05 13:20:27 +08:00
2024-07-08 11:29:54 +08:00
## Added
- [#6936 ](https://github.com/hyperf/hyperf/pull/6936 ) Support to reload `.env` when using `hyperf/watcher` .
2024-07-05 13:20:27 +08:00
# v3.1.30 - 2024-07-05
## Fixed
- [#6925 ](https://github.com/hyperf/hyperf/pull/6925 ) Fixed bug that `sortByMany` don't reset indexes for `Collection` . But it will be return the same result like `sortBy` in `v3.2` .
2024-07-04 10:57:05 +08:00
# v3.1.29 - 2024-07-04
2024-06-27 11:21:23 +08:00
2024-07-05 10:36:30 +08:00
## Fixed
- [#6925 ](https://github.com/hyperf/hyperf/pull/6925 ) Fixed bug that `sortByMany` cannot support options like `sortBy` .
2024-07-01 15:17:44 +08:00
## Added
- [#6896 ](https://github.com/hyperf/hyperf/pull/6896 ) Added `SftpAdapter` for `hyperf/filesystem` .
2024-07-01 15:52:05 +08:00
- [#6917 ](https://github.com/hyperf/hyperf/pull/6917 ) Added `Str::chopStart` and `Str::chopEnd` .
2024-07-01 15:17:44 +08:00
2024-06-27 11:21:23 +08:00
# v3.1.28 - 2024-06-27
2024-06-20 10:35:31 +08:00
2024-06-20 11:17:47 +08:00
## Fixed
- [#6900 ](https://github.com/hyperf/hyperf/pull/6900 ) Fixed bug that `LengthAwarePaginator::addQuery()` cannot support array `$values` .
2024-06-25 11:28:49 +08:00
- [#6909 ](https://github.com/hyperf/hyperf/pull/6909 ) Fixed bug that `Aop` doesn't work on `Trait` .
2024-06-20 11:17:47 +08:00
2024-06-24 11:04:35 +08:00
## Optimized
- [#6903 ](https://github.com/hyperf/hyperf/pull/6903 ) Optimized code for `config-nacos` .
2024-06-24 22:16:23 +08:00
## Added
- [#6885 ](https://github.com/hyperf/hyperf/pull/6885 ) Added validation rule `prohibiti` .
2024-06-25 14:44:27 +08:00
- [#6891 ](https://github.com/hyperf/hyperf/pull/6891 ) Support `cache.*.options.pool` to select redis instance for `hyperf/cache` .
2024-06-25 14:03:19 +08:00
- [#6895 ](https://github.com/hyperf/hyperf/pull/6895 ) Support to collect enum annotations.
2024-06-24 22:16:23 +08:00
2024-06-20 10:35:31 +08:00
# v3.1.27 - 2024-06-20
2024-06-13 10:07:29 +08:00
2024-06-13 14:23:42 +08:00
## Added
2024-06-13 18:56:30 +08:00
- [#6864 ](https://github.com/hyperf/hyperf/pull/6864 ) Added methods `getViews` and `hasView` into `Hyperf\Database\Schema\Schema` .
2024-06-13 18:36:37 +08:00
- [#6866 ](https://github.com/hyperf/hyperf/pull/6866 ) Added method `Hyperf\Database\Concerns\BuildsQueries::lazy` .
- [#6869 ](https://github.com/hyperf/hyperf/pull/6869 ) Added methods `before` and `after` into `Collection` .
2024-06-14 10:34:03 +08:00
- [#6876 ](https://github.com/hyperf/hyperf/pull/6876 ) Added method `Hyperf\Database\Concerns\Builder::eachById` .
2024-06-18 18:08:45 +08:00
- [#6878 ](https://github.com/hyperf/hyperf/pull/6878 ) Added methods `whereMorphRelation` and `orWhereMorphRelation` into `Hyperf\Database\Model\Concerns\QueriesRelationships` .
2024-06-18 19:56:55 +08:00
- [#6883 ](https://github.com/hyperf/hyperf/pull/6883 ) Added methods `getIndexes` `hasIndex` and `getIndexListing` into `Hyperf\Database\Schema\Builder` .
2024-06-19 13:09:58 +08:00
- [#6884 ](https://github.com/hyperf/hyperf/pull/6884 ) Added method `Hyperf\Database\Model\Model::updateOrFail` .
2024-06-19 12:41:20 +08:00
- [#6897 ](https://github.com/hyperf/hyperf/pull/6897 ) [#6899 ](https://github.com/hyperf/hyperf/pull/6899 ) Added events `BeforeLongLangConsumerCreated` and `AfterConsumerConfigCreated` into `Hyperf\Kafka\ConsumerManager` .
2024-06-13 14:23:42 +08:00
2024-06-14 11:36:59 +08:00
## Optimized
2024-06-14 20:49:22 +08:00
- [#6829 ](https://github.com/hyperf/hyperf/pull/6829 ) Optimized the format of command error logs.
2024-06-15 22:16:31 +08:00
- [#6868 ](https://github.com/hyperf/hyperf/pull/6868 ) Support type `Closure|Expression|ModelBuilder|static|string` of `$column` for `QueryBuilder::orderBy()` .
- [#6870 ](https://github.com/hyperf/hyperf/pull/6870 ) Updated default path for factories in Model Factory construct method.
- [#6874 ](https://github.com/hyperf/hyperf/pull/6874 ) Using `Scanner` instead of hard code for `hyperf/watcher` component.
2024-06-14 11:36:59 +08:00
2024-06-13 10:07:29 +08:00
# v3.1.26 - 2024-06-13
2024-06-06 10:58:02 +08:00
2024-06-07 18:30:46 +08:00
## Fixed
- [#6848 ](https://github.com/hyperf/hyperf/pull/6848 ) Fixed bug that `LazyCollection::splitIn()` cannot work caused by type hint.
2024-06-07 19:54:00 +08:00
## Added
- [#6845 ](https://github.com/hyperf/hyperf/pull/6845 ) Added method `Hyperf\Database\Schema::getTables()` .
2024-06-12 10:50:14 +08:00
- [#6846 ](https://github.com/hyperf/hyperf/pull/6846 ) Added methods `chunkById` and `chunkByIdDesc` into `Hyperf\Database\Concerns\BuildsQueries` .
- [#6851 ](https://github.com/hyperf/hyperf/pull/6851 ) Added methods `orDoesntHaveMorph` and `orHasMorph` into `Hyperf\Database\Model\Concerns` .
2024-06-12 11:22:49 +08:00
- [#6858 ](https://github.com/hyperf/hyperf/pull/6858 ) Added methods `makeHiddenIf` and `makeVisibleIf` into `Hyperf\Database\Model\Concerns\HidesAttributes` .
2024-06-07 19:54:00 +08:00
2024-06-11 19:40:41 +08:00
## Optimized
- [#6855 ](https://github.com/hyperf/hyperf/pull/6855 ) Optimized BuildsQueries to use `Conditionable` instead of `when` and `unless` .
2024-06-12 09:48:01 +08:00
- [#6856 ](https://github.com/hyperf/hyperf/pull/6856 ) Optimized `Hyperf\Scout\Builder` to use `Conditionable` instead of `when` and `unless` .
2024-06-12 10:22:30 +08:00
- [#6860 ](https://github.com/hyperf/hyperf/pull/6860 ) Use `Hyperf\Collection\Enumerable` instead of `Hyperf\ViewEngine\Contract\Enumerable` .
2024-06-11 19:40:41 +08:00
2024-06-07 17:04:33 +08:00
# v3.1.25.1 - 2024-06-07
2024-06-06 15:09:54 +08:00
## Added
- [#6837 ](https://github.com/hyperf/hyperf/pull/6837 ) Added method `Model\Concerns\QueriesRelationships::withWhereHas()` .
2024-06-07 13:55:59 +08:00
- [#6844 ](https://github.com/hyperf/hyperf/pull/6844 ) Added methods `whereRelation` and `orWhereRelation` into `Hyperf\Database\Model\Concerns\QueriesRelationships` .
2024-06-06 15:09:54 +08:00
2024-06-07 10:46:11 +08:00
## Optimized
- [#6843 ](https://github.com/hyperf/hyperf/pull/6843 ) [#6847 ](https://github.com/hyperf/hyperf/pull/6847 ) Updated return type hints in `Collection` and `LazyCollection` .
2024-06-06 10:58:02 +08:00
# v3.1.25 - 2024-06-06
2024-05-30 11:32:06 +08:00
2024-05-30 16:59:48 +08:00
## Added
2024-05-30 21:06:13 +08:00
- [#6809 ](https://github.com/hyperf/hyperf/pull/6809 ) Added cursor paginator for `hyperf/database` .
2024-05-30 16:59:48 +08:00
- [#6811 ](https://github.com/hyperf/hyperf/pull/6811 ) Added `list` rule for `hyperf/validation` .
2024-05-30 21:34:17 +08:00
- [#6814 ](https://github.com/hyperf/hyperf/pull/6814 ) Added method `Model::query()->touch()` which used to update timestamps.
2024-05-31 15:17:26 +08:00
- [#6815 ](https://github.com/hyperf/hyperf/pull/6815 ) Added method `Hyperf\Database\Model\Builder::qualifyColumns()` .
2024-05-31 15:41:39 +08:00
- [#6816 ](https://github.com/hyperf/hyperf/pull/6816 ) Added methods `Hyperf\Database\Model\Builder::load*` .
2024-05-31 17:48:51 +08:00
- [#6820 ](https://github.com/hyperf/hyperf/pull/6820 ) Added method `Hyperf\Database\Model\Builder::valueOrFail()` .
2024-05-31 18:20:38 +08:00
- [#6821 ](https://github.com/hyperf/hyperf/pull/6821 ) Added method `Hyperf\Database\Concerns\BuildsQueries::chunkMap()` .
2024-06-03 10:13:15 +08:00
- [#6822 ](https://github.com/hyperf/hyperf/pull/6822 ) Added methods `lazyById` and `lazyByIdDesc` for lazy queries.
2024-06-03 15:00:15 +08:00
- [#6825 ](https://github.com/hyperf/hyperf/pull/6825 ) Added methods `createDatabase` and `dropDatabaseIfExists` for `Hyperf\Database\Schmea` .
2024-05-30 16:59:48 +08:00
2024-05-30 19:07:42 +08:00
## Fixed
- [#6813 ](https://github.com/hyperf/hyperf/pull/6813 ) Fixed bug that cannot read the messages from non-lower keys for `Hyperf\Constants\Annotation\Message` .
2024-05-31 11:34:07 +08:00
- [#6818 ](https://github.com/hyperf/hyperf/pull/6818 ) Fixed bug that `updateOrInsert` cannot work when the input is empty.
2024-06-03 14:37:01 +08:00
- [#6828 ](https://github.com/hyperf/hyperf/pull/6828 ) Fixed bug that `AOP` cannot work on `__construct` .
2024-06-05 18:09:59 +08:00
- [#6836 ](https://github.com/hyperf/hyperf/pull/6836 ) Fixed bug that `SetCookie::fromString` cannot not work by invalid types.
2024-05-30 19:07:42 +08:00
2024-05-30 11:32:06 +08:00
# v3.1.24 - 2024-05-30
2024-05-23 14:26:56 +08:00
2024-05-24 11:45:49 +08:00
## Fixed
2024-05-24 16:33:42 +08:00
- [#6796 ](https://github.com/hyperf/hyperf/pull/6796 ) [#6798 ](https://github.com/hyperf/hyperf/pull/6798 ) Fixed bug that the return type of `Collection::mapInto()` is invalid sometimes.
2024-05-24 11:45:49 +08:00
2024-05-24 10:50:41 +08:00
## Added
2024-05-24 14:14:27 +08:00
- [#6792 ](https://github.com/hyperf/hyperf/pull/6792 ) Support `IncrementEach` and `DecrementEach` for `Hyperf\Database\Query\Builder` .
2024-05-24 10:50:41 +08:00
- [#6793 ](https://github.com/hyperf/hyperf/pull/6793 ) Added the request body and response body to the tracer.
2024-05-29 15:55:37 +08:00
- [#6795 ](https://github.com/hyperf/hyperf/pull/6795 ) Added config `rate_limit.storage.options.expired_time` for `rate-limit` .
2024-05-24 10:50:41 +08:00
2024-05-24 11:20:26 +08:00
## Optimized
- [#6778 ](https://github.com/hyperf/hyperf/pull/6788 ) Support array for `Hyperf\Amqp\Annotation\Consumer::routingKey` .
2024-05-27 20:37:07 +08:00
- [#6799 ](https://github.com/hyperf/hyperf/pull/6799 ) Support `numbers` and `fromBase64` methods for `\Hyperf\Stringable\Str` .
- [#6803 ](https://github.com/hyperf/hyperf/pull/6803 ) Cancel AsCommand and ClosureCommand return values.
2024-05-24 11:20:26 +08:00
2024-05-23 14:26:56 +08:00
# v3.1.23 - 2024-05-23
2024-05-16 10:32:01 +08:00
2024-05-16 21:20:02 +08:00
## Added
2024-05-17 10:31:51 +08:00
- [#6757 ](https://github.com/hyperf/hyperf/pull/6757 ) Added `Hyperf\Collection\LazyCollection` .
2024-05-16 21:20:02 +08:00
- [#6763 ](https://github.com/hyperf/hyperf/pull/6763 ) Added `Premature end of data` into `DetectsLostConnections` .
2024-05-17 21:36:14 +08:00
- [#6767 ](https://github.com/hyperf/hyperf/pull/6767 ) Support `whereAll/orWhereAll` `whereAny/orWhereAny` for `Hyperf\Database\Query\Builder` .
2024-05-24 10:50:41 +08:00
- [#6774 ](https://github.com/hyperf/hyperf/pull/6774 ) Support Lateral Join for `Hyperf\Database\Query\Builder` .
2024-05-21 21:59:05 +08:00
- [#6781 ](https://github.com/hyperf/hyperf/pull/6781 ) Added some methods to `Hyperf\Collection\Arr` .
2024-05-23 14:09:55 +08:00
- [#6782 ](https://github.com/hyperf/hyperf/pull/6782 ) Added `whereJsonOverlaps` ,`orWhereJsonOverlaps` and `whereJsonDoesntOverlap` to `Hyperf\Database\Query\Builder` .
2024-05-23 13:29:02 +08:00
- [#6783 ](https://github.com/hyperf/hyperf/pull/6783 ) Support `insertOrIgnoreUsing` for `Hyperf\Database\Query\Builder` .
2024-05-23 13:47:31 +08:00
- [#6784 ](https://github.com/hyperf/hyperf/pull/6784 ) Added `getOrPut` and `getOrSet` into `Hyperf\Collection\Collection` .
2024-05-16 21:20:02 +08:00
2024-05-21 13:43:48 +08:00
## Optimized
- [#6777 ](https://github.com/hyperf/hyperf/pull/6777 ) Optimized StdoutLogger to improve log message handling.
2024-05-22 12:51:13 +08:00
- [#6778 ](https://github.com/hyperf/hyperf/pull/6778 ) Optimized Collection using EnumeratesValues.
2024-05-21 13:43:48 +08:00
2024-05-16 10:32:01 +08:00
# v3.1.22 - 2024-05-16
2024-05-09 22:22:46 +08:00
2024-05-15 13:22:10 +08:00
## Fixed
- [#6755 ](https://github.com/hyperf/hyperf/pull/6755 ) Fixed bug that exception normalizer cannot support symfony 7.
2024-05-13 20:19:06 +08:00
## Added
- [#6734 ](https://github.com/hyperf/hyperf/pull/6734 ) Auto complete options for as command and closure command.
2024-05-15 14:32:41 +08:00
- [#6746 ](https://github.com/hyperf/hyperf/pull/6746 ) Added `explain()` for `Hyperf\Database\Query\Builder` .
2024-05-15 10:56:30 +08:00
- [#6749 ](https://github.com/hyperf/hyperf/pull/6749 ) Added some rules for `hyperf/validation` .
2024-05-15 14:02:34 +08:00
- [#6752 ](https://github.com/hyperf/hyperf/pull/6752 ) Added `path` and `paths` methods to `Hyperf\Database\Seeders\Seed` .
2024-05-13 20:19:06 +08:00
2024-05-09 22:22:46 +08:00
# v3.1.21 - 2024-05-09
2024-04-26 10:26:29 +08:00
2024-05-09 19:44:48 +08:00
## Added
2024-05-09 21:45:34 +08:00
- [#6738 ](https://github.com/hyperf/hyperf/pull/6738 ) Added `unshift` method to `Hyperf\Collection\Collection` .
2024-05-09 19:44:48 +08:00
- [#6740 ](https://github.com/hyperf/hyperf/pull/6740 ) Support `useIndex` `forceIndex` and `ignoreIndex` for `Hyperf\Database\Query\Builder` .
2024-04-26 12:49:33 +08:00
## Optimized
2024-04-26 13:04:21 +08:00
- [#6716 ](https://github.com/hyperf/hyperf/pull/6716 ) [#6717 ](https://github.com/hyperf/hyperf/pull/6717 ) Optimized exchange declaration for amqp consumer messages.
2024-05-09 20:09:23 +08:00
- [#6721 ](https://github.com/hyperf/hyperf/pull/6721 ) Optimized the implementation of `When` Method.
2024-05-07 13:34:51 +08:00
- [#6731 ](https://github.com/hyperf/hyperf/pull/6731 ) Updated InteractsWithModelFactory to handle missing dependencies.
2024-04-26 12:49:33 +08:00
2024-05-09 21:40:44 +08:00
## Fixed
2024-05-09 22:22:46 +08:00
- [#6728 ](https://github.com/hyperf/hyperf/pull/6728 ) Fixed bug that `hyperf/watch` cannot work when using `hyperf/constants` enum mode.
2024-05-09 21:40:44 +08:00
2024-04-26 10:26:29 +08:00
# v3.1.20 - 2024-04-26
2024-04-18 10:23:24 +08:00
2024-04-22 09:46:29 +08:00
## Added
- [#6709 ](https://github.com/hyperf/hyperf/pull/6709 ) Added default `onClose` method for rpc Server.
2024-04-26 10:26:29 +08:00
- [#6712 ](https://github.com/hyperf/hyperf/pull/6712 ) Add new methods in `Hyperf\Collection\Collection` .
2024-04-22 09:46:29 +08:00
2024-04-19 10:30:51 +08:00
## Optimized
- [#6700 ](https://github.com/hyperf/hyperf/pull/6700 ) Optimized the implementation of `Pluralizer` .
2024-04-18 10:23:24 +08:00
# v3.1.19 - 2024-04-18
2024-04-12 10:50:19 +08:00
2024-04-17 11:11:08 +08:00
## Fixed
- [#6689 ](https://github.com/hyperf/hyperf/pull/6689 ) Fixed bug that socket-io cannot parse data with `?` but without `query` .
2024-04-17 20:41:31 +08:00
- [#6697 ](https://github.com/hyperf/hyperf/pull/6697 ) Fixed bug that `withoutBody` cannot not work when using `Swow` .
2024-04-17 11:11:08 +08:00
2024-04-12 16:19:26 +08:00
## Added
- [#6680 ](https://github.com/hyperf/hyperf/pull/6680 ) Added `Hyperf\Coordinator` helper functions.
2024-04-13 14:53:08 +08:00
- [#6681 ](https://github.com/hyperf/hyperf/pull/6681 ) Added option `type` for `gen:constant` which you can be used to generate files with `const` or `enum` .
2024-04-12 16:19:26 +08:00
2024-04-17 11:35:30 +08:00
## Optimized
- [#6686 ](https://github.com/hyperf/hyperf/pull/6686 ) Optimized `FswatchDriver` which don't restart server by empty reading.
2024-04-17 21:55:51 +08:00
- [#6698 ](https://github.com/hyperf/hyperf/pull/6698 ) Upgrade `hyperf/engine` to `v2.11` .
2024-04-18 09:45:26 +08:00
- [#6696 ](https://github.com/hyperf/hyperf/pull/6696 ) Automatic declare exchange when produce message.
2024-04-17 11:35:30 +08:00
2024-04-12 10:50:19 +08:00
# v3.1.18 - 2024-04-12
2024-04-10 17:59:13 +08:00
2024-04-11 18:18:35 +08:00
## Added
- [#6674 ](https://github.com/hyperf/hyperf/pull/6674 ) Added getConfig for redisPool.
2024-04-11 10:19:55 +08:00
## Fixed
- [#6664 ](https://github.com/hyperf/hyperf/pull/6664 ) Fixed bug that `isset` cannot check `null` in `Hyperf\Collection\Collection` .
2024-04-11 10:44:55 +08:00
## Optimized
- [#6668 ](https://github.com/hyperf/hyperf/pull/6668 ) Added error handling when using `callback` in multiplexed RPC.
2024-04-10 17:59:13 +08:00
# v3.1.17 - 2024-04-10
2024-03-28 15:01:02 +08:00
2024-04-03 11:21:14 +08:00
## Added
- [#6652 ](https://github.com/hyperf/hyperf/pull/6652 ) Added Str trim methods.
2024-04-11 10:44:55 +08:00
- [#6658 ](https://github.com/hyperf/hyperf/pull/6658 ) HEAD requests, attempt fallback to GET in `MiddlewareManager` .
2024-04-10 12:06:16 +08:00
- [#6665 ](https://github.com/hyperf/hyperf/pull/6665 ) Added logger for `Websocket` .
2024-04-03 11:21:14 +08:00
2024-04-09 10:11:46 +08:00
# Changed
- [#6661 ](https://github.com/hyperf/hyperf/pull/6661 ) Use `PHP_BINARY` instead of `php` as default php binary path for `hyperf/watcher` .
2024-04-02 10:40:09 +08:00
# v3.1.16 - 2024-04-02
2024-03-29 16:59:50 +08:00
2024-03-28 20:55:29 +08:00
## Added
- [#6632 ](https://github.com/hyperf/hyperf/pull/6632 ) Support to set headers for `websocket-client` .
2024-04-02 10:18:59 +08:00
- [#6648 ](https://github.com/hyperf/hyperf/pull/6648 ) Return result about websocket sender`push``disconnect`.
2024-03-28 20:55:29 +08:00
2024-03-29 11:42:53 +08:00
## Fixed
- [#6633 ](https://github.com/hyperf/hyperf/pull/6633 ) Fixed bug that crontab will be skipped sometimes.
2024-03-29 16:59:50 +08:00
- [#6635 ](https://github.com/hyperf/hyperf/pull/6635 ) Fixed AMQP `ConsumerMessage::getQueue` return type.
2024-03-29 11:42:53 +08:00
2024-03-31 19:35:28 +08:00
## Optimized
- [#6640 ](https://github.com/hyperf/hyperf/pull/6640 ) Support PHP8 Attribute for `hyperf/constants` .
2024-03-28 15:01:02 +08:00
# v3.1.15 - 2024-03-28
2024-03-21 22:26:15 +08:00
2024-03-22 14:01:08 +08:00
## Added
- [#6613 ](https://github.com/hyperf/hyperf/pull/6613 ) Added event of release connection for `hyperf/pool` .
2024-03-23 19:28:51 +08:00
## Optimized
- [#6616 ](https://github.com/hyperf/hyperf/pull/6616 ) [#6617 ](https://github.com/hyperf/hyperf/pull/6617 ) Format code by the latest `cs-fixer` .
2024-03-25 14:00:50 +08:00
## Deprecated
- [#6621 ](https://github.com/hyperf/hyperf/pull/6621 ) `WebSocketHandeShakeException` is deprecated, please use `WebSocketHandShakeException` instead.
2024-03-21 22:26:15 +08:00
# v3.1.14 - 2024-03-21
2024-03-14 18:23:13 +08:00
2024-03-21 22:11:05 +08:00
## Fixed
- [#6609 ](https://github.com/hyperf/hyperf/pull/6609 ) Fixed bug that the configurations will be cleared when the `scan` configuration does not exist.
2024-03-16 20:50:08 +08:00
## Added
- [#6594 ](https://github.com/hyperf/hyperf/pull/6594 ) Added `hyperf/carbon` component.
2024-03-15 17:31:48 +08:00
## Optimized
- [#6600 ](https://github.com/hyperf/hyperf/pull/6600 ) Optimized the worker process to no longer output warn information after exiting.
2024-03-20 15:25:20 +08:00
- [#6608 ](https://github.com/hyperf/hyperf/pull/6608 ) Optimized `CacheAheadAspect` which store cache in another coroutine instead of blocking current coroutine.
2024-03-15 17:31:48 +08:00
2024-03-14 18:23:13 +08:00
# v3.1.13 - 2024-03-14
2024-03-01 13:52:29 +08:00
2024-03-10 17:19:40 +08:00
## Added
- [#6576 ](https://github.com/hyperf/hyperf/pull/6576 ) Added `Hyperf\Stringable\Str::apa()` method.
2024-03-10 17:37:39 +08:00
- [#6577 ](https://github.com/hyperf/hyperf/pull/6577 ) Support setup command traits before running.
2024-03-13 16:47:07 +08:00
- [#6579 ](https://github.com/hyperf/hyperf/pull/6579 ) Added `now()` and `today()` helper functions.
2024-03-13 17:57:10 +08:00
- [#6590 ](https://github.com/hyperf/hyperf/pull/6590 ) Added `--graceful` to migrateCommand.
2024-03-10 17:19:40 +08:00
2024-03-14 10:26:59 +08:00
## Fixed
2024-03-14 18:15:40 +08:00
- [#6586 ](https://github.com/hyperf/hyperf/pull/6586 ) Fixed bug that the command description will cause parse error when contains `--` .
2024-03-14 10:26:59 +08:00
- [#6593 ](https://github.com/hyperf/hyperf/pull/6593 ) Fixed the error when register multi `AsCommand` .
2024-03-07 21:50:37 +08:00
# v3.1.12 - 2024-03-07
2024-03-04 13:47:35 +08:00
## Fixed
2024-03-07 21:43:39 +08:00
- [#6569 ](https://github.com/hyperf/hyperf/pull/6569 ) Fixed bug that reading messages failed when the channel have been removed from channel group.
2024-03-07 20:58:08 +08:00
- [#6561 ](https://github.com/hyperf/hyperf/pull/6561 ) Fixed bug that the relation comments cannot be created by `gen:model` .
2024-03-04 13:47:35 +08:00
- [#6566 ](https://github.com/hyperf/hyperf/pull/6566 ) Fixed bug that the numeric keys will be reset when using `$request->all()` .
2024-03-07 21:01:53 +08:00
- [#6567 ](https://github.com/hyperf/hyperf/pull/6567 ) Fixed bug that the `CrontabRegisterListener` don't check configuration `crontab.enable` .
2024-03-04 13:47:35 +08:00
2024-03-01 13:52:29 +08:00
# v3.1.11 - 2024-03-01
2024-02-23 11:07:51 +08:00
2024-02-26 21:46:06 +08:00
## Fixed
- [#6555 ](https://github.com/hyperf/hyperf/pull/6555 ) Fixed bug that `invalidOperator` cannot work well when using non-string operators.
2024-03-01 11:43:02 +08:00
- [#6563 ](https://github.com/hyperf/hyperf/pull/6563/files ) Fixed cron dispatcher sleep accurate.
2024-02-26 21:46:06 +08:00
2024-02-24 11:58:18 +08:00
## Added
- [#6550 ](https://github.com/hyperf/hyperf/pull/6550 ) Added default config of noop driver for `hyperf/opentracing` .
2024-03-01 13:52:29 +08:00
- [#6562 ](https://github.com/hyperf/hyperf/pull/6562 ) Added `SqliteDriver` for `hyperf/cache` .
2024-02-24 11:58:18 +08:00
2024-02-28 11:10:12 +08:00
## Optimized
- [#6556 ](https://github.com/hyperf/hyperf/pull/6556 ) You can set an expression to model parameters, but it is not standardized.
2024-02-23 11:07:51 +08:00
# v3.1.10 - 2024-02-23
2024-02-18 09:32:45 +08:00
2024-02-20 11:22:01 +08:00
## Added
- [#6542 ](https://github.com/hyperf/hyperf/pull/6542 ) Added `MemoryDriver` for `hyperf/cache` .
2024-02-20 12:05:45 +08:00
- [#6533 ](https://github.com/hyperf/hyperf/pull/6533 ) Added `database-sqlite` component.
2024-02-20 11:22:01 +08:00
2024-02-18 14:37:39 +08:00
## Optimized
- [#6539 ](https://github.com/hyperf/hyperf/pull/6539 ) Optimized `retry` helper function can accept array as first parameter.
2024-02-18 09:32:45 +08:00
# v3.1.9 - 2024-02-18
2024-02-01 10:18:57 +08:00
2024-02-08 23:33:32 +08:00
## Fixed
- [#6482 ](https://github.com/hyperf/hyperf/pull/6482 ) Fixed bug that the rule `decimal` cannot work well with `size` for `validation` .
2024-02-02 10:06:33 +08:00
## Added
- [#6518 ](https://github.com/hyperf/hyperf/pull/6518 ) Added amqpMessage property to events for amqp.
2024-02-18 09:21:05 +08:00
- [#6526 ](https://github.com/hyperf/hyperf/pull/6526 ) Added `Conditionable` trait to Crontab.
2024-02-02 10:06:33 +08:00
2024-02-01 14:16:45 +08:00
## Optimized
2024-02-18 09:20:19 +08:00
- [#6517 ](https://github.com/hyperf/hyperf/pull/6517 ) Fixed bug that the older versions of parsers cannot parse new messages for `async-queue` .
- [#6520 ](https://github.com/hyperf/hyperf/pull/6520 ) Refactor UdpSocketAspect to improve coroutine handling.
2024-02-01 14:16:45 +08:00
2024-02-01 10:18:57 +08:00
# v3.1.8 - 2024-02-01
2024-01-26 10:02:44 +08:00
2024-01-29 09:42:04 +08:00
## Fixed
2024-02-01 10:18:57 +08:00
- [#6509 ](https://github.com/hyperf/hyperf/pull/6509 ) Fixed bug that `Schedule::call()` cannot support `array` when using `crontab` .
2024-01-29 09:42:04 +08:00
2024-01-31 09:39:02 +08:00
## Optimized
2024-01-31 09:59:06 +08:00
- [#6511 ](https://github.com/hyperf/hyperf/pull/6511 ) Optimized the serialization of `Hyperf\AsyncQueue\JobMessage` .
2024-02-01 11:35:26 +08:00
- [#6516 ](https://github.com/hyperf/hyperf/pull/6516 ) Fixed bug that message will be lost when unpack failed.
2024-01-31 09:39:02 +08:00
2024-01-26 13:07:53 +08:00
## Added
- [#6504 ](https://github.com/hyperf/hyperf/pull/6504 ) Added `HostReaderInterface` for `rpc-multiplex` .
2024-01-26 10:02:44 +08:00
# v3.1.7 - 2024-01-26
2024-01-18 18:28:11 +08:00
2024-01-23 09:28:43 +08:00
## Fixed
- [#6491 ](https://github.com/hyperf/hyperf/pull/6491 ) Fixed bug that swagger validation collector cannot collect query parameters.
2024-01-25 15:23:31 +08:00
- [#6500 ](https://github.com/hyperf/hyperf/pull/6500 ) Fixed bug that inconsistent parsing response in Rpc-Multiplex client.
2024-01-23 09:28:43 +08:00
2024-01-22 10:37:52 +08:00
## Added
2024-01-22 14:46:37 +08:00
- [#6483 ](https://github.com/hyperf/hyperf/pull/6483 ) [#6487] (https://github.com/hyperf/hyperf/pull/6487) Added new ways to register crontab.
2024-01-22 15:40:06 +08:00
- [#6488 ](https://github.com/hyperf/hyperf/pull/6488 ) Added the default implement for `Psr\Log\LoggerInterface` .
2024-01-24 14:16:09 +08:00
- [#6495 ](https://github.com/hyperf/hyperf/pull/6495 ) Added cron support for closure-command.
2024-01-26 09:52:03 +08:00
- [#6501 ](https://github.com/hyperf/hyperf/pull/6501 ) Added `Collection::replace()` and `Collection::replaceRecursive()` .
2024-01-22 10:37:52 +08:00
2024-01-22 09:56:08 +08:00
## Optimized
- [#6480 ](https://github.com/hyperf/hyperf/pull/6480 ) Optimize log for crontab task skipped.
2024-01-22 16:45:43 +08:00
- [#6489 ](https://github.com/hyperf/hyperf/pull/6489 ) Removed the low version conditions of `php` and `swoole` .
2024-01-22 09:56:08 +08:00
2024-01-18 18:28:11 +08:00
# v3.1.6 - 2024-01-18
2024-01-04 21:54:55 +08:00
2024-01-08 21:45:10 +08:00
## Added
- [#6449 ](https://github.com/hyperf/hyperf/pull/6449 ) Added method `ReflectionManager::getAllClassesByFinder` .
2024-01-16 11:48:35 +08:00
- [#6468 ](https://github.com/hyperf/hyperf/pull/6468 ) Added support for Crontab specified operating environments.
2024-01-18 13:41:28 +08:00
- [#6471 ](https://github.com/hyperf/hyperf/pull/6471 ) Added method `Arr::remove` .
2024-01-18 11:48:01 +08:00
- [#6474 ](https://github.com/hyperf/hyperf/pull/6474 ) Added `Crontab::setOptions()` and `Crontab::getOptions()` .
2024-01-08 21:45:10 +08:00
2024-01-09 14:13:16 +08:00
## Optimized
- [#6440 ](https://github.com/hyperf/hyperf/pull/6440 ) Optimized code of `Hyperf\SocketIOServer\Parser\Decoder::decode()` .
2024-01-18 12:33:08 +08:00
- [#6472 ](https://github.com/hyperf/hyperf/pull/6472 ) Optimized code of `DispatcherFactory` which use `require` instead of `require_once` for loading `routes` .
2024-01-18 11:40:27 +08:00
- [#6473 ](https://github.com/hyperf/hyperf/pull/6473 ) Auto mkdir folder when using command `gen:swagger-schema` .
2024-01-18 18:28:11 +08:00
- [#6477 ](https://github.com/hyperf/hyperf/pull/6477 ) Optimized code about binding `serverMutex` and `taskMutex` for `Crontab` .
2024-01-19 09:51:43 +08:00
- [#6479 ](https://github.com/hyperf/hyperf/pull/6479 ) Updated the default mutex expiration time to 60 seconds.
2024-01-09 14:13:16 +08:00
2024-01-04 21:54:55 +08:00
# v3.1.5 - 2024-01-04
2023-12-29 09:30:38 +08:00
2024-01-01 20:01:33 +08:00
## Fixed
- [#6423 ](https://github.com/hyperf/hyperf/pull/6423 ) Fixed bug that the timezone of crontab task cannot work.
2024-01-04 21:25:56 +08:00
- [#6436 ](https://github.com/hyperf/hyperf/pull/6436 ) Fixed bug that the generator which be used to generate amqp consumer cannot work.
2024-01-01 20:01:33 +08:00
2024-01-04 10:42:11 +08:00
## Added
- [#6431 ](https://github.com/hyperf/hyperf/pull/6431 ) Added `UnsetContextInTaskWorkerListener` which can be used to unset connection context when using non-coroutine task worker.
2024-01-04 12:19:18 +08:00
## Optimized
2024-01-04 21:47:09 +08:00
- [#6435 ](https://github.com/hyperf/hyperf/pull/6435 ) [#6437 ](https://github.com/hyperf/hyperf/pull/6437 ) Optimized model generator which can generate property comments with `use` .
2024-01-04 12:19:18 +08:00
2023-12-29 09:30:38 +08:00
# v3.1.4 - 2023-12-29
2023-12-21 20:57:52 +08:00
2023-12-28 11:36:50 +08:00
## Fixed
- [#6419 ](https://github.com/hyperf/hyperf/pull/6419 ) Fixed bug that `prepareHandler` cannot work sometimes for `circuit-breaker` .
2023-12-28 16:46:40 +08:00
## Added
- [#6426 ](https://github.com/hyperf/hyperf/pull/6426 ) Added Annotation `RewriteReturnType` which used to rewrite the return type when generating models.
2023-12-25 14:07:48 +08:00
## Optimized
- [#6415 ](https://github.com/hyperf/hyperf/pull/6415 ) Throw `InvalidArgumentException` instead of `TypeError` for decoding an empty string when using `Base62::decode` .
2023-12-21 20:57:52 +08:00
# v3.1.3 - 2023-12-21
2023-12-15 09:36:36 +08:00
2023-12-15 14:55:23 +08:00
## Fixed
- [#6389 ](https://github.com/hyperf/hyperf/pull/6389 ) Fixed bug that es version cannot be found when the index is null.
2023-12-20 18:27:21 +08:00
- [#6406 ](https://github.com/hyperf/hyperf/pull/6406 ) Fixed bug that `Hyperf\Scout\Searchable` don't import namespace of function `config` .
2023-12-15 14:55:23 +08:00
2023-12-19 17:01:35 +08:00
## Added
- [#6398 ](https://github.com/hyperf/hyperf/pull/6398 ) Added `timezone` parameter to `hyperf/crontab` component.
2023-12-21 20:34:18 +08:00
- [#6402 ](https://github.com/hyperf/hyperf/pull/6402 ) Added `template_suffix` configuration to `twig` engine.
2023-12-19 17:01:35 +08:00
2023-12-15 09:36:36 +08:00
# v3.1.2 - 2023-12-15
2023-12-08 09:44:24 +08:00
2023-12-11 11:14:01 +08:00
## Fixed
- [#6372 ](https://github.com/hyperf/hyperf/pull/6372 ) Fixed bug that AOP not working when using variadic parameters.
2023-12-12 16:00:41 +08:00
- [#6374 ](https://github.com/hyperf/hyperf/pull/6374 ) Fixed bug that `RateLimitAnnotationAspect::getWeightingAnnotation()` cannot work when using config `rate_limit.storage` .
2023-12-14 17:32:53 +08:00
- [#6384 ](https://github.com/hyperf/hyperf/pull/6384 ) Fixed bug that `scout` cannot work when using elasticsearch(which version is less than 7) without index.
2023-12-11 11:14:01 +08:00
2023-12-08 11:15:29 +08:00
## Added
- [#6357 ](https://github.com/hyperf/hyperf/pull/6357 ) Support symfony 7.x for some components such as `command` `config` `devtool` `di` and `server` .
2023-12-12 15:37:26 +08:00
- [#6373 ](https://github.com/hyperf/hyperf/pull/6373 ) Support `ping` method for `grpc client` .
2023-12-12 17:40:33 +08:00
- [#6379 ](https://github.com/hyperf/hyperf/pull/6379 ) Support to read custom attribute for validation when using swagger.
2023-12-14 12:05:10 +08:00
- [#6380 ](https://github.com/hyperf/hyperf/pull/6380 ) Support collect swagger validation rules and attribute for mediaType request body.
2023-12-08 11:15:29 +08:00
2023-12-12 16:06:45 +08:00
## Optimized
- [#6376 ](https://github.com/hyperf/hyperf/pull/6376 ) Don't need to close swoole short name when don't use swoole or don't require `hyperf/polyfill-coroutine` component.
2023-12-08 09:44:24 +08:00
# v3.1.1 - 2023-12-08
2023-12-01 00:00:30 +08:00
2023-12-04 16:39:23 +08:00
## Fixed
- [#6347 ](https://github.com/hyperf/hyperf/pull/6347 ) Fixed bug that the view function may add redundant content-type to header.
2023-12-05 10:11:19 +08:00
- [#6352 ](https://github.com/hyperf/hyperf/pull/6352 ) Fixed bug that nacos config center cannot work when using grpc protocol.
2023-12-05 14:15:56 +08:00
- [#6350 ](https://github.com/hyperf/hyperf/pull/6350 ) Fixed bug that the recv channel cannot be found, because `GrpcClient::runReceiveCoroutine` will unset streamId before recv method.
2023-12-06 13:31:17 +08:00
- [#6361 ](https://github.com/hyperf/hyperf/pull/6361 ) Fixed bug that `Hyperf\SocketIOServer\Emitter\Future` cannot be resolved.
2023-12-11 09:53:47 +08:00
- [#6369 ](https://github.com/hyperf/hyperf/pull/6369 ) Fixed bug that the main process did not handle the abnormal exit of the fork process.
2023-12-04 16:39:23 +08:00
2023-12-01 14:59:45 +08:00
## Added
- [#6342 ](https://github.com/hyperf/hyperf/pull/6342 ) Added `Coroutine::fork()` method and `Coroutine::pid()` method.
2023-12-08 09:44:24 +08:00
- [#6360 ](https://github.com/hyperf/hyperf/pull/6360 ) Added response `content-type` header for swagger server.
2023-12-07 11:40:41 +08:00
- [#6363 ](https://github.com/hyperf/hyperf/pull/6363 ) Added callable type support to the fallback property of CircuitBreaker Attribute.
2023-12-01 14:59:45 +08:00
2023-12-01 00:00:30 +08:00
# v3.1.0 - 2023-12-01
2023-06-06 09:52:53 +08:00
## Dependencies Upgrade
- Upgrade the php version to `>=8.1`
- Upgrade the swoole version to `>=5.0`
- Upgrade `hyperf/engine` to `^2.0`
2023-06-07 10:16:25 +08:00
- Upgrade `phpunit/phpunit` to `^10.0`
2023-06-06 09:52:53 +08:00
## Swow Supported
2023-06-17 07:56:21 +08:00
- [#5843 ](https://github.com/hyperf/hyperf/pull/5843 ) Support `Swow` for `reactive-x` .
2023-06-17 21:12:15 +08:00
- [#5844 ](https://github.com/hyperf/hyperf/pull/5844 ) Support `Swow` for `socketio-server` .
2023-06-06 09:52:53 +08:00
## Added
2023-06-16 15:56:37 +08:00
- [x] Support [Psr7Plus ](https://github.com/swow/psr7-plus ).
2023-06-15 18:15:06 +08:00
- [#5828 ](https://github.com/hyperf/hyperf/pull/5828 ) Support swow psr7-plus interface for `http-message` .
2023-06-16 15:56:37 +08:00
- [#5839 ](https://github.com/hyperf/hyperf/pull/5839 ) Support swow psr7-plus interface for all components.
2023-06-07 17:00:55 +08:00
- [x] Support [pest ](https://github.com/pestphp/pest ).
- [x] Added `hyperf/helper` component.
2023-06-16 19:57:19 +08:00
- [x] Added `hyperf/polyfill-coroutine` component.
2023-06-08 17:56:39 +08:00
- [#5815 ](https://github.com/hyperf/hyperf/pull/5815 ) Added alias as `mysql` for `pdo` in `hyperf/db` .
2023-06-18 19:40:39 +08:00
- [#5849 ](https://github.com/hyperf/hyperf/pull/5849 ) Support for insert update and select using enums.
2023-07-03 12:40:26 +08:00
- [#5894 ](https://github.com/hyperf/hyperf/pull/5894 ) [#5897 ](https://github.com/hyperf/hyperf/pull/5897 ) Added `model-factory` support for `hyperf/testing` .
2023-07-03 18:27:25 +08:00
- [#5898 ](https://github.com/hyperf/hyperf/pull/5898 ) Added `toRawSql()` to Query Builders.
2023-07-05 09:55:50 +08:00
- [#5906 ](https://github.com/hyperf/hyperf/pull/5906 ) Added `getRawQueryLog()` to Database Connection.
2023-07-09 11:27:32 +08:00
- [#5915 ](https://github.com/hyperf/hyperf/pull/5915 ) Added `data_forget` helper.
2023-07-09 13:30:28 +08:00
- [#5914 ](https://github.com/hyperf/hyperf/pull/5914 ) Added `Str::isUrl()` and use it from the validator.
2023-07-10 09:56:25 +08:00
- [#5918 ](https://github.com/hyperf/hyperf/pull/5918 ) Added `Arr::isList()` method.
2023-07-11 11:26:40 +08:00
- [#5925 ](https://github.com/hyperf/hyperf/pull/5925 ) [#5926 ](https://github.com/hyperf/hyperf/pull/5926 ) Allow model attributes to be casted to/from an Enum.
2023-07-14 09:34:12 +08:00
- [#5930 ](https://github.com/hyperf/hyperf/pull/5930 ) [#5934 ](https://github.com/hyperf/hyperf/pull/5934 ) Added `AsCommand` annotation and `ClosureCommand` support.
2023-07-17 19:31:14 +08:00
- [#5950 ](https://github.com/hyperf/hyperf/pull/5950 ) Added `Job::setMaxAttempts` method and `dispatch` helper function for `hyperf/async-queue` .
2023-07-23 20:01:33 +08:00
- [#5967 ](https://github.com/hyperf/hyperf/pull/5967 ) Added component `hyperf/migration-generator` which used to generate migrations from databases.
2023-07-31 14:37:29 +08:00
- [#5983 ](https://github.com/hyperf/hyperf/pull/5983 ) [#5985 ](https://github.com/hyperf/hyperf/pull/5985 ) Added `skipCacheResults` to annotations of `hyperf/cache` .
2023-08-25 11:55:47 +08:00
- [#5994 ](https://github.com/hyperf/hyperf/pull/5994 ) Added `events` of `crontab` lifecycle.
2023-08-16 18:08:51 +08:00
- [#6039 ](https://github.com/hyperf/hyperf/pull/6039 ) Support semantic crontab rules.
2023-08-25 11:55:47 +08:00
- [#6082 ](https://github.com/hyperf/hyperf/pull/6082 ) Added `hyperf/stdlib` component.
2023-08-25 21:34:08 +08:00
- [#6085 ](https://github.com/hyperf/hyperf/pull/6085 ) Added an error count to the database connection to ensure that the connection can be reset when occur too many exceptions.
2023-08-31 19:56:59 +08:00
- [#6106 ](https://github.com/hyperf/hyperf/pull/6106 ) Support some validation rules.
2023-09-02 23:09:18 +08:00
- [#6124 ](https://github.com/hyperf/hyperf/pull/6124 ) Added `Hyperf\AsyncQueue\Job::fail()` .
2023-11-03 15:28:43 +08:00
- [#6259 ](https://github.com/hyperf/hyperf/pull/6259 ) Support to use model builder as the column in `Hyperf\Database\Query\Builder\addSelect` .
2023-11-23 20:55:38 +08:00
- [#6301 ](https://github.com/hyperf/hyperf/pull/6301 ) Improve storage switcher for rate-limit.
2023-11-30 17:23:17 +08:00
- [#6338 ](https://github.com/hyperf/hyperf/pull/6338 ) Added config `processors` for swagger.
2023-06-06 09:52:53 +08:00
## Optimized
- Move Prometheus driver dependency to suggest.
2023-06-24 14:49:49 +08:00
- [#5586 ](https://github.com/hyperf/hyperf/pull/5586 ) Support grpc streaming for nacos naming service.
2023-06-20 12:11:58 +08:00
- [#5866 ](https://github.com/hyperf/hyperf/pull/5866 ) Use `StrCache` instead of `Str` in special cases.
2023-06-24 09:47:30 +08:00
- [#5872 ](https://github.com/hyperf/hyperf/pull/5872 ) Avoid to execute the refresh callback more than once when calling `refresh()` multi times.
2023-06-26 17:11:21 +08:00
- [#5879 ](https://github.com/hyperf/hyperf/pull/5879 ) [#5878 ](https://github.com/hyperf/hyperf/pull/5878 ) Improve `Command` .
2023-07-04 09:56:13 +08:00
- [#5901 ](https://github.com/hyperf/hyperf/pull/5901 ) Optimized code for identifer established by the rpc client that must contain a string,number or null if included.
2023-07-05 09:54:22 +08:00
- [#5905 ](https://github.com/hyperf/hyperf/pull/5905 ) Forget with collections.
2023-07-09 19:52:01 +08:00
- [#5917 ](https://github.com/hyperf/hyperf/pull/5917 ) Upgrade URL pattern for `Str::isUrl()` .
2023-07-10 16:08:17 +08:00
- [#5920 ](https://github.com/hyperf/hyperf/pull/5920 ) add the `\Stringable` interface to classes that have `__toString()` method.
2023-07-14 18:43:45 +08:00
- [#5945 ](https://github.com/hyperf/hyperf/pull/5945 ) Don't sync config frequently when listen more than one namespace for apollo config center.
2023-07-15 09:09:38 +08:00
- [#5948 ](https://github.com/hyperf/hyperf/pull/5948 ) Optimized `Hyperf\Coroutine\Locker` .
2023-07-19 16:52:12 +08:00
- [#5960 ](https://github.com/hyperf/hyperf/pull/5960 ) Allowed set poolName in Annotation.
2023-07-26 09:25:51 +08:00
- [#5972 ](https://github.com/hyperf/hyperf/pull/5972 ) `Collection::except()` with null returns all.
2023-07-26 16:20:38 +08:00
- [#5973 ](https://github.com/hyperf/hyperf/pull/5973 ) Simplified the handlers definition of logger.
2023-08-09 12:19:05 +08:00
- [#6010 ](https://github.com/hyperf/hyperf/pull/6010 ) Throw exception when cast class is not existed.
2023-08-17 10:00:28 +08:00
- [#6030 ](https://github.com/hyperf/hyperf/pull/6030 ) Support buffer mechanism in standalone process of metric.
2023-09-05 10:52:48 +08:00
- [#6131 ](https://github.com/hyperf/hyperf/pull/6131 ) Throw invalid argument exception when the crontab task is `null` .
2023-09-22 16:30:01 +08:00
- [#6172 ](https://github.com/hyperf/hyperf/pull/6172 ) Optimized `ProcessManager` to make the `running` status more clear.
2023-09-30 23:16:50 +08:00
- [#6184 ](https://github.com/hyperf/hyperf/pull/6184 ) Set logger when using safe socket in coroutine style tcp server.
2023-11-01 11:22:10 +08:00
- [#6247 ](https://github.com/hyperf/hyperf/pull/6247 ) Optimized code that you can get request from `BadRequestHttpException` .
2023-06-06 09:52:53 +08:00
## Removed
2023-06-07 17:00:55 +08:00
- [x] Remove unused codes in `hyperf/utils` .
2023-06-07 20:55:22 +08:00
- [x] Remove redundant `setAccessible` methods.
2023-06-07 22:31:03 +08:00
- [x] Remove deprecated codes.
2023-06-08 16:48:41 +08:00
- [#5813 ](https://github.com/hyperf/hyperf/pull/5813 ) Removed support for swoole 4.x
2023-06-20 11:16:52 +08:00
- [#5859 ](https://github.com/hyperf/hyperf/pull/5859 ) Removed string cache from `Hyperf\Stringable\Str`
2023-08-16 20:45:43 +08:00
- [#6040 ](https://github.com/hyperf/hyperf/pull/6040 ) Removed some deprecated methods from `Hyperf\Di\Annotation\AbstractAnnotation` .
2023-08-17 14:22:08 +08:00
- [#6043 ](https://github.com/hyperf/hyperf/pull/6043 ) Removed deprecated `Hyperf\Coroutine\Traits\Container` .
2023-11-01 10:32:14 +08:00
- [#6244 ](https://github.com/hyperf/hyperf/pull/6244 ) Removed deprecated component `swoole-tracker` .
2023-06-07 17:00:55 +08:00
2023-06-18 20:57:40 +08:00
## Changed
2023-10-10 10:05:43 +08:00
- [x] Throw exceptions when the redis option key is invalid.
2023-06-18 20:57:40 +08:00
- [#5847 ](https://github.com/hyperf/hyperf/pull/5847 ) Changed the default redis key for metric.
2023-07-14 16:19:52 +08:00
- [#5943 ](https://github.com/hyperf/hyperf/pull/5943 ) Don't remove the node from load balancer of `json rpc http transporter` when the status code isn't 200.
2023-07-27 10:25:49 +08:00
- [#5961 ](https://github.com/hyperf/hyperf/pull/5961 ) Using `enum` instead of `class` for `Hyperf\Amqp\Result` and `Hyperf\Amqp\Message\Type` .
2023-08-15 16:48:23 +08:00
- [#6022 ](https://github.com/hyperf/hyperf/pull/6022 ) When using `Base62::decode` to decode the incorrect data, it should be thrown `InvalidArgumentException` instead of `TypeError` .
2023-09-04 21:23:06 +08:00
- [#6128 ](https://github.com/hyperf/hyperf/pull/6128 ) When using multi-level directories for `hyperf/config` , you can use `config('a.c')` to get the configurations from `autoload/a/c.php` .
2023-06-08 15:14:17 +08:00
## Fixed
- [#5771 ](https://github.com/hyperf/hyperf/pull/5771 ) Fixed bug that the return type of `Model::updateOrInsert` isn't boolean.
2023-08-16 13:50:12 +08:00
- [#6033 ](https://github.com/hyperf/hyperf/pull/6033 ) Fixed bug that `RequestContext` and `ResponseContext` cannot get instance from another coroutines.
2023-08-18 15:28:12 +08:00
- [#6056 ](https://github.com/hyperf/hyperf/pull/6056 ) Fixed bug that `Hyperf\HttpServer\Request::hasFile()` don't support `Swow` .
2023-11-03 16:32:47 +08:00
- [#6260 ](https://github.com/hyperf/hyperf/pull/6260 ) Fixed bug that logger cannot work in `LoadBalancerInterface::refresh()` .
2023-08-09 09:55:43 +08:00
## Deprecated
- `Hyperf\DB\PgSQL\PgSQLConnection::str_replace_once` will be deprecated, please use `Hyperf\DB\PgSQL\PgSQLConnection::strReplaceOnce` instead.
- `Hyperf\Database\PgSQL\PostgreSqlSwooleExtConnection::str_replace_once` will be deprecated, please use `Hyperf\Database\PgSQL\PostgreSqlSwooleExtConnection::strReplaceOnce` instead.