Skip to content

Commit

Permalink
Update links to the User-Agent policy
Browse files Browse the repository at this point in the history
Apparently the old URL wasn’t good enough, so now we have to point to a
new one.
  • Loading branch information
lucaswerkmeister committed Apr 15, 2024
1 parent dbcb59f commit a1056dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ but this file may sometimes contain later improvements (e.g. typo fixes).

## next (not yet released)

No changes yet.
- Updated the link to the [User-Agent policy][]
after it was moved from metawiki to foundationwiki.

## v0.8.2 (2024-04-09)

Expand Down Expand Up @@ -316,7 +317,7 @@ The Git commit for this version was probably 00e278a13b50cc903b6fb3d530033098d3a
but I see no reason to recreate the tag now.

[CVE-2021-3749]: https://github.com/advisories/GHSA-cph5-m8f7-6c5x
[User-Agent policy]: https://meta.wikimedia.org/wiki/Special:MyLanguage/User-Agent_policy
[User-Agent policy]: https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:User-Agent_policy
[m3api-query]: https://www.npmjs.com/package/m3api-query
[m3api-botpassword]: https://www.npmjs.com/package/m3api-botpassword
[m3api-doc-latest]: https://lucaswerkmeister.github.io/m3api/
Expand Down
4 changes: 2 additions & 2 deletions core.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ class DefaultUserAgentWarning extends Error {
'You should set the userAgent request option, ' +
'either as a default option for the session (third constructor argument) ' +
'or as a custom option for each request (second request argument). ' +
'See w.wiki/4PLr for the User-Agent policy.',
'See w.wiki/9mMA for the User-Agent policy.',
...params,
);

Expand All @@ -456,7 +456,7 @@ class Session {
* other useful global parameters include uselang, errorformat, maxlag.
* @param {Options} [defaultOptions] Options to set for each request.
* You are strongly encouraged to specify a userAgent according to the
* {@link https://meta.wikimedia.org/wiki/User-Agent_policy User-Agent policy}.
* {@link https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:User-Agent_policy User-Agent policy}.
*/
constructor( apiUrl, defaultParams = {}, defaultOptions = {} ) {
if ( !apiUrl.includes( '/' ) ) {
Expand Down

0 comments on commit a1056dc

Please sign in to comment.