Skip to content

Commit 7b4428d

Browse files
committed
Prepare v0.5.6 release
1 parent cde8b6f commit 7b4428d

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# Changelog
22

3+
## 0.5.6 (2021-12-14)
4+
5+
* Feature: Support optional `charset` parameter for full UTF-8 support (`utf8mb4`).
6+
(#135 by @clue)
7+
8+
```php
9+
$db = $factory->createLazyConnection('localhost?charset=utf8mb4');
10+
```
11+
12+
* Feature: Improve error reporting, include MySQL URI and socket error codes in all connection errors.
13+
(#141 by @clue and #138 by @SimonFrings)
14+
15+
For most common use cases this means that simply reporting the `Exception`
16+
message should give the most relevant details for any connection issues:
17+
18+
```php
19+
$db->query($sql)->then(function (React\MySQL\QueryResult $result) {
20+
// …
21+
}, function (Exception $e) {
22+
echo 'Error:' . $e->getMessage() . PHP_EOL;
23+
});
24+
```
25+
26+
* Feature: Full support for PHP 8.1 release.
27+
(#150 by @clue)
28+
29+
* Feature: Provide limited support for `NO_BACKSLASH_ESCAPES` SQL mode.
30+
(#139 by @clue)
31+
32+
* Update project dependencies, simplify socket usage, and improve documentation.
33+
(#136 and #137 by @SimonFrings)
34+
35+
* Improve test suite and add `.gitattributes` to exclude dev files from exports.
36+
Run tests on PHPUnit 9 and PHP 8 and clean up test suite.
37+
(#142 and #143 by @SimonFrings)
38+
339
## 0.5.5 (2021-07-19)
440

541
* Feature: Simplify usage by supporting new default loop.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,13 +497,13 @@ See also the [`close()`](#close) method.
497497

498498
## Install
499499

500-
The recommended way to install this library is [through Composer](https://getcomposer.org).
500+
The recommended way to install this library is [through Composer](https://getcomposer.org/).
501501
[New to Composer?](https://getcomposer.org/doc/00-intro.md)
502502

503503
This will install the latest supported version:
504504

505505
```bash
506-
$ composer require react/mysql:^0.5.5
506+
$ composer require react/mysql:^0.5.6
507507
```
508508

509509
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
516516
## Tests
517517

518518
To run the test suite, you first need to clone this repo and then install all
519-
dependencies [through Composer](https://getcomposer.org):
519+
dependencies [through Composer](https://getcomposer.org/):
520520

521521
```bash
522522
$ composer install

0 commit comments

Comments
 (0)