mediawiki/libs/WebIDL (main)

sourcepatches
From 720f65261bf68502217c4f39f8c4da648b74a0e1 Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Fri, 14 Jan 2022 05:30:56 +0000
Subject: [PATCH] build: Updating ockcyp/covers-validator to 1.4.0

Change-Id: I5c63337d92f34a3ff798de109f0a4a7bfe64ad14
---
 composer.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/composer.json b/composer.json
index f31eace..fc9ab76 100644
--- a/composer.json
+++ b/composer.json
@@ -32,7 +32,7 @@
 		"mediawiki/mediawiki-codesniffer": "38.0.0",
 		"mediawiki/mediawiki-phan-config": "0.11.1",
 		"mediawiki/minus-x": "1.1.1",
-		"ockcyp/covers-validator": "1.3.3",
+		"ockcyp/covers-validator": "1.4.0",
 		"php-parallel-lint/php-console-highlighter": "0.5.0",
 		"php-parallel-lint/php-parallel-lint": "1.3.1",
 		"phpunit/phpunit": "^8.5|^9.5",
-- 
2.20.1

$ date
Fri Jan 14 05:30:37 UTC 2022

$ git clone file:///srv/git/mediawiki-libs-WebIDL.git repo --depth=1 -b main
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/main
2c2e1cc645a3a2781cdf968aa25e0e2e6d65f949 refs/heads/main

$ composer install
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Package operations: 66 installs, 0 updates, 0 removals
  - Installing wikimedia/wikipeg (2.0.6): Loading from cache
  - Installing squizlabs/php_codesniffer (3.6.1): Loading from cache
  - Installing composer/spdx-licenses (1.5.6): Loading from cache
  - Installing composer/semver (3.2.7): Loading from cache
  - Installing mediawiki/mediawiki-codesniffer (v38.0.0): Loading from cache
  - Installing tysonandre/var_representation_polyfill (0.1.1): Loading from cache
  - Installing symfony/polyfill-php80 (v1.24.0): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.24.0): Loading from cache
  - Installing symfony/polyfill-intl-normalizer (v1.24.0): Loading from cache
  - Installing symfony/polyfill-intl-grapheme (v1.24.0): Loading from cache
  - Installing symfony/polyfill-ctype (v1.24.0): Loading from cache
  - Installing symfony/string (v5.4.2): Loading from cache
  - Installing symfony/deprecation-contracts (v2.5.0): Loading from cache
  - Installing psr/container (1.1.1): Loading from cache
  - Installing symfony/service-contracts (v2.5.0): Loading from cache
  - Installing symfony/polyfill-php73 (v1.24.0): Loading from cache
  - Installing symfony/console (v5.4.2): Loading from cache
  - Installing psr/log (1.1.4): Loading from cache
  - Installing sabre/event (5.1.4): Loading from cache
  - Installing netresearch/jsonmapper (v4.0.0): Loading from cache
  - Installing microsoft/tolerant-php-parser (v0.1.1): Loading from cache
  - Installing phpdocumentor/reflection-common (2.2.0): Loading from cache
  - Installing webmozart/assert (1.10.0): Loading from cache
  - Installing phpdocumentor/type-resolver (1.6.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (5.3.0): Loading from cache
  - Installing felixfbecker/advanced-json-rpc (v3.2.1): Loading from cache
  - Installing composer/pcre (1.0.0): Loading from cache
  - Installing composer/xdebug-handler (2.0.4): Loading from cache
  - Installing phan/phan (5.2.0): Loading from cache
  - Installing mediawiki/phan-taint-check-plugin (3.3.2): Loading from cache
  - Installing mediawiki/mediawiki-phan-config (0.11.1): Loading from cache
  - Installing mediawiki/minus-x (1.1.1): Loading from cache
  - Installing sebastian/version (3.0.2): Loading from cache
  - Installing sebastian/type (2.3.4): Loading from cache
  - Installing sebastian/resource-operations (3.0.3): Loading from cache
  - Installing sebastian/recursion-context (4.0.4): Loading from cache
  - Installing sebastian/object-reflector (2.0.4): Loading from cache
  - Installing sebastian/object-enumerator (4.0.4): Loading from cache
  - Installing sebastian/global-state (5.0.3): Loading from cache
  - Installing sebastian/exporter (4.0.4): Loading from cache
  - Installing sebastian/environment (5.1.3): Loading from cache
  - Installing sebastian/diff (4.0.4): Loading from cache
  - Installing sebastian/comparator (4.0.6): Loading from cache
  - Installing sebastian/code-unit (1.0.8): Loading from cache
  - Installing sebastian/cli-parser (1.0.1): Loading from cache
  - Installing phpunit/php-timer (5.0.3): Loading from cache
  - Installing phpunit/php-text-template (2.0.4): Loading from cache
  - Installing phpunit/php-invoker (3.1.1): Loading from cache
  - Installing phpunit/php-file-iterator (3.0.6): Loading from cache
  - Installing theseer/tokenizer (1.2.1): Loading from cache
  - Installing nikic/php-parser (v4.13.2): Loading from cache
  - Installing sebastian/lines-of-code (1.0.3): Loading from cache
  - Installing sebastian/complexity (2.0.2): Loading from cache
  - Installing sebastian/code-unit-reverse-lookup (2.0.3): Loading from cache
  - Installing phpunit/php-code-coverage (9.2.10): Loading from cache
  - Installing doctrine/instantiator (1.4.0): Loading from cache
  - Installing phpspec/prophecy (v1.15.0): Loading from cache
  - Installing phar-io/version (3.1.0): Loading from cache
  - Installing phar-io/manifest (2.0.3): Loading from cache
  - Installing myclabs/deep-copy (1.10.2): Loading from cache
  - Installing phpunit/phpunit (9.5.11): Loading from cache
  - Installing ockcyp/covers-validator (v1.3.3): 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.3.1): Loading from cache
  - Installing wikimedia/update-history (1.0.1): Loading from cache
tysonandre/var_representation_polyfill suggests installing ext-var_representation (*)
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
phan/phan suggests installing ext-ast (Needed for parsing ASTs (unless --use-fallback-parser is used). 1.0.1+ is needed, 1.0.14+ is recommended.)
phan/phan suggests installing ext-var_representation (Suggested for converting values to strings in issue messages)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-pcov (*)
phpunit/php-code-coverage suggests installing ext-xdebug (*)
phpunit/phpunit suggests installing ext-soap (*)
phpunit/phpunit suggests installing ext-xdebug (*)
Writing lock file
Generating autoload files
39 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Upgrading c:ockcyp/covers-validator from 1.3.3 -> 1.4.0
$ composer update
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
  - Updating ockcyp/covers-validator (v1.3.3 => v1.4.0): Loading from cache
Writing lock file
Generating autoload files
39 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

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

$ composer test
> parallel-lint . --exclude vendor
PHP 7.3.29 | 10 parallel jobs
........                                                     8/8 (100 %)


Checked 8 files in 0.1 seconds
No syntax error found
> phpunit
PHPUnit 9.5.11 by Sebastian Bergmann and contributors.

Warning:       Your XML configuration validates against a deprecated schema.
Suggestion:    Migrate your XML configuration using "--migrate-configuration"!

.SSS.............S.S...SS.....SSSS.......................SS.S..  63 / 156 ( 40%)
......SS..S.................S.................................. 126 / 156 ( 80%)
..............................                                  156 / 156 (100%)[
    {
        "type": "interface",
        "name": "Node",
        "inheritance": "EventTarget",
        "members": [
            {
                "type": "const",
                "idlType": {
                    "type": "const-type",
                    "idlType": "unsigned short",
                    "extAttrs": [],
                    "generic": "",
                    "nullable": false,
                    "union": false
                },
                "name": "ELEMENT_NODE",
                "value": {
                    "type": "number",
                    "value": "1"
                },
                "trailingComments": [],
                "extAttrs": [],
                "leadingComments": []
            },
            {
                "type": "const",
                "idlType": {
                    "type": "const-type",
                    "idlType": "unsigned short",
                    "extAttrs": [],
                    "generic": "",
                    "nullable": false,
                    "union": false
                },
                "name": "ATTRIBUTE_NODE",
                "value": {
                    "type": "number",
                    "value": "2"
                },
                "trailingComments": [],
                "extAttrs": [],
                "leadingComments": []
            },
            {
                "type": "const",
                "idlType": {
                    "type": "const-type",
                    "idlType": "unsigned short",
                    "extAttrs": [],
                    "generic": "",
                    "nullable": false,
                    "union": false
                },
                "name": "TEXT_NODE",
                "value": {
                    "type": "number",
                    "value": "3"
                },
                "trailingComments": [],
                "extAttrs": [],
                "leadingComments": []
            },
            {
                "type": "const",
                "idlType": {
                    "type": "const-type",
                    "idlType": "unsigned short",
                    "extAttrs": [],
                    "generic": "",
                    "nullable": false,
                    "union": false
                },
                "name": "CDATA_SECTION_NODE",
                "value": {
                    "type": "number",
                    "value": "4"
                },
                "trailingComments": [],
                "extAttrs": [],
                "leadingComments": []
            },
            {
                "type": "const",
                "idlType": {
                    "type": "const-type",
                    "idlType": "unsigned short",
                    "extAttrs": [],
                    "generic": "",
                    "nullable": false,
                    "union": false
                },
                "name": "ENTITY_REFERENCE_NODE",
                "value": {
                    "type": "number",
                    "value": "5"
                },
                "trailingComments": [
                    "\/\/ legacy"
                ],
                "extAttrs": [],
                "leadingComments": []
            },
            {
                "type": "const",
                "idlType": {
                    "type": "const-type",
                    "idlType": "unsigned short",
                    "extAttrs": [],
                    "generic": "",
                    "nullable": false,
                    "union": false
                },
                "name": "ENTITY_NODE",
                "value": {
                    "type": "number",
                    "value": "6"
                },
                "trailingComments": [
                    "\/\/ legacy"
                ],
                "extAttrs": [],
                "leadingComments": []
            },
            {
                "type": "const",
                "idlType": {
                    "type": "const-type",
                    "idlType": "unsigned short",
                    "extAttrs": [],
                    "generic": "",
                    "nullable": false,
                    "union": false
                },
                "name": "PROCESSING_INSTRUCTION_NODE",
                "value": {
                    "type": "number",
                    "value": "7"
                },
                "trailingComments": [],
                "extAttrs": [],
                "leadingComments": []
            },
            {
                "type": "const",
                "idlType": {
                    "type": "const-type",
                    "idlType": "unsigned short",
                    "extAttrs": [],
                    "generic": "",
                    "nullable": false,
                    "union": false
                },
                "name": "COMMENT_NODE",
                "value": {
                    "type": "number",
                    "value": "8"
                },
                "trailingComments": [],
                "extAttrs": [],
                "leadingComments": []
            },
            {
                "type": "const",
                "idlType": {
                    "type": "const-type",
                    "idlType": "unsigned short",
                    "extAttrs": [],
                    "generic": "",
                    "nullable": false,
                    "union": false
                },
                "name": "DOCUMENT_NODE",
                "value": {
                    "type": "number",
                    "value": "9"
                },
                "trailingComments": [],
                "extAttrs": [],
                "leadingComments": []
            },
            {
                "type": "const",
                "idlType": {
                    "type": "const-type",
                    "idlType": "unsigned short",
                    "extAttrs": [],
                    "generic": "",
                    "nullable": false,
                    "union": false
                },
                "name": "DOCUMENT_TYPE_NODE",
                "value": {
                    "type": "number",
                    "value": "10"
                },
                "trailingComments": [],
                "extAttrs": [],
                "leadingComments": []
            },
            {
                "type": "const",
                "idlType": {
                    "type": "const-type",
                    "idlType": "unsigned short",
                    "extAttrs": [],
                    "generic": "",
                    "nullable": false,
                    "union": false
                },
                "name": "DOCUMENT_FRAGMENT_NODE",
                "value": {
                    "type": "number",
                    "value": "11"
                },
                "trailingComments": [],
                "extAttrs": [],
                "leadingComments": []
            },
            {
                "type": "const",
                "idlType": {
                    "type": "const-type",
                    "idlType": "unsigned short",
                    "extAttrs": [],
                    "generic": "",
                    "nullable": false,
                    "union": false
                },
                "name": "NOTATION_NODE",
                "value": {
                    "type": "number",
                    "value": "12"
                },
                "trailingComments": [
                    "\/\/ legacy"
                ],
                "extAttrs": [],
                "leadingComments": []
            },
            {
                "type": "operation",
                "special": "",
                "idlType": {
                    "idlType": "Node",
                    "type": "return-type",
                    "extAttrs": [],
                    "generic": "",
                    "nullable": false,
                    "union": false
                },
                "name": "cloneNode",
                "arguments": [
                    {
                        "type": "argument",
                        "default": {
                            "type": "boolean",
                            "value": false
                        },
                        "optional": true,
                        "variadic": false,
                        "idlType": {
                            "idlType": "boolean",
                            "type": "argument-type",
                            "extAttrs": [],
                            "generic": "",
                            "nullable": false,
                            "union": false
                        },
                        "name": "deep",
                        "extAttrs": []
                    }
                ],
                "extAttrs": [
                    {
                        "name": "CEReactions",
                        "type": "extended-attribute",
                        "arguments": [],
                        "rhs": null
                    },
                    {
                        "name": "NewObject",
                        "type": "extended-attribute",
                        "arguments": [],
                        "rhs": null
                    }
                ],
                "trailingComments": [],
                "leadingComments": [
                    "\/** cloneNode *\/"
                ]
            },
            {
                "type": "operation",
                "special": "",
                "idlType": {
                    "idlType": "boolean",
                    "type": "return-type",
                    "extAttrs": [],
                    "generic": "",
                    "nullable": false,
                    "union": false
                },
                "name": "isSameNode",
                "arguments": [
                    {
                        "type": "argument",
                        "default": null,
                        "optional": false,
                        "variadic": false,
                        "idlType": {
                            "idlType": "Node",
                            "type": "argument-type",
                            "extAttrs": [],
                            "generic": "",
                            "nullable": true,
                            "union": false
                        },
                        "name": "otherNode",
                        "extAttrs": []
                    }
                ],
                "extAttrs": [],
                "trailingComments": [
                    "\/\/ legacy alias of ==="
                ],
                "leadingComments": []
            }
        ],
        "partial": false,
        "trailingComments": [
            "\/\/ Trailing comment on Node"
        ],
        "extAttrs": [
            {
                "name": "Exposed",
                "rhs": {
                    "type": "identifier",
                    "value": "Window"
                },
                "type": "extended-attribute",
                "arguments": []
            }
        ],
        "leadingComments": [
            "\/** Node interface *\/"
        ]
    },
    {
        "type": "dictionary",
        "name": "Foo",
        "partial": false,
        "members": [],
        "inheritance": null,
        "extAttrs": [],
        "leadingComments": [
            "\/** Leading comment *\/"
        ]
    }
]


Time: 00:00.112, Memory: 8.00 MB

OK, but incomplete, skipped, or risky tests!
Tests: 156, Assertions: 138, Skipped: 18.
> covers-validator
CoversValidator 1.4.0

Validation complete. All @covers tags are valid.
> phpcs -sp
... 3 / 3 (100%)


Time: 88ms; Memory: 8MB

> phan --allow-polyfill-parser
Parsing files...
░░░░░░                                                 6 / 6 (100%) 18MB
Analyzing classes...
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 34MB
Analyzing methods...
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 35MB
Analyzing files...
░░                                                     2 / 2 (100%) 39MB

> minus-x check .
MinusX
======
Processing /src/repo...
.............................................................
.............................................................
.............................................................
.............................................................
.............................................................
....................................
All good!
> echo Ensure the binary is not broken:
Ensure the binary is not broken:
> bin/webidl tests/syntax/idl/escaped-name.webidl
[
    {
        "type": "interface",
        "name": "Iroha",
        "inheritance": "Magic",
        "members": [],
        "partial": false,
        "trailingComments": [],
        "extAttrs": [],
        "leadingComments": []
    },
    {
        "type": "includes",
        "target": "Iroha",
        "includes": "Color",
        "extAttrs": [],
        "leadingComments": []
    },
    {
        "type": "eof",
        "value": "",
        "trivia": "\n"
    }
]

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

$ git add .

$ git commit -F /tmp/tmpcv0_2qv2
[main 720f652] build: Updating ockcyp/covers-validator to 1.4.0
 1 file changed, 1 insertion(+), 1 deletion(-)

$ git format-patch HEAD~1 --stdout
From 720f65261bf68502217c4f39f8c4da648b74a0e1 Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Fri, 14 Jan 2022 05:30:56 +0000
Subject: [PATCH] build: Updating ockcyp/covers-validator to 1.4.0

Change-Id: I5c63337d92f34a3ff798de109f0a4a7bfe64ad14
---
 composer.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/composer.json b/composer.json
index f31eace..fc9ab76 100644
--- a/composer.json
+++ b/composer.json
@@ -32,7 +32,7 @@
 		"mediawiki/mediawiki-codesniffer": "38.0.0",
 		"mediawiki/mediawiki-phan-config": "0.11.1",
 		"mediawiki/minus-x": "1.1.1",
-		"ockcyp/covers-validator": "1.3.3",
+		"ockcyp/covers-validator": "1.4.0",
 		"php-parallel-lint/php-console-highlighter": "0.5.0",
 		"php-parallel-lint/php-parallel-lint": "1.3.1",
 		"phpunit/phpunit": "^8.5|^9.5",
-- 
2.20.1

composer dependencies

Dependencies
Development dependencies

npm dependencies

Development dependencies

Logs

Source code is licensed under the AGPL.