mediawiki/extensions/PictureGame (master)

sourcepatches
From bc953fb7c8a76991b32160ff46694261b526efef Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Fri, 7 May 2021 17:43:37 +0000
Subject: [PATCH] build: Updating dependencies
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

composer:
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0
* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0

npm:
* lodash: 4.17.19 → 4.17.21
  * https://npmjs.com/advisories/1673 (CVE-2021-23337)

Change-Id: Ic8b0348276f6b19596a82475944f63e70d6c3e9d
---
 composer.json     |  4 ++--
 package-lock.json | 12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/composer.json b/composer.json
index 4137227..aca1bd1 100644
--- a/composer.json
+++ b/composer.json
@@ -1,9 +1,9 @@
 {
 	"require-dev": {
-		"mediawiki/mediawiki-codesniffer": "35.0.0",
+		"mediawiki/mediawiki-codesniffer": "36.0.0",
 		"mediawiki/minus-x": "1.1.1",
 		"php-parallel-lint/php-console-highlighter": "0.5.0",
-		"php-parallel-lint/php-parallel-lint": "1.2.0"
+		"php-parallel-lint/php-parallel-lint": "1.3.0"
 	},
 	"scripts": {
 		"test": [
diff --git a/package-lock.json b/package-lock.json
index 43742f1..ec7c6f0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1618,9 +1618,9 @@
 			},
 			"dependencies": {
 				"lodash": {
-					"version": "4.17.20",
-					"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz",
-					"integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==",
+					"version": "4.17.21",
+					"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
+					"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
 					"dev": true
 				}
 			}
@@ -1994,9 +1994,9 @@
 			}
 		},
 		"lodash": {
-			"version": "4.17.19",
-			"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz",
-			"integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==",
+			"version": "4.17.21",
+			"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
+			"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
 			"dev": true
 		},
 		"lodash.memoize": {
-- 
2.20.1

$ date
Fri May  7 17:42:50 UTC 2021

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

$ git config user.name libraryupgrader

$ git config user.email tools.libraryupgrader@tools.wmflabs.org

$ git submodule update --init

$ grr init
Installed commit-msg hook.

$ git show-ref refs/heads/master
852654d5ace951baa6fce2af5b7407cc7d04d895 refs/heads/master

$ composer install
Loading composer repositories with package information
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
Package operations: 18 installs, 0 updates, 0 removals
  - Installing squizlabs/php_codesniffer (3.5.8): Loading from cache
  - Installing composer/spdx-licenses (1.5.5): Loading from cache
  - Installing composer/semver (3.2.4): Loading from cache
  - Installing mediawiki/mediawiki-codesniffer (v35.0.0): Loading from cache
  - Installing symfony/polyfill-php80 (v1.22.1): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.22.1): Loading from cache
  - Installing symfony/polyfill-intl-normalizer (v1.22.1): Loading from cache
  - Installing symfony/polyfill-intl-grapheme (v1.22.1): Loading from cache
  - Installing symfony/polyfill-ctype (v1.22.1): Loading from cache
  - Installing symfony/string (v5.2.6): Loading from cache
  - Installing psr/container (1.1.1): Loading from cache
  - Installing symfony/service-contracts (v2.4.0): Loading from cache
  - Installing symfony/polyfill-php73 (v1.22.1): Loading from cache
  - Installing symfony/console (v5.2.7): Loading from cache
  - Installing mediawiki/minus-x (1.1.1): Loading from cache
  - Installing php-parallel-lint/php-console-color (v0.3): Loading from cache
  - Installing php-parallel-lint/php-console-highlighter (v0.5): Loading from cache
  - Installing php-parallel-lint/php-parallel-lint (v1.2.0): Loading from cache
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
symfony/console suggests installing psr/log (For using the console logger)
Writing lock file
Generating autoload files
11 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Upgrading c:php-parallel-lint/php-parallel-lint from 1.2.0 -> 1.3.0
Upgrading c:mediawiki/mediawiki-codesniffer from 35.0.0 -> 36.0.0
$ composer update
Loading composer repositories with package information
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
Package operations: 0 installs, 3 updates, 0 removals
  - Updating squizlabs/php_codesniffer (3.5.8 => 3.6.0): Loading from cache
  - Updating mediawiki/mediawiki-codesniffer (v35.0.0 => v36.0.0): Loading from cache
  - Updating php-parallel-lint/php-parallel-lint (v1.2.0 => v1.3.0): Loading from cache
Writing lock file
Generating autoload files
11 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

{'MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment', 'MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected', 'MediaWiki.Usage.ExtendClassUsage.FunctionConfigUsage', 'Squiz.Scope.MethodScope.Missing', 'Generic.Files.LineLength.TooLong'}
Tests fail!
$ git checkout .phpcs.xml

$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
11 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

$ composer test
> parallel-lint . --exclude vendor --exclude node_modules
PHP 7.3.27 | 10 parallel jobs
......                                                       6/6 (100 %)


Checked 6 files in 0 seconds
No syntax error found
> minus-x check .
MinusX
======
Processing /src/repo...
.............................................................
.....
All good!
> phpcs -p -s
...... 6 / 6 (100%)


Time: 337ms; Memory: 22MB


Attempting to npm audit fix
$ npm audit fix --only=dev

> core-js@3.10.1 postinstall /src/repo/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

added 344 packages from 242 contributors in 12.817s

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

fixed 5 of 5 vulnerabilities in 344 scanned packages

Verifying that tests still pass
$ npm ci
npm WARN prepare removing existing node_modules/ before installation

> core-js@3.10.1 postinstall /src/repo/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

added 344 packages in 6.863s

$ npm test

> @ test /src/repo
> grunt test

Running "eslint:all" (eslint) task

/src/repo/resources/js/PictureGame.js
    5:0   warning  Invalid JSDoc tag name "ingroup"                                                                                                         jsdoc/check-tag-names
    8:5   warning  Unexpected 'var' declaration in the global scope, wrap in an IIFE for a local variable, assign as global property for a global variable  no-implicit-globals
   14:0   warning  Missing JSDoc @param "id" type                                                                                                           jsdoc/require-param-type
   17:3   warning  Prefer CSS transitions to .fadeOut                                                                                                       no-jquery/no-fade
   23:12  warning  Identifier '__admin_panel_now__' is not in camel case                                                                                    camelcase
   23:12  warning  '__admin_panel_now__' is not defined                                                                                                     no-undef
   24:10  warning  '__admin_panel_key__' is not defined                                                                                                     no-undef
   24:10  warning  Identifier '__admin_panel_key__' is not in camel case                                                                                    camelcase
   36:0   warning  Missing JSDoc @param "id" type                                                                                                           jsdoc/require-param-type
   37:0   warning  Expected @param names to be "id, imageName1, imageName2". Got "id, img1, img2, imageName1, imageName2"                                   jsdoc/check-param-names
   37:0   warning  Missing JSDoc @param "img1" type                                                                                                         jsdoc/require-param-type
   38:0   warning  Missing JSDoc @param "img2" type                                                                                                         jsdoc/require-param-type
   39:0   warning  Missing JSDoc @param "imageName1" type                                                                                                   jsdoc/require-param-type
   40:0   warning  Missing JSDoc @param "imageName2" type                                                                                                   jsdoc/require-param-type
   43:3   warning  Prefer CSS transitions to .fadeOut                                                                                                       no-jquery/no-fade
   49:12  warning  Identifier '__admin_panel_now__' is not in camel case                                                                                    camelcase
   49:12  warning  '__admin_panel_now__' is not defined                                                                                                     no-undef
   50:10  warning  Identifier '__admin_panel_key__' is not in camel case                                                                                    camelcase
   50:10  warning  '__admin_panel_key__' is not defined                                                                                                     no-undef
   64:0   warning  Missing JSDoc @param "id" type                                                                                                           jsdoc/require-param-type
   67:3   warning  Prefer CSS transitions to .fadeOut                                                                                                       no-jquery/no-fade
   73:12  warning  '__admin_panel_now__' is not defined                                                                                                     no-undef
   73:12  warning  Identifier '__admin_panel_now__' is not in camel case                                                                                    camelcase
   74:10  warning  '__admin_panel_key__' is not defined                                                                                                     no-undef
   74:10  warning  Identifier '__admin_panel_key__' is not in camel case                                                                                    camelcase
   78:5   warning  Unexpected alert                                                                                                                         no-alert
   87:12  warning  Expected '===' and instead saw '=='                                                                                                      eqeqeq
  105:3   warning  Unexpected alert                                                                                                                         no-alert
  130:0   warning  Missing JSDoc @param "imgSrc" type                                                                                                       jsdoc/require-param-type
  131:0   warning  Missing JSDoc @param "imgName" type                                                                                                      jsdoc/require-param-type
  132:0   warning  Missing JSDoc @param "imgDesc" type                                                                                                      jsdoc/require-param-type
  134:37  warning  'imgName' is defined but never used                                                                                                      no-unused-vars
  134:46  warning  'imgDesc' is defined but never used                                                                                                      no-unused-vars
  138:28  warning  Expected '===' and instead saw '=='                                                                                                      eqeqeq
  185:13  warning  Unexpected confirm                                                                                                                       no-alert
  204:3   warning  'LightBox' is not defined                                                                                                                no-undef
  207:4   warning  All 'var' declarations must be at the top of the function scope                                                                          vars-on-top
  211:4   warning  'LightBox' is not defined                                                                                                                no-undef
  214:5   warning  'LightBox' is not defined                                                                                                                no-undef
  221:5   warning  'LightBox' is not defined                                                                                                                no-undef
  238:16  warning  'data' is defined but never used                                                                                                         no-unused-vars
  249:11  warning  Expected '===' and instead saw '=='                                                                                                      eqeqeq
  255:88  warning  'st' is defined but never used                                                                                                           no-unused-vars
  255:92  warning  'doc' is defined but never used                                                                                                          no-unused-vars
  260:30  warning  'st' is already declared in the upper scope on line 255 column 88                                                                        no-shadow
  260:30  warning  'st' is defined but never used                                                                                                           no-unused-vars
  260:34  warning  'doc' is already declared in the upper scope on line 255 column 92                                                                       no-shadow
  260:34  warning  'doc' is defined but never used                                                                                                          no-unused-vars
  260:42  warning  This line has 2 statements. Maximum allowed is 1                                                                                         max-statements-per-line
  278:88  warning  'st' is defined but never used                                                                                                           no-unused-vars
  278:92  warning  'doc' is defined but never used                                                                                                          no-unused-vars
  283:30  warning  'st' is already declared in the upper scope on line 278 column 88                                                                        no-shadow
  283:30  warning  'st' is defined but never used                                                                                                           no-unused-vars
  283:34  warning  'doc' is already declared in the upper scope on line 278 column 92                                                                       no-shadow
  283:34  warning  'doc' is defined but never used                                                                                                          no-unused-vars
  283:42  warning  This line has 2 statements. Maximum allowed is 1                                                                                         max-statements-per-line
  299:0   warning  Missing JSDoc @param "message" type                                                                                                      jsdoc/require-param-type
  301:2   warning  Identifier 'imageOne_uploadError' is not in camel case                                                                                   camelcase
  313:2   warning  Identifier 'imageTwo_uploadError' is not in camel case                                                                                   camelcase
  324:2   warning  Identifier 'imageOne_completeImageUpload' is not in camel case                                                                           camelcase
  331:2   warning  Identifier 'imageTwo_completeImageUpload' is not in camel case                                                                           camelcase
  338:2   warning  Identifier 'imageOne_uploadComplete' is not in camel case                                                                                camelcase
  344:3   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  345:3   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  351:1   warning  This line has a length of 229. Maximum allowed is 100                                                                                    max-len
  361:3   warning  All 'var' declarations must be at the top of the function scope                                                                          vars-on-top
  361:7   warning  jQuery collection names must match the variablePattern                                                                                   no-jquery/variable-pattern
  361:16  warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  370:4   warning  All 'var' declarations must be at the top of the function scope                                                                          vars-on-top
  370:4   warning  Combine this with the previous 'var' statement                                                                                           one-var
  370:8   warning  jQuery collection names must match the variablePattern                                                                                   no-jquery/variable-pattern
  370:17  warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  375:2   warning  Identifier 'imageTwo_uploadComplete' is not in camel case                                                                                camelcase
  381:3   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  382:3   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  388:1   warning  This line has a length of 229. Maximum allowed is 100                                                                                    max-len
  398:3   warning  All 'var' declarations must be at the top of the function scope                                                                          vars-on-top
  398:7   warning  jQuery collection names must match the variablePattern                                                                                   no-jquery/variable-pattern
  398:16  warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  403:4   warning  Combine this with the previous 'var' statement                                                                                           one-var
  403:4   warning  All 'var' declarations must be at the top of the function scope                                                                          vars-on-top
  403:8   warning  jQuery collection names must match the variablePattern                                                                                   no-jquery/variable-pattern
  403:17  warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  453:2   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  455:3   warning  All 'var' declarations must be at the top of the function scope                                                                          vars-on-top
  469:2   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  471:3   warning  All 'var' declarations must be at the top of the function scope                                                                          vars-on-top
  489:2   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  495:2   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  500:2   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  506:2   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  512:2   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  518:2   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  523:2   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  528:2   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  534:2   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  540:2   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector
  546:2   warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible                                                       no-jquery/no-global-selector

✖ 98 problems (0 errors, 98 warnings)


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

Done.

Upgrading n:lodash from 4.17.19 -> 4.17.21
$ git add .

$ git commit -F /tmp/tmp4qxqg37d
[master bc953fb] build: Updating dependencies
 2 files changed, 8 insertions(+), 8 deletions(-)

$ git format-patch HEAD~1 --stdout
From bc953fb7c8a76991b32160ff46694261b526efef Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Fri, 7 May 2021 17:43:37 +0000
Subject: [PATCH] build: Updating dependencies
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

composer:
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0
* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0

npm:
* lodash: 4.17.19 → 4.17.21
  * https://npmjs.com/advisories/1673 (CVE-2021-23337)

Change-Id: Ic8b0348276f6b19596a82475944f63e70d6c3e9d
---
 composer.json     |  4 ++--
 package-lock.json | 12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/composer.json b/composer.json
index 4137227..aca1bd1 100644
--- a/composer.json
+++ b/composer.json
@@ -1,9 +1,9 @@
 {
 	"require-dev": {
-		"mediawiki/mediawiki-codesniffer": "35.0.0",
+		"mediawiki/mediawiki-codesniffer": "36.0.0",
 		"mediawiki/minus-x": "1.1.1",
 		"php-parallel-lint/php-console-highlighter": "0.5.0",
-		"php-parallel-lint/php-parallel-lint": "1.2.0"
+		"php-parallel-lint/php-parallel-lint": "1.3.0"
 	},
 	"scripts": {
 		"test": [
diff --git a/package-lock.json b/package-lock.json
index 43742f1..ec7c6f0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1618,9 +1618,9 @@
 			},
 			"dependencies": {
 				"lodash": {
-					"version": "4.17.20",
-					"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz",
-					"integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==",
+					"version": "4.17.21",
+					"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
+					"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
 					"dev": true
 				}
 			}
@@ -1994,9 +1994,9 @@
 			}
 		},
 		"lodash": {
-			"version": "4.17.19",
-			"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz",
-			"integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==",
+			"version": "4.17.21",
+			"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
+			"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
 			"dev": true
 		},
 		"lodash.memoize": {
-- 
2.20.1

composer dependencies

Development dependencies

npm dependencies

Development dependencies

Logs

Source code is licensed under the AGPL.