Releases: siddharthvp/mwn
Releases · siddharthvp/mwn
2.0.4
Full Changelog: 2.0.3...2.0.4
Key commits:
- Expand api response types
- page: fix backlinks() and transclusions() to work for missing and orphaned pages
- file: fix type of MwnFile usages()
- page: fix inconsistent behaviour in getRedirectTarget(), other refactoring
- upgrade form-data to avoid node.js DeprecationError in stderr
- bot: make query() return ApiQueryResponse to avoid type errors
- bot: export Template class fully (rather than as type)
- wikitext: make parseTemplates() config optional
2.0.3
2.0.2
workflows: split CodeQL, upgrade action packages
2.0.1
What's Changed
- oresQueryRevisions() has been deprecated, since the ORES service is being deprecated in favour of Lift Wing. While it exists, the function has been fixed to take into account the new service limitation of not allowing >20 scores per request.
New Contributors
Full Changelog: 2.0.0...2.0.1
2.0.0
Breaking Changes
- Class names now follow the standard PascalCase convention. The older names are deprecated.
- mwn -> Mwn
- The library should now be imported as
import {Mwn} from 'mwn'
instead ofimport {mwn} from 'mwn'
- The library should now be imported as
- bot.title -> bot.Title (where bot is an instance of Mwn)
- bot.page -> bot.Page
- bot.category -> bot.Category
- bot.file -> bot.File
- bot.user -> bot.User
- bot.wikitext -> bot.Wikitext
- bot.date -> bot.Date
- mwn.table -> Mwn.Table
- mwn -> Mwn
- Class for querying Wikimedia EventStreams have been removed. Consider using the dedicated library wikimedia-streams instead.
- set* methods on MwnDate objects (eg.
setUTCDate
) used to be chainable as they returnedthis
. Because MwnDate extends the native Date, the change in return values was not possible to represent in TypeScript types (Liskov substitution principle). This undocumented feature has now been removed for the sake of accurate types. printYaml
logging config option is no longer supported in Mwn.setLoggingConfig() method.- mwn#queryAuthors() which had been deprecated has now been removed. Instead, please use
queryAuthors()
method on page objects.
New Contributors
- @sunafterrainwm made their first contribution in #25
Full Changelog: 1.11.5...2.0.0
1.11.5
1.11.4
fix markdown syntax to makes links visible on npm
1.11.3
Switch versioning to v1: public interface is stable And has been for quite a while now
0.11.2
test for node 16.x as well, bump version
0.11.1
0.11.1.1 v0.11.1