Skip to content

v2.0.8

Latest
Compare
Choose a tag to compare
@josantonius josantonius released this 11 Jan 05:28

What's Changed

PHP 8.0 is no longer supported.

Added

  • Josantonius\Json\Json->pop() method.

  • Josantonius\Json\Json->shift() method.

  • Josantonius\Json\Json->unshift() method.

  • Josantonius\Json\Json->unset() method.

  • Josantonius\Json\Tests\PopMethodTest class.

  • Josantonius\Json\Tests\ShiftMethodTest class.

  • Josantonius\Json\Tests\UnsetMethodTest class.

  • Josantonius\Json\Tests\UnshiftMethodTest class.

  • Josantonius\Json\Exceptions\NoIterableElementException class.

  • Josantonius\Json\Exceptions\NoIterableFileException class.

  • .markdownlint.json file.

Removed

  • The filepath method. Use the filepath property instead.

  • The option to handle remote files via their URL.

  • Spanish documentation.

  • Josantonius\Json\Tests\FilepathMethodTest class.

  • Josantonius\Json\Exceptions\UnavailableMethodException class.

Refactored

  • The get method now supports the $associative parameter.
  • The get method now returns a mixed value.
  • The set method now supports the $dot parameter to indicate the array level using dot notation.
  • The set method now returns the resulting content of the JSON file after performing the action.
  • The merge method now supports the $dot parameter to indicate the array level using dot notation.
  • The push method now supports the $dot parameter to indicate the array level using dot notation.

Full Changelog: v2.0.7...v2.0.8