Skip to content

Releases: pcrov/JsonReader

JsonReader 1.0.3

17 Jun 14:15
339b889
Compare
Choose a tag to compare

Relaxes the composer constraint on psr/http-message to allow for using v2.

JsonReader 1.0.2

21 Nov 12:15
4b282c9
Compare
Choose a tag to compare

The reader should be a bit more memory friendly if you're calling value on objects or arrays.

Dependence on the Ctype extension has been dropped. That it remained for so long is a testament to my laziness.

JsonReader 1.0.1

29 Oct 20:28
8df4871
Compare
Choose a tag to compare

This release adds support for PHP 8 and drops support for PHP 7.2 and under.

The changes are purely on the testing and requirements side of things, there is nothing to consider when upgrading.

JsonReader 1.0.0

13 Jan 23:27
83ff905
Compare
Choose a tag to compare

This package has been stable for quite a while now, this release just makes that official.

There are no major changes since 0.8.0.

JsonReader 0.8.0

02 Aug 22:12
f97fb9a
Compare
Choose a tag to compare

Support for PSR-7 streams have been added with a new input stream and associated method on JsonReader, psr7Stream.

JsonReader 0.7.1

13 Mar 01:48
8baeee5
Compare
Choose a tag to compare

The parser has been rewritten, and along with further tweaks to the lexer and reader, makes for another performance bump.

There are no API changes in this release.

JsonReader 0.7.0

05 Mar 15:12
9194f17
Compare
Choose a tag to compare

This release features an overhaul in lexing as well as other performance improvements. Things should be a bit faster.

Numbers will no longer be returned as strings from JsonReader::value(), they will instead be cast automatically to float or int as appropriate while minding the new option below.

Added

  • JsonReader::FLOATS_AS_STRINGS option is now accepted by the JsonReader constructor. This will cause the reader to return floats as their original strings. This includes any JSON number with a decimal point or exponent, as well as those above PHP_INT_MAX or below PHP_INT_MIN.

Changed

  • The JsonReader node constants are now strings. This makes debugging a bit easier. Note that this also changes the return type of JsonReader::type() to string.
  • The parser, lexer, and input streams are no longer Traversable. Those using these directly will want to check their new simplified interfaces.
  • Tuples from the lexer have a new shape to them. Again if you're using this directly you'll want to check the new interface.