Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Wikibase DataModel Serialization release notes

## 2.2.0 (2016-03-11)

* Added compatibility with Wikibase DataModel 6.x

## 2.1.0 (2016-02-18)

* Added `newItemSerializer` and `newPropertySerializer` to `SerializerFactory`
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.1.x-dev"
"dev-master": "2.2.x-dev"
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion mediawiki-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"url": "https://github.com/wmde/WikibaseDataModelSerialization",
"description": "Serializers and deserializers for the Wikibase DataModel",
"version": "2.1.0",
"version": "2.2.0",
"type": "wikibase",
"license-name": "GPL-2.0+",
"manifest_version": 1
Expand Down
2 changes: 1 addition & 1 deletion src/DeserializerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(
}

/**
* Returns a Deserializer that can deserialize Entity objects.
* Returns a Deserializer that can deserialize Item and Property objects.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this change is important!

*
* @return DispatchableDeserializer
*/
Expand Down
2 changes: 1 addition & 1 deletion src/SerializerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private function shouldSerializeReferenceSnaksWithHash() {
}

/**
* Returns a Serializer that can serialize Entity objects.
* Returns a Serializer that can serialize Item and Property objects.
*
* @return Serializer
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/EntityDeserializationCompatibilityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ public function testGivenEntitySerialization_entityIsReturned( $fileName, $seria
$entity = $this->deserializer->deserialize( $serialization );

$this->assertInstanceOf(
'Wikibase\DataModel\Entity\Entity',
'Wikibase\DataModel\Entity\EntityDocument',
$entity,
'Deserialization of ' . $fileName . ' should lead to an Entity instance'
'Deserialization of ' . $fileName . ' should lead to an EntityDocument instance'
);
}

Expand Down