Skip to content

Commit d36837b

Browse files
committed
Merge 4.1
2 parents cff61ea + 64ff50f commit d36837b

File tree

158 files changed

+5385
-198623
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+5385
-198623
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ concurrency:
1010

1111
env:
1212
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
COMPOSER_ROOT_VERSION: "4.1.x-dev"
1314

1415
jobs:
1516
commitlint:
@@ -264,7 +265,7 @@ jobs:
264265
continue-on-error: true
265266

266267
phpunit-components:
267-
name: PHPUnit ${{ matrix.component }} (PHP ${{ matrix.php.version }} ${{ matrix.php.coverage && 'coverage' || '' }}
268+
name: PHPUnit ${{ matrix.component }} (PHP ${{ matrix.php.version }} ${{ matrix.php.coverage && 'coverage' || '' }}${{ matrix.php.lowest && 'lowest' || '' }})
268269
runs-on: ubuntu-latest
269270
timeout-minutes: 20
270271
strategy:
@@ -274,6 +275,8 @@ jobs:
274275
- version: '8.3'
275276
- version: '8.4'
276277
coverage: true
278+
- version: '8.4'
279+
lowest: true
277280
component:
278281
- api-platform/doctrine-common
279282
- api-platform/doctrine-orm
@@ -302,18 +305,24 @@ jobs:
302305
tools: pecl, composer
303306
extensions: intl, bcmath, curl, openssl, mbstring, pdo_sqlite, mongodb
304307
ini-values: memory_limit=-1
305-
- name: Linking
308+
- name: PMU
306309
run: |
307310
composer global require soyuka/pmu
308311
composer global config allow-plugins.soyuka/pmu true --no-interaction
312+
- name: Linking
313+
if: ${{ !matrix.php.lowest }}
314+
run: |
309315
composer global link . --permanent
316+
composer ${{matrix.component}} update
310317
- name: Run ${{ matrix.component }} install
318+
if: ${{ matrix.php.lowest }}
311319
run: |
312-
composer ${{matrix.component}} update
320+
cd $(composer ${{matrix.component}} --cwd)
321+
composer update${{ matrix.php.lowest && ' --prefer-lowest --prefer-source' || '' }}
313322
- name: Run ${{ matrix.component }} tests
314323
run: |
315324
mkdir -p /tmp/build/logs/phpunit
316-
composer ${{matrix.component}} test --log-junit "/tmp/build/logs/phpunit/junit.xml" ${{ matrix.php.coverage && '--coverage-clover /tmp/build/logs/phpunit/clover.xml' || '' }}
325+
composer ${{matrix.component}} test -- --log-junit "/tmp/build/logs/phpunit/junit.xml" ${{ matrix.php.coverage && '--coverage-clover /tmp/build/logs/phpunit/clover.xml' || '' }}${{ matrix.php.lowest && ' --ignore-baseline' || '' }}
317326
- name: Upload test artifacts
318327
if: always()
319328
uses: actions/upload-artifact@v4

.github/workflows/subtree.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- '3.3'
1111
- '3.4'
1212
- '4.0'
13+
- '4.1'
1314

1415
env:
1516
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# Changelog
22

3+
## v4.1.16
4+
5+
### Bug fixes
6+
7+
* [4a99a5f6e](https://github.com/api-platform/core/commit/4a99a5f6e7eb13e9e77872dc33ec5b3dc2deef25) fix(laravel): persist HasMany and MorphMany relationships (#7208)
8+
* [9bfa5fef0](https://github.com/api-platform/core/commit/9bfa5fef0dfa129078118d0ce67f1ec2c8d548d7) fix(metadata): call dynamic validation groups #7184 (#7184)
9+
* [b2131645d](https://github.com/api-platform/core/commit/b2131645dec11a5dbf8bbe507f578720a84a686e) fix(laravel): route where uses requirements (#7199)
10+
* [b2b5f99c6](https://github.com/api-platform/core/commit/b2b5f99c64ced9f3580fdaee099d0e34e75d2697) refactor(state): merge parameter and link security (#7200)
11+
12+
Notes:
13+
14+
Two providers are now available on parameters (query parameters, header and uri variables `Link`):
15+
16+
- `ReadLinkParameterProvider` previously used for link security (renamed from `Symfony\Security\State\LinkedReadProvider`)
17+
- `IriConverterParameterProvider` this allows you to read a resource from an IRI usefull for filters (eg `?author=/authors/1`)
18+
19+
Previous tests on link security were left untouched we removed the experimental class `Symfony\Security\State\LinkAccessCheckerProvider` as well as the `LinkedReadProvider` as they're not used anymore.
20+
21+
22+
## v4.1.15 - v4.1.14 - v4.1.13
23+
24+
There was an issue with the subtree split as we attempted to test lower dependencies on the subtree split, some components where wrongly tagged.
25+
26+
The proper fix is at: https://github.com/api-platform/core/pull/7196
27+
28+
### Bug fixes
29+
30+
* [4bdfd6063](https://github.com/api-platform/core/commit/4bdfd6063a6e80fc9cc33ff16c0ec98fec688291) fix(symfony, laravel) skip webhooks when generates routing (#7175)
31+
* [582076cb6](https://github.com/api-platform/core/commit/582076cb6c0dbcde205fc49d97a0f50405544d0b) fix(openapi): duplicate get path for webhooks (#7174)
32+
* [84b967930](https://github.com/api-platform/core/commit/84b96793043c939f333c1aa2e96f69b23d3e9ece) fix(laravel): persist morph relations (#7170)
33+
* [d51cddba2](https://github.com/api-platform/core/commit/d51cddba2a7618c08e511582ac2f41a6b0eaf657) fix(laravel): index on non-primary key (#7183)
34+
* [fdb485dd2](https://github.com/api-platform/core/commit/fdb485dd2af56f7664bd90705d81e8f58c8b494a) fix(openapi): `example` and `default` with nullable value not being shown
35+
36+
### Features
37+
38+
* [79d08db6a](https://github.com/api-platform/core/commit/79d08db6a4728303b37440c610c96a490d44780a) feat(elasticsearch): add support for v9 (#7180)
39+
340
## v4.1.11 - v4.1.12
441

542
### Bug fixes

CONTRIBUTING.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,22 @@ If you include code from another project, please mention it in the Pull Request
246246
This section is for maintainers.
247247

248248
1. Update the JavaScript dependencies by running `./update-js.sh` (always check if it works in a browser)
249-
2. Update the `CHANGELOG.md` file (be sure to include Pull Request numbers when appropriate)
250-
3. Create a signed tag: `git tag -s vX.Y.Z -m "Version X.Y.Z"`
251-
4. Create a release using GitHub's UI and copy the changelog
252-
5. Create a new release of `api-platform/api-platform`
249+
2. Update the `CHANGELOG.md` file (be sure to include Pull Request numbers when appropriate) we use:
250+
251+
```bash
252+
bash generate-changelog.sh v4.1.11 v4.1.12 > CHANGELOG.new
253+
mv CHANGELOG.new CHANGELOG.md
254+
```
255+
4. Update `composer.json` `version` node and use
256+
257+
```bash
258+
composer blend --json-path=version
259+
```
260+
261+
This will update all the sub-components `composer.json`.
262+
263+
4. Create a signed tag: `git tag -s vX.Y.Z -m "Version X.Y.Z"`
264+
5. `git push upstream tag vX.Y.Z`
265+
6. `gh release create --generate-notes vX.Y.Z`
266+
7. Create a new release of `api-platform/api-platform`
267+

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
"extra": {
4848
"branch-alias": {
4949
"dev-3.4": "3.4.x-dev",
50-
"dev-main": "4.0.x-dev"
50+
"dev-4.1": "4.1.x-dev",
51+
"dev-main": "4.2.x-dev"
5152
},
5253
"symfony": {
5354
"require": "^6.4 || ^7.1"
@@ -104,7 +105,7 @@
104105
},
105106
"require": {
106107
"php": ">=8.2",
107-
"doctrine/inflector": "^1.0 || ^2.0",
108+
"doctrine/inflector": "^2.0",
108109
"psr/cache": "^1.0 || ^2.0 || ^3.0",
109110
"psr/container": "^1.0 || ^2.0",
110111
"symfony/deprecation-contracts": "^3.1",

0 commit comments

Comments
 (0)