From fc013f77241f144755ef46d40c0bf61ab1fea2df Mon Sep 17 00:00:00 2001 From: hendrikbehncke Date: Mon, 26 Aug 2024 11:11:18 +0200 Subject: [PATCH 1/3] feat: add create update xml command --- composer.json | 6 +- composer.lock | 165 ++++++++++++++++------- src/CreateJoomlaUpdateXMLCommand.php | 97 +++++++++++++ src/CreatePluginCommand.php | 5 +- src/stubs/plugin/Taskfile.yml | 18 +-- src/stubs/plugin/build/joomla/plugin.xml | 5 + src/stubs/plugin/env | 16 +++ 7 files changed, 251 insertions(+), 61 deletions(-) create mode 100644 src/CreateJoomlaUpdateXMLCommand.php create mode 100644 src/stubs/plugin/env diff --git a/composer.json b/composer.json index cff771a..6880bbd 100755 --- a/composer.json +++ b/composer.json @@ -13,7 +13,8 @@ "source": "https://github.com/yootheme/starter-utils" }, "require": { - "php": "^8.0" + "php": "^8.0", + "symfony/dotenv": "^7.1" }, "require-dev": { "composer/composer": "^2.7", @@ -29,6 +30,7 @@ "run:task": "YOOtheme\\Starter\\TaskHelper::run", "create:plugin": "YOOtheme\\Starter\\CreatePluginCommand", "create:element": "YOOtheme\\Starter\\CreateElementCommand", - "create:module": "YOOtheme\\Starter\\CreateModuleCommand" + "create:module": "YOOtheme\\Starter\\CreateModuleCommand", + "create:updateXML": "YOOtheme\\Starter\\CreateJoomlaUpdateXMLCommand" } } diff --git a/composer.lock b/composer.lock index 14cd5c4..b076e50 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,83 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f026c5160b8cc3716201479be206074a", - "packages": [], + "content-hash": "186cd7b8bce8c16d9f9333b38c05bfde", + "packages": [ + { + "name": "symfony/dotenv", + "version": "v7.1.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/dotenv.git", + "reference": "a26be30fd61678dab694a18a85084cea7673bbf3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/dotenv/zipball/a26be30fd61678dab694a18a85084cea7673bbf3", + "reference": "a26be30fd61678dab694a18a85084cea7673bbf3", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "conflict": { + "symfony/console": "<6.4", + "symfony/process": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0", + "symfony/process": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Dotenv\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Registers environment variables from a .env file", + "homepage": "https://symfony.com", + "keywords": [ + "dotenv", + "env", + "environment" + ], + "support": { + "source": "https://github.com/symfony/dotenv/tree/v7.1.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-07-09T19:36:07+00:00" + } + ], "packages-dev": [ { "name": "composer/ca-bundle", @@ -341,26 +416,26 @@ }, { "name": "composer/pcre", - "version": "3.2.0", + "version": "3.3.0", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "ea4ab6f9580a4fd221e0418f2c357cdd39102a90" + "reference": "1637e067347a0c40bbb1e3cd786b20dcab556a81" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/ea4ab6f9580a4fd221e0418f2c357cdd39102a90", - "reference": "ea4ab6f9580a4fd221e0418f2c357cdd39102a90", + "url": "https://api.github.com/repos/composer/pcre/zipball/1637e067347a0c40bbb1e3cd786b20dcab556a81", + "reference": "1637e067347a0c40bbb1e3cd786b20dcab556a81", "shasum": "" }, "require": { "php": "^7.4 || ^8.0" }, "conflict": { - "phpstan/phpstan": "<1.11.8" + "phpstan/phpstan": "<1.11.10" }, "require-dev": { - "phpstan/phpstan": "^1.11.8", + "phpstan/phpstan": "^1.11.10", "phpstan/phpstan-strict-rules": "^1.1", "phpunit/phpunit": "^8 || ^9" }, @@ -400,7 +475,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.2.0" + "source": "https://github.com/composer/pcre/tree/3.3.0" }, "funding": [ { @@ -416,7 +491,7 @@ "type": "tidelift" } ], - "time": "2024-07-25T09:36:02+00:00" + "time": "2024-08-19T19:43:53+00:00" }, { "name": "composer/semver", @@ -712,16 +787,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.11.8", + "version": "1.11.11", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "6adbd118e6c0515dd2f36b06cde1d6da40f1b8ec" + "reference": "707c2aed5d8d0075666e673a5e71440c1d01a5a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/6adbd118e6c0515dd2f36b06cde1d6da40f1b8ec", - "reference": "6adbd118e6c0515dd2f36b06cde1d6da40f1b8ec", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/707c2aed5d8d0075666e673a5e71440c1d01a5a3", + "reference": "707c2aed5d8d0075666e673a5e71440c1d01a5a3", "shasum": "" }, "require": { @@ -766,7 +841,7 @@ "type": "github" } ], - "time": "2024-07-24T07:01:22+00:00" + "time": "2024-08-19T14:37:29+00:00" }, { "name": "psr/container", @@ -823,16 +898,16 @@ }, { "name": "psr/log", - "version": "3.0.0", + "version": "3.0.1", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" + "reference": "79dff0b268932c640297f5208d6298f71855c03e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", - "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", + "url": "https://api.github.com/repos/php-fig/log/zipball/79dff0b268932c640297f5208d6298f71855c03e", + "reference": "79dff0b268932c640297f5208d6298f71855c03e", "shasum": "" }, "require": { @@ -867,9 +942,9 @@ "psr-3" ], "support": { - "source": "https://github.com/php-fig/log/tree/3.0.0" + "source": "https://github.com/php-fig/log/tree/3.0.1" }, - "time": "2021-07-14T16:46:02+00:00" + "time": "2024-08-21T13:31:24+00:00" }, { "name": "react/promise", @@ -1119,16 +1194,16 @@ }, { "name": "symfony/console", - "version": "v7.1.2", + "version": "v7.1.3", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "0aa29ca177f432ab68533432db0de059f39c92ae" + "reference": "cb1dcb30ebc7005c29864ee78adb47b5fb7c3cd9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/0aa29ca177f432ab68533432db0de059f39c92ae", - "reference": "0aa29ca177f432ab68533432db0de059f39c92ae", + "url": "https://api.github.com/repos/symfony/console/zipball/cb1dcb30ebc7005c29864ee78adb47b5fb7c3cd9", + "reference": "cb1dcb30ebc7005c29864ee78adb47b5fb7c3cd9", "shasum": "" }, "require": { @@ -1192,7 +1267,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.1.2" + "source": "https://github.com/symfony/console/tree/v7.1.3" }, "funding": [ { @@ -1208,7 +1283,7 @@ "type": "tidelift" } ], - "time": "2024-06-28T10:03:55+00:00" + "time": "2024-07-26T12:41:01+00:00" }, { "name": "symfony/deprecation-contracts", @@ -1345,16 +1420,16 @@ }, { "name": "symfony/finder", - "version": "v7.1.1", + "version": "v7.1.3", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "fbb0ba67688b780efbc886c1a0a0948dcf7205d6" + "reference": "717c6329886f32dc65e27461f80f2a465412fdca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/fbb0ba67688b780efbc886c1a0a0948dcf7205d6", - "reference": "fbb0ba67688b780efbc886c1a0a0948dcf7205d6", + "url": "https://api.github.com/repos/symfony/finder/zipball/717c6329886f32dc65e27461f80f2a465412fdca", + "reference": "717c6329886f32dc65e27461f80f2a465412fdca", "shasum": "" }, "require": { @@ -1389,7 +1464,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.1.1" + "source": "https://github.com/symfony/finder/tree/v7.1.3" }, "funding": [ { @@ -1405,7 +1480,7 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:57:53+00:00" + "time": "2024-07-24T07:08:44+00:00" }, { "name": "symfony/polyfill-ctype", @@ -1959,16 +2034,16 @@ }, { "name": "symfony/process", - "version": "v7.1.1", + "version": "v7.1.3", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "febf90124323a093c7ee06fdb30e765ca3c20028" + "reference": "7f2f542c668ad6c313dc4a5e9c3321f733197eca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/febf90124323a093c7ee06fdb30e765ca3c20028", - "reference": "febf90124323a093c7ee06fdb30e765ca3c20028", + "url": "https://api.github.com/repos/symfony/process/zipball/7f2f542c668ad6c313dc4a5e9c3321f733197eca", + "reference": "7f2f542c668ad6c313dc4a5e9c3321f733197eca", "shasum": "" }, "require": { @@ -2000,7 +2075,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v7.1.1" + "source": "https://github.com/symfony/process/tree/v7.1.3" }, "funding": [ { @@ -2016,7 +2091,7 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:57:53+00:00" + "time": "2024-07-26T12:44:47+00:00" }, { "name": "symfony/service-contracts", @@ -2103,16 +2178,16 @@ }, { "name": "symfony/string", - "version": "v7.1.2", + "version": "v7.1.3", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "14221089ac66cf82e3cf3d1c1da65de305587ff8" + "reference": "ea272a882be7f20cad58d5d78c215001617b7f07" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/14221089ac66cf82e3cf3d1c1da65de305587ff8", - "reference": "14221089ac66cf82e3cf3d1c1da65de305587ff8", + "url": "https://api.github.com/repos/symfony/string/zipball/ea272a882be7f20cad58d5d78c215001617b7f07", + "reference": "ea272a882be7f20cad58d5d78c215001617b7f07", "shasum": "" }, "require": { @@ -2170,7 +2245,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.1.2" + "source": "https://github.com/symfony/string/tree/v7.1.3" }, "funding": [ { @@ -2186,7 +2261,7 @@ "type": "tidelift" } ], - "time": "2024-06-28T09:27:18+00:00" + "time": "2024-07-22T10:25:37+00:00" } ], "aliases": [], diff --git a/src/CreateJoomlaUpdateXMLCommand.php b/src/CreateJoomlaUpdateXMLCommand.php new file mode 100644 index 0000000..bedaace --- /dev/null +++ b/src/CreateJoomlaUpdateXMLCommand.php @@ -0,0 +1,97 @@ +open($file[0])) { + $output->writeln('Could not find Joomla package in dist folder.'); + + return Command::FAILURE; + } + + $metadata = $this->getMetadata($file[0]); + + $xml = dom_import_simplexml($this->toXML($metadata))->ownerDocument; + $xml->formatOutput = true; + + $fs = new Filesystem(); + $fs->dumpFile(Path::join(getcwd(), 'dist', 'update.xml'), $xml->saveXML()); + + return Command::SUCCESS; + } + + protected function getMetadata($file) + { + $metadata = parse_ini_file(getcwd() . '/.env'); + + $metadata['TYPE'] = 'plugin'; + $metadata['SHA256'] = hash('sha256', $file); + + return $metadata; + } + + protected function toXML($metadata) + { + $xml = new \SimpleXMLElement(''); + + $xmlUpdate = $xml->addChild('update'); + + $keys = [ + 'name', + 'description', + 'element', + 'type', + 'version', + 'downloadurl', + 'stability', + 'sha256', + 'maintainer', + 'maintainerurl', + 'requires', + 'php_minimum', + ]; + + foreach ($keys as $key) { + if (!is_null($value = $metadata[strtoupper($key)] ?? null)) { + $xmlUpdate->addChild($key, $value); + } + + if ('element' == $key) { + $xmlUpdate->addChild('element', $metadata['NAME']); + } elseif ('downloadurl' == $key) { + $downloads = $xmlUpdate->addChild('downloads'); + $download = $downloads->addChild( + 'downloadurl', + htmlentities( + "{$metadata['DOWNLOADURL']}/{$metadata['NAME']}-j-{$metadata['VERSION']}.zip", + ), + ); + $download->addAttribute('type', 'full'); + $download->addAttribute('format', 'zip'); + } elseif ('maintainer' == $key) { + $xmlUpdate->addChild('maintainer', $metadata['AUTHOR']); + $xmlUpdate->addChild('maintainerurl', $metadata['AUTHORURL']); + } elseif ('requires' == $key) { + $xmlChild = $xmlUpdate->addChild('targetplatform'); + $xmlChild->addAttribute('name', 'joomla'); + $xmlChild->addAttribute('version', $metadata['TARGETPLATFORM']); + } + } + + return $xml; + } +} diff --git a/src/CreatePluginCommand.php b/src/CreatePluginCommand.php index 1af6e83..6e164bb 100644 --- a/src/CreatePluginCommand.php +++ b/src/CreatePluginCommand.php @@ -39,6 +39,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $finder = (new Finder())->in("{$this->stubs}/plugin"); $filemap = [ + '/env' => '/.env', '/plugin.xml' => "/{$name}.xml", '/plugin.stub' => "/{$name}.php", ]; @@ -62,7 +63,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int strtr("{$cwd}/{$file->getRelativePathname()}", $filemap), Str::placeholder( $file->getContents(), - $file->getBasename() === 'Taskfile.yml' ? $questions : $variables, + in_array($file->getBasename(), ['Taskfile.yml', 'env']) + ? $questions + : $variables, ), ); } diff --git a/src/stubs/plugin/Taskfile.yml b/src/stubs/plugin/Taskfile.yml index 159194f..4994d77 100644 --- a/src/stubs/plugin/Taskfile.yml +++ b/src/stubs/plugin/Taskfile.yml @@ -3,17 +3,7 @@ version: '3' includes: utils: vendor/yootheme/starter-utils -vars: - TITLE: '{{ TITLE }}' - NAME: '{{ NAME }}' - VERSION: '0.0.1' - DESCRIPTION: '{{ DESCRIPTION }}' - DATE: '{{ now | date "2006-01-02" }}' - COPYRIGHT: 'Copyright (C)' - LICENSE: 'GNU General Public License' - AUTHOR: '{{ AUTHOR }}' - AUTHOREMAIL: '{{ AUTHOREMAIL }}' - AUTHORURL: '{{ AUTHORURL }}' +dotenv: ['.env'] tasks: build: @@ -27,6 +17,7 @@ tasks: vars: cwd: build/joomla src: '**' + ignore: update.xml dest: dist/joomla - task: copy-module-joomla @@ -139,6 +130,7 @@ tasks: vars: cwd: build/joomla src: '**' + ignore: update.xml dest: dist/joomla - task: placeholder-joomla @@ -149,8 +141,8 @@ tasks: src: '**' dest: ./ - - defer: - task: clear-dist-joomla + # - defer: + # task: clear-dist-joomla setup-wordpress: cmds: diff --git a/src/stubs/plugin/build/joomla/plugin.xml b/src/stubs/plugin/build/joomla/plugin.xml index 0a1497e..3c47393 100644 --- a/src/stubs/plugin/build/joomla/plugin.xml +++ b/src/stubs/plugin/build/joomla/plugin.xml @@ -13,4 +13,9 @@ {{PLUGIN}}.php modules + + + https://raw.githubusercontent.com/{{OWNER}}/{{REPO}}/main/update.xml + + diff --git a/src/stubs/plugin/env b/src/stubs/plugin/env new file mode 100644 index 0000000..260ab9b --- /dev/null +++ b/src/stubs/plugin/env @@ -0,0 +1,16 @@ +TITLE='{{TITLE}}' +NAME='{{NAME}}' +VERSION='0.0.1' +DESCRIPTION='{{DESCRIPTION}}' +DATE='{{now | date "2006-01-02"}}' +COPYRIGHT='Copyright (C)' +LICENSE='GNU General Public License' +AUTHOR='{{AUTHOR}}' +AUTHOREMAIL='{{AUTHOREMAIL}}' +AUTHORURL='{{AUTHORURL}}' + +# Joomla Package information +STABILITY='stable' +DOWNLOADURL=https://www.github.com/example +PHPMINIMUM='7.4' +TARGETPLATFORM='(5\.[01]|4\.[01234]|3\.10)\.' From 8216a2327d5a3d1ad3cf15a6bf1314d114d1ab09 Mon Sep 17 00:00:00 2001 From: hendrikbehncke Date: Fri, 30 Aug 2024 11:35:02 +0200 Subject: [PATCH 2/3] chore: cleanup composer.json --- composer.json | 3 +- composer.lock | 133 +++++++++++--------------------------------------- 2 files changed, 30 insertions(+), 106 deletions(-) diff --git a/composer.json b/composer.json index 6880bbd..b3325a8 100755 --- a/composer.json +++ b/composer.json @@ -13,8 +13,7 @@ "source": "https://github.com/yootheme/starter-utils" }, "require": { - "php": "^8.0", - "symfony/dotenv": "^7.1" + "php": "^8.0" }, "require-dev": { "composer/composer": "^2.7", diff --git a/composer.lock b/composer.lock index b076e50..b945bd4 100644 --- a/composer.lock +++ b/composer.lock @@ -4,83 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "186cd7b8bce8c16d9f9333b38c05bfde", - "packages": [ - { - "name": "symfony/dotenv", - "version": "v7.1.3", - "source": { - "type": "git", - "url": "https://github.com/symfony/dotenv.git", - "reference": "a26be30fd61678dab694a18a85084cea7673bbf3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/dotenv/zipball/a26be30fd61678dab694a18a85084cea7673bbf3", - "reference": "a26be30fd61678dab694a18a85084cea7673bbf3", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "conflict": { - "symfony/console": "<6.4", - "symfony/process": "<6.4" - }, - "require-dev": { - "symfony/console": "^6.4|^7.0", - "symfony/process": "^6.4|^7.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Dotenv\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Registers environment variables from a .env file", - "homepage": "https://symfony.com", - "keywords": [ - "dotenv", - "env", - "environment" - ], - "support": { - "source": "https://github.com/symfony/dotenv/tree/v7.1.3" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2024-07-09T19:36:07+00:00" - } - ], + "content-hash": "f026c5160b8cc3716201479be206074a", + "packages": [], "packages-dev": [ { "name": "composer/ca-bundle", @@ -233,48 +158,48 @@ }, { "name": "composer/composer", - "version": "2.7.7", + "version": "2.7.8", "source": { "type": "git", "url": "https://github.com/composer/composer.git", - "reference": "291942978f39435cf904d33739f98d7d4eca7b23" + "reference": "a2edd4e4414c17008ab585e0c62574fdb644ebfc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/composer/zipball/291942978f39435cf904d33739f98d7d4eca7b23", - "reference": "291942978f39435cf904d33739f98d7d4eca7b23", + "url": "https://api.github.com/repos/composer/composer/zipball/a2edd4e4414c17008ab585e0c62574fdb644ebfc", + "reference": "a2edd4e4414c17008ab585e0c62574fdb644ebfc", "shasum": "" }, "require": { - "composer/ca-bundle": "^1.0", + "composer/ca-bundle": "^1.5", "composer/class-map-generator": "^1.3.3", "composer/metadata-minifier": "^1.0", - "composer/pcre": "^2.1 || ^3.1", + "composer/pcre": "^2.2 || ^3.2", "composer/semver": "^3.3", "composer/spdx-licenses": "^1.5.7", "composer/xdebug-handler": "^2.0.2 || ^3.0.3", - "justinrainbow/json-schema": "^5.2.11", + "justinrainbow/json-schema": "^5.3", "php": "^7.2.5 || ^8.0", "psr/log": "^1.0 || ^2.0 || ^3.0", - "react/promise": "^2.8 || ^3", + "react/promise": "^3.2", "seld/jsonlint": "^1.4", "seld/phar-utils": "^1.2", "seld/signal-handler": "^2.0", - "symfony/console": "^5.4.11 || ^6.0.11 || ^7", - "symfony/filesystem": "^5.4 || ^6.0 || ^7", - "symfony/finder": "^5.4 || ^6.0 || ^7", + "symfony/console": "^5.4.35 || ^6.3.12 || ^7.0.3", + "symfony/filesystem": "^5.4.35 || ^6.3.12 || ^7.0.3", + "symfony/finder": "^5.4.35 || ^6.3.12 || ^7.0.3", "symfony/polyfill-php73": "^1.24", "symfony/polyfill-php80": "^1.24", "symfony/polyfill-php81": "^1.24", - "symfony/process": "^5.4 || ^6.0 || ^7" + "symfony/process": "^5.4.35 || ^6.3.12 || ^7.0.3" }, "require-dev": { - "phpstan/phpstan": "^1.11.0", + "phpstan/phpstan": "^1.11.8", "phpstan/phpstan-deprecation-rules": "^1.2.0", "phpstan/phpstan-phpunit": "^1.4.0", "phpstan/phpstan-strict-rules": "^1.6.0", "phpstan/phpstan-symfony": "^1.4.0", - "symfony/phpunit-bridge": "^6.4.1 || ^7.0.1" + "symfony/phpunit-bridge": "^6.4.3 || ^7.0.1" }, "suggest": { "ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages", @@ -327,7 +252,7 @@ "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/composer/issues", "security": "https://github.com/composer/composer/security/policy", - "source": "https://github.com/composer/composer/tree/2.7.7" + "source": "https://github.com/composer/composer/tree/2.7.8" }, "funding": [ { @@ -343,7 +268,7 @@ "type": "tidelift" } ], - "time": "2024-06-10T20:11:12+00:00" + "time": "2024-08-22T13:28:36+00:00" }, { "name": "composer/metadata-minifier", @@ -416,16 +341,16 @@ }, { "name": "composer/pcre", - "version": "3.3.0", + "version": "3.3.1", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "1637e067347a0c40bbb1e3cd786b20dcab556a81" + "reference": "63aaeac21d7e775ff9bc9d45021e1745c97521c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/1637e067347a0c40bbb1e3cd786b20dcab556a81", - "reference": "1637e067347a0c40bbb1e3cd786b20dcab556a81", + "url": "https://api.github.com/repos/composer/pcre/zipball/63aaeac21d7e775ff9bc9d45021e1745c97521c4", + "reference": "63aaeac21d7e775ff9bc9d45021e1745c97521c4", "shasum": "" }, "require": { @@ -475,7 +400,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.3.0" + "source": "https://github.com/composer/pcre/tree/3.3.1" }, "funding": [ { @@ -491,7 +416,7 @@ "type": "tidelift" } ], - "time": "2024-08-19T19:43:53+00:00" + "time": "2024-08-27T18:44:43+00:00" }, { "name": "composer/semver", @@ -787,16 +712,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.11.11", + "version": "1.12.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "707c2aed5d8d0075666e673a5e71440c1d01a5a3" + "reference": "384af967d35b2162f69526c7276acadce534d0e1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/707c2aed5d8d0075666e673a5e71440c1d01a5a3", - "reference": "707c2aed5d8d0075666e673a5e71440c1d01a5a3", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/384af967d35b2162f69526c7276acadce534d0e1", + "reference": "384af967d35b2162f69526c7276acadce534d0e1", "shasum": "" }, "require": { @@ -841,7 +766,7 @@ "type": "github" } ], - "time": "2024-08-19T14:37:29+00:00" + "time": "2024-08-27T09:18:05+00:00" }, { "name": "psr/container", From d766a6c21d88963a9675e3cd4e07223defa6836a Mon Sep 17 00:00:00 2001 From: hendrikbehncke Date: Fri, 30 Aug 2024 14:22:16 +0200 Subject: [PATCH 3/3] v1.0.2 --- CHANGELOG.md | 9 +++++++++ package.json | 1 + 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b58df9..0d54399 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [1.0.2](https://github.com/yootheme/starter-utils/compare/1.0.1...1.0.2) (2024-08-30) + + +### Features + +* add create update xml command ([fc013f7](https://github.com/yootheme/starter-utils/commit/fc013f77241f144755ef46d40c0bf61ab1fea2df)) + + + # [1.0.0](https://github.com/yootheme/starter-utils/compare/497aa24b246fb9f0f867768094e8945dd55590e8...1.0.0) (2024-08-20) ### Bug Fixes diff --git a/package.json b/package.json index 419a778..2f9432e 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "starter-utils", "type": "module", "private": true, + "version": "1.0.2", "scripts": { "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", "postinstall": "simple-git-hooks",