Skip to content

Releases: api-platform/core

v3.3.0-alpha.1

19 Jan 19:32
v3.3.0-alpha.1
2e9b9ff
Compare
Choose a tag to compare
v3.3.0-alpha.1 Pre-release
Pre-release

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

v3.2.12

19 Jan 19:07
v3.2.12
ac8031e
Compare
Choose a tag to compare

What's Changed

  • docs: better generics support for State\ProcessorInterface by @dunglas in #6103
  • fix(jsonschema): keep integer and number properties draft 4 compliant by @llupa in #6098
  • fix(graphql): remove count query if paginationInfo is not requested by @xavierleune in #6068

New Contributors

Full Changelog: v3.2.11...v3.2.12

MongoDB ODM is now compatible with Symfony 7.

v3.2.11

12 Jan 13:18
v3.2.11
227c858
Compare
Choose a tag to compare

What's Changed

  • fix(symfony): use Type constraint violation code instead of exception code by @norkunas in #6064
  • fix(serializer): integrate root_resource_class to cache key by @soyuka in #6073
  • fix: In PHP, requests without content-type will result in an empty content-type, not null by @priyadi in #6078
  • compatibility with OpenAPI 3.0 by @Romaixn in #6065

For OpenAPI 3.0, the spec_version=3.0.0 query parameter will force OpenAPI to the 3.0 version. This option is also available through the command line.

Full Changelog: v3.2.10...v3.2.11

v3.1.25

12 Jan 13:18
v3.1.25
9e1c23d
Compare
Choose a tag to compare

What's Changed

  • fix(symfony): use Type constraint violation code instead of exception code by @norkunas in #6064
  • fix(serializer): integrate root_resource_class to cache key by @soyuka in #6073

Full Changelog: v3.1.24...v3.1.25

v3.2.10

23 Dec 08:37
v3.2.10
05629a1
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.2.9...v3.2.10

v3.2.9

20 Dec 17:02
v3.2.9
fe07a7f
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.2.8...v3.2.9

v3.2.8

20 Dec 12:51
v3.2.8
ff1f282
Compare
Choose a tag to compare

What's Changed

  • ci: php 8.3 by @soyuka in #6013
  • fix: remove link to ApiDocumentation when doc is disabled by @jderusse in #6029
  • ci: use sebastian/comparator<5.0 by @soyuka in #6044
  • fix(jsonschema): integer instead of int @sarim in #6049
  • feat(metadata): throw exception if itemUriTemplate if used on invalid operation (xml/yaml formats) by @vincentchalamon in #6053
  • fix(jsonschema): keep format subschema generation by @soyuka in #6055
  • fix(metadata): item_uri_template conflict with context on relation by @vincentchalamon in #6015
  • fix(doctrine): get reference with identifier value by @soyuka in #6019
  • fix(symfony): use Type constraint violation code instead of exception code by @norkunas in #6037
  • fix(symfony): fallback content-type error format by @soyuka in #6056
  • fix(serializer): inconsistency in context concatenation with fetch_data by @anoziere in #6050
  • fix(symfony): do not use metadata when merging schema constraints in Collection constraint by @alanpoulain in #6057
  • fix(jsonschema): add iri example @ERuban in #5901

New Contributors

Full Changelog: v3.2.7...v3.2.8

v3.1.24

20 Dec 12:52
v3.1.24
1dd35b6
Compare
Choose a tag to compare

What's Changed

  • ci: use sebastian/comparator<5.0 by @soyuka in #6044
  • fix(doctrine): get reference with identifier value by @soyuka in #6019
  • fix(symfony): use Type constraint violation code instead of exception code by @norkunas in #6037
  • fix(serializer): inconsistency in context concatenation with fetch_data by @anoziere in #6050
  • fix(jsonschema): add iri example @ERuban in #5901

New Contributors

Full Changelog: v3.1.23...v3.1.24

v3.2.7

30 Nov 13:53
v3.2.7
f297d21
Compare
Choose a tag to compare

Symfony 7 support.

What's Changed

  • chore: support symfony 7 by @soyuka in #6009
  • fix(openapi): exclusive properties dont allow booleans for open api 3.1 by @arnedesmedt in #5993
  • fix(doctrine): missing eager joins on to-one relationships by @MariusJam in #5992
  • fix(graphql): Consider writable attribute for nested objects by @jotwea in #5954
  • fix(jsonschema): fix recursive documentation when using a dto entity wrapper by @sergiuionescu in #5973
  • fix(jsonschema): indirect resource input schema by @soyuka in #6001
  • fix(symfony): error in provider without uri variables by @soyuka in #6005
  • fix(openapi): entrypoint access vnd+openapi by @soyuka in #6012

New Contributors

Full Changelog: v3.2.6...v3.2.7

v3.1.23

30 Nov 13:50
v3.1.23
196088e
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.1.22...v3.1.23