From 7b4428da4d625787a0ce1420b497dadcd70ff7bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Tue, 14 Dec 2021 12:25:28 +0100 Subject: [PATCH] Prepare v0.5.6 release --- CHANGELOG.md | 36 ++++++++++++++++++++++++++++++++++++ README.md | 6 +++--- 2 files changed, 39 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b647644..8c45264 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,41 @@ # Changelog +## 0.5.6 (2021-12-14) + +* Feature: Support optional `charset` parameter for full UTF-8 support (`utf8mb4`). + (#135 by @clue) + + ```php + $db = $factory->createLazyConnection('localhost?charset=utf8mb4'); + ``` + +* Feature: Improve error reporting, include MySQL URI and socket error codes in all connection errors. + (#141 by @clue and #138 by @SimonFrings) + + For most common use cases this means that simply reporting the `Exception` + message should give the most relevant details for any connection issues: + + ```php + $db->query($sql)->then(function (React\MySQL\QueryResult $result) { + // … + }, function (Exception $e) { + echo 'Error:' . $e->getMessage() . PHP_EOL; + }); + ``` + +* Feature: Full support for PHP 8.1 release. + (#150 by @clue) + +* Feature: Provide limited support for `NO_BACKSLASH_ESCAPES` SQL mode. + (#139 by @clue) + +* Update project dependencies, simplify socket usage, and improve documentation. + (#136 and #137 by @SimonFrings) + +* Improve test suite and add `.gitattributes` to exclude dev files from exports. + Run tests on PHPUnit 9 and PHP 8 and clean up test suite. + (#142 and #143 by @SimonFrings) + ## 0.5.5 (2021-07-19) * Feature: Simplify usage by supporting new default loop. diff --git a/README.md b/README.md index a15fee6..5189a23 100644 --- a/README.md +++ b/README.md @@ -497,13 +497,13 @@ See also the [`close()`](#close) method. ## Install -The recommended way to install this library is [through Composer](https://getcomposer.org). +The recommended way to install this library is [through Composer](https://getcomposer.org/). [New to Composer?](https://getcomposer.org/doc/00-intro.md) This will install the latest supported version: ```bash -$ composer require react/mysql:^0.5.5 +$ composer require react/mysql:^0.5.6 ``` See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. @@ -516,7 +516,7 @@ It's *highly recommended to use the latest supported PHP version* for this proje ## Tests To run the test suite, you first need to clone this repo and then install all -dependencies [through Composer](https://getcomposer.org): +dependencies [through Composer](https://getcomposer.org/): ```bash $ composer install