Nodemw Versions Save

MediaWiki API and WikiData client written in Node.js

v0.21.0

2 months ago

What's Changed

Full Changelog: https://github.com/macbre/nodemw/compare/v0.20.0...v0.21.0

v0.20.0

7 months ago

What's Changed

Full Changelog: https://github.com/macbre/nodemw/compare/v0.19.0...v0.20.0

v0.19.0

1 year ago

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: https://github.com/macbre/nodemw/compare/v0.18.1...v0.19.0

v0.18.1

1 year ago

This version of nodemw brings an initial version of typing (via *.d.ts) files.

What's Changed

Dependencies bumped

Full Changelog: https://github.com/macbre/nodemw/compare/v0.18.0...v0.18.1

v0.18.0

1 year ago

What's Changed

Full Changelog: https://github.com/macbre/nodemw/compare/v0.17.0...v0.18.0

v0.17.0

2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/macbre/nodemw/compare/v0.16.0...v0.17.0

v0.16.0

2 years ago

What's Changed

Full Changelog: https://github.com/macbre/nodemw/compare/v0.15.0...v0.16.0

v0.15.0

2 years ago

This release features a new method bot.getArticleInfo() introduced by @Technical-13 (#309).

  • #309 enhancement - bot.getArticleInfo() (by @Technical-13)
  • #296 dependencies - build(deps-dev): bump eslint-config-wikimedia from 0.18.0 to 0.18.1 (by @dependabot[bot])
  • #297 dependencies - build(deps-dev): bump eslint-config-wikimedia from 0.18.1 to 0.18.2 (by @dependabot[bot])
  • #298 dependencies - build(deps-dev): bump eslint-config-wikimedia from 0.18.2 to 0.19.0 (by @dependabot[bot])
  • #299 dependencies - build(deps): bump underscore from 1.12.0 to 1.12.1 (by @dependabot[bot])
  • #300 dependencies - build(deps-dev): bump eslint-config-wikimedia from 0.19.0 to 0.20.0 (by @dependabot[bot])
  • #301 dependencies - build(deps): bump underscore from 1.12.1 to 1.13.0 (by @dependabot[bot])
  • #302 dependencies - build(deps): bump underscore from 1.13.0 to 1.13.1 (by @dependabot[bot])
  • #303 dependencies - build(deps): bump browserslist from 4.16.3 to 4.16.6 (by @dependabot[bot])
  • #304 pr - Test using Node.js 16.x
  • #305 internals - Make npm package smaller by skipping some files
  • #306 dependencies - build(deps): bump async from 3.2.0 to 3.2.1 (by @dependabot[bot])
  • #307 dependencies - build(deps): bump color-string from 1.5.3 to 1.6.0 (by @dependabot[bot])
  • #308 dependencies - build(deps): bump path-parse from 1.0.6 to 1.0.7 (by @dependabot[bot])

v0.14.0

3 years ago
  • #163 enhancement - Use arrow functions to preserve lexical 'this' instead of 'self' (by @Krinkle)
  • #164 bug - [Snyk] Fix for 1 vulnerabilities (by @snyk-bot)
  • #165 enhancement - Test using Node.js 14 too
  • #166 enhancement - Add Scribunto console/remoting examples (by @ghost)
  • #167 dependencies - Bump request from 2.88.0 to 2.88.2 (by @dependabot[bot])
  • #168 dependencies - Bump eslint-config-wikimedia from 0.15.1 to 0.16.1 (by @dependabot[bot])
  • #171 dependencies - Bump vows from 0.8.2 to 0.8.3 (by @dependabot[bot])
  • #173 dependencies - Bump underscore from 1.9.1 to 1.10.2 (by @dependabot[bot])
  • #174 dependencies - Bump eslint-config-wikimedia from 0.16.1 to 0.16.2 (by @dependabot[bot])
  • #176 dependencies - Bump async from 2.6.1 to 3.2.0 (by @dependabot[bot])
  • #177 dependencies - Bump csv-string from 3.1.5 to 4.0.1 (by @dependabot[bot])
  • #180 dependencies - Bump node-version-compare from 1.0.1 to 1.0.2 (by @dependabot[bot])
  • #181 dependencies - Bump diff from 3.5.0 to 4.0.2 (by @dependabot[bot])
  • #196 dependencies - Bump lodash from 4.17.15 to 4.17.19 (by @dependabot[bot])
  • #214 dependencies - Bump node-version-compare from 1.0.2 to 1.0.3 (by @dependabot[bot])
  • #218 bug - CSRF token should be sent as last parameter in request payload (by @jwbth)
  • #219 pr - Send CSRF token as last parameter in request payload (#218) (by @jwbth)
  • #221 dependencies - Bump eslint-config-wikimedia from 0.16.2 to 0.17.0 (by @dependabot[bot])
  • #223 pr - Add bot.getImagesFromArticleWithOptions.
  • #230 dependencies - build(deps): bump underscore from 1.10.2 to 1.11.0 (by @dependabot[bot])
  • #256 dependencies - build(deps): bump snyk from 1.413.2 to 1.416.0 (by @dependabot[bot])
  • #266 dependencies - build(deps): bump diff from 4.0.2 to 5.0.0 (by @dependabot[bot])
  • #274 dependencies - build(deps): bump underscore from 1.11.0 to 1.12.0 (by @dependabot[bot])
  • #285 dependencies - build(deps): bump ini from 1.3.5 to 1.3.8 (by @dependabot[bot])
  • #293 dependencies - build(deps-dev): bump eslint-config-wikimedia from 0.17.0 to 0.18.0 (by @dependabot[bot])
  • #295 pr - Get rid of snyk - dependabot takes care of dependencies upgrade + security advisory

v0.13.0

4 years ago
  • #159 - build: Add Node 12, fix cache, discontinue Node 8 by @Krinkle
  • #160 - update lodash to fix security issue
  • #162 - use Github Actions for testing pull requests and pushing to npm on new releases (which works like a charm!)