Mattflaschen has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/145679

Change subject: Note that jQuery.json will be removed in 1.25
......................................................................

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
---
M resources/src/jquery.json-deprecate.js
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/79/145679/1

diff --git a/resources/src/jquery.json-deprecate.js 
b/resources/src/jquery.json-deprecate.js
index 915cd85..8f90abf 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).' );

-- 
To view, visit https://gerrit.wikimedia.org/r/145679
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8fe83f30fd27f7bfe50e756846486abdadb91189
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to