Skip to content

Releases: eclipxe13/XmlSchemaValidator

Version 3.0.4

09 Mar 01:18
77ae78b
Compare
Choose a tag to compare
  • Fix falsy comparisons (Psalm).
  • Update license year to 2024.
  • Update coding standards.
  • Improve GitHub workflow:
    • Add PHP 8.3 to test matrix.
    • Run jobs using PHP 8.3.
    • Update GitHub actions to version 4.
    • Update code analysis titles.
    • Rename matrix variable name php-version (singular).
  • Update development tools.

Version 3.0.3

20 Dec 02:49
b3ac2b4
Compare
Choose a tag to compare

When split the content of a schema location value, must reindex the list of values.
The following code wasn't interpreted correctly:

<r xsi:schemaLocation="
    http://test.org/schemas/ticket
    http://localhost:8999/xsd/ticket.xsd
    "/>

See issue #14. Thanks @brankopetric.

Development changes

  • Add fully_qualified_strict_types rule to php-cs-fixer tool.

Version 3.0.2

08 Mar 18:52
85931d6
Compare
Choose a tag to compare

Change return type on Schemas::getIterator() to include Traversable. This avoids compatibility issues with PHP 8.1.

Check DOMAttr::nodeValue can be null. Remove Psalm ignore.

Fix build, PHPStan ^1.4.7 does not recognize DOMNodeList element types. Change type to iterable.

Update development tools to recent versions.

This release includes Previous unreleased changes.

Version 3.0.1

18 Jun 18:55
Compare
Choose a tag to compare

Source Code:

  • Fix bug when schemaLocation contains CR or LF.

Development environment:

  • Change default branch name from master to main.
  • Update development instructions, see Contrib file.
  • Update to Contributor Covenant Code of Conduct version 2.
  • Update composer scripts.
  • Update License year, happy new year on june.
  • PHP Code Sniffer: configure paths in config file.
  • PHPStan: configure paths in config file.
  • PHPUnit: upgrade to version 9.5 config file and remove verbose by default.
  • Psalm: ignore UnnecessaryVarAnnotation since it is not using PHP correct types.
  • Include infection (Mutation Testing) to build pipeline.
  • Migrate from Travis-CI to GitHub Actions. Thanks Travis-CI!
  • Scrutinizer just receive code coverage.

Version 3.0.0

08 Apr 21:59
Compare
Choose a tag to compare
  • Lot of breacking changes has been made, see upgrade from version 2.x to 3.x.
  • Namespace change from \XmlSchemaValidator to \Eclipxe\XmlSchemaValidator.
  • Now uses named exceptions, see exceptions documentation.
  • Minimal PHP version is PHP 7.3.
  • LibXmlException is not @internal. Do not use it outside this project.
  • SchemaValidator constructor uses DOMDocument.
    To create it from a XML content use SchemaValidator::createFromString.

Version 2.1.2

05 Apr 18:31
Compare
Choose a tag to compare

IMPORTANT: This should be the last release of version 2.x

  • Internal change to split namespace and xsd location using preg_split.
  • Introduce deprecation notice on version 2.x.
  • Update travis badges and link.
  • Remove sensiolabs badge

Version 2.1.1

08 Jan 19:59
efb3781
Compare
Choose a tag to compare
  • Improve testing, 100% code coverage, each test class uses cover related class.
  • Improve Travis-CI, do not create code coverage.
  • Improve Scrutinizer-CI, create code coverage.
  • Change development dependence from phpstan/phpstan-shim to phpstan/phpstan.
  • Remove development dependence overtrue/phplint.
  • Remove SensioLabs Insight.
  • Update documentation, license, changelog, etc..

Version 2.1.0

30 Mar 07:40
33ae600
Compare
Choose a tag to compare
  • Allow create a SchemaValidator instance using DOMDocument
  • Improved README
  • Internal changes and build PHP 7.3

Version 2.0.2

04 Sep 19:29
Compare
Choose a tag to compare
  • Fix bug when running on PHP >= 7.1 and warning was raised when call DOMDocument::schemaValidateSource
    making impossible to obtain errors from libxml_clear_errors and throw a new LibXmlException
  • Add a new test SchemaValidatorTest::testValidateWithEmptySchema to make sure that
    a LibXmlException exception is raised

Version 2.0.1

17 Jul 21:14
Compare
Choose a tag to compare
  • Fix bug when using windows path (backslashs), it does not validate
  • Add docblock to buildSchemas
  • Improve building, add phpstan
  • Use phplint instead of php-parallel-lint
  • Update dependencies using composer-require-checker