Releases: colinodell/json5
Releases · colinodell/json5
v3.0.0
You should not notice any breaking changes in this release unless you were using named parameters, or ignoring argument types defined in docblocks.
Changed
- Renamed function parameters to match
json_decode()
's signature$source
is now$json
$options
is now$flags
- Added explicit
mixed
return type to matchjson_decode()
- Added proper types to all parameters and return values of
SyntaxError
- Renamed two arguments in the
SyntaxError
's constructor:$linenumber
is now$lineNumber
$columnNumber
is now$column
Removed
- Removed support for PHP 7.x (8.0+ is now required)
v2.3.0
v2.2.2
v2.2.1
v2.2.0
Added
- Added support for PHP 8.0
Removed
- Removed support for PHP 5.6 and 7.0
v2.1.0
Added
- Added
.phpstorm.meta.php
for better code completion - Added several tiny micro-optimizations
Removed
- Removed support for PHP 5.4 and 5.5
v2.0.0
Now with 100% more PHP 7.3 compatibility!
Added
- Added a polyfill for class
\JsonException
(added in PHP 7.3) - Added a polyfill for constant
JSON_THROW_ON_ERROR
Changed
- The
SyntaxError
class now extends from\JsonException
v1.0.5
Fixed
- Fixed exceptions not being thrown for incomplete objects/arrays
v1.0.4
v1.0.3
Fixed
- Fixed check for PHP 7+