Commit graph

86 commits

Author SHA1 Message Date
Antoine Musso 85d5d2f4db Remove Sinon.JS from package.json
The library was introduced in 37dc0b5ad to mock the History API. However
the extension package.json is solely used for linters such as eslint.
The JavaScript dependencies should be provided by a Resource Loader
module and mediawiki/core already provides Sinon.JS for the QUnit tests
(see tests/qunit/QUnitTestResources.php).

Remove sinon from this extension package.json and thus partially revert
37dc0b5ad. The sinon variable is still defined to please eslint.

Bug: T370573
Change-Id: I03d7fef161730d9f36b1367d931641430df4bfed
2024-07-24 19:19:08 +02:00
WMDE-Fisch 37dc0b5adb [QUnit] Avoid manipulating the global history
Also introducing sinon to mock some parts.

Bug: T370573
Change-Id: I5a7573bcac9501a7b37a12b86bb0d4f46055f70e
2024-07-23 22:19:58 +02:00
libraryupgrader 18c3b0a87a build: Updating npm dependencies
* eslint-config-wikimedia: 0.28.0 → 0.28.2
* grunt-stylelint: 0.20.0 → 0.20.1
* stylelint-config-wikimedia: 0.17.1 → 0.17.2

Change-Id: I798f739b5b2f12e5c6eedc88ecac557de28be129
2024-06-21 20:28:54 +00:00
libraryupgrader f5de8ee108 build: Updating npm dependencies
* eslint-config-wikimedia: 0.27.0 → 0.28.0
  The following rules are failing and were disabled:
  * modules:
    * no-mixed-spaces-and-tabs
    * no-jquery/no-extend
    * implicit-arrow-linebreak
  * tests/qunit:
    * no-jquery/no-extend

* grunt-stylelint: 0.19.0 → 0.20.0
* stylelint-config-wikimedia: 0.16.1 → 0.17.1

Change-Id: I3fd3c4a2cbb03d3aa4c8efb658e33d14d24cd518
2024-06-08 12:04:26 +00:00
libraryupgrader f11cfc95ff build: Updating grunt-banana-checker to 0.13.0
Change-Id: I1bd723ec50ae4a1e98b908f0972d52d59352d3c8
2024-05-19 00:31:07 +00:00
libraryupgrader 663a20a03d build: Updating dependencies
composer:
* mediawiki/minus-x: 1.1.1 → 1.1.3

npm:
* grunt-banana-checker: 0.11.1 → 0.12.0

Change-Id: I78c57df954b4fbdde6559598d15f00af13e9681c
2024-05-10 22:05:50 +00:00
libraryupgrader b8f57c9d1d build: Updating eslint-config-wikimedia to 0.27.0
Change-Id: I96a066dc8a4253a6be6485281a86e9a664d73fe3
2024-04-18 03:47:12 +00:00
libraryupgrader 8ca7a124a6 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.1 → 0.14.0

npm:
* grunt-banana-checker: 0.11.0 → 0.11.1
* debug: 2.6.9, 4.1.1, 4.3.1, 4.3.4 → 2.6.9, 4.3.1, 4.3.4
  * https://github.com/advisories/GHSA-gxpj-cx7g-858c
* semver: 5.7.1, 7.5.0, 7.5.4 → 5.7.2, 7.5.4, 7.6.0
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw

Change-Id: Id7a3c5822da56407f2f0963cf91bf9440fbde7f7
2024-02-13 03:17:04 +00:00
Volker E df7d5b95ac build: Update 'svgo' to latest v3.2.0 and re-minify SVGs
The latest update of 'svgo' dependency includes three optimizations on
converting path commands, which
- improves closing paths and how we determine if to use absolute or
  relative commands.
- round arc or convert to lines based on the geometric sagitta
- convert cubic Bézier curves to quadratic Bézier curves where possible
Also unifiying npm command to qua standard notation `minify:svg`.

Bug: T354875
Change-Id: I38ccbfa62ee7afcfb10eee7853b33648863f54ad
2024-01-16 00:17:03 +01:00
WMDE-Fisch 6482107b14 build: Update linter libs
* "eslint-config-wikimedia": "0.26.0"
* "grunt-eslint": "24.3.0"
* "grunt-stylelint": "0.19.0"
* "stylelint-config-wikimedia": "0.16.1"

Including auto fixes.

Change-Id: I24374dad734fca734f9c5e25cfa5b5380ad24c46
2023-11-24 10:14:15 +01:00
WMDE-Fisch fb3cf33e44 [build] Bump wdio-selenium to v2.3.0
Change-Id: Ib4056298f484b5def68699c0a9146324188df609
2023-09-22 14:22:26 +02:00
Volker E 7f6f5d7824 build: Update SVGO to v3.0.2
svgo         2.8.0  →   3.0.2

Amending to new `cleanupIds` plugin name.

Bug: T339162
Change-Id: I1eedb094b0afce2167c1de7296c81c30813838e0
2023-06-14 12:38:31 -07:00
libraryupgrader aacd7dba34 build: Updating npm dependencies
* grunt-banana-checker: 0.10.0 → 0.11.0
* stylelint-config-wikimedia: 0.14.0 → 0.15.0

Change-Id: I4ddab3580ba726a373f36cc96cd2ced448e96f39
2023-06-02 01:47:11 +00:00
libraryupgrader 50fe9c445b build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: Ib27405f6bab96e7edefae53e8e48dc6bd470443d
2023-05-05 10:49:05 +00:00
libraryupgrader 9dd40a599c build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.0 → 0.12.1

npm:
* grunt-eslint: 24.0.0 → 24.0.1

Change-Id: Ib973eda921fe671098e9ed4e98094d8b5da7091b
2023-04-29 09:51:30 +00:00
Vaughn Walters 8a53d056be selenium: Refactor WebdriverIO tests from sync to async mode
WebdriverIO has dropped support of sync mode, hence changed to async.

Update npm packages: @wdio/*, wdio-mediawiki
because async mode needs at least @wdio v7.9.

Remove npm packages: @wdio/dot-reporter and @wdio/sync.

Bug: T300798
Change-Id: I053ea6b5fbfdcff279f4eb10cf2429155690bd72
2023-03-31 14:10:46 -05:00
libraryupgrader 88f6eccd11 build: Updating npm dependencies
* eslint-config-wikimedia: 0.22.1 → 0.24.0
* grunt: 1.5.3 → 1.6.1
* stylelint-config-wikimedia: 0.13.0 → 0.14.0
  The following rules are failing and were disabled:
  * selector-pseudo-element-colon-notation

Change-Id: Ic78a5aa7fca2d917054eb26b5c8d46c008870484
2023-03-22 21:18:23 +00:00
Vaughn Walters 8461d956d4 selenium: Remove webdriverio npm package from the Revision Slider extension
The `webdriverio` package does not need to be an explicit dependency.
It is a dependency of `@wdio/cli`.

Bug: T325059
Change-Id: Id772e7e1438fb7ac7ff3c5e90dcff5a94783d13d
2023-01-13 11:09:50 -06:00
libraryupgrader 84b939292c build: Updating grunt-stylelint to 0.18.0
Change-Id: If26dfcedc2607127aa9456b296b0c775f9f5c438
2022-11-13 08:43:53 +00:00
libraryupgrader 7a3144e084 build: Updating grunt-banana-checker to 0.10.0
Change-Id: Ied496cc652a874860e734fe9885e76cfdb1cf3d3
2022-10-07 05:01:14 +00:00
libraryupgrader efa624bbc6 build: Updating grunt to 1.5.3
Change-Id: Ibcb4a1e3c0cc2c9e34666fecfd61703ee1394330
2022-05-27 00:23:42 +00:00
libraryupgrader 74ea0a4ce2 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 38.0.0 → 39.0.0
* mediawiki/mediawiki-phan-config: 0.11.0 → 0.11.1
* php-parallel-lint/php-console-highlighter: 0.5.0 → 1.0.0
* php-parallel-lint/php-parallel-lint: 1.3.1 → 1.3.2

npm:
* grunt: 1.4.1 → 1.5.2
* stylelint-config-wikimedia: 0.12.2 → 0.13.0
* wdio-mediawiki: 1.1.1 → 1.2.0
* async: 0.9.2 → 3.2.3
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
* ejs: 3.1.6 → 3.1.8
  * https://github.com/advisories/GHSA-phwq-j96m-2c2q
* jake: 10.8.2 → 10.8.5
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
* json-schema: 0.2.3 → 0.4.0
  * https://github.com/advisories/GHSA-896r-f27r-55mw
* jsprim: 1.4.1 → 1.4.2
  * https://github.com/advisories/GHSA-896r-f27r-55mw
* minimist: 1.2.5 → 1.2.6
  * https://github.com/advisories/GHSA-xvch-5gv4-984h
* mocha: 9.1.2 → 9.2.2
  * https://github.com/advisories/GHSA-qrpm-p2h7-hrv2
* nanoid: 3.1.25 → 3.3.1
  * https://github.com/advisories/GHSA-qrpm-p2h7-hrv2
* node-fetch: 2.6.1 → 2.6.7
  * https://github.com/advisories/GHSA-r683-j2x4-v87g

Additional changes:
* Set `name` in package.json.

Change-Id: If4b981e1fc37e9572864f51825caa96c889b4b3f
2022-05-21 11:26:40 +00:00
Ed Sanders 4a44f8c2e5 build: Update devDependencies
Change-Id: I0bbd117b2b3ebdfee8deb7ed38b409a561f570d5
2022-03-17 22:55:02 +00:00
Volker E 91ea0fcc92 build: Update 'svgo' to latest v2.8.0
Updating 'svgo' to v2.8.0 and newest Wikimedia SVG guidelines –
mainly around new whitespace features of SVGO.

Change-Id: Iac535fc7c3284de1ba495a483f9d0161a4dc0927
2022-02-27 03:01:09 -08:00
libraryupgrader 3c46c571be build: Updating npm dependencies
* @wdio/mocha-framework: 7.4.6 → 7.13.2
  * https://npmjs.com/advisories/5197 (CVE-2021-3807)
* nth-check: 2.0.0 → 2.0.1
  * https://npmjs.com/advisories/5101 (CVE-2021-3803)
* ansi-regex: 5.0.0 → 5.0.1
  * https://npmjs.com/advisories/5197 (CVE-2021-3807)

Additional changes:
* composer.json: Updated phpcs command in composer test (T280592).
* composer.json: Added phpcs command to scripts (T280592).

Change-Id: I1796f96f3110821fe0627211951a4a9b312c7b43
2021-10-05 07:45:42 +00:00
libraryupgrader 6ae0653003 build: Updating stylelint-config-wikimedia to 0.11.1
The following rules are failing and were disabled:
* declaration-property-unit-disallowed-list

Change-Id: I95dfc184629b92b85a82173473a55155ed1f3698
2021-09-04 21:55:16 +00:00
libraryupgrader 6b4edb0efd build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0

npm:
* svgo: 2.3.0 → 2.3.1
  * https://npmjs.com/advisories/1754 (CVE-2021-33587)
* postcss: 7.0.35 → 7.0.36
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)

Change-Id: Ia723f76e78bfbe616d03886ba526be72b8d094fe
2021-07-23 10:25:21 +00:00
sahil 45b95f90f3 selenium: Upgrade WebdriverIO to v7
Update npm packages: @wdio/* and webdriverio.

Also adding a fallback for the case, that the slider does
not open as expected.

It seems, that the update is causing some issues when
waiting for the module state. Waiting for the lazy module
in DiffPage.ready() should make sure, that the event to
trigger the opening of the slider is in place. This seems
to fail sometimes.

Bug: T274579
Change-Id: Icd597fc5aaa857879a8af310166867d433ba0678
2021-07-02 17:36:55 +05:30
Adam Wight 40de993f4c selenium: Update wdio-mediawiki and fix window resizing
wdio-mediawiki v1.1.1:
- Includes wdio-defaults.conf.js file that vastly simplifies wdio.conf.js.
- Replaces @wdio/spec-reporter with @wdio/dot-reporter.
- Introduces video recording.

Some part of the new setup seems to influnce they way how resize is applied
to the window. The fix makes sure it works as expected.

Bug: T283597
Change-Id: I20697815591243367b5a8bdd1cd1cc173a1ddc77
2021-05-27 10:17:30 +02:00
Volker E 5557f7d4ee build: Update SVGO to latest v2.3.0 and re-crush SVGs
SVGO v2.x changed configuration to JS, amending configuration.
Adding new 'minify-svg' npm script.
Also re-crushing SVGs.

Bug: T278656
Change-Id: I71621ebdd0c060a4252780e1ba387d707ac81eab
2021-05-17 17:45:58 -07:00
libraryupgrader bcdbec52a8 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0

npm:
* grunt: 1.3.0 → 1.4.0
* lodash: 4.17.20 → 4.17.21
  * https://npmjs.com/advisories/1673 (CVE-2021-23337)
* hosted-git-info: 2.8.8 → 3.0.8
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)
* ua-parser-js: 0.7.21 → 0.7.28
  * https://npmjs.com/advisories/1679 (CVE-2021-27292)
* postcss: 7.0.35 → 8.2.15
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)

Change-Id: I414aca6e82f401dec31a1358ea861b30105d73c8
2021-05-13 05:42:58 +00:00
libraryupgrader 0da4b7be69 build: Updating eslint-config-wikimedia to 0.20.0
Change-Id: I51b782486207ee8e1e983a3c962328e53b42a4c8
2021-04-14 03:28:41 +00:00
libraryupgrader f0e95b2911 build: Updating eslint-config-wikimedia to 0.19.0
Additional changes:
* eslint: Renamed `wikimedia/client` profile to `client-es5` (T277085).

Change-Id: I5d3bc67a9211350f8256e59aacce4ae7e4154573
2021-03-14 11:47:24 +00:00
libraryupgrader 3216dac855 build: Updating eslint-config-wikimedia to 0.18.2
Change-Id: I08049e4da36bd44c9061c49f5659cbe588df5a8a
2021-03-07 19:28:41 +00:00
libraryupgrader 6bbbf17aaa build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 34.0.0 → 35.0.0
* mediawiki/minus-x: 1.1.0 → 1.1.1

npm:
* eslint-config-wikimedia: 0.17.0 → 0.18.1

Additional changes:
* Added the "composer phan" command to conveniently run phan.

Change-Id: I741732764220eaba0b8a1356e793ce361d76c248
2021-01-30 09:26:11 +00:00
libraryupgrader 8ce9334583 build: Updating npm dependencies
* grunt-stylelint: 0.15.0 → 0.16.0
* stylelint-config-wikimedia: 0.10.1 → 0.10.3
  The following rules are failing and were disabled:
  * unit-disallowed-list

Change-Id: I75146f02a35e71063d2171d10d51774ade00222e
2020-11-22 09:27:59 +00:00
Ed Sanders 49d6f1ef8f build: Update eslint-config-wikimedia to 0.17.0
Fix instances of variable shadowing.

Change-Id: I9f8d4dcab8cb400d04600e7bb543ddda2705d1df
2020-09-11 16:28:52 +01:00
WMDE-Fisch 6d82ab303c build: Update wdio to 6.3.6
Change-Id: I9f08d11684940ccdeeb467d66b7ee0ec4be4c9b8
2020-09-01 13:44:18 +02:00
libraryupgrader b9951a31a3 build: Updating eslint-config-wikimedia to 0.16.2
Change-Id: I8961dd6a72fbbae3c659d411f78c1c7432b8dd49
2020-07-23 21:54:36 +00:00
vidhi-mody 94286fd79d Selenium: Update to WebdriverIO v6
Update NPM packages: @wdio/* and webdriverio.

Bug: T250601
Change-Id: Ia2dea1cda3efc5ac43f84d606f718eebce81e046
2020-07-23 01:06:18 +05:30
libraryupgrader 82780a8c0d build: Updating grunt to 1.2.1
Change-Id: I285f3cd759ff57422e3f501eb35cbe511d48c365
2020-07-18 22:23:02 +00:00
libraryupgrader 78ed4ab547 build: Updating eslint-config-wikimedia to 0.16.2
Change-Id: Iec24546623f311dbfdc5e21009190f4940e232ca
2020-07-16 02:28:18 +00:00
Ed Sanders eaa7966710 build: Update eslint-config-wikimedia to 0.16.1
Mostly documentation style fixes

Change-Id: I75262aead377f7f41931de44c5208b7b7d06930d
2020-06-16 15:13:36 +01:00
vidhi-mody 94b952e78a Selenium: Update to WebdriverIO v5
Update NPM packages: webdriverio, wdio-mediawiki.
Update ESlint configuration.

Replace NPM packages:
- wdio-mocha-framework with @wdio/mocha-framework.
- wdio-spec-reporter with @wdio/spec-reporter.

New NPM packages: @wdio/cli, @wdio/local-runner, @wdio/sync.

Replace:
- `browser.element` with `$`.
- `chromeOptions` with `'goog:chromeOptions'`.
- `password` with `mwPwd`.
- `username` with `mwUser`.
- `waitForVisible()` with `waitForDisplayed()`.
- `moveToObject()` with `moveTo()`.

Bug: T250601
Change-Id: I2c2e79800433eb964368d932954def69af936195
2020-05-24 01:21:04 +05:30
libraryupgrader dc1463dc9f build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 29.0.0 → 30.0.0

npm:
* eslint-config-wikimedia: 0.15.0 → 0.15.3
  The following rules are failing and were disabled:
  * mediawiki/class-doc
  * mediawiki/valid-package-file-require

* grunt-stylelint: 0.14.0 → 0.15.0
* stylelint-config-wikimedia: 0.9.0 → 0.10.1

Change-Id: I2b97bc8da27c435baa9ab4ff8c248d63094b6077
2020-04-22 19:01:40 +00:00
jenkins-bot 81a98350dd Merge "Add SVG minifier and minify files" 2020-04-20 15:11:30 +00:00
WMDE-Fisch fa9991ef99 Add SVG minifier and minify files
Following the standard in the minifier settings we use the SVG
is not inlined anymore. The files got still smaller and I guess
it's fine do leave them like this to meet the standards.

Change-Id: Icc673c5d4811bf707031a27cff78d48aab8f1fa1
2020-04-20 13:58:03 +02:00
libraryupgrader afdafc3b51 build: Updating grunt-banana-checker to 0.9.0
Change-Id: I841de635ca0ccbc7bef83e889ebf856817439c09
2020-04-19 17:23:24 +00:00
libraryupgrader aeb4a2eb0d build: Updating minimist to 1.2.5
* https://npmjs.com/advisories/1179

Change-Id: Ic5db7b89171152759f85a9500bd35699a30e07a9
2020-03-19 08:52:52 +00:00
libraryupgrader d448f5785a build: Updating npm dependencies
* grunt-stylelint: 0.13.0 → 0.14.0
* stylelint-config-wikimedia: 0.8.0 → 0.9.0

Change-Id: Ife898bd7bb66d7c6e1ea204d6d3cc7a681e87be6
2020-02-21 01:50:36 +00:00