Releases: wmde/WikibaseDataModelJavaScript
Releases · wmde/WikibaseDataModelJavaScript
2.0.0
Breaking changes
Term
andMultiTerm
do not accept empty language codes any more.- Removed cloning from the following methods:
GroupableCollection.toArray
andList.toArray
Group.getItemContainer
andsetItemContainer
- Removed
propertyId
parameter fromClaim.getQualifiers
. SnakList.getFilteredSnakList
can not be called withnull
any more.
Other changes
- Fixed possible performance issues due to cloning in
Group.equals
and theList
,Map
andSet
constructors.
1.0.2
1.0.1
- Using DataValues JavaScript 0.6.0.
1.0.0
Breaking changes
- Removed wikibase.datamodel.Reference.setSnaks(). Generate new Reference objects when interacting with the API to reflect hash changes performed in the back-end.
- Removed wikibase.datamodel.Entity.equals().
- Removed wikibase.datamodel.Reference.setSnaks().
- wikibase.datamodel.Reference constructor does not accept Snak object(s) any more.
- An entity cannot be constructed by passing internal object representation to Entity constructor anymore; Use entity specific constructors instead.
- Removed useless Entity.isNew(), Entity.newEmpty().
- Removed Entity.getLabel(), Entity.getLabels(), Entity.getDescription(), Entity.getDescription(), Entity.getAliases(), Entity.getAllAliases(); Acquire data via Entity.getFingerprint() instead.
- Removed Entity.getClaims(); Acquire claims/statements via Entity specific implementation.
- Item.getSiteLinks() returns a SiteLinkSet object instead of an array of SiteLink objects.
- Renamed Property.getDataType() to Property.getDataTypeId().
- Removed all toJSON(), newFromJSON(), toMap() and newFromMap() functions; Use serializers and unserializers of wikibase.serialization instead.
- Statement does not accept a plain array of references anymore; Supply a ReferenceList instead.
- Remove Claim.TYPE and Statement.TYPE attributes.
- Instead of inheriting from Claim, Statement now features a Claim instance that needs to be passed to the Statement constructor.
- Reference constructor does not accept a plain list of Snak objects anymore; Supply a proper SnakList object instead.
- SnakList constructor only accepts arrays of Snak objects.
Enhancements
- Added ClaimGroup.
- Added ClaimGroupSet.
- Added ClaimList.
- Added Fingerprint.
- Added Group.
- Added GroupableCollection.
- Added List.
- Added Map.
- Added MultiTerm.
- Added MultiTermMap.
- Added ReferenceList.
- Added SiteLinkSet.
- Added StatementGroup.
- Added StatementGroupSet.
- Added StatementList.
- Added Term.
- Added TermMap.
- Added Set.
- Added individual constructors for Item and Property.
- Added Entity.getFingerprint(), Entity.setFingerprint().
- Added SiteLink and Statement specific functionality to Item.
- Added Statement specific functionality to Property.
- Added isEmpty() and equals() functions to Item and Property.
0.3.3
0.3.2
0.3.1
0.3.0
Update README.md
0.2.0
Merge pull request #4 from wmde/resourceRegexp Fix regular expressions in resource loader definitions
0.1.0
Init with code from Wikibase.git Used code from c809beca8f8da10ff0a4ee69d838fc0ac75b89fc.