Releases: wmde/WikibaseDataModel
Releases · wmde/WikibaseDataModel
6.2.0
- Raised minimum PHP version to 5.5
- Added basic support for foreign EntityIds
- Added
isForeign
,getRepository
andgetLocalPart
toEntityId
- The constructor of
EntityId
was made public - Added static
EntityId::splitSerialization
andEntityId::joinSerialization
getNumericId
throws an exception for foreign EntityIds- Added documentation for foreign EntityIds
- Added
6.1.0
- Added optional index parameter to
Statement::addStatement
. - Added
Int32EntityId
interface.ItemId
andPropertyId
now implementInt32EntityId
.ItemId
andPropertyId
construction now fails for numbers larger than 2147483647.
- Added an
id
element containing the full ID string to theEntityIdValue::getArrayValue
serialization. - Fixed
ByPropertyIdArray
iterating the properties of non-traversable objects.
6.0.1
Fixed ItemId
and PropertyId
not rejecting strings with a newline at the end.
6.0.0
This release removes the long deprecated Entity base class in favor of much more narrow interfaces.
Breaking changes
- Removed
Entity
class (deprecated since 1.0) Item
andProperty
no longer extendEntity
- Removed
getLabel
,getDescription
,getAliases
,getAllAliases
,
setLabels
,setDescriptions
,addAliases
,setAllAliases
,
removeLabel
,removeDescription
andremoveAliases
methods
- Removed
Item::getLabels
andProperty::getLabels
now return aTermList
Item::getDescriptions
andProperty::getDescriptions
now return aTermList
- Removed
clear
methods fromItem
andProperty
StatementListProvider
,LabelsProvider
,DescriptionsProvider
,AliasesProvider
and
FingerprintProvider
now give the guarantee to return objects by referenceTermList
andAliasGroupList
no longer throw anInvalidArgumentException
for invalid language codes.getByLanguage
throws anOutOfBoundsException
instead.removeByLanguage
does nothing for invalid values.hasTermForLanguage
andhasGroupForLanguage
return false instead.
Additions
Item
andProperty
now implementLabelsProvider
,DescriptionsProvider
andAliasesProvider
- Added
Item::getAliasGroups
andProperty::getAliasGroups
5.1.0
5.0.2
5.0.1
5.0.0
- Removed
Claims
class (deprecated since 1.0) - Removed
getClaims
andsetClaims
methods fromEntity
,Item
andProperty
(deprecated since 1.0) - Removed
HashableObjectStorage
class (deprecated since 4.4) ReferenceList
no longer derives fromSplObjectStorage
- Removed
addAll
,attach
,contains
,detach
,getHash
,getInfo
,removeAll
,
removeAllExcept
andsetInfo
methods
- Removed
ReferenceList
no longer implementsArrayAccess
- Removed
offsetExists
,offsetGet
,offsetSet
andoffsetUnset
methods
- Removed
ReferenceList
no longer implementsIterator
- Removed
current
,key
,next
,rewind
andvalid
methods
- Removed
ReferenceList
now implementsIteratorAggregate
- Added
getIterator
method
- Added
- Removed
ReferenceList::removeDuplicates
ReferenceList::addReference
now throws anInvalidArgumentException
for negative indices- Added
EntityDocument::equals
, andEntityDocument
now implementsComparable
- Added
EntityDocument::copy
- Fixed
Property::clear
not clearing statements TermList
now skips and removes empty terms- Deprecated
ByPropertyIdArray
4.4.0
- Added
ItemIdParser
- Added
ReferenceList::isEmpty
- Added
ReferencedStatementFilter::FILTER_TYPE
constant - Added
EntityRedirect::__toString
- Deprecated
HashableObjectStorage
SnakRole
enum is not an interface any more but a private class
4.2.0
- Added
EntityRedirect
- Added
EntityIdParser
andEntityIdParsingException
- Added
BasicEntityIdParser
- Added
DispatchingEntityIdParser
- Removed no longer needed dependency on
diff/diff