Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

For a full diff see [`2.52.0...main`][2.52.0...main].

### Changed

- Updated `schema.json` ([#1623]), by [@ergebnis-bot]

## [`2.52.0`][2.52.0]

For a full diff see [`2.51.0...2.52.0`][2.51.0...2.52.0].
Expand Down Expand Up @@ -1384,6 +1388,7 @@ For a full diff see [`81bc3a8...0.1.0`][81bc3a8...0.1.0].
[#1592]: https://github.com/ergebnis/composer-normalize/pull/1592
[#1614]: https://github.com/ergebnis/composer-normalize/pull/1614
[#1616]: https://github.com/ergebnis/composer-normalize/pull/1616
[#1623]: https://github.com/ergebnis/composer-normalize/pull/1623

[@AlexSkrypnyk]: https://github.com/AlexSkrypnyk
[@andrey-helldar]: https://github.com/andrey-helldar
Expand Down
42 changes: 29 additions & 13 deletions resource/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,12 @@
}
},
"target-dir": {
"deprecated": true,
"description": "DEPRECATED: Forces the package to be installed into the given subdirectory path. This is used for autoloading PSR-0 packages that do not contain their full path. Use forward slashes for cross-platform compatibility.",
"type": "string"
},
"include-path": {
"deprecated": true,
"type": [
"array"
],
Expand Down Expand Up @@ -384,7 +386,7 @@
"oneOf": [
{
"type": "string",
"description": "If specified, this technique will be used to override the URL that PIE uses to download the asset. The default, if not specified, is composer-default.",
"description": "DEPRECATED: use the array form instead. If specified, this technique will be used to override the URL that PIE uses to download the asset. The default, if not specified, is composer-default.",
"deprecated": true,
"enum": [
"composer-default",
Expand Down Expand Up @@ -547,9 +549,12 @@
},
"audit": {
"type": "object",
"description": "Security audit and version blocking configuration options",
"deprecated": true,
"description": "DEPRECATED: use 'config.policy' instead. All 'audit.*' keys still work as a fallback for now. See https://getcomposer.org/doc/06-config.md#policy",
"properties": {
"ignore": {
"deprecated": true,
"description": "DEPRECATED: use 'config.policy.advisories.ignore-id' for advisory IDs (CVE/GHSA/PKSA) and 'config.policy.advisories.ignore' for package names instead. The new format uses 'on-block' / 'on-audit' booleans instead of 'apply: audit|block|all'.",
"anyOf": [
{
"type": "object",
Expand Down Expand Up @@ -601,9 +606,12 @@
"report",
"fail"
],
"description": "Whether abandoned packages should be ignored, reported as problems or cause an audit failure. Applies only to audit reports, not to version blocking."
"deprecated": true,
"description": "DEPRECATED: use 'config.policy.abandoned.audit' instead. Whether abandoned packages should be ignored, reported as problems or cause an audit failure. Applies only to audit reports, not to version blocking."
},
"ignore-severity": {
"deprecated": true,
"description": "DEPRECATED: use 'config.policy.advisories.ignore-severity' instead. The new format uses 'on-block' / 'on-audit' booleans instead of 'apply: audit|block|all'.",
"anyOf": [
{
"type": "object",
Expand Down Expand Up @@ -647,19 +655,24 @@
},
"ignore-unreachable": {
"type": "boolean",
"description": "Whether repositories that are unreachable or return a non-200 status code should be ignored or not. Applies only to the composer audit command, does not affect audit report summaries in other commands or version blocking."
"deprecated": true,
"description": "DEPRECATED: use 'config.policy.ignore-unreachable' instead. The new key accepts a boolean or an array of scopes ('audit', 'install', 'update') and is shared across all dependency policies."
},
"block-insecure": {
"type": "boolean",
"description": "Whether insecure versions should be blocked during a composer update/require command or not.",
"deprecated": true,
"description": "DEPRECATED: use 'config.policy.advisories.block' instead. Whether insecure versions should be blocked during a composer update/require command or not.",
"default": true
},
"block-abandoned": {
"type": "boolean",
"description": "Whether abandoned packages should be blocked during a composer update/require command or not. Applies only if blocking of insecure versions is enabled.",
"deprecated": true,
"description": "DEPRECATED: use 'config.policy.abandoned.block' instead. Whether abandoned packages should be blocked during a composer update/require command or not.",
"default": false
},
"ignore-abandoned": {
"deprecated": true,
"description": "DEPRECATED: use 'config.policy.abandoned.ignore' instead. The new format uses 'on-block' / 'on-audit' booleans instead of 'apply: audit|block|all'.",
"anyOf": [
{
"type": "object",
Expand Down Expand Up @@ -852,15 +865,15 @@
"patternProperties": {
"^ignore(?!-unreachable$)": {
"not": {},
"description": "Custom policy list names must not start with \"ignore\" \u2014 that prefix is reserved for future use."
"description": "Custom dependency policy names must not start with \"ignore\" \u2014 that prefix is reserved for future use."
},
"^(package|packages|license|licence|licenses|licences|support|maintenance|security|minimum-release-age)$": {
"not": {},
"description": "This name is reserved for future use and cannot be used as a custom policy list name."
"description": "This name is reserved for future use and cannot be used as a custom dependency policy name."
}
},
"additionalProperties": {
"description": "Custom policy list configuration.",
"description": "Custom dependency policy configuration.",
"oneOf": [
{
"type": "boolean"
Expand All @@ -879,12 +892,12 @@
"report",
"fail"
],
"description": "How composer audit treats packages matched by this list. Defaults to fail.",
"description": "How composer audit treats packages matched by this dependency policy. Defaults to fail.",
"default": "fail"
},
"sources": {
"type": "array",
"description": "URL sources to fetch this policy list data from.",
"description": "Sources supplying the package versions this dependency policy applies to.",
"items": {
"type": "object",
"required": [
Expand All @@ -902,7 +915,7 @@
"url": {
"type": "string",
"pattern": "^https://",
"description": "URL to fetch the policy list data from. Must use https://."
"description": "URL to fetch the list of package versions from. Must use https://."
}
},
"additionalProperties": false
Expand All @@ -922,7 +935,8 @@
},
"source-fallback": {
"type": "boolean",
"description": "If true (default), Composer will fall back to a different installation source (e.g., from dist to source or vice versa) when a download fails. Set to false to disable this behavior."
"description": "DEPRECATED, will be removed in Composer 2.11. Defaults to false. If true, Composer will fall back to a different installation source (e.g., from dist to source or vice versa) when a download fails. Automatic source fallback has security implications, please open an issue at https://github.com/composer/composer/issues if you need this kept around.",
"deprecated": true
},
"github-protocols": {
"type": "array",
Expand Down Expand Up @@ -1928,6 +1942,7 @@
"type": "string"
},
"target-dir": {
"deprecated": true,
"description": "DEPRECATED: Forces the package to be installed into the given subdirectory path. This is used for autoloading PSR-0 packages that do not contain their full path. Use forward slashes for cross-platform compatibility.",
"type": "string"
},
Expand Down Expand Up @@ -2026,6 +2041,7 @@
}
},
"include-path": {
"deprecated": true,
"type": [
"array"
],
Expand Down
Loading