wikibase-sdk
Advanced tools
Comparing version 7.5.0 to 7.6.0
# CHANGELOG | ||
*versions follow [SemVer](http://semver.org)* | ||
## 7.6.0 - 2020-06-09 | ||
* Added [`isPropertyClaimsId`](https://github.com/maxlath/wikidata-sdk/blob/master/docs/general_helpers.md#ispropertyclaimsid) function | ||
## 7.5.0 - 2020-06-08 | ||
* Added `isHash` function | ||
* Added [`isHash`](https://github.com/maxlath/wikidata-sdk/blob/master/docs/general_helpers.md#ishash) function | ||
## 7.4.0 - 2020-04-17 | ||
* `simplify.entity`/`simplify.entities` function: added support for Lexemes | ||
* Added `simplify.lemmas` function | ||
* Added `simplify.glosses` function | ||
* Added `simplify.form` function | ||
* Added `simplify.forms` function | ||
* Added `simplify.sense` function | ||
* Added `simplify.senses` function | ||
* Added `isFormId` function | ||
* Added `isSenseId` function | ||
* Added [`simplify.lemmas`]((https://github.com/maxlath/wikidata-sdk/blob/master/docs/simplify_entities_data.md#simplify-lemmas)) function | ||
* Added [`simplify.glosses`]((https://github.com/maxlath/wikidata-sdk/blob/master/docs/simplify_entities_data.md#simplify-glosses)) function | ||
* Added [`simplify.form`]((https://github.com/maxlath/wikidata-sdk/blob/master/docs/simplify_entities_data.md#simplify-form)) function | ||
* Added [`simplify.forms`]((https://github.com/maxlath/wikidata-sdk/blob/master/docs/simplify_entities_data.md#simplify-forms)) function | ||
* Added [`simplify.sense`]((https://github.com/maxlath/wikidata-sdk/blob/master/docs/simplify_entities_data.md#simplify-sense)) function | ||
* Added [`simplify.senses`]((https://github.com/maxlath/wikidata-sdk/blob/master/docs/simplify_entities_data.md#simplify-senses)) function | ||
* Added [`isFormId`](https://github.com/maxlath/wikidata-sdk/blob/master/docs/general_helpers.md#isformid) function | ||
* Added [`isSenseId`](https://github.com/maxlath/wikidata-sdk/blob/master/docs/general_helpers.md#issenseid) function | ||
@@ -18,0 +21,0 @@ ## 7.3.0 - 2020-04-08 |
@@ -13,2 +13,6 @@ const toDateObject = require('./wikibase_time_to_date_object') | ||
helpers.isHash = hash => /^[0-9a-f]{40}$/.test(hash) | ||
helpers.isPropertyClaimsId = id => { | ||
const [ entityId, propertyId ] = id.split('#') | ||
return helpers.isEntityId(entityId) && helpers.isPropertyId(propertyId) | ||
} | ||
helpers.isRevisionId = id => /^\d+$/.test(id) | ||
@@ -15,0 +19,0 @@ |
{ | ||
"name": "wikibase-sdk", | ||
"version": "7.5.0", | ||
"version": "7.6.0", | ||
"description": "utils functions to query a Wikibase instance and simplify its results", | ||
@@ -5,0 +5,0 @@ "main": "lib/wikibase-sdk.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70230
1117