Changelog History
Page 3
-
v0.5.0 Changes
December 08, 2020🆕 New features
- Introduced
FileChunksclass. Takes care of the proper resource management when iterating viaJsonMachine::fromFile(). It is used internally, and you probably won't come across it. - 🆕 New
ErrorWrappingDecoder. Use it when you want to skip malformed JSON items. See [Decoders](README.md#decoders).
BC breaks
StreamBytesandStringBytesrenamed toStreamChunksandStringChunks. These are internal classes, and you probably won't notice the change unless you use them directly for some reason.
- Introduced
-
v0.4.1 Changes
December 01, 2020🚀 See CHANGELOG for changes and release notes.
-
v0.4.0 Changes
November 09, 2020🆕 New features
- [Custom decoder](README.md#custom-decoder)
- 👍 PHP 8 support (thanks @snapshotpl) ## BC breaks
ext-jsonis not required incomposer.jsonanymore, 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
UnexpectedEndSyntaxErrorExceptionon 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 wayobjects()works is that it casts decoded arrays to objects. It brings some unnecessary overhead and risks on huge datasets. 0️⃣ Alternative is to useExtJsonDecoderwhich decodes items as objects by default (same asjson_decode). ```php <?php
use JsonMachine\JsonDecoder\ExtJsonDecoder; use JsonMachine\JsonMachine;
$jsonMachine = JsonMachine::fromFile('path/to.json', '', new ExtJsonDecoder);
Therefore no additional casting is required. - Invalid json object keys will now throw and won't be ignored anymore. ## 🛠 Fixed bugs - Decoding of json object keys checks for errors and does not silently ignore them. -
v0.3.3 Changes
December 20, 2019🆕 New Features (1)
👀 Minor feature:
JsonMachine::fromIterable()- an alias to constructor, but emphasizing the fact that an iterable can be a source of json data. Very handy in conjunction with Symfony HttpClient and newhttpClientChunkshelper. See example in src/examples.
👍 Also PHP 7.4 support🐛 Bug Fixes (3)
#6, thanks @Mwisho
#14, thanks @formatz
#19, thanks @LaravelFreelancerNLBC breaks (0)
-
v0.3.2 Changes
March 20, 2019 -
v0.3.1 Changes
March 16, 2019🆕 New Features (3)
🐳 Docker: Each PHP docker image has xdebug installed
🐳 Docker: Testing script tries to pull the newest image of each supported php version
⚡️ Docker: Updated PHP 7.3 version to stable🐛 Bug Fixes (4)
Json pointer was failing when iterated subtree was not the first at its level #7. Thanks, @rybakit.
🛠 Fixedjson_decodecall on performace test to return array same as JsonMachine
Got rid of the quiet dependency on local./composerbinary
Reworded guzzle example #3. Thanks, @Mwisho.BC breaks (2)
Only lower case of
null,trueandfalseis allowed - was non standard and shouldn't affect anyone
👌 Support for+sign in front of positive number was dropped - was non standard and shouldn't affect anyone -
v0.3.0 Changes
December 13, 2018🆕 New Features (1)
- JsonMachine::fromString now consumes about 4× less memory than previous version, by utilizing PHP's copy on write behaviour. JSON string is not copied anymore - only iterated over.
🐛 Bug Fixes (0)
BC breaks (1)
- Internal: Constructor signature of
Lexerhas changed. It newly requires\Traversableinstead of a stream resource. It doesn't affect public JsonMachine API.
-
v0.2.1 Changes
November 29, 2018License, readme and logo changes.
-
v0.2.0 Changes
November 29, 2018- 📇 Renamed to JSON Machine
- 🐳 Tests all supported PHP versions via Docker
- 🆕 New logo
-
v0.1.0
November 12, 2018