Commit graph

405 commits

Author SHA1 Message Date
Timo Tijhof
609fb7bd4c resources: Register jquery.client as foreign resource and update to v2.0.1
Change-Id: Iec6414a1675dec4aeb5d9b66635d28670f094e42
2018-10-15 03:28:44 +01:00
Nikerabbit
4ad455a73c Merge "resources: Update CLDRPluralRuleParser to v1.3.2-pre" 2018-10-10 14:55:05 +00:00
Timo Tijhof
25fa7f8338 sinonjs: Update from 1.17.3 to 1.17.7
Upstream Sinon.JS no longer supports the pre-2.x v1.17 branch
anymore but there have been a few post-2.0 releases to address
bugs in v1.17 that we can still benefit from.

https://github.com/sinonjs/sinon/blob/v1.17.7/Changelog.txt

Notable changes include:

* Fix Blob feature test to support running tests on Safari 9.
* Avoid calls to object-local 'hasOwnProperty'.
* Improve error messages and stricter signature/type checks so
  that debugging code is easier when things go wrong.
* Fix various gaps in the XHR mock.
* Misc fixes for Node.js support.

Also remove outdated comment about ie-hacks from Sinon 1.15.

Change-Id: I66d1b461465b92798ad7eb2efcf4df2731cc78a4
2018-10-10 00:21:45 +00:00
Bartosz Dziewoński
75021af9f2 Update OOUI to v0.29.2
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.29.2

Bug: T206344
Depends-On: I607825c7df3d843f80f8d151c5c79c39cd629c17
Change-Id: I6db8fbb28ae1c190b1d9e2b4d4defdb20579a169
2018-10-09 00:44:22 +00:00
Timo Tijhof
af19e7b270 resources: Update CLDRPluralRuleParser to v1.3.2-pre
Not yet tagged as release, but updating ahead of that for the
performance improvement that landed with
https://github.com/santhoshtr/CLDRPluralRuleParser/commit/a7782ca.

This is particularly impactful on calls to mw.msg() during the
critical path, due to this library being called by jqueryMsg,
which is used by mw.Message#text, which mw.msg() calls by default.

Particularly seen in the startup code from ULS modules.

Bug: T127328
Change-Id: Ic865e7077d1053c65f7ae1633c60bf52104731b7
2018-10-04 22:17:30 +01:00
James D. Forrester
86ff8ccdcd Update OOUI to v0.29.1
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.29.1

Local fix to rcfilters for renamed parent method.

Bug: T130434
Bug: T165650
Bug: T183299
Bug: T196756
Bug: T205472
Bug: T205692
Bug: T205979
Bug: T206153
Bug: T206155
Depends-On: Ie847465af6762fd0322a5be4adf601cabda2d458
Change-Id: I704e3197e86d484be3ab91b9282d6ac1b7db2251
2018-10-04 10:41:14 -07:00
James D. Forrester
ac6e8495f2 resources: Make jquery.cookie a multi-file resource with changelog, licence
Change-Id: I47e25b1a7ac7d53932dfdfd37a47a38141f91be4
2018-09-24 10:14:31 -07:00
Timo Tijhof
137bba78ef resources: Update mustache.js from 0.8.2-d9aa703 to v1.0.0
Upstream commit 'd9aa703' is the commit right before the tagging
of v1.0.0. The only difference is the version string.

Change-Id: Icf7b7abacac583984977183da6f93f5fd02404fa
2018-09-23 20:18:47 +01:00
Volker E
b7fa6d10bb Update OOUI to v0.28.2
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.28.2

Bug: T190581
Bug: T202477
Bug: T203766
Bug: T203813
Depends-on: I8af1bfd86322f9dce8a5e406f0b41e5dbcd9686a
Change-Id: Ice05fc7b2b4fae1741c3211c5909ba64bbbf28c4
2018-09-11 17:30:16 -07:00
James D. Forrester
7cadf392f6 resources: Rename oojs-ui file paths to ooui per general branding
No change to the module names yet.

Change-Id: Ica33520b0128bd56dc06c8951bdc6932fce041fe
2018-09-10 14:35:45 -07:00
James D. Forrester
a6242eff16 Bump qunit from 2.6.0 to 2.6.2
Change-Id: Id7f47eee423c2fc1289f468c6622b952814d8912
2018-09-10 13:37:48 -07:00
Bartosz Dziewoński
c303342401 Update OOUI to v0.28.1
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.28.1

Depends-On: Ief8dd72fa454277c75aee367cd6421a61cff26f8
Change-Id: I8d8d99545151898ae9710c2c2ea46565b28258a3
2018-09-06 18:28:12 +02:00
Timo Tijhof
dbbb45eadb Update jQuery from v3.2.1 to v3.3.1
Notable change:

- Ajax: In Safari, $.ajax() previously did not reject the
        Deferred if the XHR timed out. It now does, just as
        it previously did already in other browsers.

- Deferred: Fixed a memory leak with callback closures.

- All: Misc perf optimisations and removal of code that
       provided compat for browsers no longer supported.

Full release notes at
- https://blog.jquery.com/2018/01/19/jquery-3-3-0-a-fragrant-bouquet
- https://blog.jquery.com/2018/01/20/jquery-3-3-1-fixed-dependencies

Change-Id: Ia141dd46dc5b97c0f9766b44fea7559b1148538a
2018-09-04 05:10:45 +01:00
Timo Tijhof
9f86db2028 resources: Move non-jquery files from /resources/lib/jquery to /resources/lib
Per discussion on T193826, these are not part of jquery (the library, or the
module), and should not be in the same subdirectory.

To follow the new convention that all entries directly in /resources/lib
should correspond to single library only (either as file, or as directory),
move them one directory up.

Bug: T193826
Change-Id: I24c05ec5fc5f0a2d54d501a4a022d829675bf850
2018-08-20 21:11:51 +00:00
Volker E
efbb7704a5 Update OOUI to v0.28.0
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.28.0

Bug: T109529
Bug: T183601
Bug: T183645
Bug: T185751
Bug: T189113
Bug: T189953
Bug: T190441
Bug: T190581
Bug: T194104
Bug: T197004
Bug: T198845
Bug: T201329
Bug: T201871
Depends-on: I3c000504661e190ac8752f69419bed28785601b5
Change-Id: I0c101a942011f6095678ffbd90f9bd536132091c
2018-08-15 17:23:05 +00:00
jenkins-bot
d5113fd1fc Merge "resourceloader: Combine base modules and page modules requests" 2018-08-08 17:47:27 +00:00
petarpetkovic
600df4e83e Fix common typos
Bug: T201491
Change-Id: Ia5abc6ae327ee9b5aeecb4b40f00ebb0285283a9
2018-08-08 13:16:45 +02:00
Timo Tijhof
dec800968e resourceloader: Combine base modules and page modules requests
This commit implements step 4 and step 5 of the plan outlined at T192623.

Before this task began, the typical JavaScript execution flow was:

* HTML triggers request for startup module (js req 1).
* Startup module contains registry, site config, and triggers
  a request for the base modules (js req 2).
* After the base modules arrive (which define jQuery and mw.loader),
  the startup module invokes a callback that processes RLQ,
  which is what will request modules for this page (js req 3).

In past weeks, we have:

* Made mediawiki.js independent of jQuery.
* Spun off 'mediawiki.base' from mediawiki.js – for everything
  that wasn't needed for defining `mw.loader`.
* Moved mediawiki.js from the base module request to being embedded
  as part of startup.js.

The concept of dependencies is native to ResourceLoader, and thanks to the
use of closures in mw.loader.implement() responses, we can download any
number of interdependant modules in a single request (or parallel requests).
Then, when a response arrives, mw.loader takes care to pause or resume
execution as-needed. It is normal for ResourceLoader to batch several modules
together, including their dependencies.

As such, we can eliminate one of the two roundtrips required before a
page can request modules. Specifically, we can eliminate "js req 2" (above),
by making the two remaining base modules ("jquery" and "mediawiki.base") an
implied dependency for all other modules, which ResourceLoader will naturally
fetch and execute in the right order as part of the batch request.

Bug: T192623
Change-Id: I17cd13dffebd6ae476044d8d038dc3974a1fa176
2018-08-08 02:56:50 +00:00
Fomafix
babcfc05e4 easydeflate.js: Use LF instead of CRLF as newline
Also add a newline at the end of the file.

Change-Id: I4c2c7814d16f066553faaaa7f0b98275a294b7c0
2018-08-06 22:41:08 +02:00
Volker E
fc22910be6 Update OOUI to v0.27.6
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.27.6

Depends-on: If801580bea0785e2cfb3d90e3abd058a7f00e0f9
Change-Id: Iaf66183f1c1899e2981aa0d8c1efd4ada404b917
2018-08-02 00:51:30 +02:00
James D. Forrester
6d3950c6b5 resources: Upgrade jquery.i18n from 1.0.4 to 1.0.5
Change-Id: I9b7eebaec8fea6c328543ebf18afa8062c54efbe
2018-08-01 13:29:55 -04:00
jenkins-bot
f506a05aaa Merge "Upstream EasyDeflate library from VisualEditor" 2018-07-26 15:06:41 +00:00
James D. Forrester
1abbc38666 Update OOUI to v0.27.5
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.27.5

Depends-On: I9d3b2480e1bece91f1e43fd268fa5ab0fbfb89aa
Change-Id: I2896bc9a07ab9939e254b18ee5ff3b38fdf5c44a
2018-07-11 11:43:15 -07:00
Volker E
159416491c Update OOUI to v0.27.4
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.27.4

Depends-on: I340d724fe7ede73cd7d20fa98184f33ad19b9148
Change-Id: I52f35f231d67f6fb6f0abfc268f25c5677e4b7ba
2018-06-27 20:48:42 +02:00
James D. Forrester
d1c10b8e63 Update OOjs to v2.2.2
Release notes:
 https://gerrit.wikimedia.org/r/plugins/gitiles/oojs/core/+/v2.2.2/History.md

Change-Id: I9d442180d54b8778119d79fa07118f65e62adf78
2018-06-14 15:55:50 -07:00
Ed Sanders
230e90b2af Upstream EasyDeflate library from VisualEditor
The library is used to compress large documents before
sending to the server, as HTTP doesn't support upload compression.
(See T68914 for context.)

N.B. Many of the polyfills in the original are omitted as
MediaWiki doesn't support browsers which require them.

Co-Authored-by: Kunal Mehta <legoktm@member.fsf.org>
Change-Id: I12a5879188f46f17dc4c33bdad52317d218d4172
2018-06-10 14:35:27 +00:00
James D. Forrester
f836c4ddfb Update OOUI to v0.27.3
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.27.3

Depends-On: Ifc0bfbbffb66dd45ebf442a227ae734de9b41964
Change-Id: Ifc0bfbbffb66dd45ebf442a227ae734de9b41961
2018-06-07 14:40:13 -07:00
Volker E
a6de745bc5 Update OOUI to v0.27.2
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.27.2

Depends-on: I6755650daf6be2e76785fda992d41c9e7e75e09c
Change-Id: Ieea0c26b0fa9d99c7fc7ebd6cca213e8c33db2ce
2018-06-06 18:49:23 +02:00
James D. Forrester
f15beb8b3b Update OOUI to v0.27.1
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.27.1

Depends-On: Idc156553fda9c5137d7e25a3d7a3c61837b4cc3a
Change-Id: I993a251172d1a238a5d2a52a20957afc659521e8
2018-05-30 15:07:56 +00:00
Volker E
fc88eead63 Update OOUI to v0.27.0
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.27.0

Depends-on: I40dc6a2441fcd37e785f11b7a5e2f5da932e94df
Change-Id: I2acf232fd172d176b305d65d88db5b7bbfe34b88
2018-05-09 17:22:07 +00:00
Timo Tijhof
715b6907ce CLDRPluralRuleParser: Move from src/ to lib/ without local patch
Follows-up 648667ac9f, which didn't move this module because
it had a local patch for exposing via module.exports and mw.lib
(instead of its default 'pluralRuleParser' global).

Restore the file back to a clean copy from upstream, and perform
the export via a separately concatenated file instead, using the
same pattern we already use for 'oojs' and 'moment'.

Change-Id: I27ee80dc34e0ad5206cf9c1ce68be3ec8811ecf8
2018-05-04 03:28:10 +01:00
Timo Tijhof
065b21b4bd Upgrade QUnit from 2.4.0 to 2.6.0
Source
 https://code.jquery.com/qunit/qunit-2.6.0.js
 https://code.jquery.com/qunit/qunit-2.6.0.css

Changelog
 https://github.com/qunitjs/qunit/blob/2.6.0/History.md

Highlights:
* 2.4.1: Fixed various bugs in HTML interface.
* 2.5.0: Added assert.rejects.
* 2.5.1: Fixed HTML reporter to reset attributes on qunit-fixture.
* 2.6.0: Changed behaviour to fail if no test suites exist.

Change-Id: I24120a74094db358f02f9fc1935920c43a0a7ced
2018-05-01 21:04:21 +01:00
Timo Tijhof
a0e22fb474 jquery.ui: Use on() instead of deprecated bind() in jquery.ui.mouse
Frequently seen on Beta Cluster due to indirect usage from
PageTriage extension.

Bug: T169385
Change-Id: Ia49ad6470aef1bcb1dd91c779dcd108a0a98d4dc
2018-04-28 01:18:18 +01:00
Volker E
86ae6cc9a8 Update OOUI to v0.26.5
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.26.5

Depends-on: Ieed078f4113e5ac4770c9e5d1f778a02c18ac6b7
Change-Id: Ia5e491f765935c2bf4bfeac2d02f1978f1a03b50
2018-04-24 23:59:24 +00:00
James D. Forrester
a268b03cd9 Update OOUI to v0.26.4
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.26.4

Depends-On: I41080edad6079b0ab792f65965f0c49753070d35
Change-Id: I41080edad6079b0ab792f65965f0c49753070d36
2018-04-17 17:05:33 -07:00
Kunal Mehta
c32bbd6c70 OOUI: Apex: Point pending.gif texture to a directory that exists
This is a manual cherry-pick of I6ad0ce9d62245255e.

Bug: T192173
Change-Id: I74374c49407dcb789ef8a9219158a9a773c09d81
2018-04-13 12:54:46 -07:00
Volker E
bf56ea3874 Update OOUI to v0.26.3
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.26.3

Depends-on: I1ff7a3f22c941cdd3347fc7a2a43159c3ddb8a2e
Change-Id: I5f97fb246cacb344c874e35893f73433d23a66ba
2018-04-10 18:50:25 -07:00
Volker E
7447a851ea Update OOUI to v0.26.2
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.26.2

Depends-On: If570668a7fa615b2ffc3474ce5a161515af05f3b
Change-Id: I0131533e91fc0e308f90aea2555ead07740b093d
2018-04-04 17:59:14 +00:00
James D. Forrester
8d68145a16 Update OOjs to v2.2.0
Release notes:
 https://gerrit.wikimedia.org/r/plugins/gitiles/oojs/core/+/v2.2.0/History.md

Change-Id: If2f673da4c2f6c1576620d96ed28ac4c538ba119
2018-04-03 13:38:16 -07:00
James D. Forrester
69fac50dc2 Update OOUI to v0.26.1
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.26.1

Depends-On: Ia4bd9eb5c3909fd1fa8b7ee41a0401c328eaecaa
Change-Id: Ia4bd9eb5c3909fd1fa8b7ee41a0401c328eaecab
2018-03-23 17:06:49 -07:00
Volker E
345eca6b68 Update OOUI to v0.26.0
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.26.0

Depends-on: Ic1d39a0ea9d44638f8af174592cee070bad89cc7
Change-Id: Ib4789239c10c2c505af8a743cd6f4474fcabe446
2018-03-21 19:14:27 +00:00
Volker E
372a40b7ed Update OOUI to v0.25.3
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.25.3

Depends-On: I4b847a3e253def12ba1fa15607e1700a4a2c236a
Change-Id: Id10209ea2e36beaac36a0d3509edaa83442290b4
2018-03-07 18:01:40 +00:00
Volker E
ac5eeba344 Update OOUI to v0.25.2
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.25.2

Depends-on: Ib00f16ef5e74732068822dc10d43314098b8fa59
Change-Id: Ie327a10622b64b7f969283497822c494c513585b
2018-02-06 17:17:21 -08:00
Volker E
a3123006fe Update OOUI to v0.25.1
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.25.1

Depends-on: I4d0697f93fccd919fedd370b0c196af8a3046c50
Change-Id: I6413f052928b1980a6a1031df92a932ba1f14941
2018-01-16 21:47:34 -08:00
James D. Forrester
383b11363b OOUI: Manually pull in fix from I99caad7b ahead of the release cycle
The .map file will be wrong, but those aren't used outside of an
experimental branch yet, so it's not the end of the world.

Bug: T184665
Change-Id: I9ff1ed80496ec61b836de4221dd36cde6d4a71ac
2018-01-12 08:56:02 -08:00
Volker E
fb92620b34 Update OOUI to v0.25.0
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.25.0

Depends-On: I5f574a0d2702f421c0c9d2556e3162abd55b9f23
Change-Id: I8a5b279f6dcb9b620e3e4e8998fc2b2d678573db
2018-01-10 12:29:22 +00:00
Bartosz Dziewoński
68693d1930 Update OOjs UI to v0.24.4
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.24.4

Depends-On: Ia54fb8fddc159f1612ca3038cdbd7da63935aa83
Change-Id: I3e59bf24191ddb753602cd4221fe998b53d25d8c
2018-01-02 20:14:11 +00:00
James D. Forrester
d86afa678b resources: Upgrade jquery.chosen from 0.9.14 to 1.8.2
Change-Id: If9c720ebca8ca663869d0f73b0cd3ea415262cff
2017-12-27 11:54:11 +00:00
Bartosz Dziewoński
ec9e690f17 OOjs UI: Backport Iad4a2fd1bd985b4924e5ef1f822e1ea81ce0a988
Bug: T182359
Bug: T182395
Change-Id: I764a96780e418830e5c92ec57c50f549951ff47f
2017-12-14 23:56:40 +01:00
James D. Forrester
13de0c8f48 resources: Bump moment.js from 2.15.0 to 2.19.3
Languages and locales now with support:
* bm
* de-ch
* gom-latn
* gu
* kn
* sd
* tet
* ur
* uz-latn
* yo

Skipped languages because we don't support them in MW:
* ar-dz
* ar-kw
* ar-ly
* en-ie
* en-nz
* es-do
* es-us
* fr-ch
* me
* nl-be
* tlh
* tzl

Also drop 'x-pseudo' which was included but not used.

Bug: T161732
Bug: T181547
Change-Id: I7f89569c6ee6640d368af1378e84c5a9e725dad0
2017-11-29 19:53:35 +00:00