Skip to content

Releases: wmde/WikibaseDataModelJavaScript

2.0.0

13 Jan 13:26
Compare
Choose a tag to compare

Breaking changes

  • Term and MultiTerm do not accept empty language codes any more.
  • Removed cloning from the following methods:
    • GroupableCollection.toArray and List.toArray
    • Group.getItemContainer and setItemContainer
  • Removed propertyId parameter from Claim.getQualifiers.
  • SnakList.getFilteredSnakList can not be called with null any more.

Other changes

  • Fixed possible performance issues due to cloning in Group.equals and the List, Mapand Set constructors.

1.0.2

29 May 09:54
Compare
Choose a tag to compare
  • Adapt to DataValuesJavaScript 0.7.0.
  • SnakList.merge() accepts null.
  • Updated code documentation for being able to automatically generate a proper documentation using JSDuck.

1.0.1

05 Nov 09:59
Compare
Choose a tag to compare
  • Using DataValues JavaScript 0.6.0.

1.0.0

05 Nov 07:39
Compare
Choose a tag to compare

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

10 Sep 15:59
Compare
Choose a tag to compare
Use new version of data-values/javascript

* Also removed bad dependencies on jquery from the test resource
definitions

0.3.2

19 Aug 09:15
Compare
Choose a tag to compare
Merge pull request #12 from wmde/sitelink

Updated SiteLink support

0.3.1

14 Aug 18:23
Compare
Choose a tag to compare

Remove jquery and mediawiki resource loader modules as explicit dependencies, to fix JS compatibility with MediaWiki.

0.3.0

10 Jul 11:15
Compare
Choose a tag to compare
Update README.md

0.2.0

26 Jun 12:48
Compare
Choose a tag to compare
Merge pull request #4 from wmde/resourceRegexp

Fix regular expressions in resource loader definitions

0.1.0

18 Jun 09:17
Compare
Choose a tag to compare
Init with code from Wikibase.git

Used code from c809beca8f8da10ff0a4ee69d838fc0ac75b89fc.