Skip to content
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

chore: check API Platform 4.1 #500

Draft
wants to merge 4 commits into
base: 4.1
Choose a base branch
from
Draft
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
8 changes: 4 additions & 4 deletions api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"php": ">=8.3",
"ext-ctype": "*",
"ext-iconv": "*",
"api-platform/doctrine-orm": "^4.0.17",
"api-platform/graphql": "^4.0.17",
"api-platform/symfony": "^4.0.17",
"api-platform/doctrine-orm": "^4.1",
"api-platform/graphql": "^4.1",
"api-platform/symfony": "^4.1",
"doctrine/common": "^3.4",
"doctrine/doctrine-bundle": "^2.11",
"doctrine/doctrine-fixtures-bundle": "^4.0",
Expand Down Expand Up @@ -120,5 +120,5 @@
]
}
},
"minimum-stability": "stable"
"minimum-stability": "beta"
}
150 changes: 75 additions & 75 deletions api/composer.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions api/tests/Api/Admin/BookTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public static function getInvalidDataOnCreate(): iterable
[],
Response::HTTP_UNPROCESSABLE_ENTITY,
[
'@type' => 'ConstraintViolationList',
'@type' => 'ConstraintViolation',
'title' => 'An error occurred',
'violations' => [
[
Expand All @@ -315,7 +315,7 @@ public static function getInvalidData(): iterable
],
Response::HTTP_UNPROCESSABLE_ENTITY,
[
'@type' => 'ConstraintViolationList',
'@type' => 'ConstraintViolation',
'title' => 'An error occurred',
'description' => 'condition: This value should be of type ' . BookCondition::class . '.',
'violations' => [
Expand All @@ -333,7 +333,7 @@ public static function getInvalidData(): iterable
],
Response::HTTP_UNPROCESSABLE_ENTITY,
[
'@type' => 'ConstraintViolationList',
'@type' => 'ConstraintViolation',
'title' => 'An error occurred',
'description' => 'condition: This value should be of type ' . BookCondition::class . '.',
'violations' => [
Expand All @@ -351,7 +351,7 @@ public static function getInvalidData(): iterable
],
Response::HTTP_UNPROCESSABLE_ENTITY,
[
'@type' => 'ConstraintViolationList',
'@type' => 'ConstraintViolation',
'title' => 'An error occurred',
'violations' => [
[
Expand Down
4 changes: 2 additions & 2 deletions api/tests/Api/BookmarkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function asAUserICannotCreateABookmarkWithInvalidData(): void
self::assertResponseHeaderSame('content-type', 'application/problem+json; charset=utf-8');
self::assertResponseHeaderSame('link', '<http://www.w3.org/ns/hydra/error>; rel="http://www.w3.org/ns/json-ld#error",<http://localhost/docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation"');
self::assertJsonContains([
'@type' => 'ConstraintViolationList',
'@type' => 'ConstraintViolation',
'title' => 'An error occurred',
'description' => 'book: This value should be of type ' . Book::class . '.',
'violations' => [
Expand Down Expand Up @@ -218,7 +218,7 @@ public function asAUserICannotCreateADuplicateBookmark(): void
self::assertResponseHeaderSame('content-type', 'application/problem+json; charset=utf-8');
self::assertResponseHeaderSame('link', '<http://www.w3.org/ns/hydra/error>; rel="http://www.w3.org/ns/json-ld#error",<http://localhost/docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation"');
self::assertJsonContains([
'@type' => 'ConstraintViolationList',
'@type' => 'ConstraintViolation',
'title' => 'An error occurred',
'description' => 'You have already bookmarked this book.',
]);
Expand Down
4 changes: 2 additions & 2 deletions api/tests/Api/ReviewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public static function getInvalidData(): iterable
[],
Response::HTTP_UNPROCESSABLE_ENTITY,
[
'@type' => 'ConstraintViolationList',
'@type' => 'ConstraintViolation',
'title' => 'An error occurred',
'violations' => [
[
Expand Down Expand Up @@ -325,7 +325,7 @@ public function asAUserICannotAddADuplicateReviewOnABook(): void
self::assertResponseHeaderSame('content-type', 'application/problem+json; charset=utf-8');
self::assertResponseHeaderSame('link', '<http://www.w3.org/ns/hydra/error>; rel="http://www.w3.org/ns/json-ld#error",<http://localhost/docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation"');
self::assertJsonContains([
'@type' => 'ConstraintViolationList',
'@type' => 'ConstraintViolation',
'title' => 'An error occurred',
'description' => 'You have already reviewed this book.',
]);
Expand Down
34 changes: 17 additions & 17 deletions pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@
"test": "playwright test"
},
"dependencies": {
"@api-platform/admin": "^4.0.3",
"@api-platform/api-doc-parser": "^0.16.6",
"@api-platform/admin": "^4.0.4",
"@api-platform/api-doc-parser": "^0.16.7",
"@auth/core": "^0.37.4",
"@fontsource/poppins": "^5.1.1",
"@mui/icons-material": "latest-v5",
"@mui/material": "latest-v5",
"@tailwindcss/forms": "^0.5.10",
"@tanstack/react-query": "^5.64.2",
"@tanstack/react-query-devtools": "^5.64.2",
"@tanstack/react-query-next-experimental": "^5.64.2",
"@tanstack/react-query": "^5.65.1",
"@tanstack/react-query-devtools": "^5.65.1",
"@tanstack/react-query-next-experimental": "^5.65.1",
"autoprefixer": "^10.4.20",
"formik": "^2.4.6",
"next": "^15.1.5",
"next": "^15.1.6",
"next-auth": "5.0.0-beta.25",
"picocolors": "^1.1.1",
"postcss": "^8.5.1",
"ra-i18n-polyglot": "^5.4.4",
"ra-language-english": "^5.4.4",
"ra-language-french": "^5.4.4",
"ra-ui-materialui": "^5.4.4",
"ra-i18n-polyglot": "^5.5.2",
"ra-language-english": "^5.5.2",
"ra-language-french": "^5.5.2",
"ra-ui-materialui": "^5.5.2",
"react": "^19.0.0",
"react-admin": "^5.4.4",
"react-admin": "^5.5.2",
"react-dom": "^19.0.0",
"react-hook-form": "^7.54.2",
"react-spinners": "^0.15.0",
Expand All @@ -41,14 +41,14 @@
"yup": "^1.6.1"
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@playwright/test": "^1.49.1",
"@babel/core": "^7.26.7",
"@playwright/test": "^1.50.0",
"@popperjs/core": "^2.11.8",
"@types/node": "^22.10.7",
"@types/react": "^19.0.7",
"@types/node": "^22.12.0",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"eslint": "^9.18.0",
"eslint-config-next": "^15.1.5",
"eslint": "^9.19.0",
"eslint-config-next": "^15.1.6",
"typescript": "^5.7.3"
},
"packageManager": "[email protected]"
Expand Down
Loading
Loading