From 764324f4f2287c2a97d515508cbeb0e34dac0efc Mon Sep 17 00:00:00 2001 From: Matthew Flaschen Date: Fri, 11 Jul 2014 16:43:09 -0400 Subject: [PATCH] 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 --- resources/src/jquery.json-deprecate.js | 2 ++ 1 file changed, 2 insertions(+) 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).' ); -- 2.20.1