github api-platform/core v3.3.0-alpha.1

latest releases: v3.3.7, v3.2.25, v3.3.6...
pre-release5 months ago

What's Changed

  • fix(serializer): fix TagCollector for JSONAPI and HAL format by @usu in #6076

  • fix(graphql): use normalization context to get item from IRI by @bkosun in #5915

  • fix(doctrine): constants case sensitive values by @soyuka in #6066

  • feat(serializer): collect cache tags using a TagCollector by @usu in #5758

  • feat: allow to extend link handling by @soyuka in #6061

  • feat(parametervalidator): create api-platform/parameter-validator component by @aegypius in #6080

  • feat(subresource): Link Security by @KDederichs in #5290

  • feat(symfony): request and view kernel listeners by @soyuka in #6102

  • feat(metadata): headers configuration by @soyuka in #6074

Components:

  • api-platform/parametervalidator
  • api-platform/doctrine-common
  • api-platform/doctrine-orm
  • api-platform/doctrine-odm

A new interface ApiPlatform\Serializer\TagCollectorInterface allows to collect cache tags (IRIs) during serialization instead of using API Platform defaults.
An experimental feature (#5290) gives the ability to use security on sub resource links.

If you use controllers you should use:

api_platform:
    use_symfony_listeners: true

The default is false you can get rid of the event_listeners_backward_compatibility_layer flag. You can now force an operation state, for example:

<?php

#[Delete(validate: true)]
#[Post(read: true)]
class Book {}

These namespaces are deprecated:

  • ApiPlatform\Api
  • ApiPlatform\Exception
  • ApiPlatform\Problem
  • ApiPlatform\Action
  • ApiPlatform\Util

Most of the classes have moved to ApiPlatform\Metadata.

New Contributors

Full Changelog: v3.2.11...v3.3.0-alpha.1

Don't miss a new core release

NewReleases is sending notifications on new releases.