$.wikiEditor.isSupported() gone away, going to break user scripts and gadgets.
It should re-added with proper deprecation log
$.wikiEditor.isSupported() gone away, going to break user scripts and gadgets.
It should re-added with proper deprecation log
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Restore isSupported as deprecated dummy function | mediawiki/extensions/WikiEditor | master | +14 -0 |
Removed in https://gerrit.wikimedia.org/r/#/c/400697/.
I'm happy to restore it as a dummy function returning true with a two week deprecation period if you wish?
IDK how much this function is used on all wikis, but it is in MW NS in various places such as https://commons.wikimedia.org/wiki/MediaWiki:Edittools.js
When removing JS API, it should first replaced by dummy function with deprecation notice.
The $.wikiEditor.browsers object, which was equally internal to isSupported() but thanks to how JavaScript works can be read by any gadget, was also deleted in that commit; do you think that should be restored too?
Explaining the priority: This is unbreak now because this is a breaking change, that wasn't annonced in news, and being used in major wikis (such as commons) going to break funcitonality. this is blocker for the 1.31.0-wmf.17 deployment
If this is used by sites, it should be restored too. again - it could be just a dummy function with deprecation notice and removed in the near future. it has no important functionality beside being exist
Change 404962 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/WikiEditor@master] Restore isSupported as deprecated dummy function
mwgrep "wikiEditor.isSupported" hewikivoyage MediaWiki:Templateslist.js hewiktionary MediaWiki:Templateslist.js kawiki MediaWiki:Gadget-TemplateParamWizard.js mkwiki MediaWiki:Edittools.js pnbwiki MediaWiki:Gadget-TemplateParamWizard.js pswiki MediaWiki:Gadget-TemplateParamWizard.js ptwikibooks MediaWiki:Gadget-Edittools.js ptwiktionary MediaWiki:Gadget-Edittools.js sahwiki MediaWiki:Edittools.js ukwikimedia MediaWiki:Common.js urwiki MediaWiki:Gadget-TemplateParamWizard.js urwiki MediaWiki:Gadget-TemplatesExternalLinks.js
Change 404962 merged by jenkins-bot:
[mediawiki/extensions/WikiEditor@master] Restore isSupported as deprecated dummy function
mwgrep "wikiEditor.isSupported" ukwikimedia MediaWiki:Common.js
I've fixed all WMF wikis so it's less urgent now.