Skip to content

Latest commit

History

History
502 lines (349 loc) 路 20.2 KB

CHANGELOG.md

File metadata and controls

502 lines (349 loc) 路 20.2 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

For a full diff see 3.0.0...main.

For a full diff see 2.2.0...3.0.0.

Changed

For a full diff see 2.1.0...2.2.0.

Changed

  • Stopped checking whether type property in schema is set to array or object (#632), by @localheinz
  • Adjusted SchemaNormalizer to normalize additional object properties (#639), by @localheinz
  • Adjusted SchemaNormalizer to normalize array values for which schema does not declare item schema (#641), by @localheinz

For a full diff see 2.0.0...2.1.0.

Changed

For a full diff see 1.0.3...2.0.0.

Changed

  • Dropped support for PHP 7.2 (#564), by @localheinz
  • Dropped support for PHP 7.3 (#573), by @localheinz
  • Renamed Format::__toString(), Indent::__toString(), and Json::__toString() to Format::toString(), Indent::toString(), and Json::toString(), requiring consumers to explicitly invoke methods instead of allowing to cast to string (#589), by @localheinz
  • Started using the SchemaValidator provided by ergebnis/json-schema-validator (#595), by @localheinz
  • Renamed Format\JsonEncodeOptions::value() to Format\JsonEncodeOptions::toInt() (#603), by @localheinz
  • Extracted Format\Format::create() as named constructor and reduced visibility of __construct to private (#608), by @localheinz
  • Stopped composing Format\Format into Json (#616), by @localheinz
  • Renamed FinalNewLineNormalizer to WithFinalNewLineNormalizer (#618), by @localheinz
  • Renamed NoFinalNewLineNormalizer to WithoutFinalNewLineNormalizer (#619), by @localheinz

Fixed

Removed

  • Removed Validator\Result, Valdiator\SchemaValidator, and Validator\SchemaValidatorInterface (#597), by @dependabot

For a full diff see 1.0.2...1.0.3.

Fixed

  • Adjusted Vendor\Composer\PackageHashNormalizer to take into account the newly addded composer-plugin-api as platform requirement (#463), by @localheinz

For a full diff see 1.0.1...1.0.2.

Fixed

  • Adjusted Vendor\Composer\ConfigHashNormalizer to take into account the full property path, not only the property name (#429), by @localheinz

For a full diff see 1.0.0...1.0.1.

Fixed

  • Adjusted Vendor\Composer\ConfigHashNormalizer to ignore the preferred-install hash (#425), by @localheinz

For a full diff see 0.14.1...1.0.0.

Changed

  • Adjusted Vendor\Composer\ConfigHashNormalizer to recursively sort hashes by key (#424), by @localheinz

For a full diff see 0.14.0...0.14.1.

Fixed

  • Adjusted Vendor\Composer\ConfigHashNormalizer to continue normalizing properties when a property has an empty value (#423), by @localheinz

For a full diff see 0.13.1...0.14.0.

Added

  • Extracted an Indent::CHARACTERS constant that exposes a map of indent styles to indent characters (#384), by @localheinz

For a full diff see 0.13.0...0.13.1.

Changed

For a full diff see 0.12.0...0.13.0.

Added

For a full diff see 0.11.0...0.12.0.

Added

  • Added SchemaValidator::validate(), which returns a Result composing validation error messages (#268), by @localheinz

Deprecated

For a full diff see 0.10.1...0.11.0.

Added

Removed

For a full diff see 0.10.0...0.10.1.

Fixed

For a full diff see 0.9.0...0.10.0.

Added

Changed

  • Allowing injection of a UriRetriever into the SchemaNormalizer, and defaulting to a ChainUriRetriever which composes FileGetContents and Curl URI retrievers (#104), by @localheinz

  • Dropped null default values of constructor arguments of AutoFormatNormalizer, FixedFormatNormalizer, Formatter, IndentNormalizer to expose hard dependencies (#109), by @localheinz

  • Dropped nullable return type declaration from ChainUriRetriever::getContentType(), defaulting to an empty string when ChainUriRetriever::retrieve() wasn't invoked yet (#132), by @localheinz

  • Started using ergebnis/json-printer instead of localheinz/json-printer (#176), by @localheinz

  • Renamed vendor namespace Localheinz to Ergebnis after move to @ergebnis (#181), by @localheinz

    Run

    $ composer remove localheinz/json-normalizer
    

    and

    $ composer require ergebnis/json-normalizer
    

    to update.

    Run

    $ find . -type f -exec sed -i '.bak' 's/Localheinz\\Json\\Normalizer/Ergebnis\\Json\\Normalizer/g' {} \;
    

    to replace occurrences of Localheinz\Json\Normalizer with Ergebnis\Json\Normalizer.

    Run

    $ find -type f -name '*.bak' -delete
    

    to delete backup files created in the previous step.

Fixed

For a full diff see 0.8.0...0.9.0.

Added

Changed

  • Turned method on Format into named constructor on Indent value object (#94), by @localheinz
  • Turned method on Format into named constructor on JsonEncodeOptions value object(#95), by @localheinz
  • Turned method on Format into named constructor on NewLine value object (#96), by @localheinz

Removed

For a full diff see 0.7.0...0.8.0.

Added

  • Added named constructor to Json value object to allow creation from data (#86), by @localheinz

Changed

  • Renamed InvalidJsonException to InvalidJsonEncodedException (#85), by @localheinz

Fixed

For a full diff see 0.6.0...0.7.0.

Added

Changed

  • Removed the Sniffer in favour of a named constructor on Format value object (#77), by @localheinz

Fixed

  • Added more test cases for sniffing JSON without whitespace (#67), by @localheinz
  • Added missing types in a Docblock (#68), by @localheinz
  • The Format value object now rejects mixed tabs and spaces as indent (#69), by @localheinz
  • Added more test cases for JSON without indent (#72), by @localheinz
  • Sniff only pure indents, no mixed spaces and tabs (#71), by @localheinz

For a full diff see 0.5.2...0.6.0.

Added

For a full diff see 0.5.1...0.5.2.

Fixed

  • Keep resolving references until there are none left (#49), by @localheinz

For a full diff see 0.5.0...0.5.1.

Fixed

  • Resolve referenced schema in oneOf combination (#47), by @localheinz

For a full diff see 0.4.0...0.5.0.

Added

For a full diff see 0.3.0...0.4.0.

Added

Changed

For a full diff see 0.2.0...0.3.0.

Changed

For a full diff see 0.1.0...0.2.0.

Added

For a full diff see 5d8b3e2...0.1.0.

Added