wikipeg (master)

sourcepatches
From 0dee52ad2847cc1c0a06b8462d287d44612f5805 Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Wed, 5 May 2021 14:14:45 +0000
Subject: [PATCH] build: Updating composer dependencies
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* mediawiki/minus-x: 1.1.0 → 1.1.1
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0

Additional changes:
* Set `root: true` in .eslintrc.json (T206485).

Change-Id: I6a6db2587c85812cee43da5a2158b1bd4ece1c9a
---
 .eslintrc.json | 163 ++++++++++++++++++++++++++-----------------------
 composer.json  |  56 ++++++++---------
 package.json   |  94 ++++++++++++++--------------
 3 files changed, 161 insertions(+), 152 deletions(-)

diff --git a/.eslintrc.json b/.eslintrc.json
index 7878d16..ce551f2 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,79 +1,88 @@
 {
-  "env": {
-    "node": true,
-    "es6": true
-  },
-  "extends": "eslint:recommended",
-  "globals": {
-    "Atomics": "readonly",
-    "SharedArrayBuffer": "readonly"
-  },
-  "parserOptions": {
-    "ecmaVersion": 2015
-  },
-  "rules": {
-    "indent": [
-      "error", 2, {
-        "VariableDeclarator": 2,
-        "SwitchCase": 1
-      }
-    ],
-    "linebreak-style": ["error", "unix"],
-    "semi": ["error", "always"],
-    "no-control-regex": "off",
-    "no-useless-escape": "off",
-    "no-prototype-builtins": "off",
-    "no-trailing-spaces": "error"
-  },
-  "overrides": [
-    {
-      "files": "lib/parser.js",
-      "rules": {
-        "indent": "off",
-        "no-trailing-spaces": "off",
-        "no-unused-vars": "off",
-        "no-misleading-character-class": "off",
-        "no-console": "off"
-      }
-    },
-    {
-      "files": "lib/runtime/*.js",
-      "rules": {
-        "no-console": "off",
-        "indent": "off",
-        "no-unused-vars": "off",
-        "no-unreachable": "off"
-      },
-      "globals": {
-        "text": "readonly",
-        "input": "readonly",
-        "peg$savedPos": "writable",
-        "peg$currPos": "writable",
-        "location": "readonly",
-        "error": "readonly",
-        "peg$SyntaxError": "readonly"
-      }
-    },
-    {
-      "files": "lib/runtime/trace-helpers.js",
-      "globals": {
-        "peg$tracer": "readonly",
-        "peg$computeLocation": "readonly",
-        "peg$FAILED": "readonly"
-      }
-    },
-    {
-      "files": "lib/runtime/tracer.js",
-      "rules": {
-        "no-console": "off"
-      }
-    },
-    {
-      "files": "tests/jasmine/**",
-      "rules": {
-        "indent": "off",
-        "no-console": "off"
-      }
-    }
-  ]
+	"root": true,
+	"env": {
+		"node": true,
+		"es6": true
+	},
+	"extends": "eslint:recommended",
+	"globals": {
+		"Atomics": "readonly",
+		"SharedArrayBuffer": "readonly"
+	},
+	"parserOptions": {
+		"ecmaVersion": 2015
+	},
+	"rules": {
+		"indent": [
+			"error",
+			2,
+			{
+				"VariableDeclarator": 2,
+				"SwitchCase": 1
+			}
+		],
+		"linebreak-style": [
+			"error",
+			"unix"
+		],
+		"semi": [
+			"error",
+			"always"
+		],
+		"no-control-regex": "off",
+		"no-useless-escape": "off",
+		"no-prototype-builtins": "off",
+		"no-trailing-spaces": "error"
+	},
+	"overrides": [
+		{
+			"files": "lib/parser.js",
+			"rules": {
+				"indent": "off",
+				"no-trailing-spaces": "off",
+				"no-unused-vars": "off",
+				"no-misleading-character-class": "off",
+				"no-console": "off"
+			}
+		},
+		{
+			"files": "lib/runtime/*.js",
+			"rules": {
+				"no-console": "off",
+				"indent": "off",
+				"no-unused-vars": "off",
+				"no-unreachable": "off"
+			},
+			"globals": {
+				"text": "readonly",
+				"input": "readonly",
+				"peg$savedPos": "writable",
+				"peg$currPos": "writable",
+				"location": "readonly",
+				"error": "readonly",
+				"peg$SyntaxError": "readonly"
+			}
+		},
+		{
+			"files": "lib/runtime/trace-helpers.js",
+			"globals": {
+				"peg$tracer": "readonly",
+				"peg$computeLocation": "readonly",
+				"peg$FAILED": "readonly"
+			}
+		},
+		{
+			"files": "lib/runtime/tracer.js",
+			"rules": {
+				"no-console": "off"
+			}
+		},
+		{
+			"files": "tests/jasmine/**",
+			"rules": {
+				"indent": "off",
+				"no-console": "off"
+			}
+		}
+	]
 }
diff --git a/composer.json b/composer.json
index 633992e..ce57516 100644
--- a/composer.json
+++ b/composer.json
@@ -1,30 +1,30 @@
 {
-  "name": "wikimedia/wikipeg",
-  "description": "Parser generator for JavaScript and PHP",
-  "license": "MIT",
-  "autoload": {
-    "psr-4": {
-      "WikiPEG\\": "src",
-      "WikiPEG\\Tests\\": "tests/php"
-    }
-  },
-  "require": {
-    "php": ">=7.2",
-    "ext-json": "*",
-    "ext-mbstring": "*"
-  },
-  "require-dev": {
-    "mediawiki/minus-x": "1.1.0",
-    "php-parallel-lint/php-console-highlighter": "0.5.0",
-    "php-parallel-lint/php-parallel-lint": "1.2.0"
-  },
-  "scripts": {
-    "test": [
-      "parallel-lint . --exclude vendor --exclude node_modules",
-      "minus-x check ."
-    ],
-    "fix": [
-      "minus-x fix ."
-    ]
-  }
+	"name": "wikimedia/wikipeg",
+	"description": "Parser generator for JavaScript and PHP",
+	"license": "MIT",
+	"autoload": {
+		"psr-4": {
+			"WikiPEG\\": "src",
+			"WikiPEG\\Tests\\": "tests/php"
+		}
+	},
+	"require": {
+		"php": ">=7.2",
+		"ext-json": "*",
+		"ext-mbstring": "*"
+	},
+	"require-dev": {
+		"mediawiki/minus-x": "1.1.1",
+		"php-parallel-lint/php-console-highlighter": "0.5.0",
+		"php-parallel-lint/php-parallel-lint": "1.3.0"
+	},
+	"scripts": {
+		"test": [
+			"parallel-lint . --exclude vendor --exclude node_modules",
+			"minus-x check ."
+		],
+		"fix": [
+			"minus-x fix ."
+		]
+	}
 }
diff --git a/package.json b/package.json
index 0c103ac..f9ef34b 100644
--- a/package.json
+++ b/package.json
@@ -1,49 +1,49 @@
 {
-  "name": "wikipeg",
-  "version": "2.0.5",
-  "description": "Parser generator for JavaScript and PHP",
-  "license": "MIT",
-  "homepage": "https://gerrit.wikimedia.org/r/plugins/gitiles/wikipeg/",
-  "contributors": [
-    {
-      "name": "David Majda",
-      "email": "david@majda.cz",
-      "url": "http://majda.cz/"
-    },
-    {
-      "name": "Tim Starling",
-      "email": "tstarling@wikimedia.org"
-    }
-  ],
-  "files": [
-    "CHANGELOG.md",
-    "LICENSE",
-    "README.md",
-    "VERSION",
-    "bin/wikipeg",
-    "examples/*.pegjs",
-    "examples/*.pegphp",
-    "lib/**/*.js",
-    "lib/**/*.php",
-    "src/**/*.php",
-    "tools/build-browser.js",
-    "package.json"
-  ],
-  "main": "lib/peg",
-  "bin": "bin/wikipeg",
-  "scripts": {
-    "eslint": "make eslint",
-    "test": "make eslint && make test"
-  },
-  "repository": {
-    "type": "git",
-    "url": "https://gerrit.wikimedia.org/r/wikipeg"
-  },
-  "devDependencies": {
-    "jasmine-node": "3.0.0",
-    "eslint": "7.16.0"
-  },
-  "engines": {
-    "node": ">= 6.0.0"
-  }
+	"name": "wikipeg",
+	"version": "2.0.5",
+	"description": "Parser generator for JavaScript and PHP",
+	"license": "MIT",
+	"homepage": "https://gerrit.wikimedia.org/r/plugins/gitiles/wikipeg/",
+	"contributors": [
+		{
+			"name": "David Majda",
+			"email": "david@majda.cz",
+			"url": "http://majda.cz/"
+		},
+		{
+			"name": "Tim Starling",
+			"email": "tstarling@wikimedia.org"
+		}
+	],
+	"files": [
+		"CHANGELOG.md",
+		"LICENSE",
+		"README.md",
+		"VERSION",
+		"bin/wikipeg",
+		"examples/*.pegjs",
+		"examples/*.pegphp",
+		"lib/**/*.js",
+		"lib/**/*.php",
+		"src/**/*.php",
+		"tools/build-browser.js",
+		"package.json"
+	],
+	"main": "lib/peg",
+	"bin": "bin/wikipeg",
+	"scripts": {
+		"eslint": "make eslint",
+		"test": "make eslint && make test"
+	},
+	"repository": {
+		"type": "git",
+		"url": "https://gerrit.wikimedia.org/r/wikipeg"
+	},
+	"devDependencies": {
+		"jasmine-node": "3.0.0",
+		"eslint": "7.16.0"
+	},
+	"engines": {
+		"node": ">= 6.0.0"
+	}
 }
-- 
2.20.1

$ date
Wed May  5 14:14:34 UTC 2021

$ git clone file:///srv/git/wikipeg.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
e1430949dc85422f324373ab2a43cc2d830b6caa 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: 14 installs, 0 updates, 0 removals
  - 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.0): 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
9 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Upgrading c:mediawiki/minus-x from 1.1.0 -> 1.1.1
Upgrading c:php-parallel-lint/php-parallel-lint from 1.2.0 -> 1.3.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, 2 updates, 0 removals
  - Updating mediawiki/minus-x (1.1.0 => 1.1.1): 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
9 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
9 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
.............                                                13/13 (100 %)


Checked 13 files in 0.1 seconds
No syntax error found
> minus-x check .
MinusX
======
Processing /src/repo...
.............................................................
...........................................
All good!

$ git add .

$ git commit -F /tmp/tmpbjgzhk6t
[master 0dee52a] build: Updating composer dependencies
 3 files changed, 167 insertions(+), 158 deletions(-)
 rewrite .eslintrc.json (99%)
 rewrite composer.json (99%)
 rewrite package.json (99%)

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

* mediawiki/minus-x: 1.1.0 → 1.1.1
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0

Additional changes:
* Set `root: true` in .eslintrc.json (T206485).

Change-Id: I6a6db2587c85812cee43da5a2158b1bd4ece1c9a
---
 .eslintrc.json | 163 ++++++++++++++++++++++++++-----------------------
 composer.json  |  56 ++++++++---------
 package.json   |  94 ++++++++++++++--------------
 3 files changed, 161 insertions(+), 152 deletions(-)

diff --git a/.eslintrc.json b/.eslintrc.json
index 7878d16..ce551f2 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,79 +1,88 @@
 {
-  "env": {
-    "node": true,
-    "es6": true
-  },
-  "extends": "eslint:recommended",
-  "globals": {
-    "Atomics": "readonly",
-    "SharedArrayBuffer": "readonly"
-  },
-  "parserOptions": {
-    "ecmaVersion": 2015
-  },
-  "rules": {
-    "indent": [
-      "error", 2, {
-        "VariableDeclarator": 2,
-        "SwitchCase": 1
-      }
-    ],
-    "linebreak-style": ["error", "unix"],
-    "semi": ["error", "always"],
-    "no-control-regex": "off",
-    "no-useless-escape": "off",
-    "no-prototype-builtins": "off",
-    "no-trailing-spaces": "error"
-  },
-  "overrides": [
-    {
-      "files": "lib/parser.js",
-      "rules": {
-        "indent": "off",
-        "no-trailing-spaces": "off",
-        "no-unused-vars": "off",
-        "no-misleading-character-class": "off",
-        "no-console": "off"
-      }
-    },
-    {
-      "files": "lib/runtime/*.js",
-      "rules": {
-        "no-console": "off",
-        "indent": "off",
-        "no-unused-vars": "off",
-        "no-unreachable": "off"
-      },
-      "globals": {
-        "text": "readonly",
-        "input": "readonly",
-        "peg$savedPos": "writable",
-        "peg$currPos": "writable",
-        "location": "readonly",
-        "error": "readonly",
-        "peg$SyntaxError": "readonly"
-      }
-    },
-    {
-      "files": "lib/runtime/trace-helpers.js",
-      "globals": {
-        "peg$tracer": "readonly",
-        "peg$computeLocation": "readonly",
-        "peg$FAILED": "readonly"
-      }
-    },
-    {
-      "files": "lib/runtime/tracer.js",
-      "rules": {
-        "no-console": "off"
-      }
-    },
-    {
-      "files": "tests/jasmine/**",
-      "rules": {
-        "indent": "off",
-        "no-console": "off"
-      }
-    }
-  ]
+	"root": true,
+	"env": {
+		"node": true,
+		"es6": true
+	},
+	"extends": "eslint:recommended",
+	"globals": {
+		"Atomics": "readonly",
+		"SharedArrayBuffer": "readonly"
+	},
+	"parserOptions": {
+		"ecmaVersion": 2015
+	},
+	"rules": {
+		"indent": [
+			"error",
+			2,
+			{
+				"VariableDeclarator": 2,
+				"SwitchCase": 1
+			}
+		],
+		"linebreak-style": [
+			"error",
+			"unix"
+		],
+		"semi": [
+			"error",
+			"always"
+		],
+		"no-control-regex": "off",
+		"no-useless-escape": "off",
+		"no-prototype-builtins": "off",
+		"no-trailing-spaces": "error"
+	},
+	"overrides": [
+		{
+			"files": "lib/parser.js",
+			"rules": {
+				"indent": "off",
+				"no-trailing-spaces": "off",
+				"no-unused-vars": "off",
+				"no-misleading-character-class": "off",
+				"no-console": "off"
+			}
+		},
+		{
+			"files": "lib/runtime/*.js",
+			"rules": {
+				"no-console": "off",
+				"indent": "off",
+				"no-unused-vars": "off",
+				"no-unreachable": "off"
+			},
+			"globals": {
+				"text": "readonly",
+				"input": "readonly",
+				"peg$savedPos": "writable",
+				"peg$currPos": "writable",
+				"location": "readonly",
+				"error": "readonly",
+				"peg$SyntaxError": "readonly"
+			}
+		},
+		{
+			"files": "lib/runtime/trace-helpers.js",
+			"globals": {
+				"peg$tracer": "readonly",
+				"peg$computeLocation": "readonly",
+				"peg$FAILED": "readonly"
+			}
+		},
+		{
+			"files": "lib/runtime/tracer.js",
+			"rules": {
+				"no-console": "off"
+			}
+		},
+		{
+			"files": "tests/jasmine/**",
+			"rules": {
+				"indent": "off",
+				"no-console": "off"
+			}
+		}
+	]
 }
diff --git a/composer.json b/composer.json
index 633992e..ce57516 100644
--- a/composer.json
+++ b/composer.json
@@ -1,30 +1,30 @@
 {
-  "name": "wikimedia/wikipeg",
-  "description": "Parser generator for JavaScript and PHP",
-  "license": "MIT",
-  "autoload": {
-    "psr-4": {
-      "WikiPEG\\": "src",
-      "WikiPEG\\Tests\\": "tests/php"
-    }
-  },
-  "require": {
-    "php": ">=7.2",
-    "ext-json": "*",
-    "ext-mbstring": "*"
-  },
-  "require-dev": {
-    "mediawiki/minus-x": "1.1.0",
-    "php-parallel-lint/php-console-highlighter": "0.5.0",
-    "php-parallel-lint/php-parallel-lint": "1.2.0"
-  },
-  "scripts": {
-    "test": [
-      "parallel-lint . --exclude vendor --exclude node_modules",
-      "minus-x check ."
-    ],
-    "fix": [
-      "minus-x fix ."
-    ]
-  }
+	"name": "wikimedia/wikipeg",
+	"description": "Parser generator for JavaScript and PHP",
+	"license": "MIT",
+	"autoload": {
+		"psr-4": {
+			"WikiPEG\\": "src",
+			"WikiPEG\\Tests\\": "tests/php"
+		}
+	},
+	"require": {
+		"php": ">=7.2",
+		"ext-json": "*",
+		"ext-mbstring": "*"
+	},
+	"require-dev": {
+		"mediawiki/minus-x": "1.1.1",
+		"php-parallel-lint/php-console-highlighter": "0.5.0",
+		"php-parallel-lint/php-parallel-lint": "1.3.0"
+	},
+	"scripts": {
+		"test": [
+			"parallel-lint . --exclude vendor --exclude node_modules",
+			"minus-x check ."
+		],
+		"fix": [
+			"minus-x fix ."
+		]
+	}
 }
diff --git a/package.json b/package.json
index 0c103ac..f9ef34b 100644
--- a/package.json
+++ b/package.json
@@ -1,49 +1,49 @@
 {
-  "name": "wikipeg",
-  "version": "2.0.5",
-  "description": "Parser generator for JavaScript and PHP",
-  "license": "MIT",
-  "homepage": "https://gerrit.wikimedia.org/r/plugins/gitiles/wikipeg/",
-  "contributors": [
-    {
-      "name": "David Majda",
-      "email": "david@majda.cz",
-      "url": "http://majda.cz/"
-    },
-    {
-      "name": "Tim Starling",
-      "email": "tstarling@wikimedia.org"
-    }
-  ],
-  "files": [
-    "CHANGELOG.md",
-    "LICENSE",
-    "README.md",
-    "VERSION",
-    "bin/wikipeg",
-    "examples/*.pegjs",
-    "examples/*.pegphp",
-    "lib/**/*.js",
-    "lib/**/*.php",
-    "src/**/*.php",
-    "tools/build-browser.js",
-    "package.json"
-  ],
-  "main": "lib/peg",
-  "bin": "bin/wikipeg",
-  "scripts": {
-    "eslint": "make eslint",
-    "test": "make eslint && make test"
-  },
-  "repository": {
-    "type": "git",
-    "url": "https://gerrit.wikimedia.org/r/wikipeg"
-  },
-  "devDependencies": {
-    "jasmine-node": "3.0.0",
-    "eslint": "7.16.0"
-  },
-  "engines": {
-    "node": ">= 6.0.0"
-  }
+	"name": "wikipeg",
+	"version": "2.0.5",
+	"description": "Parser generator for JavaScript and PHP",
+	"license": "MIT",
+	"homepage": "https://gerrit.wikimedia.org/r/plugins/gitiles/wikipeg/",
+	"contributors": [
+		{
+			"name": "David Majda",
+			"email": "david@majda.cz",
+			"url": "http://majda.cz/"
+		},
+		{
+			"name": "Tim Starling",
+			"email": "tstarling@wikimedia.org"
+		}
+	],
+	"files": [
+		"CHANGELOG.md",
+		"LICENSE",
+		"README.md",
+		"VERSION",
+		"bin/wikipeg",
+		"examples/*.pegjs",
+		"examples/*.pegphp",
+		"lib/**/*.js",
+		"lib/**/*.php",
+		"src/**/*.php",
+		"tools/build-browser.js",
+		"package.json"
+	],
+	"main": "lib/peg",
+	"bin": "bin/wikipeg",
+	"scripts": {
+		"eslint": "make eslint",
+		"test": "make eslint && make test"
+	},
+	"repository": {
+		"type": "git",
+		"url": "https://gerrit.wikimedia.org/r/wikipeg"
+	},
+	"devDependencies": {
+		"jasmine-node": "3.0.0",
+		"eslint": "7.16.0"
+	},
+	"engines": {
+		"node": ">= 6.0.0"
+	}
 }
-- 
2.20.1

composer dependencies

Dependencies
Development dependencies

npm dependencies

Development dependencies

Logs

Source code is licensed under the AGPL.