Skip to content

Releases: sabre-io/xml

1.4.0

12 Mar 22:19
Compare
Choose a tag to compare
  • Any array thrown into the serializer with numeric keys is now simply
    traversed and each individual item is serialized. This fixes an issue
    related to serializing value objects with array children.
  • When serializing value objects, properties that have a null value or an
    empty array are now skipped. We believe this to be the saner default, but
    does constitute a BC break for those depending on this.
  • Serializing array properties in value objects was broken.

1.3.0

29 Dec 20:47
Compare
Choose a tag to compare
  • The Service class adds a new mapValueObject method which provides basic
    capabilities to map between ValueObjects and XML.
  • #61: You can now specify serializers for specific classes, allowing you
    separate the object you want to serialize from the serializer. This uses the
    $classMap property which is defined on both the Service and Writer.
  • It's now possible to pass an array of possible root elements to
    Sabre\Xml\Service::expect().
  • Moved some parsing logic to Reader::getDeserializerForElementName(),
    so people with more advanced use-cases can implement their own logic there.
  • #63: When serializing elements using arrays, the value key in the array is
    now optional.
  • #62: Added a keyValue deserializer function. This can be used instead of
    the Element\KeyValue class and is a lot more flexible. (@staabm)
  • Also added an enum deserializer function to replace
    Element\Elements.
  • Using an empty string for a namespace prefix now has the same effect as
    null.

1.2.0

29 Dec 20:46
Compare
Choose a tag to compare
  • #53: Added parseGetElements, a function like parseInnerTree, except
    that it always returns an array of elements, or an empty array.

1.1.0

29 Jun 22:19
Compare
Choose a tag to compare

1.0.0

26 May 00:17
Compare
Choose a tag to compare
  • No functional changes since 0.4.3. Marking it as 1.0.0 as a promise for
    API stability.
  • Using php-cs-fixer for automated CS enforcement.

0.4.3

26 May 00:17
Compare
Choose a tag to compare
0.4.3 Pre-release
Pre-release
  • Minor tweaks for the public release.

0.4.2

26 May 00:16
Compare
Choose a tag to compare
0.4.2 Pre-release
Pre-release
  • Removed constants.php again. They messed with PHPUnit and don't really
    provide a great benefit.
  • #41: Correctly handle self-closing xml elements.

0.4.1

26 May 00:16
Compare
Choose a tag to compare
0.4.1 Pre-release
Pre-release
  • #40: An element with an empty namespace (xmlns="") is not allowed to have a
    prefix. This is now fixed.

0.4.0

26 May 00:16
Compare
Choose a tag to compare
0.4.0 Pre-release
Pre-release
  • Added Sabre\Xml\Service. This is intended as a simple way to centrally
    configure xml applications and easily parse/write things from there. #35, #38.
  • Renamed 'baseUri' to 'contextUri' everywhere.
  • #36: Added a few convenience constants to lib/constants.php.
  • Sabre\Xml\Util::parseClarkNotation is now in the Sabre\Xml\Service class.

0.3.1

26 May 00:16
Compare
Choose a tag to compare
0.3.1 Pre-release
Pre-release
  • Added XmlDeserializable to match XmlSerializable.