Closed Krinkle closed 4 years ago
Thanks for reporting!
In contrast to the original report the alias was only added in MW 1.32.
- In MW 1.31 and earlier, methods like
mw.Api#parse
existed inmediawiki.api.parse
.- In MW 1.32, these were merged into
mediawiki.api
. Withmediawiki.api.parse
as alias. Using either works on this release, and one should migrate towardmediawiki.api
.- In MW 1.33, the deprecated aliases were removed, and
mediawiki.api
must be used instead.
This means that we have to revert all respective changes. Is the same way of resolving this keeping the module until we no longer support MW 1.31 and later and drop it as soon as we switch to MW 1.35 as minimum support.
@mwjames @JeroenDeDauw Since I am not a programmer. What happens with MW 1.33 and 1.34 were we still have the module? Will this cause pain, meaning that we have to add some shim for compatibility.
I just installed SMW cite 2.1.0 on a MW1.31.1. Everthing seems OK but js.tooltips do not work. The console reports:
VM5333:239 Uncaught TypeError: api.parse is not a function
See an example at https://www.univie.ac.at/rel_jap/an/Sandkiste2/SCI_example
Does this mean upgrade MW? Other solutions?
Your MW version is too new for Semantic Cite
Thank you... Any clue for a workaround?
Fixed with #71 which will ship with SCI 2.1.1
FYI:
The mw.Api parse method(s) are part of the
mediawiki.api
module bundle as ofMW 1.31MW 1.32, leavingmediawiki.api.parse
as deprecated alias, to be removed in MW 1.33.(Found via Codesearch.)