The following page lists BREAKING CHANGES between versions 2.x and 3.x of the library alongside any possible workarounds.
If any of the changes make you unable to use the library, you can install version 2.x which had all of the security vulnerabilities patched as of the day of the release of version 3.0.0.
Importing
The library is now exported as ESM instead of CJS. See more information here.
Removed endpoints
These endpoints were removed following the UCP, with no information on whether they will be made available again in the future. Thus they were also removed from the wrapper library. You should no longer depend on those methods.
ActivityLatestActivity(getLatestActivity())RecentlyChangedArticles(getRecentlyChangedArticles())
ArticlesAsSimpleJson(getArticleAsSimpleJson())MostLinked(getMostLinked())MostLinked?expand=1(getMostLinkedExpanded())New(getNewArticles())Popular(getPopularArticles())Popular?expand=1(getPopularArticlesExpanded())List?expand=1(getArticlesListExpanded())Top?expand=1(getTopArticlesExpanded())
NavigationData(getNavigationData())
RelatedPagesList(getRelatedPages())
SearchList(getSearchList())
Removed members
WikiaAPI.wikiaapiurlstatic member has been removed as thesubdomainis now requiredWikiaAPI.wikiurlinstance member has been removed as thesubdomainis now requiredWikiaAPI.wikiaurlstatic member has been removed as thesubdomainis now required
Renames
WikiaAPI.wikiapiurlis now calledWikiaAPI.apiBasepathWikiaAPI.getArticlesDetails()is now calledWikiaAPI.getArticleDetails()WikiaAPI.getArticlesList()is now calledWikiaAPI.getArticleList()
Parameter changes
WikiaAPI's constructorsubdomainparam is now requiredWikiaAPI.getArticleDetails()'s options object:- is now required
- no longer contains
widthandheight
WikiaAPI.getTopArticles()'s options object:- no longer contains
baseArticleId - no longer takes
nullas a validnamespacesvalue
- no longer contains
WikiaAPI.getSearchSuggestions()now takes a string as its only parameter (instead of an object containing a singular string value)WikiaAPI.getUserDetails()'s options object:- is now required
- now must contain the
idsproperty
Other changes
WikiaAPI.apiBasepath(formerlywikiapiurl) now:- returns an extra trailing slash
- uses
https://instead ofhttp:// - uses
fandom.cominstead ofwikia.com
WikiaAPI's methods starting with an underscore are now marked as@private, their use was never recommended or documented, but it is now prohibited by TypeScript- The underlying HTTP client is now
fetchinstead ofgot - The API is now limited to maximally two concurrent data connections at any point in time