From: Matthew Flaschen Date: Fri, 11 Jul 2014 20:43:09 +0000 (-0400) Subject: Note that jquery.json will be removed in 1.25 X-Git-Tag: 1.31.0-rc.0~14986^2 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=764324f4f2287c2a97d515508cbeb0e34dac0efc;p=lhc%2Fweb%2Fwiklou.git Note that jquery.json will be removed in 1.25 This is a pretty straightforward migration, and improves performance for users with modern browsers (since the skip function means browsers with native JSON don't need to download a JSON module) Stating a removal version will encourage this migration. Change-Id: I8fe83f30fd27f7bfe50e756846486abdadb91189 --- diff --git a/resources/src/jquery.json-deprecate.js b/resources/src/jquery.json-deprecate.js index 915cd85abd..f38decd9a0 100644 --- a/resources/src/jquery.json-deprecate.js +++ b/resources/src/jquery.json-deprecate.js @@ -1,4 +1,6 @@ ( function ( mw, $ ) { + // @deprecated since 1.24. The 'jquery.json' module will be removed in MW 1.25. Use the 'json' module. + mw.log.deprecate( $, 'toJSON', $.toJSON, 'Use JSON.stringify instead (module "json" for polyfill).' ); mw.log.deprecate( $, 'evalJSON', $.evalJSON, 'Use JSON.parse instead (module "json" for polyfill).' ); mw.log.deprecate( $, 'secureEvalJSON', $.secureEvalJSON, 'Use JSON.parse instead (module "json" for polyfill).' );