JSON Machine v0.8.0 Release Notes

  • ๐Ÿ”„ Changed

    • ๐Ÿšš Internal decoders moved to ItemDecoder. ErrorWrappingDecoder decorator now requires ItemDecoder as well.
    • โฌ‡๏ธ Dropped PHP 5.6 support.

    ๐Ÿ—„ Deprecated

    • ๐Ÿ—„ JsonMachine\JsonMachine entry point class is deprecated, use JsonMachine\Items instead.
    • ๐Ÿ—„ JsonMachine\JsonDecoder\Decoder interface is deprecated. Use JsonMachine\JsonDecoder\ItemDecoder instead.

    โž• Added

    • ๐Ÿ†• New entry point class Items replaces JsonMachine.
    • 0๏ธโƒฃ Object as default decoding structure instead of array in Items.
    • ๐Ÿ“œ Items::getIterator() now returns Parser's iterator directly. Call Items::getIterator() ๐Ÿ“œ instead of JsonMachine::getIterator()::getIterator() to get to Parser's iterator if you need it. Fixes https://stackoverflow.com/questions/63706550
    • Items uses options in its factory methods instead of growing number of many parameters. See Options in README.
    • Items introduces new debug option. See Options in README.
    • Noticeable performance improvements. What took 10 seconds in 0.7.* takes about 7 seconds in 0.8.0.