Skip to content

Commit 5d4aa1a

Browse files
committed
Prepare v1.2.0 release
1 parent 952539b commit 5d4aa1a

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

CHANGELOG.md

+27
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# Changelog
22

3+
## 1.2.0 (2022-05-13)
4+
5+
* Feature: Support custom EOL character when encoding CSV.
6+
(#26 by @clue)
7+
8+
```php
9+
$csv = new Clue\React\Csv\Encoder($stdout, ',', '"', '\\', "\r\n");
10+
```
11+
12+
* Feature: Add `headers` event to `AssocDecoder` class.
13+
(#29 by @SimonFrings)
14+
15+
```php
16+
$csv->on('headers', function (array $headers) {
17+
var_dump($headers); // e.g. $headers = ['name','age'];
18+
});
19+
```
20+
21+
* Feature: Check type of incoming `data` before trying to decode CSV.
22+
(#27 by @clue)
23+
24+
* Feature: Support parsing multiline values starting with quoted newline.
25+
(#25 by @KamilBalwierz)
26+
27+
* Improve documentation and examples.
28+
(#30 and #28 by @SimonFrings, #22 and #24 by @clue and #23 by @PaulRotmann)
29+
330
## 1.1.0 (2020-12-10)
431

532
* Feature: Add decoding benchmark plus benchmark for GZIP-compressed CSV files.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ This project follows [SemVer](https://semver.org/).
386386
This will install the latest supported version:
387387

388388
```bash
389-
$ composer require clue/reactphp-csv:^1.1
389+
$ composer require clue/reactphp-csv:^1.2
390390
```
391391

392392
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.

0 commit comments

Comments
 (0)