wikibase-sdk
Advanced tools
Comparing version 7.2.1 to 7.3.0
# CHANGELOG | ||
*versions follow [SemVer](http://semver.org)* | ||
## 7.3.0 - 2020-04-08 | ||
* [`getRevisions`](https://github.com/maxlath/wikidata-sdk/blob/master/docs/get_revisions.md): added support for `rvprops`, `rvuser`, `rvexcludeuser`, and `rvtag` parameters | ||
## 7.2.0 - 2019-12-06 | ||
@@ -5,0 +8,0 @@ * Make [`getSitelinkData`](https://github.com/maxlath/wikidata-sdk/blob/master/docs/general_helpers.md#getsitelinkdata) accept full article URLs and return `{ lang, project, key, title, url }` |
@@ -13,2 +13,3 @@ const { forceArray } = require('../utils/utils') | ||
} | ||
query.titles = ids.join('|') | ||
@@ -19,2 +20,9 @@ query.format = options.format || 'json' | ||
if (uniqueId && options.end) query.rvend = getEpochSeconds(options.end) | ||
const { prop, user, excludeuser, tag } = options | ||
if (prop) query.rvprop = forceArray(prop).join('|') | ||
if (user) query.rvuser = user | ||
if (excludeuser) query.rvexcludeuser = excludeuser | ||
if (tag) query.rvtag = tag | ||
return buildUrl(query) | ||
@@ -21,0 +29,0 @@ } |
{ | ||
"name": "wikibase-sdk", | ||
"version": "7.2.1", | ||
"description": "A javascript tool-suite to query wikibase and simplify its results", | ||
"version": "7.3.0", | ||
"description": "utils functions to query a Wikibase instance and simplify its results", | ||
"main": "lib/wikibase-sdk.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
# wikibase-sdk | ||
A javascript tool-suite to query a [Wikibase](http://wikiba.se) instance and simplify its results. | ||
JS utils functions to query a [Wikibase](http://wikiba.se) instance and simplify its results | ||
@@ -5,0 +5,0 @@ This package was primarily developed as `wikidata-sdk` but has now being generalized to support any Wikibase instance: [wikidata.org](https://www.wikidata.org) among others. |
66110
1054