Skip to content

Releases: wmde/Serialization

3.2.2

02 Nov 17:42

Choose a tag to compare

Add .gitattributes file

4.0.0

25 Oct 11:46

Choose a tag to compare

  • Removed the Serialization_VERSION constant.
  • Removed underspecified StrategicDeserializer along with the abstract
    TypedDeserializationStrategy base class.
  • Removed undocumented TypedObjectDeserializer::requireAttributes.
  • Declared various protected properties and methods private:
    • DispatchingDeserializer::$deserializers
    • DispatchingDeserializer::assertAreDeserializers
    • DispatchingSerializer::$serializers
    • DispatchingSerializer::assertAreSerializers
    • InvalidAttributeException::$attributeName
    • InvalidAttributeException::$attributeValue
    • MissingAttributeException::$attributeName
    • TypedObjectDeserializer::$objectType
    • UnsupportedObjectException::$unsupportedObject
    • UnsupportedTypeException::$unsupportedType
  • Deprecated pure utility functions on TypedObjectDeserializer:
    • assertAttributeInternalType
    • assertAttributeIsArray
    • requireAttribute
  • Added default messages to InvalidAttributeException, MissingAttributeException, and
    UnsupportedTypeException.
  • Added documentation to the Serializer and Deserializer interfaces.
  • Updated minimal required PHP version from 5.3 to 5.5.9.

3.2.1

12 Aug 20:02

Choose a tag to compare

  • Tested against hhvm-nightly
  • Tests now run in strict mode

3.2.0

12 Aug 20:02

Choose a tag to compare

Made SerializationException non-abstract

3.1.0

12 Aug 20:02

Choose a tag to compare

TypedObjectDeserializer now explicitly implements DispatchableDeserializer.

3.0.0

12 Aug 20:03

Choose a tag to compare

  • Split is(Des/S)erializerFor methods off into new Dispatchable(Des/S)erializer interfaces
  • Changed from classmap based autoloading to PSR-4 based autoloading
  • Improved PHPUnit bootstrap

2.2.0

12 Aug 20:03

Choose a tag to compare

Removed custom autoloader in favour of using the declarative system provided by Composer

2.1.0

12 Aug 20:03

Choose a tag to compare

  • The type key in TypedObjectDeserializer can now be specified via a constructor argument
  • TypedObjectDeserializer now has some tests in this component itself
  • The documentation was somewhat improved

2.0.0

12 Aug 20:04

Choose a tag to compare

  • Renamed Serializer::canSerialize to Serializer::isDeserializerFor
  • Renamed Deserializer::canDeserialize to Deserializer::isDeserializerFor