Skip to content

Commit 5ba4d9e

Browse files
committed
Release 7.0.0
1 parent d0017a8 commit 5ba4d9e

12 files changed

Lines changed: 50 additions & 16 deletions

RELEASE-NOTES.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
11
# Wikibase DataModel release notes
22

3-
## Version 7.0.0 (dev)
4-
5-
* Removed `FingerprintHolder`
3+
## Version 7.0.0 (2017-03-08)
4+
5+
This release adds support for custom entity types to `EntityIdValue`, and thus changes the hashes of
6+
snaks, qualifiers, and references.
7+
8+
* Changed the internal `serialize()` format of several `EntityId` related classes. In all cases
9+
`unserialize()` still supports the previous format.
10+
* Serialization of `SnakObject` (includes `PropertyNoValueSnak` and `PropertySomeValueSnak`)
11+
does not use numeric IDs any more
12+
* Serialization of `PropertyValueSnak` (includes `DerivedPropertyValueSnak`) does not use
13+
numeric IDs any more
14+
* Serialization of `EntityIdValue` does not use numeric IDs any more
15+
* `EntityIdValue` can now serialize and unserialize `EntityId`s other than `ItemId` and
16+
`PropertyId`
17+
* Minimized serialization of `ItemId` and `PropertyId` to not include the entity type any more
18+
19+
#### Other breaking changes
20+
21+
* Removed `FingerprintHolder`. Use `TermList::clear` and `AliasGroupList::clear` instead. `Item` and
22+
`Property` also still implement `setFingerprint`.
623
* Removed class aliases deprecated since 3.0:
724
* `Wikibase\DataModel\Claim\Claim`
825
* `Wikibase\DataModel\Claim\ClaimGuid`
@@ -11,11 +28,20 @@
1128
* Removed `HashArray::indicesAreUpToDate`
1229
* Removed `HashArray::removeDuplicates`
1330
* Removed `$acceptDuplicates` feature from `HashArray`
31+
32+
#### Additions
33+
1434
* Added `clear` to `TermList`, `AliasGroupList` and `StatementList`
35+
* Added `newFromRepositoryAndNumber` to `ItemId` and `PropertyId`
36+
37+
#### Other changes
38+
39+
* Fixed exceptions in `DispatchingEntityIdParser` and `ItemIdParser` not forwarding the previous
40+
exception
1541

1642
## Version 6.3.1 (2016-11-30)
1743

18-
* `ItemId::getNumericId` and `PropertyId::getNumericId` no longer throw exceptions for foreign ids
44+
* `ItemId::getNumericId` and `PropertyId::getNumericId` no longer throw exceptions for foreign IDs
1945

2046
## Version 6.3.0 (2016-11-03)
2147

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: 4 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() {
@@ -106,6 +108,8 @@ public static function newFromNumber( $numericId ) {
106108
/**
107109
* CAUTION: Use the full string serialization whenever you can and avoid using numeric IDs.
108110
*
111+
* @since 7.0
112+
*
109113
* @param string $repositoryName
110114
* @param int|float|string $numericId
111115
*

src/Entity/PropertyId.php

Lines changed: 4 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() {
@@ -106,6 +108,8 @@ public static function newFromNumber( $numericId ) {
106108
/**
107109
* CAUTION: Use the full string serialization whenever you can and avoid using numeric IDs.
108110
*
111+
* @since 7.0
112+
*
109113
* @param string $repositoryName
110114
* @param int|float|string $numericId
111115
*

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
*/

src/Statement/StatementList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public function filter( StatementFilter $filter ) {
344344
/**
345345
* Removes all statements from this list.
346346
*
347-
* @since 6.0
347+
* @since 7.0
348348
*/
349349
public function clear() {
350350
$this->statements = [];

0 commit comments

Comments
 (0)