Commit graph

215 commits

Author SHA1 Message Date
SecureLinkFixer updater bot d387adfc32 Updating domains.php from Mozilla
Change-Id: I20752f3de76c8e18fad02cce5c7011eba1e282b2
2023-03-19 00:00:39 +00:00
libraryupgrader 2e96eeee00 build: Updating npm dependencies
* eslint-config-wikimedia: 0.22.1 → 0.24.0
* grunt: 1.5.3 → 1.6.1

Change-Id: Iad89dea579365887cda36fca20d4815ce9408546
2023-03-16 06:38:58 +00:00
libraryupgrader 64edc1f367 build: Updating mediawiki/mediawiki-codesniffer to 41.0.0
Change-Id: I6b0ec76bdeb6940da6eaab11d48a2bc2958e29dd
2023-03-13 04:08:00 +00:00
SecureLinkFixer updater bot d3582c0ea6 Updating domains.php from Mozilla
Change-Id: Idf2d275a4276460aca2ee0d57df035f59e18b9e4
2023-03-12 00:01:07 +00:00
SecureLinkFixer updater bot 02db54be9c Updating domains.php from Mozilla
Change-Id: I2b0c87ecdef980443a4190d038aadaee16963979
2023-03-05 00:00:43 +00:00
SecureLinkFixer updater bot 392c5d189d Updating domains.php from Mozilla
Change-Id: I38eafceb91b1aee0d243abc865eb2206da2fe97b
2023-02-19 00:00:42 +00:00
SecureLinkFixer updater bot 7d003654f9 Updating domains.php from Mozilla
Change-Id: I2b55daddfdd33932d52818dd92ab53d4d1de47f4
2023-02-12 00:00:40 +00:00
SecureLinkFixer updater bot a2c081d0ad Updating domains.php from Mozilla
Change-Id: I6e8f90e0b2f19c629db6cbdc0b91fede0064f8ff
2023-02-05 00:00:38 +00:00
SecureLinkFixer updater bot 0202680d39 Updating domains.php from Mozilla
Change-Id: I1a289164f4dc1bc339c38ad4618b8b345c09ad70
2023-01-29 00:00:52 +00:00
SecureLinkFixer updater bot 920904b444 Updating domains.php from Mozilla
Change-Id: I8c82a670c62b91347dca7399b6eac9c8dd15e15b
2023-01-22 00:01:07 +00:00
SecureLinkFixer updater bot d4b90cc343 Updating domains.php from Mozilla
Change-Id: I0531c2b23973872bd53a0868609267859e3c3dc6
2023-01-15 00:00:38 +00:00
SecureLinkFixer updater bot 5af963505a Updating domains.php from Mozilla
Change-Id: I2cd59fdbdb099827fef3f7554f5b5fa88ce74a53
2023-01-08 00:00:38 +00:00
Alexander Vorwerk fecbbea085 Update domains.php from Mozilla
Change-Id: Icfb3373d549a7c588310bcfc4cc78b5a9b4ff2d0
2023-01-04 00:15:33 +01:00
libraryupgrader 0b37a340b7 build: Updating mediawiki/mediawiki-codesniffer to 40.0.1
Change-Id: Ifd5d13747b33681456f7267b68d605f35351a2ad
2022-11-16 16:12:33 +00:00
Alexander Vorwerk b0791f0bf3 Update domains.php from Mozilla
Change-Id: I3ae6765c044575bd7e907ffcc557debfb720e49f
2022-11-03 22:49:28 +01:00
Translation updater bot 6465b0462d Localisation updates from https://translatewiki.net.
Change-Id: I308c2a8912aefb1966c953b4ffd70988112ab7f5
2022-10-26 08:20:00 +02:00
libraryupgrader 7f0b091873 build: Updating minimatch to 3.0.8
* https://github.com/advisories/GHSA-f8q6-p94x-37v3

Change-Id: I8e677ae7d387c3980bfdf2cedfa81e5f3f28f6cf
2022-10-21 15:27:51 +00:00
libraryupgrader 256fe3650b build: Updating mediawiki/mediawiki-phan-config to 0.12.0
Change-Id: I49878345a7cd4b45833fd11a63779407c3134c13
2022-10-09 10:05:14 +00:00
Reedy 4341066093 tests: Replace assertRegExp with assertMatchesRegularExpression
The method was renamed in PHPUnit 9.

Bug: T320334
Change-Id: I0a3f80ca07eecede80e21c4937ce70ef557c5ca7
2022-10-08 23:55:14 +01:00
libraryupgrader 0c45f09e32 build: Updating grunt-banana-checker to 0.10.0
Change-Id: I2fce55e8da81268f54d6e4328cf346519e52f97e
2022-10-07 05:31:04 +00:00
Translation updater bot b58ad43fa6 Localisation updates from https://translatewiki.net.
Change-Id: Ia25c55181a96dc1612c0c3c88fb42e2b9b7690b0
2022-09-28 08:22:42 +02:00
Alexander Vorwerk 3688e145f2 Update domains.php from Mozilla
Change-Id: I262d497235b12f5b5bcfe5d73182d3834523519d
2022-09-25 20:01:31 +02:00
Reedy ef73b2224a extension.json: Bump required MW version to >= 1.35.0
1.34 doesn't have PHP 8 polyfills, nor does it require PHP >= 8.0

Follows-Up: Ibc0cbe5f7f14bd56d4e126fa7ed183a807d9a99c
Change-Id: I3aed519a755c5b4812c5c2d21dafb04e7f376884
2022-08-28 18:23:28 +01:00
Reedy b5c04d58c2 Updating domains.php from Mozilla
Change-Id: I3d1b850839419a77937ebbf672a1ae2f83c79c2d
2022-08-28 18:20:11 +01:00
Umherirrender f49dab01a1 Improve performance of string operation on domain lookup
The benchLookup.php shows that the lookups take half the time as before,
without more memory

In the lookup use offsets instead of preg_replace to create the smaller
strings, also simplify the return

In the hook handler use str_starts_with to check start of string,
strpos needs to scan the whole string for a negative check,
but we need only need information about the begin

Bug: T316443
Change-Id: Ibc0cbe5f7f14bd56d4e126fa7ed183a807d9a99c
2022-08-27 19:35:03 +00:00
Translation updater bot 6017162947 Localisation updates from https://translatewiki.net.
Change-Id: I5878b830330830945f41f0c31435b167c2951b98
2022-08-22 08:23:49 +02:00
Reedy c578d56db4 Updating domains.php from Mozilla
Change-Id: I4b07cc52233b632635d26396050961245615627b
2022-08-05 23:28:36 +01:00
Reedy fa39fd5658 Updating domains.php from Mozilla
Change-Id: I7ff511bc28db330efbbcde6c794b3ac2814aafdc
2022-07-06 23:59:06 +01:00
Reedy 6a5b5a3529 Updating domains.php from Mozilla
Change-Id: I9d44f316f71eddc713c4b1d89f78811f7f1644c1
2022-06-05 17:59:59 +01:00
Kunal Mehta 0509d34225 Switch to new hook handler format
* Turn HSTSPreloadLookup into a real service, per @todo
* Convert Hooks into a non-static class, take lookup as an argument
* Update tests for new calling style

== Test plan ==
* CI/tests pass
* Use Special:ExpandTemplates with a preloaded domain and localhost,
  observe preloaded link changes, localhost stays http

Bug: T271027
Change-Id: I0196350e85c09eedfba4dbf1dab81f9a757b2a12
2022-06-05 12:12:39 -04:00
libraryupgrader 62898355d3 build: Updating grunt to 1.5.3
Change-Id: I995f6499728ebd46c721b679c5f46c2017f775f3
2022-05-27 00:40:12 +00:00
libraryupgrader fcd0d9fa71 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:
* eslint-config-wikimedia: 0.20.0 → 0.22.1
* grunt: 1.4.0 → 1.5.2
* grunt-eslint: 23.0.0 → 24.0.0
* async: 3.2.0 → 3.2.3
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25

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

Change-Id: If0429061c2a50d8e9cdc24f4ffcb19ccfab33b7a
2022-05-21 11:54:59 +00:00
Reedy fa055b4dac Updating domains.php from Mozilla
Change-Id: I93b2d35d194cbee5a6c872ff04074dffd95d67bb
2022-05-07 21:25:26 +01:00
Reedy 79bb4621b7 Updating domains.php from Mozilla
Change-Id: I9d5bd81d8d7635fc8c2b81dcdbe6f1ac0a6dd1b6
2022-04-16 17:22:24 +01:00
Reedy 8dc17b5cfb BenchLookup: Add requireExtension() call
Change-Id: Ifee1ee3e3206252662ca80b802653c87d87d24d1
2022-03-11 22:44:30 +00:00
Reedy 7ffa095e03 Fix path to Benchmark class
Follow-Up: I4acd88242dde56a884d319dfc141a3511a8221a3
Change-Id: I96ad4cb194b3e26a9ce8bf559d8cee6f6a992d28
2022-03-11 22:43:55 +00:00
Reedy 561ae17cc8 Updating domains.php from Mozilla
Change-Id: I15f35c85d26f27a0af6e4a81b14d52442e2eb268
2022-03-01 12:19:18 +00:00
Reedy b76009382c Updating domains.php from Mozilla
Change-Id: I4cf111026dc730c2aeca7ca82b2245e3f3814fc6
2022-02-09 00:26:40 +00:00
Translation updater bot 1f82e82b7b Localisation updates from https://translatewiki.net.
Change-Id: I24444fe263883ff277147ea9fa0308061e130562
2022-01-17 08:12:56 +01:00
jenkins-bot 6c4a07925c Merge "MediaWikiTestCase -> MediaWikiIntegrationTestCase" 2021-12-03 16:08:12 +00:00
Reedy 2e20b3edcd Fetch list from GitHub
For some reason Mozilla is blocking our requests from Toolforge,
using GitHub is something we know that works and should be the
same in practice.

Bug: T292242
Change-Id: Ic7d5da9758122ecb36f5e8f43716b4f8cf6f889d
2021-11-24 21:56:13 +00:00
Kunal Mehta dfe75019c3 Updating domains.php from Mozilla
Change-Id: I774ef12fcfe926cec6bd63a5a47099cfef789e1b
2021-11-23 22:36:29 -08:00
Alexander Vorwerk d2f79d1664 MediaWikiTestCase -> MediaWikiIntegrationTestCase
MediaWikiTestCase has been renamed to MediaWikiIntegrationTestCase in 1.34.

Bug: T293043
Change-Id: I3a4b25e284497b72ef3fa6bb4082e07fb57a4fb9
2021-11-08 23:04:46 +00:00
libraryupgrader eb5b01b540 build: Updating mediawiki/mediawiki-codesniffer to 38.0.0
Change-Id: I82e5331e76b3c127a0cec62f5a24131b4e216cd1
2021-10-24 12:43:05 +00:00
Translation updater bot 9e5d18db64 Localisation updates from https://translatewiki.net.
Change-Id: I0dc3672c0236a867a752a8a78fa9355727e312a1
2021-10-18 15:21:15 +02:00
libraryupgrader 3bb3f3ebdc build: Updating ansi-regex to 5.0.1
* https://npmjs.com/advisories/1002401 (CVE-2021-3807)

Additional changes:
* Dropped default excluded folder(s) from .phpcs.xml (T274684).
* composer.json: Updated phpcs command in composer test (T280592).
* composer.json: Added phpcs command to scripts (T280592).

Change-Id: I5121a6bb36a62100300e1b48a86d3ec1c3fe5310
2021-10-08 07:00:15 +00:00
libraryupgrader 5f565c7227 build: Updating composer dependencies
* mediawiki/mediawiki-phan-config: 0.10.6 → 0.11.0
* php-parallel-lint/php-parallel-lint: 1.3.0 → 1.3.1

Change-Id: If884b16ee3e5f39a61b76ed376b37485db2c8995
2021-09-09 06:34:07 +00:00
libraryupgrader d9612a3282 build: Updating path-parse to 1.0.7
* https://npmjs.com/advisories/1773 (CVE-2021-23343)

Change-Id: If5b509c9ce4ef9f62472f11d5d5ea96ad3a202e1
2021-08-12 10:30:00 +00:00
SecureLinkFixer updater bot 6ae6484a12 Updating domains.php from Mozilla
Change-Id: I1059bfc31428d77ed3fb1fbf884dda5d369fa8e1
2021-08-01 00:00:49 +00:00
libraryupgrader 15b45eebb4 build: Updating mediawiki/mediawiki-codesniffer to 37.0.0
Change-Id: I8a4158927f9029b069686d39e5e6978cf36106f3
2021-07-24 01:58:33 +00:00