mediawiki/extensions/ReadingLists: main (log #1966734)

sourcepatches

This run took 49 seconds.

From ecec8ee4140042af72b27e2127ce5e65d3b31adc Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Wed, 25 Jun 2025 03:21:40 +0000
Subject: [PATCH] build: Updating @wikimedia/codex to 2.2.0

Change-Id: I411adcc627acd731423497398199a5de0009f5a3
---
 package-lock.json | 16 ++++++++--------
 package.json      |  2 +-
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index 72759ac..d9cc6e4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,7 +9,7 @@
 				"@babel/preset-env": "7.25.4",
 				"@vue/test-utils": "2.4.6",
 				"@vue/vue3-jest": "29.2.6",
-				"@wikimedia/codex": "2.1.0",
+				"@wikimedia/codex": "2.2.0",
 				"@wikimedia/types-wikimedia": "0.4.4",
 				"api-testing": "1.7.1",
 				"eslint-config-wikimedia": "0.30.0",
@@ -3588,13 +3588,13 @@
 			}
 		},
 		"node_modules/@wikimedia/codex": {
-			"version": "2.1.0",
-			"resolved": "https://registry.npmjs.org/@wikimedia/codex/-/codex-2.1.0.tgz",
-			"integrity": "sha512-PgiHXbUoNT5SaPZ3dnGLJaCt6kbFMBUgq8LrDyhOXYiW7IqGgjvhaPri3hzKcNGf7jQxVSYFmeJvuC8n1RJ2sg==",
+			"version": "2.2.0",
+			"resolved": "https://registry.npmjs.org/@wikimedia/codex/-/codex-2.2.0.tgz",
+			"integrity": "sha512-r9PEWC45ouWYviufzm7NqVFDPQExzdr8jEhCY3gJq0ZCqN0G2mn/LfucbtaAcpMWgWy5x7VLqR09hGb00Dh8bA==",
 			"dev": true,
 			"dependencies": {
 				"@floating-ui/vue": "1.0.6",
-				"@wikimedia/codex-icons": "2.1.0"
+				"@wikimedia/codex-icons": "2.2.0"
 			},
 			"engines": {
 				"node": ">=20",
@@ -3605,9 +3605,9 @@
 			}
 		},
 		"node_modules/@wikimedia/codex-icons": {
-			"version": "2.1.0",
-			"resolved": "https://registry.npmjs.org/@wikimedia/codex-icons/-/codex-icons-2.1.0.tgz",
-			"integrity": "sha512-8MliGXYzOP9f1Dh5xdRNmBtkpoIn7wYW14XxnGH7tghhMmGAXjR0PB8+UyfGoqqZZBJpdca+gxNKCyDRVeBHEA==",
+			"version": "2.2.0",
+			"resolved": "https://registry.npmjs.org/@wikimedia/codex-icons/-/codex-icons-2.2.0.tgz",
+			"integrity": "sha512-VTDS3vZULIGN/ESVyJTl1FY5he/MtU+cEa6j+dJXEVKRP8ECrj/rBW9/BwloMm/I9jyLTHT0QWLBkHBZESN9uA==",
 			"dev": true,
 			"engines": {
 				"node": ">=20",
diff --git a/package.json b/package.json
index 32b6197..e3480f0 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
 		"@babel/preset-env": "7.25.4",
 		"@vue/test-utils": "2.4.6",
 		"@vue/vue3-jest": "29.2.6",
-		"@wikimedia/codex": "2.1.0",
+		"@wikimedia/codex": "2.2.0",
 		"@wikimedia/types-wikimedia": "0.4.4",
 		"api-testing": "1.7.1",
 		"eslint-config-wikimedia": "0.30.0",
-- 
2.39.5

$ date
--- stdout ---
Wed Jun 25 03:20:56 UTC 2025

--- end ---
$ git clone file:///srv/git/mediawiki-extensions-ReadingLists.git repo --depth=1 -b master
--- stderr ---
Cloning into 'repo'...
--- stdout ---

--- end ---
$ git config user.name libraryupgrader
--- stdout ---

--- end ---
$ git config user.email tools.libraryupgrader@tools.wmflabs.org
--- stdout ---

--- end ---
$ git submodule update --init
--- stdout ---

--- end ---
$ grr init
--- stdout ---
Installed commit-msg hook.

--- end ---
$ git show-ref refs/heads/master
--- stdout ---
55f9f50b4fae28feb540cefc43ddea8bb43d8b72 refs/heads/master

--- end ---
$ /usr/bin/npm audit --json
--- stdout ---
{
  "auditReportVersion": 2,
  "vulnerabilities": {},
  "metadata": {
    "vulnerabilities": {
      "info": 0,
      "low": 0,
      "moderate": 0,
      "high": 0,
      "critical": 0,
      "total": 0
    },
    "dependencies": {
      "prod": 1,
      "dev": 870,
      "optional": 5,
      "peer": 139,
      "peerOptional": 0,
      "total": 870
    }
  }
}

--- end ---
$ /usr/bin/composer install
--- stderr ---
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 38 installs, 0 updates, 0 removals
  - Locking composer/pcre (3.3.2)
  - Locking composer/semver (3.4.3)
  - Locking composer/spdx-licenses (1.5.9)
  - Locking composer/xdebug-handler (3.0.5)
  - Locking dealerdirect/phpcodesniffer-composer-installer (v1.1.0)
  - Locking doctrine/deprecations (1.1.5)
  - Locking felixfbecker/advanced-json-rpc (v3.2.1)
  - Locking mediawiki/mediawiki-codesniffer (v47.0.0)
  - Locking mediawiki/mediawiki-phan-config (0.15.1)
  - Locking mediawiki/minus-x (1.1.3)
  - Locking mediawiki/phan-taint-check-plugin (6.1.0)
  - Locking microsoft/tolerant-php-parser (v0.1.2)
  - Locking netresearch/jsonmapper (v4.5.0)
  - Locking phan/phan (5.4.5)
  - Locking php-parallel-lint/php-console-color (v1.0.1)
  - Locking php-parallel-lint/php-console-highlighter (v1.0.0)
  - Locking php-parallel-lint/php-parallel-lint (v1.4.0)
  - Locking phpcsstandards/phpcsextra (1.2.1)
  - Locking phpcsstandards/phpcsutils (1.0.12)
  - Locking phpdocumentor/reflection-common (2.2.0)
  - Locking phpdocumentor/reflection-docblock (5.6.2)
  - Locking phpdocumentor/type-resolver (1.10.0)
  - Locking phpstan/phpdoc-parser (2.1.0)
  - Locking psr/container (2.0.2)
  - Locking psr/log (3.0.2)
  - Locking sabre/event (5.1.7)
  - Locking squizlabs/php_codesniffer (3.12.2)
  - Locking symfony/console (v7.3.0)
  - Locking symfony/deprecation-contracts (v3.6.0)
  - Locking symfony/polyfill-ctype (v1.32.0)
  - Locking symfony/polyfill-intl-grapheme (v1.32.0)
  - Locking symfony/polyfill-intl-normalizer (v1.32.0)
  - Locking symfony/polyfill-mbstring (v1.32.0)
  - Locking symfony/polyfill-php80 (v1.32.0)
  - Locking symfony/service-contracts (v3.6.0)
  - Locking symfony/string (v7.3.0)
  - Locking tysonandre/var_representation_polyfill (0.1.3)
  - Locking webmozart/assert (1.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 38 installs, 0 updates, 0 removals
    0 [>---------------------------]    0 [->--------------------------]
  - Installing squizlabs/php_codesniffer (3.12.2): Extracting archive
  - Installing dealerdirect/phpcodesniffer-composer-installer (v1.1.0): Extracting archive
  - Installing composer/pcre (3.3.2): Extracting archive
  - Installing symfony/polyfill-php80 (v1.32.0): Extracting archive
  - Installing phpcsstandards/phpcsutils (1.0.12): Extracting archive
  - Installing phpcsstandards/phpcsextra (1.2.1): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.32.0): Extracting archive
  - Installing composer/spdx-licenses (1.5.9): Extracting archive
  - Installing composer/semver (3.4.3): Extracting archive
  - Installing mediawiki/mediawiki-codesniffer (v47.0.0): Extracting archive
  - Installing tysonandre/var_representation_polyfill (0.1.3): Extracting archive
  - Installing symfony/polyfill-intl-normalizer (v1.32.0): Extracting archive
  - Installing symfony/polyfill-intl-grapheme (v1.32.0): Extracting archive
  - Installing symfony/polyfill-ctype (v1.32.0): Extracting archive
  - Installing symfony/string (v7.3.0): Extracting archive
  - Installing symfony/deprecation-contracts (v3.6.0): Extracting archive
  - Installing psr/container (2.0.2): Extracting archive
  - Installing symfony/service-contracts (v3.6.0): Extracting archive
  - Installing symfony/console (v7.3.0): Extracting archive
  - Installing sabre/event (5.1.7): Extracting archive
  - Installing netresearch/jsonmapper (v4.5.0): Extracting archive
  - Installing microsoft/tolerant-php-parser (v0.1.2): Extracting archive
  - Installing webmozart/assert (1.11.0): Extracting archive
  - Installing phpstan/phpdoc-parser (2.1.0): Extracting archive
  - Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
  - Installing doctrine/deprecations (1.1.5): Extracting archive
  - Installing phpdocumentor/type-resolver (1.10.0): Extracting archive
  - Installing phpdocumentor/reflection-docblock (5.6.2): Extracting archive
  - Installing felixfbecker/advanced-json-rpc (v3.2.1): Extracting archive
  - Installing psr/log (3.0.2): Extracting archive
  - Installing composer/xdebug-handler (3.0.5): Extracting archive
  - Installing phan/phan (5.4.5): Extracting archive
  - Installing mediawiki/phan-taint-check-plugin (6.1.0): Extracting archive
  - Installing mediawiki/mediawiki-phan-config (0.15.1): Extracting archive
  - Installing mediawiki/minus-x (1.1.3): Extracting archive
  - Installing php-parallel-lint/php-console-color (v1.0.1): Extracting archive
  - Installing php-parallel-lint/php-console-highlighter (v1.0.0): Extracting archive
  - Installing php-parallel-lint/php-parallel-lint (v1.4.0): Extracting archive
  0/36 [>---------------------------]   0%
 26/36 [====================>-------]  72%
 36/36 [============================] 100%
1 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
17 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
--- stdout ---
PHP CodeSniffer Config installed_paths set to ../../mediawiki/mediawiki-codesniffer,../../phpcsstandards/phpcsextra,../../phpcsstandards/phpcsutils

--- end ---
Upgrading n:@wikimedia/codex from 2.1.0 -> 2.2.0
$ /usr/bin/npm install
--- stderr ---
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@wikimedia/codex@2.2.0',
npm WARN EBADENGINE   required: { npm: '>=10.8.1', node: '>=20' },
npm WARN EBADENGINE   current: { node: 'v18.19.0', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@wikimedia/codex-icons@2.2.0',
npm WARN EBADENGINE   required: { npm: '>=10.8.1', node: '>=20' },
npm WARN EBADENGINE   current: { node: 'v18.19.0', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN deprecated osenv@0.1.5: This package is no longer supported.
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead
npm WARN deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm WARN deprecated glob@7.1.7: Glob versions prior to v9 are no longer supported
npm WARN deprecated domexception@4.0.0: Use your platform's native DOMException instead
npm WARN deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.
--- stdout ---

added 869 packages, and audited 870 packages in 9s

139 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

--- end ---
$ package-lock-lint package-lock.json
--- stdout ---
Checking package-lock.json

--- end ---
$ /usr/bin/npm ci
--- stderr ---
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@wikimedia/codex@2.2.0',
npm WARN EBADENGINE   required: { node: '>=20', npm: '>=10.8.1' },
npm WARN EBADENGINE   current: { node: 'v18.19.0', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@wikimedia/codex-icons@2.2.0',
npm WARN EBADENGINE   required: { node: '>=20', npm: '>=10.8.1' },
npm WARN EBADENGINE   current: { node: 'v18.19.0', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN deprecated osenv@0.1.5: This package is no longer supported.
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead
npm WARN deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm WARN deprecated glob@7.1.7: Glob versions prior to v9 are no longer supported
npm WARN deprecated domexception@4.0.0: Use your platform's native DOMException instead
npm WARN deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.
--- stdout ---

added 869 packages, and audited 870 packages in 13s

139 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

--- end ---
$ /usr/bin/npm test
--- stderr ---
PASS tests/jest/ext.readingLists.api/index.test.js
  setup
    ✓ returns inserted list (6 ms)
  getLists
    ✓ returns array of multiple lists (1 ms)
    ✓ paginates with continue token (1 ms)
    ✓ sets up default list if missing (1 ms)
    ✓ throws on unhandled error (1 ms)
  getList
    ✓ returns metadata of one list
    ✓ translates default list name/description (1 ms)
    ✓ sets up default list if missing (1 ms)
    ✓ throws on unhandled error (1 ms)
  getEntries
    ✓ returns array of list entries (2 ms)
    ✓ paginates with continue token (1 ms)
    ✓ sets up default list if missing (1 ms)
    ✓ throws on unhandled error (1 ms)
  getPagesFromManifest
    ✓ returns array of page metadata (1 ms)
    ✓ transforms language code to url (1 ms)
    ✓ resolves page ids to titles
    ✓ returns fallback on error (44 ms)
  createEntry
    ✓ returns inserted entry (1 ms)
  deleteEntry
    ✓ returns success message
  deleteEntries
    ✓ returns success message (1 ms)
  fromBase64
    ✓ returns entries with resolved pages (2 ms)
    ✓ returns error message

PASS tests/jest/ext.readingLists.special/Lists.test.js
  Entries
    ✓ renders properly (274 ms)

PASS tests/jest/ext.readingLists.special/Entries.test.js
  Entries
    ✓ renders properly (195 ms)

Test Suites: 3 passed, 3 total
Tests:       24 passed, 24 total
Snapshots:   2 passed, 2 total
Time:        3.612 s
Ran all test suites.
--- stdout ---

> test
> grunt test && npm run test:unit

Running "eslint:all" (eslint) task

Running "stylelint:all" (stylelint) task
>> Linted 11 files without errors

Running "banana:ReadingLists" (banana) task
>> 2 message directories checked.

Done.

> test:unit
> jest --verbose

  console.error
    whatever

      241 | 	} catch ( err ) {
      242 | 		// eslint-disable-next-line no-console
    > 243 | 		console.error( err );
          | 		        ^
      244 |
      245 | 		return entries.map( ( entry, i ) => ( {
      246 | 			id: entry.id || -1 - i,

      at Object.error [as getPagesFromManifest] (resources/ext.readingLists.api/index.js:243:11)
      at Object.<anonymous> (tests/jest/ext.readingLists.api/index.test.js:427:30)

-------------------------------------|---------|----------|---------|---------|-------------------------------------------------------------
File                                 | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                                           
-------------------------------------|---------|----------|---------|---------|-------------------------------------------------------------
All files                            |   74.75 |    57.56 |   60.86 |   74.68 |                                                             
 ext.readingLists.api                |     100 |     91.3 |     100 |     100 |                                                             
  index.js                           |     100 |     91.3 |     100 |     100 | 200,208,237-318                                             
 ext.readingLists.special/components |   63.75 |       36 |   41.86 |   64.18 |                                                             
  DisplayButton.vue                  |   53.12 |       25 |   71.42 |   54.83 | 81-96,117                                                   
  EditButton.vue                     |   92.85 |      100 |      75 |   92.85 | 30                                                          
  EmptyList.vue                      |   70.58 |      100 |       0 |   70.58 | 16,43-52                                                    
  EntryItem.vue                      |   76.19 |       50 |    62.5 |   76.19 | 18,44-50                                                    
  ImportDialog.vue                   |      50 |        0 |       0 |      50 | 18-35,49-70                                                 
  ListItem.vue                       |     100 |    66.66 |     100 |     100 | 34,36-58,70                                                 
  RemoveButton.vue                   |   37.03 |        0 |       0 |   37.03 | 23-65,80-114                                                
 ext.readingLists.special/pages      |   69.48 |    47.05 |      56 |   69.93 |                                                             
  Entries.vue                        |      65 |    48.31 |      50 |   65.65 | 65-73,78,93,102-110,116,120,126,135-151,158,165,170-171,208 
  Lists.vue                          |   77.77 |    43.33 |   63.63 |   77.77 | 39-44,49,71,77,87-88,93-94,120                              
-------------------------------------|---------|----------|---------|---------|-------------------------------------------------------------

--- end ---
$ /usr/bin/npm audit --json
--- stdout ---
{
  "auditReportVersion": 2,
  "vulnerabilities": {},
  "metadata": {
    "vulnerabilities": {
      "info": 0,
      "low": 0,
      "moderate": 0,
      "high": 0,
      "critical": 0,
      "total": 0
    },
    "dependencies": {
      "prod": 1,
      "dev": 870,
      "optional": 5,
      "peer": 139,
      "peerOptional": 0,
      "total": 870
    }
  }
}

--- end ---
$ package-lock-lint package-lock.json
--- stdout ---
Checking package-lock.json

--- end ---
build: Updating @wikimedia/codex to 2.2.0

$ git add .
--- stdout ---

--- end ---
$ git commit -F /tmp/tmp6_7xd0q7
--- stdout ---
[master ecec8ee] build: Updating @wikimedia/codex to 2.2.0
 2 files changed, 9 insertions(+), 9 deletions(-)

--- end ---
$ git format-patch HEAD~1 --stdout
--- stdout ---
From ecec8ee4140042af72b27e2127ce5e65d3b31adc Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Wed, 25 Jun 2025 03:21:40 +0000
Subject: [PATCH] build: Updating @wikimedia/codex to 2.2.0

Change-Id: I411adcc627acd731423497398199a5de0009f5a3
---
 package-lock.json | 16 ++++++++--------
 package.json      |  2 +-
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index 72759ac..d9cc6e4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,7 +9,7 @@
 				"@babel/preset-env": "7.25.4",
 				"@vue/test-utils": "2.4.6",
 				"@vue/vue3-jest": "29.2.6",
-				"@wikimedia/codex": "2.1.0",
+				"@wikimedia/codex": "2.2.0",
 				"@wikimedia/types-wikimedia": "0.4.4",
 				"api-testing": "1.7.1",
 				"eslint-config-wikimedia": "0.30.0",
@@ -3588,13 +3588,13 @@
 			}
 		},
 		"node_modules/@wikimedia/codex": {
-			"version": "2.1.0",
-			"resolved": "https://registry.npmjs.org/@wikimedia/codex/-/codex-2.1.0.tgz",
-			"integrity": "sha512-PgiHXbUoNT5SaPZ3dnGLJaCt6kbFMBUgq8LrDyhOXYiW7IqGgjvhaPri3hzKcNGf7jQxVSYFmeJvuC8n1RJ2sg==",
+			"version": "2.2.0",
+			"resolved": "https://registry.npmjs.org/@wikimedia/codex/-/codex-2.2.0.tgz",
+			"integrity": "sha512-r9PEWC45ouWYviufzm7NqVFDPQExzdr8jEhCY3gJq0ZCqN0G2mn/LfucbtaAcpMWgWy5x7VLqR09hGb00Dh8bA==",
 			"dev": true,
 			"dependencies": {
 				"@floating-ui/vue": "1.0.6",
-				"@wikimedia/codex-icons": "2.1.0"
+				"@wikimedia/codex-icons": "2.2.0"
 			},
 			"engines": {
 				"node": ">=20",
@@ -3605,9 +3605,9 @@
 			}
 		},
 		"node_modules/@wikimedia/codex-icons": {
-			"version": "2.1.0",
-			"resolved": "https://registry.npmjs.org/@wikimedia/codex-icons/-/codex-icons-2.1.0.tgz",
-			"integrity": "sha512-8MliGXYzOP9f1Dh5xdRNmBtkpoIn7wYW14XxnGH7tghhMmGAXjR0PB8+UyfGoqqZZBJpdca+gxNKCyDRVeBHEA==",
+			"version": "2.2.0",
+			"resolved": "https://registry.npmjs.org/@wikimedia/codex-icons/-/codex-icons-2.2.0.tgz",
+			"integrity": "sha512-VTDS3vZULIGN/ESVyJTl1FY5he/MtU+cEa6j+dJXEVKRP8ECrj/rBW9/BwloMm/I9jyLTHT0QWLBkHBZESN9uA==",
 			"dev": true,
 			"engines": {
 				"node": ">=20",
diff --git a/package.json b/package.json
index 32b6197..e3480f0 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
 		"@babel/preset-env": "7.25.4",
 		"@vue/test-utils": "2.4.6",
 		"@vue/vue3-jest": "29.2.6",
-		"@wikimedia/codex": "2.1.0",
+		"@wikimedia/codex": "2.2.0",
 		"@wikimedia/types-wikimedia": "0.4.4",
 		"api-testing": "1.7.1",
 		"eslint-config-wikimedia": "0.30.0",
-- 
2.39.5


--- end ---
Source code is licensed under the AGPL.