https://bugzilla.wikimedia.org/show_bug.cgi?id=33837

--- Comment #14 from Krinkle <krinklem...@gmail.com> ---
A replacement table is not needed for there is no individual migration or
deprecation related to this matter.

The deprecation here is about all mw.config values. They are currently exposed
as global variables in addition to their place in mw.config.

In the future, the global equivalents will be removed. So basically:

Stop using wg globals that come from mw.config, and use mw.config instead.

e.g. instead of:

 if ( wgCanonicalNamespace === 'User' ) { .. }

You'd use:

 if ( mw.config.get( 'wgCanonicalNamespace' ) === 'User' ) { .. }


Or, more likely in a larger script:

 var conf = mw.config.get([
     'wgCanonicalNamespace',
     'wgUserName'
      // ...
 ]);

 if ( conf.wgCanonicalNamespace === 'User' ) {
   ..
 }

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to