Mark jquery.throttle-debounce as deprecated
authorEd Sanders <esanders@wikimedia.org>
Thu, 10 Jan 2019 13:21:38 +0000 (13:21 +0000)
committerJames D. Forrester <jforrester@wikimedia.org>
Wed, 6 Feb 2019 23:49:52 +0000 (15:49 -0800)
Bug: T213426
Change-Id: If1c165d479bc7b47f806fa20e103059bffc761f7

RELEASE-NOTES-1.33
resources/Resources.php

index 027aacd..69ab560 100644 (file)
@@ -229,6 +229,8 @@ because of Phabricator reports.
 * (T126091) The 'ResourceLoaderTestModules' hook, which lets you declare QUnit
   testing code for your JavaScript modules, is deprecated. Instead, you can now
   use the new extension registration key 'QUnitTestModule'.
+* (T213426) The jquery.throttle-debounce module has been deprecated. JavaScript
+  code that needs this behaviour should use OO.ui.debounce/throttle.
 
 === Other changes in 1.33 ===
 * (T208871) The hard-coded Google search form on the database error page was
index 83f11f8..f807228 100644 (file)
@@ -337,6 +337,8 @@ return [
                'targets' => [ 'mobile', 'desktop' ],
        ],
        'jquery.throttle-debounce' => [
+               'deprecated' => 'Please use OO.ui.throttle/debounce instead. See '
+                       . 'https://phabricator.wikimedia.org/T213426',
                'scripts' => 'resources/lib/jquery.ba-throttle-debounce.js',
                'targets' => [ 'desktop', 'mobile' ],
        ],