Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump nodemw from 0.18.1 to 0.19.0 #43

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 31, 2023

Bumps nodemw from 0.18.1 to 0.19.0.

Release notes

Sourced from nodemw's releases.

Initial helpers for WikiData

This release of nodemw brings a few helpers for interacting with Wikidata.

An example:

const wikidata = require("nodemw/lib/wikidata");
const client = new wikidata();
// Where is Saksun, Faroe Islands located?
const geo = await client.getEntityClaim("Q928875" /* Saksun /, "P625" / place location */);
// will give you the geolocation of the place
expect(geo[0].mainsnak.datavalue.value).toMatchObject({
latitude: 62.248888888889,
longitude: -7.1758333333333,
});
// When was Albert Einstein born?
const res = await client.getArticleClaims("Albert Einstein");
const dateOfBirth = res.P569[0].mainsnak.datavalue.value;
expect(dateOfBirth.time).toMatch(/1879-03-14/);
const dateOfDeath = res.P570[0].mainsnak.datavalue.value;
expect(dateOfDeath.time).toMatch(/1955-04-18/);
// interwiki links for a given article
const links = await client.getArticleSitelinks("Albert Einstein");
console.log(links.enwiki); // {site: "enwiki", title: "Albert Einstein", badges: ["Q17437798"]}

What else has changed

Full Changelog: macbre/nodemw@v0.18.1...v0.19.0

Commits
  • 04ddf55 Update package.json
  • d1616b5 v0.19.0
  • 2f70040 Document wikidata features
  • 1c569e1 build(deps-dev): bump jest from 29.4.0 to 29.4.1 (#398)
  • e14aba9 build(deps-dev): bump @​jest/globals from 29.4.0 to 29.4.1 (#397)
  • 6f30d55 Merge pull request #396 from macbre/wikidata/more-tests
  • 87cc757 Add a getEntities() helper
  • 53f040f More test cases for wikidata + set a global jest timeout to 5 seconds
  • 2d66819 Merge pull request #395 from macbre/add/wikidata
  • 1098e9c Add test cases for getArticleDescriptions()
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [nodemw](https://github.com/macbre/nodemw) from 0.18.1 to 0.19.0.
- [Release notes](https://github.com/macbre/nodemw/releases)
- [Commits](macbre/nodemw@v0.18.1...v0.19.0)

---
updated-dependencies:
- dependency-name: nodemw
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 31, 2023
@macbre macbre merged commit 0b2d816 into devel Jan 31, 2023
@macbre macbre deleted the dependabot/npm_and_yarn/nodemw-0.19.0 branch January 31, 2023 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant