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

build(deps): bump api-platform/core from 2.7.18 to 3.3.4 #366

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 27, 2024

Bumps api-platform/core from 2.7.18 to 3.3.4.

Release notes

Sourced from api-platform/core's releases.

v3.3.4

What's Changed

New Contributors

Full Changelog: api-platform/core@v3.3.3...v3.3.4

v3.3.3

What's Changed

Full Changelog: api-platform/core@v3.3.2...v3.3.3

v3.3.2

What's Changed

Notes

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:

if (null === $operation->canValidate()) {
    $operation = $operation->withValidate(!$request->isMethodSafe() && !$request->isMethod('DELETE'));
}
if (null === $operation->canRead()) {
$operation = $operation->withRead($operation->getUriVariables() || $request->isMethodSafe());
}
if (null === $operation->canDeserialize()) {
$operation = $operation->withDeserialize(\in_array($operation->getMethod(), ['POST', 'PUT', 'PATCH'], true));
}

Previously listeners did the checks before reading our flags and you could not force the values.

... (truncated)

Changelog

Sourced from api-platform/core's changelog.

v3.3.4

Bug fixes

  • 002d8e514 fix(validation): ValidationException causes TypeError exception when called with $code=null (#6375)
  • 77a917f2a fix(metadata): resource class php doc (#6381)
  • d809315fb fix(symfony): store original data without clone (#6367)
  • fb7c4658c fix(test): canonicalizing json arrays (#6386)

v3.3.3

Bug fixes

v3.3.2

Bug fixes

Notes

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:

if (null === $operation->canValidate()) {
    $operation = $operation->withValidate(!$request->isMethodSafe() && !$request->isMethod('DELETE'));
}
if (null === $operation->canRead()) {
$operation = $operation->withRead($operation->getUriVariables() || $request->isMethodSafe());
}
if (null === $operation->canDeserialize()) {
$operation = $operation->withDeserialize(\in_array($operation->getMethod(), ['POST', 'PUT', 'PATCH'], true));
}

Previously listeners did the checks before reading our flags and you could not force the values.

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.

v3.3.1 (pre-release)

... (truncated)

Commits
  • 2f4ecc8 docs: changelog 3.3.4
  • 0706426 docs: 3.2.23 changelog
  • 5212f54 fix(test): canonicalizing json arrays (#6386)
  • c174bc3 docs: typo on "Test your API" guide (#6351)
  • 4b7ddd0 fix(graphql): no validate on delete mutation (#6388)
  • 3fb7231 test: PATCH on controller w/ dto (#6368)
  • 77a917f fix(metadata): resource class php doc (#6381)
  • 002d8e5 fix(validation): ValidationException causes TypeError exception when called w...
  • d809315 fix(symfony): store original data without clone (#6367)
  • 4a6378c docs(mercure): getOperation => get_operation
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [api-platform/core](https://github.com/api-platform/core) from 2.7.18 to 3.3.4.
- [Release notes](https://github.com/api-platform/core/releases)
- [Changelog](https://github.com/api-platform/core/blob/main/CHANGELOG.md)
- [Commits](api-platform/core@v2.7.18...v3.3.4)

---
updated-dependencies:
- dependency-name: api-platform/core
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependency php Pull requests that update Php code labels May 27, 2024
Copy link

vercel bot commented May 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
devtools ❌ Failed (Inspect) May 27, 2024 2:48am

Copy link
Contributor Author

dependabot bot commented on behalf of github May 30, 2024

Superseded by #367.

@dependabot dependabot bot closed this May 30, 2024
@dependabot dependabot bot deleted the dependabot/composer/api-platform/core-3.3.4 branch May 30, 2024 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants