Permalink
Browse files

Remove JSON polyfill, deprecate 'json' module

All A-graded browsers now supports JSON so skip the
JSON polyfill. Krinkle investigated the current
status for 3 months on Wikimedia traffic (T141344#2784065)
with support being nearly 100%.

Bug: T141344
Change-Id: I8280faf1cbcd876ead2dafae4347b7d46e3e2acb
  • Loading branch information...
soulgalore authored and legoktm committed Nov 21, 2016
1 parent 4c142e1 commit fd5c3b5817167ef59342aaca17ac6bfe44e5a719
Showing with 11 additions and 533 deletions.
  1. +0 −1 Gruntfile.js
  2. +2 −6 resources/Resources.php
  3. +0 −519 resources/lib/json2/json2.js
  4. +0 −4 resources/src/json-skip.js
  5. +9 −3 resources/src/startup.js
View
@@ -33,7 +33,6 @@ module.exports = function ( grunt ) {
// Skip functions aren't even parseable
'!resources/src/dom-level2-skip.js',
'!resources/src/es5-skip.js',
'!resources/src/json-skip.js',
'!resources/src/mediawiki.hidpi-skip.js'
]
},
View
@@ -334,7 +334,6 @@
'message' => 'Please use "mediawiki.storage" instead.',
],
'scripts' => 'resources/lib/jquery/jquery.jStorage.js',
'dependencies' => 'json',
],
'jquery.suggestions' => [
'scripts' => 'resources/src/jquery/jquery.suggestions.js',
@@ -738,10 +737,10 @@
/* json2 */
// Deprecated since MediaWiki 1.29.0
'json' => [
'scripts' => 'resources/lib/json2/json2.js',
'deprecated' => 'Use of the "json" MediaWiki module is deprecated since MediaWiki 1.29.0',
'targets' => [ 'desktop', 'mobile' ],
'skipFunction' => 'resources/src/json-skip.js',
],
/* Moment.js */
@@ -926,7 +925,6 @@
'dom-level2-shim',
'mediawiki.api',
'mediawiki.api.edit',
'json',
],
'targets' => [ 'desktop', 'mobile' ],
],
@@ -1109,7 +1107,6 @@
'dependencies' => [
'jquery.byteLength',
'mediawiki.RegExp',
'json',
],
'targets' => [ 'desktop', 'mobile' ],
],
@@ -2353,7 +2350,6 @@
'targets' => [ 'desktop', 'mobile' ],
'dependencies' => [
'es5-shim',
'json',
],
],
Oops, something went wrong.

0 comments on commit fd5c3b5

Please sign in to comment.