# Changelog ## master ### New features - Introduced `FileChunks` class. Takes care of the proper resource management when iterating via `JsonMachine::fromFile()`. It is used internally, and you probably won't come across it. ### BC breaks - `StreamBytes` and `StringBytes` renamed to `StreamChunks` and `StringChunks`. These are internal classes, and you probably won't notice the change unless you use them directly for some reason.

## 0.4.1 ### New features - Tracking of parsing progress

## 0.4.0 ### New features - [Custom decoder](README.md#custom-decoder) - PHP 8 support (thanks @snapshotpl) ### BC breaks - `ext-json` is not required in `composer.json` anymore, because custom decoder might not need it. However **built-in decoders depend on it** so it must be present if you use them. - All exceptions now extend `JsonMachineException` (thanks @gabimem) - Throws `UnexpectedEndSyntaxErrorException` on an unexpected end of JSON structure (thanks @gabimem) - Function `httpClientChunks()` is **deprecated** so that compatibility with Symfony HttpClient is not on the shoulders of JSON Machine maintainer. The code is simple and everyone can make their own function and maintain it. The code was moved to [examples](src/examples/symfonyHttpClient.php). - Function `objects()` is **deprecated**. The way `objects()` works is that it casts decoded arrays to objects. It brings some unnecessary overhead and risks on huge datasets. Alternative is to use `ExtJsonDecoder` which decodes items as objects by default (same as `json_decode`). ```php