Commit graph

460 commits

Author SHA1 Message Date
jenkins-bot bc13671078 Merge "ApiQueryExtracts: Use raw text from ParserOutput" 2024-11-15 15:36:35 +00:00
Translation updater bot 56b3c275d6
Localisation updates from https://translatewiki.net.
Change-Id: Icd8aceab1f877f3bd5407e1dbb6477278022694c
2024-11-06 08:24:23 +01:00
libraryupgrader 064d5c4c33 build: Updating mediawiki/mediawiki-codesniffer to 45.0.0
Change-Id: I14189a2b7fb18934db3bcfb31540046d230b9fb0
2024-11-03 07:04:45 +00:00
Umherirrender 5e77fefa8f Use type-declaration on api module constructor
Parent class constructor gets type-declaration in 1145328459
Remove simple doc-blocks without further information

Change-Id: Idc3752caae29da4eaed37da3fd2dc5ad813f74f2
2024-10-25 20:28:11 +02:00
Translation updater bot c52c539834
Localisation updates from https://translatewiki.net.
Change-Id: I276108eeab0d250ef9f01af5230068a8edbe4adc
2024-10-25 09:52:45 +02:00
Umherirrender 95de114452 Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: Ibe1138dab9ef7acfdab33c23590af90fefeb9f7c
2024-10-20 13:21:15 +02:00
jenkins-bot 23791622e0 Merge "Use extension namespace for TextExtracts" 2024-09-12 16:05:21 +00:00
libraryupgrader e2f116a0e4 build: Updating micromatch to 4.0.8
* https://github.com/advisories/GHSA-952p-6rrq-rcjv

Change-Id: I08d3d9cd9f41ba985f723d24a6e522d7cf608d2b
2024-08-31 07:53:00 +00:00
James D. Forrester 919fc17a13 build: Update MediaWiki requirement to 1.43
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: Id189f2bcee4f05501bf2f361579f036ec64614b3
2024-08-22 18:33:38 -04:00
libraryupgrader ffd85d7209 build: Updating mediawiki/mediawiki-codesniffer to 44.0.0
Change-Id: I2ec32d8cf0988a05c7b7a343ff6027b5da2292cc
2024-08-12 23:05:57 +00:00
Bartosz Dziewoński 207242f93d ApiQueryExtracts: Use raw text from ParserOutput
Use ParserOutput::getRawText() instead of deprecated getText().
This avoids a dependency on MediaWiki\OutputTransform classes,
which call into Skin and lots of other scary code.

Small updates are needed so that we continue stripping the TOC
and section edit links in this format.

This simultaneously reverts two patches that were only needed to work
around problems caused by markup added by OutputTransforms:
* Revert "Skip <h2> in TOC when extracting first section"
  This reverts commit 60e1c5ad83.
* Revert "ExtractFormatter: Rescue headings from being removed"
  This reverts commit 0fafa44a20.

Change-Id: Ie436576a356d05f2c4c4b84c8c1d82ba70d357d4
2024-07-16 15:21:59 +00:00
jenkins-bot 173012d395 Merge "ExtractFormatter: Rescue headings from being removed" 2024-07-16 15:05:46 +00:00
Bartosz Dziewoński 0fafa44a20 ExtractFormatter: Rescue headings from being removed
Bug: T363445
Change-Id: I662fe3dd06d6b010108c6f0ef891a8c6113b9a45
2024-07-16 15:02:03 +00:00
alistair3149 cc8cf471fc
Use extension namespace for TextExtracts
Change-Id: I01177e9bef0f25b6245ee3e93f605dc771642273
2024-07-12 18:46:33 -04:00
jenkins-bot 4e9b6273f4 Merge "Add extracts to REST search as description" 2024-07-12 17:41:19 +00:00
alistair3149 fe3982c204 Add extracts to REST search as description
Add the config $wgExtractsExtendRestSearch to enable adding the extracts
to REST search as description. It is disabled by default.

Change-Id: I4335f161856b3a4035333de6eb4f547745480d91
2024-07-12 07:10:30 +00:00
Umherirrender 290be2e8de Replace deprecated ApiPageSet::getGoodTitles
PageIdentity does not have inNamespace() (it is from LinkTarget)
PageIdentity does not have getContentModel(), use the WikiPage instead
Inject a TitleFormatter to get the prefixed title text

Bug: T339384
Change-Id: I0029e718f20ca01ee3cd13ada8be04a16480d51d
2024-07-05 22:05:55 +02:00
jenkins-bot e623c552d2 Merge "ApiQueryExtracts: Replace custom parsing logic with ParserOutputAccess" 2024-07-05 19:04:17 +00:00
Translation updater bot d8e028a28c
Localisation updates from https://translatewiki.net.
Change-Id: I3570608a84a4fca64e65b509de619168d91ae0c7
2024-07-01 09:26:34 +02:00
libraryupgrader c086438ee6 build: Updating eslint-config-wikimedia to 0.28.2
Change-Id: I08e42b6084b3f1a3cdda5c98f3fd84537b748451
2024-06-22 03:07:54 +00:00
Bartosz Dziewoński 44a3c538e1 ApiQueryExtracts: Replace custom parsing logic with ParserOutputAccess
Change-Id: I853617651867044cbe2624857ba08753cce332a5
2024-06-20 23:03:39 +02:00
libraryupgrader 7f9f4ff4a3 build: Updating braces to 3.0.3
* https://github.com/advisories/GHSA-grv7-fg5c-xmjg

Change-Id: I4ef9a7ba8fbe85483bc902b0fabf9d8024120789
2024-06-13 00:22:55 +00:00
Umherirrender ee51b400b0 Use namespaced classes
Change-Id: Ic2db9150469e64bb0f478cf0c431d9f5824a23c9
2024-06-10 21:59:11 +02:00
libraryupgrader 0261dce3a7 build: Updating eslint-config-wikimedia to 0.28.0
Change-Id: I58d5e95f53264c5a96c2a773b81261b5f506c4ea
2024-06-08 05:08:29 +00:00
libraryupgrader f8236279b2 build: Updating grunt-banana-checker to 0.13.0
Change-Id: I5dee1e36073500a360b9c51304b903812642d433
2024-05-19 04:31:09 +00:00
libraryupgrader 8fc7ae0ebc build: Updating grunt-banana-checker to 0.12.0
Change-Id: I37b4c6e91c95d88e9af73d121f771f320652bd10
2024-05-11 00:53:53 +00:00
libraryupgrader cdaae5c562 build: Updating composer dependencies
* mediawiki/minus-x: 1.1.1 → 1.1.3
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

Change-Id: Ib40719e7638ce7674d5b168dd86ac66ac579ee5f
2024-05-06 07:13:32 +00:00
libraryupgrader 512a234bd5 build: Updating eslint-config-wikimedia to 0.27.0
Change-Id: I7d7ae2b8e0a731db12cc93c818c795935e9a1a8f
2024-04-18 06:12:10 +00:00
Translation updater bot bb69da550d Localisation updates from https://translatewiki.net.
Change-Id: If3610487879026c48ff7debff85d0949fac850fc
2024-03-18 08:31:53 +01:00
Umherirrender 74bdf0a7dd build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Change-Id: I7a3887f4fac7c4e78e0828fca52d0c355357e5b1
2024-03-12 20:22:40 +01:00
libraryupgrader ee498dc2a2 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.1 → 0.14.0

npm:
* eslint-config-wikimedia: 0.25.0 → 0.26.0
* grunt-banana-checker: 0.11.0 → 0.11.1
* grunt-eslint: 24.0.1 → 24.3.0

Change-Id: I3cd73491fbea85e9b99e3712212524242a3e932c
2024-02-10 23:29:38 +00:00
Translation updater bot a78acfa3df Localisation updates from https://translatewiki.net.
Change-Id: I2e07e43aab961c1a28f6c72e65f2fa23bcd7ac85
2024-02-07 08:27:46 +01:00
libraryupgrader 695b937ca6 build: Updating npm dependencies
* eslint-plugin-compat: 4.0.2 → 4.2.0
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
* semver: 7.3.5 → 7.5.4
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
* word-wrap: 1.2.3 → 1.2.5
  * https://github.com/advisories/GHSA-j8xg-fqg3-53r7

Change-Id: Ic342e38f381538d2e0b7c43f41d04ae9d6c2bec1
2024-02-04 12:56:02 +00:00
Translation updater bot c40597533d Localisation updates from https://translatewiki.net.
Change-Id: I6b7e712043ca7a499e71c45951a8a9b49038e2ac
2024-02-01 09:03:42 +01:00
James D. Forrester 1d612045c0 build: Update MediaWiki requirement to 1.42
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I29fd0a17e6f5bf8da5f4a436fbfaa08585218963
2024-01-12 18:33:00 -05:00
Umherirrender 90040f278a Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I45053ede3898b5c886a8182659466d321126ac1f
2024-01-04 22:22:49 +01:00
Translation updater bot 65b0eb6e88 Localisation updates from https://translatewiki.net.
Change-Id: I1595f1b4365b5426e04923859ff2c63071de3316
2023-12-13 08:42:02 +01:00
Translation updater bot 920c058d27 Localisation updates from https://translatewiki.net.
Change-Id: I5a9912953a884960e86a536ae70413c4ae2459a3
2023-11-29 08:31:52 +01:00
Translation updater bot 92a470269b Localisation updates from https://translatewiki.net.
Change-Id: I6da43620c7bc76bb5da3edaa71cb87c88e8022c8
2023-09-25 08:47:08 +02:00
Translation updater bot 7fbfe8564c Localisation updates from https://translatewiki.net.
Change-Id: Id146ad241f876d4d66b0443bdb51b1dc37298868
2023-09-18 08:44:58 +02:00
Translation updater bot 5e9496c6b7 Localisation updates from https://translatewiki.net.
Change-Id: I726e05394061ae081cc48260e61de423bfd73dda
2023-09-01 09:03:39 +02:00
jenkins-bot 84266ef050 Merge "ExtractFormatter: Update for HtmlFormatter 4.0.0" 2023-08-23 16:02:37 +00:00
Translation updater bot f3bc3bbb55 Localisation updates from https://translatewiki.net.
Change-Id: Ic0d3f9d5f3920403f11e2968370f85bba5dffc10
2023-08-23 08:40:38 +02:00
Reedy 47172479bb ExtractFormatter: Update for HtmlFormatter 4.0.0
Bug: T330528
Depends-On: Id785cfd2e00762ca6c1ea80200dd4a3d197640f2
Change-Id: I496d84fab3ee8feee5891ca984f37e90837d857c
2023-08-22 20:50:03 +00:00
gerritbot 71e31619f2 Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I09a9c9f6294c9988feb3c2eba46ffde73996b3d3
2023-08-19 18:08:08 +00:00
jenkins-bot 2a12962ecf Merge "build: Update MediaWiki requirement to 1.41" 2023-08-19 09:52:29 +00:00
James D. Forrester 7cf9db11ca build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: Ica46fa97ca72a58192ff90447f2a72d3d90b4b4a
2023-08-19 14:09:59 +08:00
James D. Forrester 9fbd023a69 build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I01b3eb2ff75809582eeb151632fc1633e524ddc1
2023-08-19 14:09:54 +08:00
Translation updater bot 5bf204a410 Localisation updates from https://translatewiki.net.
Change-Id: If46bb978b9de5f206b67f7a2c9afea68076f5eac
2023-08-18 09:09:14 +02:00
Umherirrender ce0bcb5c82 Use HookHandlers for core hooks
The use of "HookHandlers" attribute in extension.json makes it possible
to inject services into hook handler classes in a future patch.

Bug: T271032
Change-Id: I612c09264b830fe5588aafdad80a9eebaa66d71b
2023-08-14 19:49:09 +02:00