Skip to content

Commit c7f25dc

Browse files
committed
docs: changelog 3.3.6
1 parent d29b7b6 commit c7f25dc

File tree

1 file changed

+29
-6
lines changed

1 file changed

+29
-6
lines changed

CHANGELOG.md

+29-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Changelog
22

3+
## v3.3.6
4+
5+
### Bug fixes
6+
7+
* [8e253d4d7](https://github.com/api-platform/core/commit/8e253d4d76c25c27c233b3cf4fd2314b13c1e193) fix(graphql): validate after resolver (#6426)
8+
* [d66769069](https://github.com/api-platform/core/commit/d66769069fda051e4ddc7be50764c3f34d055ad0) fix(symfony): load swagger_ui when enabled (#6424)
9+
* [e06c88b71](https://github.com/api-platform/core/commit/e06c88b7149da4e5b691d432f11ec3d27e41750a) fix(metadata): add some phpdoc annotations to ORM (#6387)
10+
* [fb7c4658c](https://github.com/api-platform/core/commit/fb7c4658c327c9628bcc86d42e85c3546a74d993) fix(test): canonicalizing json arrays (#6386)
11+
* [ff533565d](https://github.com/api-platform/core/commit/ff533565d9b976fcda818ab4f79a5a2642f14a32) fix(doctrine): use null-safe operator when retrieving parameters (#6423)
12+
13+
Notes:
14+
15+
The patch at #6426 introduces a new `validateAfterResolver` option to mitigate the BC-break introduced in 3.3 that does the validation before calling the resolver:
16+
17+
```php
18+
new Mutation(
19+
resolver: 'app.graphql.mutation_resolver.activity_log',
20+
name: 'create',
21+
validateAfterResolver: true,
22+
validate: false
23+
)
24+
```
25+
326
## v3.3.5
427

528
### Bug fixes
@@ -35,7 +58,7 @@
3558

3659
### Notes
3760

38-
You can remove the `event_listeners_backward_compatibility_layer` flag and set `use_symfony_listeners` instead. The `use_symfony_listeners` should be `true` if you use controllers or if you rely on Symfony event listeners. Note that now flags like `read` can be forced to `true` if you want to call a Provider even on `POST` operations. These are the rules we set up on runtime if no value has been set:
61+
You can remove the `event_listeners_backward_compatibility_layer` flag and set `use_symfony_listeners` instead. The `use_symfony_listeners` should be `true` if you use controllers or if you rely on Symfony event listeners. Note that now flags like `read` can be forced to `true` if you want to call a Provider even on `POST` operations. These are the rules we set up on runtime if no value has been set:
3962

4063
```php
4164
if (null === $operation->canValidate()) {
@@ -51,7 +74,7 @@ if (null === $operation->canDeserialize()) {
5174
}
5275
```
5376

54-
Previously listeners did the checks before reading our flags and you could not force the values.
77+
Previously listeners did the checks before reading our flags and you could not force the values.
5578

5679
When using GraphQl, with `event_listeners_backward_compatibility_layer: true`, mutation resolver gets called before validation, when using `false` (the future default) validation occurs on the user's input.
5780

@@ -155,7 +178,7 @@ The v3.3.0-beta.1 introduces a new `QueryParameter` attribute to improve [the fi
155178
* [cc9f6a518](https://github.com/api-platform/core/commit/cc9f6a518222598d20556fc1ec62b7c4be52bf52) feat(symfony): request and view kernel listeners (#6102)
156179
* [ce9ab8226](https://github.com/api-platform/core/commit/ce9ab8226934bfac45e3408e9468bf32a02aa2e9) feat(metadata): headers configuration (#6074)
157180

158-
Components:
181+
Components:
159182
- `api-platform/parametervalidator`
160183
- `api-platform/doctrine-common`
161184
- `api-platform/doctrine-orm`
@@ -164,7 +187,7 @@ Components:
164187
A new interface `ApiPlatform\Serializer\TagCollectorInterface` allows to collect cache tags (IRIs) during serialization instead of using API Platform defaults.
165188
An experimental feature (#5290) gives the ability to use `security` on sub resource links.
166189

167-
If you use controllers you should use:
190+
If you use controllers you should use:
168191

169192
```yaml
170193
api_platform:
@@ -181,7 +204,7 @@ The default is `false` you can get rid of the `event_listeners_backward_compatib
181204
class Book {}
182205
```
183206

184-
These namespaces are deprecated:
207+
These namespaces are deprecated:
185208

186209
- `ApiPlatform\Api`
187210
- `ApiPlatform\Exception`
@@ -369,7 +392,7 @@ Symfony 7 support.
369392

370393
### Bug fixes
371394

372-
To have errors backward compatible with 3.1, use:
395+
To have errors backward compatible with 3.1, use:
373396

374397
```yaml
375398
api_platform:

0 commit comments

Comments
 (0)