Steps to replicate the issue (include links if applicable):
- Visit any page on https://en.wikipedia.beta.wmflabs.org/
What happens?:
- A warning message is printed to the console
What should have happened instead?:
No warning message.
Instead of using mediawiki.Uri we should be using Uri
The deprecation seems to have happened in 3ab92782e3da (cc @Ebrahim @Ladsgroup )
While frontend deprecations are not expected to fix consumers beforehand given this pollutes the console for every page view, I think it's therefore important these modules get updated ASAP (or the deprecation is reversed until this happens) as it makes it harder to see other warnings/errors.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
According to:
Object.keys(mw.loader.moduleRegistry).filter((key)=>mw.loader.getState(key)==='ready' && mw.loader.moduleRegistry[key].dependencies.includes('mediawiki.Uri'))The modules need to be updated:
- ext.centralNotice.display
- ext.popups.main
- ext.quicksurveys.lib
- ext.wikimediaEvents
- mw.externalguidance.special
- mw.cx.SiteMapper
- ext.growthExperiments.SuggestedEditSession (see T380770)
- Minerva
- RelatedArticles https://gerrit.wikimedia.org/r/c/mediawiki/extensions/RelatedArticles/+/1141989?usp=search
- mw.externalguidance.init