mediawiki/extensions/Translate (REL1_39)

sourcepatches
From bb87c67c27d560d91e99cb80c48a8526aa203e69 Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Thu, 12 Dec 2024 19:20:03 +0000
Subject: [PATCH] build: Updating nanoid to 3.3.8

* https://github.com/advisories/GHSA-mwcw-c2x4-8c55

Change-Id: If5e3ccb3d94f80a047dff4f0d36ab6e4da6a1fbb
---
 package-lock.json | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index a0582e9..f4fa9b8 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3009,9 +3009,9 @@
 			}
 		},
 		"node_modules/nanoid": {
-			"version": "3.3.7",
-			"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
-			"integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
+			"version": "3.3.8",
+			"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz",
+			"integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==",
 			"dev": true,
 			"funding": [
 				{
@@ -7041,9 +7041,9 @@
 			}
 		},
 		"nanoid": {
-			"version": "3.3.7",
-			"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
-			"integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
+			"version": "3.3.8",
+			"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz",
+			"integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==",
 			"dev": true
 		},
 		"natural-compare": {
-- 
2.39.2

$ date
--- stdout ---
Thu Dec 12 19:19:17 UTC 2024

--- end ---
$ git clone file:///srv/git/mediawiki-extensions-Translate.git repo --depth=1 -b REL1_39
--- 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/REL1_39
--- stdout ---
962be5546b92807e8a0ef78a57f0b8f303928359 refs/heads/REL1_39

--- end ---
$ /usr/bin/npm audit --json
--- stdout ---
{
  "auditReportVersion": 2,
  "vulnerabilities": {
    "nanoid": {
      "name": "nanoid",
      "severity": "low",
      "isDirect": false,
      "via": [
        {
          "source": 1101092,
          "name": "nanoid",
          "dependency": "nanoid",
          "title": "Infinite loop in nanoid",
          "url": "https://github.com/advisories/GHSA-mwcw-c2x4-8c55",
          "severity": "low",
          "cwe": [
            "CWE-835"
          ],
          "cvss": {
            "score": 0,
            "vectorString": null
          },
          "range": "<3.3.8"
        }
      ],
      "effects": [],
      "range": "<3.3.8",
      "nodes": [
        "node_modules/nanoid"
      ],
      "fixAvailable": true
    }
  },
  "metadata": {
    "vulnerabilities": {
      "info": 0,
      "low": 1,
      "moderate": 0,
      "high": 0,
      "critical": 0,
      "total": 1
    },
    "dependencies": {
      "prod": 1,
      "dev": 411,
      "optional": 0,
      "peer": 5,
      "peerOptional": 0,
      "total": 411
    }
  }
}

--- 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: 39 installs, 0 updates, 0 removals
  - Locking composer/installers (v2.3.0)
  - Locking composer/pcre (1.0.1)
  - Locking composer/semver (3.3.2)
  - Locking composer/spdx-licenses (1.5.8)
  - Locking composer/xdebug-handler (2.0.5)
  - Locking dealerdirect/phpcodesniffer-composer-installer (v0.7.2)
  - Locking felixfbecker/advanced-json-rpc (v3.2.1)
  - Locking mediawiki/mediawiki-codesniffer (v39.0.0)
  - Locking mediawiki/mediawiki-phan-config (0.11.1)
  - Locking mediawiki/minus-x (1.1.1)
  - Locking mediawiki/phan-taint-check-plugin (3.3.2)
  - Locking microsoft/tolerant-php-parser (v0.1.2)
  - Locking mustangostang/spyc (0.6.3)
  - Locking netresearch/jsonmapper (v4.5.0)
  - Locking phan/phan (5.2.0)
  - 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.3.2)
  - Locking phpdocumentor/reflection-common (2.2.0)
  - Locking phpdocumentor/reflection-docblock (5.3.0)
  - Locking phpdocumentor/type-resolver (1.6.2)
  - Locking phpstan/phpdoc-parser (0.4.9)
  - Locking psr/container (2.0.2)
  - Locking psr/log (2.0.0)
  - Locking sabre/event (5.1.7)
  - Locking slevomat/coding-standard (6.4.1)
  - Locking squizlabs/php_codesniffer (3.6.2)
  - Locking symfony/console (v5.4.47)
  - Locking symfony/deprecation-contracts (v3.5.1)
  - Locking symfony/polyfill-ctype (v1.31.0)
  - Locking symfony/polyfill-intl-grapheme (v1.31.0)
  - Locking symfony/polyfill-intl-normalizer (v1.31.0)
  - Locking symfony/polyfill-mbstring (v1.31.0)
  - Locking symfony/polyfill-php73 (v1.31.0)
  - Locking symfony/polyfill-php80 (v1.31.0)
  - Locking symfony/service-contracts (v3.5.1)
  - Locking symfony/string (v6.4.15)
  - 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: 39 installs, 0 updates, 0 removals
  - Downloading phpdocumentor/type-resolver (1.6.2)
  - Downloading phpdocumentor/reflection-docblock (5.3.0)
  - Downloading mustangostang/spyc (0.6.3)
  - Downloading phpstan/phpdoc-parser (0.4.9)
  - Downloading slevomat/coding-standard (6.4.1)
 0/5 [>---------------------------]   0%
 3/5 [================>-----------]  60%
 5/5 [============================] 100%
  - Installing composer/installers (v2.3.0): Extracting archive
  - Installing squizlabs/php_codesniffer (3.6.2): Extracting archive
  - Installing dealerdirect/phpcodesniffer-composer-installer (v0.7.2): Extracting archive
  - Installing composer/pcre (1.0.1): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.31.0): Extracting archive
  - Installing composer/spdx-licenses (1.5.8): Extracting archive
  - Installing composer/semver (3.3.2): Extracting archive
  - Installing mediawiki/mediawiki-codesniffer (v39.0.0): Extracting archive
  - Installing tysonandre/var_representation_polyfill (0.1.3): Extracting archive
  - Installing symfony/polyfill-php80 (v1.31.0): Extracting archive
  - Installing symfony/polyfill-intl-normalizer (v1.31.0): Extracting archive
  - Installing symfony/polyfill-intl-grapheme (v1.31.0): Extracting archive
  - Installing symfony/polyfill-ctype (v1.31.0): Extracting archive
  - Installing symfony/string (v6.4.15): Extracting archive
  - Installing symfony/deprecation-contracts (v3.5.1): Extracting archive
  - Installing psr/container (2.0.2): Extracting archive
  - Installing symfony/service-contracts (v3.5.1): Extracting archive
  - Installing symfony/polyfill-php73 (v1.31.0): Extracting archive
  - Installing symfony/console (v5.4.47): 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 phpdocumentor/reflection-common (2.2.0): Extracting archive
  - Installing phpdocumentor/type-resolver (1.6.2): Extracting archive
  - Installing phpdocumentor/reflection-docblock (5.3.0): Extracting archive
  - Installing felixfbecker/advanced-json-rpc (v3.2.1): Extracting archive
  - Installing psr/log (2.0.0): Extracting archive
  - Installing composer/xdebug-handler (2.0.5): Extracting archive
  - Installing phan/phan (5.2.0): Extracting archive
  - Installing mediawiki/phan-taint-check-plugin (3.3.2): Extracting archive
  - Installing mediawiki/mediawiki-phan-config (0.11.1): Extracting archive
  - Installing mediawiki/minus-x (1.1.1): Extracting archive
  - Installing mustangostang/spyc (0.6.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.3.2): Extracting archive
  - Installing phpstan/phpdoc-parser (0.4.9): Extracting archive
  - Installing slevomat/coding-standard (6.4.1): Extracting archive
  0/36 [>---------------------------]   0%
 20/36 [===============>------------]  55%
 34/36 [==========================>-]  94%
 36/36 [============================] 100%
6 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,../../slevomat/coding-standard

--- end ---
$ /usr/bin/npm audit --json
--- stdout ---
{
  "auditReportVersion": 2,
  "vulnerabilities": {
    "nanoid": {
      "name": "nanoid",
      "severity": "low",
      "isDirect": false,
      "via": [
        {
          "source": 1101092,
          "name": "nanoid",
          "dependency": "nanoid",
          "title": "Infinite loop in nanoid",
          "url": "https://github.com/advisories/GHSA-mwcw-c2x4-8c55",
          "severity": "low",
          "cwe": [
            "CWE-835"
          ],
          "cvss": {
            "score": 0,
            "vectorString": null
          },
          "range": "<3.3.8"
        }
      ],
      "effects": [],
      "range": "<3.3.8",
      "nodes": [
        "node_modules/nanoid"
      ],
      "fixAvailable": true
    }
  },
  "metadata": {
    "vulnerabilities": {
      "info": 0,
      "low": 1,
      "moderate": 0,
      "high": 0,
      "critical": 0,
      "total": 1
    },
    "dependencies": {
      "prod": 1,
      "dev": 411,
      "optional": 0,
      "peer": 5,
      "peerOptional": 0,
      "total": 411
    }
  }
}

--- end ---
Attempting to npm audit fix
$ /usr/bin/npm audit fix --dry-run --only=dev --json
--- stderr ---
npm WARN invalid config only="dev" set in command line options
npm WARN invalid config Must be one of: null, prod, production
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@es-joy/jsdoccomment@0.18.0',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || ^16 || ^17' },
npm WARN EBADENGINE   current: { node: 'v18.19.0', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'eslint-plugin-jsdoc@37.8.1',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || ^16 || ^17' },
npm WARN EBADENGINE   current: { node: 'v18.19.0', npm: '9.2.0' }
npm WARN EBADENGINE }
--- stdout ---
{
  "added": 411,
  "removed": 0,
  "changed": 0,
  "audited": 412,
  "funding": 65,
  "audit": {
    "auditReportVersion": 2,
    "vulnerabilities": {
      "nanoid": {
        "name": "nanoid",
        "severity": "low",
        "isDirect": false,
        "via": [
          {
            "source": 1101092,
            "name": "nanoid",
            "dependency": "nanoid",
            "title": "Infinite loop in nanoid",
            "url": "https://github.com/advisories/GHSA-mwcw-c2x4-8c55",
            "severity": "low",
            "cwe": [
              "CWE-835"
            ],
            "cvss": {
              "score": 0,
              "vectorString": null
            },
            "range": "<3.3.8"
          }
        ],
        "effects": [],
        "range": "<3.3.8",
        "nodes": [
          ""
        ],
        "fixAvailable": true
      }
    },
    "metadata": {
      "vulnerabilities": {
        "info": 0,
        "low": 1,
        "moderate": 0,
        "high": 0,
        "critical": 0,
        "total": 1
      },
      "dependencies": {
        "prod": 1,
        "dev": 411,
        "optional": 0,
        "peer": 5,
        "peerOptional": 0,
        "total": 411
      }
    }
  }
}

--- end ---
{"added": 411, "removed": 0, "changed": 0, "audited": 412, "funding": 65, "audit": {"auditReportVersion": 2, "vulnerabilities": {"nanoid": {"name": "nanoid", "severity": "low", "isDirect": false, "via": [{"source": 1101092, "name": "nanoid", "dependency": "nanoid", "title": "Infinite loop in nanoid", "url": "https://github.com/advisories/GHSA-mwcw-c2x4-8c55", "severity": "low", "cwe": ["CWE-835"], "cvss": {"score": 0, "vectorString": null}, "range": "<3.3.8"}], "effects": [], "range": "<3.3.8", "nodes": [""], "fixAvailable": true}}, "metadata": {"vulnerabilities": {"info": 0, "low": 1, "moderate": 0, "high": 0, "critical": 0, "total": 1}, "dependencies": {"prod": 1, "dev": 411, "optional": 0, "peer": 5, "peerOptional": 0, "total": 411}}}}
$ /usr/bin/npm audit fix --only=dev
--- stderr ---
npm WARN invalid config only="dev" set in command line options
npm WARN invalid config Must be one of: null, prod, production
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@es-joy/jsdoccomment@0.18.0',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || ^16 || ^17' },
npm WARN EBADENGINE   current: { node: 'v18.19.0', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'eslint-plugin-jsdoc@37.8.1',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || ^16 || ^17' },
npm WARN EBADENGINE   current: { node: 'v18.19.0', npm: '9.2.0' }
npm WARN EBADENGINE }
--- stdout ---

added 411 packages, and audited 412 packages in 3s

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

found 0 vulnerabilities

--- end ---
Verifying that tests still pass
$ /usr/bin/npm ci
--- stderr ---
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@es-joy/jsdoccomment@0.18.0',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || ^16 || ^17' },
npm WARN EBADENGINE   current: { node: 'v18.19.0', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'eslint-plugin-jsdoc@37.8.1',
npm WARN EBADENGINE   required: { node: '^12 || ^14 || ^16 || ^17' },
npm WARN EBADENGINE   current: { node: 'v18.19.0', npm: '9.2.0' }
npm WARN EBADENGINE }
--- stdout ---

added 411 packages, and audited 412 packages in 4s

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

found 0 vulnerabilities

--- end ---
$ /usr/bin/npm test
--- stdout ---

> test
> grunt test

Running "eslint:all" (eslint) task

/src/repo/resources/js/ext.translate.editor.js
  376:17  warning  Selector extensions are not allowed  no-jquery/no-sizzle
  628:6   warning  Selector extensions are not allowed  no-jquery/no-sizzle

/src/repo/resources/js/ext.translate.editor.shortcuts.js
  34:4  warning  Selector extensions are not allowed  no-jquery/no-sizzle

/src/repo/resources/js/ext.translate.messagetable.js
  281:25  warning  Selector extensions are not allowed             no-jquery/no-sizzle
  382:9   warning  Selector extensions are not allowed             no-jquery/no-sizzle
  396:16  warning  Positional selector extensions are not allowed  no-jquery/no-sizzle
  511:7   warning  Positional selector extensions are not allowed  no-jquery/no-sizzle

/src/repo/resources/src/ext.translate.special.languagestats/index.js
   20:3   warning  Positional selector extensions are not allowed                                      no-jquery/no-sizzle
   21:3   warning  Positional selector extensions are not allowed                                      no-jquery/no-sizzle
  204:19  warning  Selector extensions are not allowed                                                 no-jquery/no-sizzle
  255:3   warning  ResizeObserver.observe() is not supported in Safari 9.1, iOS Safari 9.0-9.2, IE 11  compat/compat
  255:3   warning  ResizeObserver is not supported in Safari 9.1, IE 11                                compat/compat

✖ 12 problems (0 errors, 12 warnings)


Running "banana:PageTranslation" (banana) task
>> 1 message directory checked.

Running "banana:Translate" (banana) task
>> 1 message directory checked.

Running "banana:TranslateApi" (banana) task
>> 1 message directory checked.

Running "banana:TranslateSandbox" (banana) task
>> 1 message directory checked.

Running "banana:TranslateSearch" (banana) task
>> 1 message directory checked.

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

Done.

--- end ---
{"1101092": {"source": 1101092, "name": "nanoid", "dependency": "nanoid", "title": "Infinite loop in nanoid", "url": "https://github.com/advisories/GHSA-mwcw-c2x4-8c55", "severity": "low", "cwe": ["CWE-835"], "cvss": {"score": 0, "vectorString": null}, "range": "<3.3.8"}}
Upgrading n:nanoid from 3.3.7 -> 3.3.8
$ package-lock-lint package-lock.json
--- stdout ---
Checking package-lock.json

--- end ---
build: Updating nanoid to 3.3.8

* https://github.com/advisories/GHSA-mwcw-c2x4-8c55

$ git add .
--- stdout ---

--- end ---
$ git commit -F /tmp/tmp33y48x_9
--- stdout ---
[REL1_39 bb87c67] build: Updating nanoid to 3.3.8
 1 file changed, 6 insertions(+), 6 deletions(-)

--- end ---
$ git format-patch HEAD~1 --stdout
--- stdout ---
From bb87c67c27d560d91e99cb80c48a8526aa203e69 Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Thu, 12 Dec 2024 19:20:03 +0000
Subject: [PATCH] build: Updating nanoid to 3.3.8

* https://github.com/advisories/GHSA-mwcw-c2x4-8c55

Change-Id: If5e3ccb3d94f80a047dff4f0d36ab6e4da6a1fbb
---
 package-lock.json | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index a0582e9..f4fa9b8 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3009,9 +3009,9 @@
 			}
 		},
 		"node_modules/nanoid": {
-			"version": "3.3.7",
-			"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
-			"integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
+			"version": "3.3.8",
+			"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz",
+			"integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==",
 			"dev": true,
 			"funding": [
 				{
@@ -7041,9 +7041,9 @@
 			}
 		},
 		"nanoid": {
-			"version": "3.3.7",
-			"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
-			"integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
+			"version": "3.3.8",
+			"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz",
+			"integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==",
 			"dev": true
 		},
 		"natural-compare": {
-- 
2.39.2


--- end ---

composer dependencies

Dependencies
Development dependencies

npm dependencies

Development dependencies

Logs

Source code is licensed under the AGPL.