From 34fddb8380bd0280f49b6d4ac01c3f46f26aa40f Mon Sep 17 00:00:00 2001 From: ergebnis-bot Date: Thu, 21 Mar 2024 09:05:51 +0000 Subject: [PATCH 1/3] Enhancement: Update schema.json --- resource/schema.json | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/resource/schema.json b/resource/schema.json index 21173ba9..367fdb62 100644 --- a/resource/schema.json +++ b/resource/schema.json @@ -342,6 +342,43 @@ } } }, + "php-ext": { + "type": "object", + "description": "Settings for PHP extension packages.", + "properties": { + "priority": { + "type": "integer", + "description": "This is used to add a prefix to the INI file, e.g. `90-xdebug.ini` which affects the loading order. The priority is a number in the range 10-99 inclusive, with 10 being the highest priority (i.e. will be processed first), and 99 being the lowest priority (i.e. will be processed last). There are two digits so that the files sort correctly on any platform, whether the sorting is natural or not.", + "minimum": 10, + "maximum": 99, + "example": 80, + "default": 80 + }, + "configure-options": { + "type": "array", + "description": "These configure options make up the flags that can be passed to ./configure when installing the extension.", + "items": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the flag, this would typically be prefixed with `--`, for example, the value 'the-flag' would be passed as `./configure --the-flag`.", + "example": "without-xdebug-compression", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_]*$" + }, + "description": { + "type": "string", + "description": "The description of what the flag does or means.", + "example": "Disable compression through zlib" + } + } + } + } + } + }, "config": { "type": "object", "description": "Composer options.", From 451aabd557cba8e7975d9f9fdd26a3b53077ac1d Mon Sep 17 00:00:00 2001 From: ergebnis-bot Date: Mon, 29 Apr 2024 09:06:39 +0000 Subject: [PATCH 2/3] Enhancement: Update schema.json --- resource/schema.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resource/schema.json b/resource/schema.json index 367fdb62..b23588e8 100644 --- a/resource/schema.json +++ b/resource/schema.json @@ -346,6 +346,11 @@ "type": "object", "description": "Settings for PHP extension packages.", "properties": { + "extension-name": { + "type": "string", + "description": "If specified, this will be used as the name of the extension, where needed by tooling. If this is not specified, the extension name will be derived from the Composer package name (e.g. `vendor/name` would become `ext-name`). The extension name may be specified with or without the `ext-` prefix, and tools that use this must normalise this appropriately.", + "example": "ext-xdebug" + }, "priority": { "type": "integer", "description": "This is used to add a prefix to the INI file, e.g. `90-xdebug.ini` which affects the loading order. The priority is a number in the range 10-99 inclusive, with 10 being the highest priority (i.e. will be processed first), and 99 being the lowest priority (i.e. will be processed last). There are two digits so that the files sort correctly on any platform, whether the sorting is natural or not.", @@ -354,6 +359,12 @@ "example": 80, "default": 80 }, + "support-zts": { + "type": "boolean", + "description": "Does this package support Zend Thread Safety", + "example": false, + "default": true + }, "configure-options": { "type": "array", "description": "These configure options make up the flags that can be passed to ./configure when installing the extension.", From ac456fc0a00fc71926be27c78c4c68225247f54f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 17 May 2024 09:08:07 +0200 Subject: [PATCH 3/3] Fix: Update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 936329a6..a8b91e8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ For a full diff see [`2.42.0...main`][2.42.0...main]. ### Changed - Updated `composer/composer` ([#1292]), by [@localheinz] +- Updated `schema.json` ([#1312]), by [@ergebnis-bot] ## [`2.42.0`][2.42.0] @@ -1227,6 +1228,7 @@ For a full diff see [`81bc3a8...0.1.0`][81bc3a8...0.1.0]. [#1278]: https://github.com/ergebnis/composer-normalize/pull/1278 [#1279]: https://github.com/ergebnis/composer-normalize/pull/1279 [#1292]: https://github.com/ergebnis/composer-normalize/pull/1292 +[#1312]: https://github.com/ergebnis/composer-normalize/pull/1312 [@core23]: https://github.com/core23 [@dependabot]: https://github.com/dependabot