MediaWiki API and WikiData client written in Node.js
Full Changelog: https://github.com/macbre/nodemw/compare/v0.20.0...v0.21.0
build(deps-dev): bump typescript from 4.9.4 to 4.9.5 by @dependabot in https://github.com/macbre/nodemw/pull/400
build(deps-dev): bump check-dts from 0.6.7 to 0.7.0 by @dependabot in https://github.com/macbre/nodemw/pull/401
build(deps-dev): bump jest from 29.4.1 to 29.4.2 by @dependabot in https://github.com/macbre/nodemw/pull/402
build(deps-dev): bump jest from 29.4.2 to 29.4.3 by @dependabot in https://github.com/macbre/nodemw/pull/404
build(deps): bump coverallsapp/github-action from 1.1.3 to 1.2.0 by @dependabot in https://github.com/macbre/nodemw/pull/406
build(deps): bump coverallsapp/github-action from 1.2.0 to 1.2.2 by @dependabot in https://github.com/macbre/nodemw/pull/407
build(deps): bump coverallsapp/github-action from 1.2.2 to 1.2.4 by @dependabot in https://github.com/macbre/nodemw/pull/409
build(deps-dev): bump jest from 29.4.3 to 29.5.0 by @dependabot in https://github.com/macbre/nodemw/pull/413
build(deps-dev): bump eslint-config-prettier from 8.6.0 to 8.7.0 by @dependabot in https://github.com/macbre/nodemw/pull/412
build(deps-dev): bump yaml-eslint-parser from 1.1.0 to 1.2.0 by @dependabot in https://github.com/macbre/nodemw/pull/415
build(deps-dev): bump check-dts from 0.7.0 to 0.7.1 by @dependabot in https://github.com/macbre/nodemw/pull/416
BotOptions: add options for logIn by @macbre in https://github.com/macbre/nodemw/pull/417
build(deps-dev): bump typescript from 4.9.5 to 5.0.2 by @dependabot in https://github.com/macbre/nodemw/pull/418
build(deps-dev): bump eslint-config-prettier from 8.7.0 to 8.8.0 by @dependabot in https://github.com/macbre/nodemw/pull/420
build(deps): bump coverallsapp/github-action from 1.2.4 to 2.0.0 by @dependabot in https://github.com/macbre/nodemw/pull/419
build(deps-dev): bump typescript from 5.0.2 to 5.0.3 by @dependabot in https://github.com/macbre/nodemw/pull/421
build(deps-dev): bump typescript from 5.0.3 to 5.0.4 by @dependabot in https://github.com/macbre/nodemw/pull/422
build(deps): bump coverallsapp/github-action from 2.0.0 to 2.1.0 by @dependabot in https://github.com/macbre/nodemw/pull/423
build(deps): bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot in https://github.com/macbre/nodemw/pull/424
build(deps): bump coverallsapp/github-action from 2.1.0 to 2.1.1 by @dependabot in https://github.com/macbre/nodemw/pull/425
build(deps): bump coverallsapp/github-action from 2.1.1 to 2.1.2 by @dependabot in https://github.com/macbre/nodemw/pull/426
build(deps): bump yaml from 2.1.1 to 2.2.2 by @dependabot in https://github.com/macbre/nodemw/pull/427
build(deps-dev): bump check-dts from 0.7.1 to 0.7.2 by @dependabot in https://github.com/macbre/nodemw/pull/428
build(deps-dev): bump eslint-config-wikimedia from 0.24.0 to 0.25.0 by @dependabot in https://github.com/macbre/nodemw/pull/429
build(deps-dev): bump yaml-eslint-parser from 1.2.0 to 1.2.1 by @dependabot in https://github.com/macbre/nodemw/pull/430
build(deps-dev): bump yaml-eslint-parser from 1.2.1 to 1.2.2 by @dependabot in https://github.com/macbre/nodemw/pull/431
build(deps): bump dependabot/fetch-metadata from 1.4.0 to 1.5.0 by @dependabot in https://github.com/macbre/nodemw/pull/433
build(deps): bump dependabot/fetch-metadata from 1.5.0 to 1.5.1 by @dependabot in https://github.com/macbre/nodemw/pull/434
build(deps-dev): bump eslint-config-wikimedia from 0.25.0 to 0.25.1 by @dependabot in https://github.com/macbre/nodemw/pull/435
build(deps): bump winston from 3.8.2 to 3.9.0 by @dependabot in https://github.com/macbre/nodemw/pull/436
build(deps-dev): bump typescript from 5.0.4 to 5.1.3 by @dependabot in https://github.com/macbre/nodemw/pull/437
build(deps): bump coverallsapp/github-action from 2.1.2 to 2.2.0 by @dependabot in https://github.com/macbre/nodemw/pull/438
build(deps-dev): bump typescript from 5.1.3 to 5.1.5 by @dependabot in https://github.com/macbre/nodemw/pull/439
build(deps): bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in https://github.com/macbre/nodemw/pull/440
build(deps-dev): bump typescript from 5.1.5 to 5.1.6 by @dependabot in https://github.com/macbre/nodemw/pull/441
build(deps-dev): bump @jest/globals from 29.5.0 to 29.6.0 by @dependabot in https://github.com/macbre/nodemw/pull/442
build(deps-dev): bump jest from 29.5.0 to 29.6.0 by @dependabot in https://github.com/macbre/nodemw/pull/443
build(deps): bump coverallsapp/github-action from 2.2.0 to 2.2.1 by @dependabot in https://github.com/macbre/nodemw/pull/447
build(deps-dev): bump jest from 29.6.0 to 29.6.1 by @dependabot in https://github.com/macbre/nodemw/pull/444
build(deps): bump winston from 3.9.0 to 3.10.0 by @dependabot in https://github.com/macbre/nodemw/pull/446
We're supporting Node.js 16+ by @macbre in https://github.com/macbre/nodemw/pull/450
build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in https://github.com/macbre/nodemw/pull/451
build(deps-dev): bump eslint-config-prettier from 8.8.0 to 8.9.0 by @dependabot in https://github.com/macbre/nodemw/pull/453
build(deps-dev): bump @jest/globals from 29.6.1 to 29.6.2 by @dependabot in https://github.com/macbre/nodemw/pull/455
build(deps-dev): bump jest from 29.6.1 to 29.6.2 by @dependabot in https://github.com/macbre/nodemw/pull/454
build(deps-dev): bump eslint-config-prettier from 8.9.0 to 8.10.0 by @dependabot in https://github.com/macbre/nodemw/pull/456
build(deps-dev): bump prettier from 3.0.0 to 3.0.1 by @dependabot in https://github.com/macbre/nodemw/pull/457
build(deps-dev): bump eslint-config-prettier from 8.10.0 to 9.0.0 by @dependabot in https://github.com/macbre/nodemw/pull/458
build(deps-dev): bump prettier from 3.0.1 to 3.0.2 by @dependabot in https://github.com/macbre/nodemw/pull/459
build(deps-dev): bump jest from 29.6.2 to 29.6.3 by @dependabot in https://github.com/macbre/nodemw/pull/460
build(deps-dev): bump jest from 29.6.3 to 29.6.4 by @dependabot in https://github.com/macbre/nodemw/pull/462
build(deps-dev): bump typescript from 5.1.6 to 5.2.2 by @dependabot in https://github.com/macbre/nodemw/pull/463
build(deps-dev): bump prettier from 3.0.2 to 3.0.3 by @dependabot in https://github.com/macbre/nodemw/pull/465
build(deps): bump actions/checkout from 3 to 4 by @dependabot in https://github.com/macbre/nodemw/pull/466
build(deps): bump coverallsapp/github-action from 2.2.1 to 2.2.2 by @dependabot in https://github.com/macbre/nodemw/pull/467
build(deps): bump coverallsapp/github-action from 2.2.2 to 2.2.3 by @dependabot in https://github.com/macbre/nodemw/pull/470
build(deps-dev): bump jest from 29.6.4 to 29.7.0 by @dependabot in https://github.com/macbre/nodemw/pull/471
Full Changelog: https://github.com/macbre/nodemw/compare/v0.19.0...v0.20.0
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"]}
Full Changelog: https://github.com/macbre/nodemw/compare/v0.18.1...v0.19.0
This version of nodemw
brings an initial version of typing (via *.d.ts
) files.
Full Changelog: https://github.com/macbre/nodemw/compare/v0.18.0...v0.18.1
Full Changelog: https://github.com/macbre/nodemw/compare/v0.17.0...v0.18.0
Fix issues with getArticleInfo by @andrewnicols in https://github.com/macbre/nodemw/pull/332
Add Protect API by @andrewnicols in https://github.com/macbre/nodemw/pull/333
Drop support for Node.js 12 (and test using 18.x) by @macbre in https://github.com/macbre/nodemw/pull/334
build(deps): bump underscore from 1.13.1 to 1.13.2 by @dependabot in https://github.com/macbre/nodemw/pull/312
build(deps): bump winston from 3.3.3 to 3.3.4 by @dependabot in https://github.com/macbre/nodemw/pull/314
build(deps): bump async from 3.2.2 to 3.2.3 by @dependabot in https://github.com/macbre/nodemw/pull/313
build(deps): bump winston from 3.3.4 to 3.4.0 by @dependabot in https://github.com/macbre/nodemw/pull/315
CI - check Node.js 17.x too by @macbre in https://github.com/macbre/nodemw/pull/316
build(deps): bump winston from 3.4.0 to 3.5.0 by @dependabot in https://github.com/macbre/nodemw/pull/317
build(deps): bump winston from 3.5.0 to 3.5.1 by @dependabot in https://github.com/macbre/nodemw/pull/318
build(deps-dev): bump eslint-config-wikimedia from 0.20.0 to 0.22.1 by @dependabot in https://github.com/macbre/nodemw/pull/320
build(deps): bump ajv from 6.12.2 to 6.12.6 by @dependabot in https://github.com/macbre/nodemw/pull/322
build(deps): bump winston from 3.5.1 to 3.6.0 by @dependabot in https://github.com/macbre/nodemw/pull/323
build(deps): bump dependabot/fetch-metadata from 1.1.1 to 1.2.0 by @dependabot in https://github.com/macbre/nodemw/pull/324
build(deps-dev): bump csv-string from 4.0.1 to 4.1.0 by @dependabot in https://github.com/macbre/nodemw/pull/325
build(deps): bump dependabot/fetch-metadata from 1.2.0 to 1.2.1 by @dependabot in https://github.com/macbre/nodemw/pull/326
build(deps): bump dependabot/fetch-metadata from 1.2.1 to 1.3.0 by @dependabot in https://github.com/macbre/nodemw/pull/327
build(deps): bump winston from 3.6.0 to 3.7.2 by @dependabot in https://github.com/macbre/nodemw/pull/329
build(deps): bump actions/checkout from 2 to 3 by @dependabot in https://github.com/macbre/nodemw/pull/328
build(deps): bump dependabot/fetch-metadata from 1.3.0 to 1.3.1 by @dependabot in https://github.com/macbre/nodemw/pull/330
build(deps): bump underscore from 1.13.2 to 1.13.3 by @dependabot in https://github.com/macbre/nodemw/pull/331
json-schema is vulnerable to Prototype Pollution by @macbre in https://github.com/macbre/nodemw/pull/335
Full Changelog: https://github.com/macbre/nodemw/compare/v0.16.0...v0.17.0
Full Changelog: https://github.com/macbre/nodemw/compare/v0.15.0...v0.16.0
This release features a new method bot.getArticleInfo()
introduced by @Technical-13 (#309).
enhancement
- bot.getArticleInfo() (by @Technical-13)dependencies
- build(deps-dev): bump eslint-config-wikimedia from 0.18.0 to 0.18.1 (by @dependabot[bot])dependencies
- build(deps-dev): bump eslint-config-wikimedia from 0.18.1 to 0.18.2 (by @dependabot[bot])dependencies
- build(deps-dev): bump eslint-config-wikimedia from 0.18.2 to 0.19.0 (by @dependabot[bot])dependencies
- build(deps): bump underscore from 1.12.0 to 1.12.1 (by @dependabot[bot])dependencies
- build(deps-dev): bump eslint-config-wikimedia from 0.19.0 to 0.20.0 (by @dependabot[bot])dependencies
- build(deps): bump underscore from 1.12.1 to 1.13.0 (by @dependabot[bot])dependencies
- build(deps): bump underscore from 1.13.0 to 1.13.1 (by @dependabot[bot])dependencies
- build(deps): bump browserslist from 4.16.3 to 4.16.6 (by @dependabot[bot])pr
- Test using Node.js 16.xinternals
- Make npm package smaller by skipping some filesdependencies
- build(deps): bump async from 3.2.0 to 3.2.1 (by @dependabot[bot])dependencies
- build(deps): bump color-string from 1.5.3 to 1.6.0 (by @dependabot[bot])dependencies
- build(deps): bump path-parse from 1.0.6 to 1.0.7 (by @dependabot[bot])enhancement
- Use arrow functions to preserve lexical 'this' instead of 'self' (by @Krinkle)bug
- [Snyk] Fix for 1 vulnerabilities (by @snyk-bot)enhancement
- Test using Node.js 14 tooenhancement
- Add Scribunto console/remoting examples (by @ghost)dependencies
- Bump request from 2.88.0 to 2.88.2 (by @dependabot[bot])dependencies
- Bump eslint-config-wikimedia from 0.15.1 to 0.16.1 (by @dependabot[bot])dependencies
- Bump vows from 0.8.2 to 0.8.3 (by @dependabot[bot])dependencies
- Bump underscore from 1.9.1 to 1.10.2 (by @dependabot[bot])dependencies
- Bump eslint-config-wikimedia from 0.16.1 to 0.16.2 (by @dependabot[bot])dependencies
- Bump async from 2.6.1 to 3.2.0 (by @dependabot[bot])dependencies
- Bump csv-string from 3.1.5 to 4.0.1 (by @dependabot[bot])dependencies
- Bump node-version-compare from 1.0.1 to 1.0.2 (by @dependabot[bot])dependencies
- Bump diff from 3.5.0 to 4.0.2 (by @dependabot[bot])dependencies
- Bump lodash from 4.17.15 to 4.17.19 (by @dependabot[bot])dependencies
- Bump node-version-compare from 1.0.2 to 1.0.3 (by @dependabot[bot])bug
- CSRF token should be sent as last parameter in request payload (by @jwbth)pr
- Send CSRF token as last parameter in request payload (#218) (by @jwbth)dependencies
- Bump eslint-config-wikimedia from 0.16.2 to 0.17.0 (by @dependabot[bot])pr
- Add bot.getImagesFromArticleWithOptions.dependencies
- build(deps): bump underscore from 1.10.2 to 1.11.0 (by @dependabot[bot])dependencies
- build(deps): bump snyk from 1.413.2 to 1.416.0 (by @dependabot[bot])dependencies
- build(deps): bump diff from 4.0.2 to 5.0.0 (by @dependabot[bot])dependencies
- build(deps): bump underscore from 1.11.0 to 1.12.0 (by @dependabot[bot])dependencies
- build(deps): bump ini from 1.3.5 to 1.3.8 (by @dependabot[bot])dependencies
- build(deps-dev): bump eslint-config-wikimedia from 0.17.0 to 0.18.0 (by @dependabot[bot])pr
- Get rid of snyk - dependabot takes care of dependencies upgrade + security advisorylodash
to fix security issue