Skip to content

Commit ee48bd1

Browse files
committed
Release 7.0.0
1 parent 379166d commit ee48bd1

9 files changed

Lines changed: 27 additions & 11 deletions

RELEASE-NOTES.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
# Wikibase DataModel release notes
22

3-
## Version 7.0.0 (dev)
4-
3+
## Version 7.0.0 (2017-02-13)
4+
5+
* Changed the internal `serialize` format of several `EntityId` related classes. In all cases
6+
`unserialize` still supports the previous format.
7+
* Serialization of `SnakObject` (includes `PropertyNoValueSnak` and `PropertySomeValueSnak`)
8+
does not use numeric IDs any more
9+
* Serialization of `PropertyValueSnak` (includes `DerivedPropertyValueSnak`) does not use
10+
numeric IDs any more
11+
* Serialization of `EntityIdValue` does not use numeric IDs any more
12+
* `EntityIdValue` can now serialize and unserialize `EntityId`s other than `ItemId` and
13+
`PropertyId`
14+
* Minimized serialization of `ItemId` and `PropertyId`
515
* Removed `FingerprintHolder`
616
* Removed class aliases deprecated since 3.0:
717
* `Wikibase\DataModel\Claim\Claim`
@@ -11,6 +21,8 @@
1121
* Removed `HashArray::indicesAreUpToDate`
1222
* Removed `HashArray::removeDuplicates`
1323
* Removed `$acceptDuplicates` feature from `HashArray`
24+
* Fixed exceptions in `DispatchingEntityIdParser` and `ItemIdParser` not forwarding the previous
25+
exception
1426

1527
## Version 6.3.1 (2016-11-30)
1628

WikibaseDataModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
return;
1212
}
1313

14-
define( 'WIKIBASE_DATAMODEL_VERSION', '6.3.0' );
14+
define( 'WIKIBASE_DATAMODEL_VERSION', '7.0.0' );
1515

1616
if ( defined( 'MEDIAWIKI' ) && function_exists( 'wfLoadExtension' ) ) {
1717
wfLoadExtension( 'WikibaseDataModel', __DIR__ . '/mediawiki-extension.json' );

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"wikimedia/assert": "~0.2.2"
2929
},
3030
"require-dev": {
31-
"phpunit/phpunit": "~4.8",
3231
"ockcyp/covers-validator": "~0.4.0",
33-
"squizlabs/php_codesniffer": "~2.3",
34-
"phpmd/phpmd": "~2.3"
32+
"phpmd/phpmd": "~2.3",
33+
"phpunit/phpunit": "~4.8",
34+
"squizlabs/php_codesniffer": "~2.3"
3535
},
3636
"autoload": {
3737
"files" : [
@@ -43,7 +43,7 @@
4343
},
4444
"extra": {
4545
"branch-alias": {
46-
"dev-master": "6.3.x-dev"
46+
"dev-master": "7.0.x-dev"
4747
}
4848
},
4949
"scripts": {

mediawiki-extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Wikibase DataModel",
3-
"version": "6.3.0",
3+
"version": "7.0.0",
44
"author": [
55
"[https://www.mediawiki.org/wiki/User:Jeroen_De_Dauw Jeroen De Dauw]",
66
"Thiemo Mättig"

src/Entity/EntityIdValue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct( EntityId $entityId ) {
2525
/**
2626
* @see Serializable::serialize
2727
*
28-
* @since 0.5
28+
* @since 7.0 serialization format changed in an incompatible way
2929
*
3030
* @return string
3131
*/

src/Entity/ItemId.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ public function getEntityType() {
6767
/**
6868
* @see Serializable::serialize
6969
*
70+
* @since 7.0 serialization format changed in an incompatible way
71+
*
7072
* @return string
7173
*/
7274
public function serialize() {

src/Entity/PropertyId.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ public function getEntityType() {
6767
/**
6868
* @see Serializable::serialize
6969
*
70+
* @since 7.0 serialization format changed in an incompatible way
71+
*
7072
* @return string
7173
*/
7274
public function serialize() {

src/Snak/PropertyValueSnak.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function getDataValue() {
4848
/**
4949
* @see Serializable::serialize
5050
*
51-
* @since 7.0
51+
* @since 7.0 serialization format changed in an incompatible way
5252
*
5353
* @return string
5454
*/

src/Snak/SnakObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function equals( $target ) {
9797
/**
9898
* @see Serializable::serialize
9999
*
100-
* @since 7.0
100+
* @since 7.0 serialization format changed in an incompatible way
101101
*
102102
* @return string
103103
*/

0 commit comments

Comments
 (0)