Skip to content

Commit 7fcddfc

Browse files
author
Daniel Kinzler
authored
Merge pull request #719 from wmde/release700
Release 7.0.0
2 parents f800f09 + 096eba5 commit 7fcddfc

File tree

12 files changed

+54
-15
lines changed

12 files changed

+54
-15
lines changed

RELEASE-NOTES.md

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

3-
## Version 7.0.0 (dev)
4-
5-
* Removed `FingerprintHolder`
3+
## Version 7.0.0 (2017-03-15)
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`
926
* `Wikibase\DataModel\StatementListProvider`
27+
* Added a `SnakList` constructor that is not compatible with the `ArrayList` constructor any more,
28+
and does not accept null any more.
29+
* Removed `HashArray::equals`, and `HashArray` does not implement `Comparable` any more
30+
* Removed `HashArray::getHash`, and `HashArray` does not implement `Hashable` any more
1031
* Removed `HashArray::rebuildIndices`
1132
* Removed `HashArray::indicesAreUpToDate`
1233
* Removed `HashArray::removeDuplicates`
1334
* Removed `$acceptDuplicates` feature from `HashArray`
35+
36+
#### Additions
37+
1438
* Added `clear` to `TermList`, `AliasGroupList` and `StatementList`
39+
* Added `newFromRepositoryAndNumber` to `ItemId` and `PropertyId`
40+
41+
#### Other changes
42+
43+
* Fixed `ReferenceList::addReference` sometimes moving existing references around
44+
* Fixed exceptions in `DispatchingEntityIdParser` and `ItemIdParser` not forwarding the previous
45+
exception
1546

1647
## Version 6.3.1 (2016-11-30)
1748

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

2051
## Version 6.3.0 (2016-11-03)
2152

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: 3 additions & 3 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" : [

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)