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.
Activity
LatestActivity
(getLatestActivity()
)RecentlyChangedArticles
(getRecentlyChangedArticles()
)
Articles
AsSimpleJson
(getArticleAsSimpleJson()
)MostLinked
(getMostLinked()
)MostLinked?expand=1
(getMostLinkedExpanded()
)New
(getNewArticles()
)Popular
(getPopularArticles()
)Popular?expand=1
(getPopularArticlesExpanded()
)List?expand=1
(getArticlesListExpanded()
)Top?expand=1
(getTopArticlesExpanded()
)
Navigation
Data
(getNavigationData()
)
RelatedPages
List
(getRelatedPages()
)
Search
List
(getSearchList()
)
Removed members
WikiaAPI.wikiaapiurl
static member has been removed as thesubdomain
is now requiredWikiaAPI.wikiurl
instance member has been removed as thesubdomain
is now requiredWikiaAPI.wikiaurl
static member has been removed as thesubdomain
is now required
Renames
WikiaAPI.wikiapiurl
is now calledWikiaAPI.apiBasepath
WikiaAPI.getArticlesDetails()
is now calledWikiaAPI.getArticleDetails()
WikiaAPI.getArticlesList()
is now calledWikiaAPI.getArticleList()
Parameter changes
WikiaAPI
's constructorsubdomain
param is now requiredWikiaAPI.getArticleDetails()
's options object:- is now required
- no longer contains
width
andheight
WikiaAPI.getTopArticles()
's options object:- no longer contains
baseArticleId
- no longer takes
null
as a validnamespaces
value
- 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
ids
property
Other changes
WikiaAPI.apiBasepath
(formerlywikiapiurl
) now:- returns an extra trailing slash
- uses
https://
instead ofhttp://
- uses
fandom.com
instead 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
fetch
instead ofgot
- The API is now limited to maximally two concurrent data connections at any point in time