new #m3api release! (m3api is a JavaScript library to use the MediaWiki action API :3)

just two changes:
• a minor change to the handling of responses with Retry-After headers which should hopefully be useful especially when targeting Wikimedia wikis
• a new declaration that changing the supported Node.js versions is not considered a breaking change (and what to do if you need support for a specific Node.js version)

https://gitlab.wikimedia.org/repos/m3api/m3api/-/releases/v1.0.4

v1.0.4 · repos / m3api / m3api · GitLab

v1.0.4 Improved handling of retry-after responses (especially ones with HTTP status 429 Too Many Requests). README.md § Stability has...

GitLab

unfinished thought: it would be quite good to have something like the Toolforge Abandoned Tool policy (https://wikitech.wikimedia.org/wiki/Help:Toolforge/Abandoned_tool_policy) for non-tool Wikimedia code, such as libraries (e.g. #m3api) or applications (e.g. Pattypan?)

this could be a step towards “Off-the-shelf governance models for small FOSS projects” (@pintoch, https://antonin.delpeuch.eu/posts/off-the-shelf-governance-models-for-small-foss-projects/) – if a codebase opts into it (README.md?), there would be an established process for adopting it if the maintainer goes inactive

#Wikimedia #Toolforge

Help:Toolforge/Abandoned tool policy - Wikitech

and, after some CI troubles (https://phabricator.wikimedia.org/T414864), m3api-oauth2 v1.0.3 is out, now using the new m3api-rest package (see above) internally! \o/

https://gitlab.wikimedia.org/repos/m3api/m3api-oauth2/-/releases/v1.0.3

#m3api

T414864 Unblock running tests against Beta Cluster from Digital Ocean GitLab CI runners

Please unblock access from these IPs to the Beta Cluster:

Phabricator

to kick off the new year, here’s a new m3api extension package! m3api-rest lets you make some requests to the MediaWiki REST API :)

it’s only v0.1.0 and it’s quite limited, so probably you shouldn’t look at it too closely yet ;) more powerful versions should come soonish and then it’ll be more useful, with support for more request methods and request+response content types ^^

https://www.npmjs.com/package/m3api-rest
https://doc.wikimedia.org/m3api/m3api-rest/v0.1.0/

#m3api

I’m planning to create a library that makes it easier to use the MediaWiki REST API from applications which already use m3api to interact with the Action API; input welcome here, as I’m not actually very familiar with the REST API: https://phabricator.wikimedia.org/T411325

#m3api #MediaWiki

T411325 Introduce m3api extension package to use the REST API (m3api-rest)

While m3api is mainly focused on the Action API, and to my knowledge the REST API doesn’t have a lot of “common” functionality…

Phabricator

new m3api-query release! 🎉 https://gitlab.wikimedia.org/repos/m3api/m3api-query/-/releases/v1.1.0

headline features: better continuation control, and documentation on doc.wikimedia.org

#m3api

v1.1.0 · repos / m3api / m3api-query · GitLab

v1.1.0 Better continuation control and documentation on doc.wikimedia.org. m3api-query documentation is now published at https://doc.wikimedia.org/m3api/m3api-query/. (The...

GitLab

new m3api release! I moved the source code from GitHub to Wikimedia GitLab 🎉

to celebrate the occasion, here are 1.0.1 releases of all the packages:

m3api: https://gitlab.wikimedia.org/repos/m3api/m3api/-/releases/v1.0.1
m3api-query: https://gitlab.wikimedia.org/repos/m3api/m3api-query/-/releases/v1.0.1
m3api-botpassword: https://gitlab.wikimedia.org/repos/m3api/m3api-botpassword/-/releases/v1.0.1
m3api-oauth2: https://gitlab.wikimedia.org/repos/m3api/m3api-oauth2/-/releases/v1.0.1

(m3api is a JavaScript library for using the MediaWiki Action API )

#m3api

v1.0.1 · repos / m3api / m3api · GitLab

Migration to Wikimedia GitLab. m3api hosting migrated from GitHub to Wikimedia GitLab. If you use the library via npm, nothing should change for you,...

GitLab

real-life use case for m3api automatically combining requests: WDactle needs both the contents of MediaWiki:Wikibase-SortedProperties (action=query, prop=revisions) and language information (action=query, meta=languageinfo); m3api gets and returns both in a single request \o/

https://gitlab.wikimedia.org/toolforge-repos/wdactle/-/commit/1674729ca902d64f845d95ba6dfe8c65adba19af

#m3api #WDactle

Load language info from MediaWiki (1674729c) · Commits · toolforge-repos / wdactle · GitLab

And use it to correctly tag the (with the BCP-47 language code, which is not necessarily the same as the MediaWiki language code, and also the directionality) and correctly...

GitLab
Introducing m3api

new package release: m3api v0.9.0, with a new accessToken option to replace authorization (easier to use that way); TypeScript declaration files; and usage recommendations in the README :) https://github.com/lucaswerkmeister/m3api/releases/tag/v0.9.0

#m3api

Release v0.9.0 · lucaswerkmeister/m3api

The new accessToken option can be used to set the Authorization header more easily. The previous authorization option is kept for compatibility, but deprecated, demoted to the internal interface, a...

GitHub