Skip to content

chore: dependency constraints #6988

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2025
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
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ The last step is to add you feature inside `features/`. You can add your test in
API Platform is split into several components. There are tests for each of these, to run them `cd src/Doctrine/Common` then `composer update` and `./vendor/bin/phpunit`.
We do not provide a way to run all these tests at once yet.

## Changing a version constraint

Preferably change the version inside the root `composer.json`, then use `composer blend --all` to re-map the depedency accross each sub-project automatically.

# License and Copyright Attribution

When you open a Pull Request to the API Platform project, you agree to license your code under the [MIT license](LICENSE)
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"symfony/http-foundation": "^6.4 || ^7.0",
"symfony/http-kernel": "^6.4 || ^7.0",
"symfony/property-access": "^6.4 || ^7.0",
"symfony/property-info": "^6.4 || ^7.0",
"symfony/property-info": "^6.4 || ^7.1",
"symfony/serializer": "^6.4 || ^7.0",
"symfony/translation-contracts": "^3.3",
"symfony/web-link": "^6.4 || ^7.0",
Expand All @@ -125,7 +125,7 @@
"doctrine/dbal": "^4.0",
"doctrine/doctrine-bundle": "^2.11",
"doctrine/mongodb-odm": "^2.10",
"doctrine/mongodb-odm-bundle": "^4.0 || ^5.0",
"doctrine/mongodb-odm-bundle": "^5.0",
"doctrine/orm": "^2.17 || ^3.0",
"elasticsearch/elasticsearch": "^7.17 || ^8.4",
"friends-of-behat/mink-browserkit-driver": "^1.3.1",
Expand All @@ -145,14 +145,14 @@
"orchestra/testbench": "^9.1",
"phpspec/prophecy-phpunit": "^2.2",
"phpstan/extension-installer": "^1.1",
"phpstan/phpdoc-parser": "^1.13|^2.0",
"phpstan/phpdoc-parser": "^1.29 || ^2.0",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-doctrine": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-symfony": "^1.0",
"phpunit/phpunit": "^11.2",
"psr/log": "^1.0 || ^2.0 || ^3.0",
"ramsey/uuid": "^4.0",
"ramsey/uuid": "^4.7",
"ramsey/uuid-doctrine": "^2.0",
"soyuka/contexts": "^3.3.10",
"soyuka/pmu": "^0.0.15",
Expand Down
8 changes: 4 additions & 4 deletions src/Doctrine/Common/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
],
"require": {
"php": ">=8.2",
"api-platform/metadata": "^3.4 || ^4.0",
"api-platform/state": "^3.4 || ^4.0",
"api-platform/metadata": "^4.1",
"api-platform/state": "^4.1",
"doctrine/collections": "^2.1",
"doctrine/common": "^3.2.2",
"doctrine/persistence": "^3.2"
},
"require-dev": {
"doctrine/mongodb-odm": "^2.6",
"doctrine/mongodb-odm": "^2.10",
"doctrine/orm": "^2.17 || ^3.0",
"phpspec/prophecy-phpunit": "^2.2",
"phpunit/phpunit": "^11.2"
Expand Down Expand Up @@ -60,7 +60,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "4.0.x-dev",
"dev-main": "4.2.x-dev",
"dev-3.4": "3.4.x-dev"
},
"symfony": {
Expand Down
12 changes: 6 additions & 6 deletions src/Doctrine/Odm/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@
"require": {
"php": ">=8.2",
"api-platform/doctrine-common": "^4.1",
"api-platform/metadata": "^3.4 || ^4.0",
"api-platform/state": "^3.4 || ^4.0",
"doctrine/mongodb-odm": "^2.2",
"api-platform/metadata": "^4.1",
"api-platform/state": "^4.1",
"doctrine/mongodb-odm": "^2.10",
"symfony/property-info": "^6.4 || ^7.1"
},
"require-dev": {
"doctrine/doctrine-bundle": "^2.11",
"doctrine/mongodb-odm-bundle": "^5.0",
"phpspec/prophecy-phpunit": "^2.0",
"phpunit/phpunit": "^10.0",
"phpspec/prophecy-phpunit": "^2.2",
"phpunit/phpunit": "^11.2",
"symfony/cache": "^6.4 || ^7.0",
"symfony/framework-bundle": "^6.4 || ^7.0",
"symfony/property-access": "^6.4 || ^7.0",
Expand All @@ -60,7 +60,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "4.0.x-dev",
"dev-main": "4.2.x-dev",
"dev-3.4": "3.4.x-dev"
},
"symfony": {
Expand Down
12 changes: 6 additions & 6 deletions src/Doctrine/Orm/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
"require": {
"php": ">=8.2",
"api-platform/doctrine-common": "^4.1",
"api-platform/metadata": "^3.4 || ^4.0",
"api-platform/state": "^3.4 || ^4.0",
"api-platform/metadata": "^4.1",
"api-platform/state": "^4.1",
"doctrine/orm": "^2.17 || ^3.0",
"symfony/property-info": "^6.4 || ^7.0"
"symfony/property-info": "^6.4 || ^7.1"
},
"require-dev": {
"doctrine/doctrine-bundle": "^2.11",
"phpspec/prophecy-phpunit": "^2.0",
"phpunit/phpunit": "^10.0",
"phpspec/prophecy-phpunit": "^2.2",
"phpunit/phpunit": "^11.2",
"ramsey/uuid": "^4.7",
"ramsey/uuid-doctrine": "^2.0",
"symfony/cache": "^6.4 || ^7.0",
Expand All @@ -60,7 +60,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "4.0.x-dev",
"dev-main": "4.2.x-dev",
"dev-3.4": "3.4.x-dev"
},
"symfony": {
Expand Down
4 changes: 2 additions & 2 deletions src/Documentation/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
],
"require": {
"php": ">=8.2",
"api-platform/metadata": "^3.4 || ^4.0"
"api-platform/metadata": "^4.1"
},
"extra": {
"branch-alias": {
"dev-main": "4.0.x-dev",
"dev-main": "4.2.x-dev",
"dev-3.4": "3.4.x-dev"
},
"symfony": {
Expand Down
10 changes: 5 additions & 5 deletions src/Elasticsearch/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
],
"require": {
"php": ">=8.2",
"api-platform/metadata": "^3.4 || ^4.0",
"api-platform/serializer": "^3.4 || ^4.0",
"api-platform/state": "^3.4 || ^4.0",
"api-platform/metadata": "^4.1",
"api-platform/serializer": "^4.1",
"api-platform/state": "^4.1",
"elasticsearch/elasticsearch": "^7.17 || ^8.4",
"symfony/cache": "^6.4 || ^7.0",
"symfony/console": "^6.4 || ^7.0",
"symfony/property-access": "^6.4 || ^7.0",
"symfony/property-info": "^6.4 || ^7.0",
"symfony/property-info": "^6.4 || ^7.1",
"symfony/serializer": "^6.4 || ^7.0",
"symfony/uid": "^6.4 || ^7.0"
},
Expand Down Expand Up @@ -60,7 +60,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "4.0.x-dev",
"dev-main": "4.2.x-dev",
"dev-3.4": "3.4.x-dev"
},
"symfony": {
Expand Down
12 changes: 6 additions & 6 deletions src/GraphQl/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
],
"require": {
"php": ">=8.2",
"api-platform/metadata": "^3.4 || ^4.0",
"api-platform/state": "^3.4 || ^4.0",
"api-platform/serializer": "^3.4 || ^4.0",
"symfony/property-info": "^6.4 || ^7.0",
"api-platform/metadata": "^4.1",
"api-platform/state": "^4.1",
"api-platform/serializer": "^4.1",
"symfony/property-info": "^6.4 || ^7.1",
"symfony/serializer": "^6.4 || ^7.0",
"webonyx/graphql-php": "^15.0",
"willdurand/negotiation": "^3.1"
},
"require-dev": {
"phpspec/prophecy-phpunit": "^2.2",
"api-platform/validator": "^3.4 || ^4.0",
"api-platform/validator": "^4.1",
"twig/twig": "^1.42.3 || ^2.12 || ^3.0",
"symfony/mercure-bundle": "*",
"symfony/routing": "^6.4 || ^7.0",
Expand Down Expand Up @@ -63,7 +63,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "4.0.x-dev",
"dev-main": "4.2.x-dev",
"dev-3.4": "3.4.x-dev"
},
"symfony": {
Expand Down
10 changes: 5 additions & 5 deletions src/Hal/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
}
],
"require": {
"php": ">=8.1",
"api-platform/state": "^3.4 || ^4.0",
"api-platform/metadata": "^3.4 || ^4.0",
"api-platform/serializer": "^3.4 || ^4.0"
"php": ">=8.2",
"api-platform/state": "^4.1",
"api-platform/metadata": "^4.1",
"api-platform/serializer": "^4.1"
},
"autoload": {
"psr-4": {
Expand All @@ -46,7 +46,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "4.0.x-dev",
"dev-main": "4.2.x-dev",
"dev-3.4": "3.4.x-dev"
},
"symfony": {
Expand Down
6 changes: 3 additions & 3 deletions src/HttpCache/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
],
"require": {
"php": ">=8.2",
"api-platform/metadata": "^3.4 || ^4.0",
"api-platform/state": "^3.4 || ^4.0",
"api-platform/metadata": "^4.1",
"api-platform/state": "^4.1",
"symfony/http-foundation": "^6.4 || ^7.0"
},
"require-dev": {
Expand Down Expand Up @@ -54,7 +54,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "4.0.x-dev",
"dev-main": "4.2.x-dev",
"dev-3.4": "3.4.x-dev"
},
"symfony": {
Expand Down
20 changes: 10 additions & 10 deletions src/Hydra/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@
],
"require": {
"php": ">=8.2",
"api-platform/state": "^3.4 || ^4.0",
"api-platform/documentation": "^3.4 || ^4.0",
"api-platform/metadata": "^3.4 || ^4.0",
"api-platform/jsonld": "^3.4 || ^4.0",
"api-platform/json-schema": "^3.4 || ^4.0",
"api-platform/serializer": "^3.4 || ^4.0",
"api-platform/state": "^4.1",
"api-platform/documentation": "^4.1",
"api-platform/metadata": "^4.1",
"api-platform/jsonld": "^4.1",
"api-platform/json-schema": "^4.1",
"api-platform/serializer": "^4.1",
"symfony/web-link": "^6.4 || ^7.0"
},
"require-dev": {
"api-platform/doctrine-odm": "^3.4 || ^4.0",
"api-platform/doctrine-orm": "^3.4 || ^4.0",
"api-platform/doctrine-common": "^3.4 || ^4.0",
"api-platform/doctrine-odm": "^4.1",
"api-platform/doctrine-orm": "^4.1",
"api-platform/doctrine-common": "^4.1",
"phpspec/prophecy": "^1.19",
"phpspec/prophecy-phpunit": "^2.2",
"phpunit/phpunit": "^11.2"
Expand All @@ -61,7 +61,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "4.0.x-dev",
"dev-main": "4.2.x-dev",
"dev-3.4": "3.4.x-dev"
},
"symfony": {
Expand Down
12 changes: 6 additions & 6 deletions src/JsonApi/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
],
"require": {
"php": ">=8.2",
"api-platform/documentation": "^3.4 || ^4.0",
"api-platform/json-schema": "^3.4 || ^4.0",
"api-platform/metadata": "^3.4 || ^4.0",
"api-platform/serializer": "^3.4 || ^4.0",
"api-platform/state": "^3.4 || ^4.0",
"api-platform/documentation": "^4.1",
"api-platform/json-schema": "^4.1",
"api-platform/metadata": "^4.1",
"api-platform/serializer": "^4.1",
"api-platform/state": "^4.1",
"symfony/error-handler": "^6.4 || ^7.0",
"symfony/http-foundation": "^6.4 || ^7.0"
},
Expand Down Expand Up @@ -55,7 +55,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "4.0.x-dev",
"dev-main": "4.2.x-dev",
"dev-3.4": "3.4.x-dev"
},
"symfony": {
Expand Down
8 changes: 4 additions & 4 deletions src/JsonLd/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
],
"require": {
"php": ">=8.2",
"api-platform/state": "^3.4 || ^4.0",
"api-platform/metadata": "^3.4 || ^4.0",
"api-platform/serializer": "^3.4 || ^4.0"
"api-platform/state": "^4.1",
"api-platform/metadata": "^4.1",
"api-platform/serializer": "^4.1"
},
"autoload": {
"psr-4": {
Expand All @@ -51,7 +51,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "4.0.x-dev",
"dev-main": "4.2.x-dev",
"dev-3.4": "3.4.x-dev"
},
"symfony": {
Expand Down
6 changes: 3 additions & 3 deletions src/JsonSchema/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
],
"require": {
"php": ">=8.2",
"api-platform/metadata": "^3.4 || ^4.0",
"api-platform/metadata": "^4.1",
"symfony/console": "^6.4 || ^7.0",
"symfony/property-info": "^6.4 || ^7.0",
"symfony/property-info": "^6.4 || ^7.1",
"symfony/serializer": "^6.4 || ^7.0",
"symfony/uid": "^6.4 || ^7.0"
},
Expand Down Expand Up @@ -55,7 +55,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "4.0.x-dev",
"dev-main": "4.2.x-dev",
"dev-3.4": "3.4.x-dev"
},
"symfony": {
Expand Down
Loading
Loading