JSON Machine v0.8.0 Release Notes
-
๐ Changed
- ๐ Internal decoders moved to
ItemDecoder
.ErrorWrappingDecoder
decorator now requiresItemDecoder
as well. - โฌ๏ธ Dropped PHP 5.6 support.
๐ Deprecated
- ๐
JsonMachine\JsonMachine
entry point class is deprecated, useJsonMachine\Items
instead. - ๐
JsonMachine\JsonDecoder\Decoder
interface is deprecated. UseJsonMachine\JsonDecoder\ItemDecoder
instead.
โ Added
- ๐ New entry point class
Items
replacesJsonMachine
. - 0๏ธโฃ Object as default decoding structure instead of array in
Items
. - ๐
Items::getIterator()
now returnsParser
's iterator directly. CallItems::getIterator()
๐ instead ofJsonMachine::getIterator()::getIterator()
to get toParser
's iterator if you need it. Fixes https://stackoverflow.com/questions/63706550 Items
usesoptions
in its factory methods instead of growing number of many parameters. See Options in README.Items
introduces newdebug
option. See Options in README.- Noticeable performance improvements. What took 10 seconds in
0.7.*
takes about 7 seconds in0.8.0
.
- ๐ Internal decoders moved to