wikibase-sdk
Advanced tools
Changelog
9.0.0 - 2023-02-04
BREAKING CHANGES:
wikibase-sdk
now uses ES modules: to keep using CommonJS, you will need to use wikibase-sdk <= v9
getReverseClaims
: getReverseClaims('P50', 'Q535')
should be replaced by getReverseClaims({ properties: 'P50', values: 'Q535' })
getRevisions
: getRevisions('Q3548931', { limit: 10 })
should be replaced by getRevisions({ ids: 'Q3548931', { limit: 10 })
simplify.claims
, simplify.propertyClaims
, and simplify.claim
legacy interfaces were dropped: options are now expected in a single option object (rather than as several arguments)wbk.parsers.wb
and wbk.parsers.wd
— namely entities
and pagesTitles
— are now directly on wbk.parsers
Other changes:
wikidata-sdk
has been deprecated. The wdk
object can now be imported from wikibase-sdk/wikidata.org
: import wdk from 'wikibase-sdk/wikidata.org'