Releases: api-platform/core
Releases · api-platform/core
Version 2.5.8
- PHP 8 support (#3791, #3745, #3855)
- Metadata: Fix merging null values from annotations (#3711)
- JSON-LD: Add missing
@type
from collection using output DTOs (#3699) - Cache: Improve
PurgeHttpCacheListener
performances (#3743) - Cache: Fix
VarnishPurger
max header length (#3843) - Identifiers: Do not denormalize the same identifier twice (#3762)
- OpenAPI: Lazy load
SwaggerCommand
(#3802) - OpenAPI: Use Output class name instead of the Resource short name when available (#3741)
- Router: Replace baseurl only once (#3776)
- Mercure: Publisher bug fixes (#3790, #3739)
- Serializer: Catch NotNormalizableValueException to UnexpectedValueEception with inputs (#3697)
- Doctrine: ODM escape search terms in RegexFilter
- Tests: Improve JSON Schema assertions (#3807, #3803, #3804, #3806, #3817, #3829, #3830)
- Tests: Allow passing extra options in ApiTestClient (#3486)
- Docs: Upgrade Swagger UI to version 3.37.2 (#3867)
- Docs: Upgrade ReDoc to version 2.0.0-rc.45 (#3867)
- Docs: Upgrade GraphiQL to version 15.3.0 (#3867)
- Docs: Upgrade GraphQL Playground to version 1.7.26 (#3867)
For compatibility reasons with Symfony 5.2 and PHP 8, we do not test anymore the integration with these legacy packages:
- FOSUserBundle
- NelmioApiDoc 2
Version 2.5.7
- Compatibility with Symfony 5.1 (#3589 and #3688)
- Resource
Cache-Control
HTTP header can be private (#3543) - Doctrine: Fix missing
ManagerRegistry
class (#3684) - Doctrine: Order filter doesn't throw anymore with numeric key (#3673 and #3687)
- Doctrine: Fix ODM check change tracking deferred (#3629)
- Doctrine: Allow 2inflector version 2.0 (#3607)
- OpenAPI: Allow subresources context to be added (#3685)
- OpenAPI: Fix pagination documentation on subresources (#3678)
- Subresource: Fix query when using a custom identifier (#3529 and #3671)
- GraphQL: Fix relation types without Doctrine (#3591)
- GraphQL: Fix DTO relations (#3594)
- GraphQL: Compatibility with graphql-php version 14 (#3621 and #3654)
- Docs: Upgrade Swagger UI to version 3.32.5 (#3693)
- Docs: Upgrade ReDoc to version 2.0.0-rc.40 (#3693)
- Docs: Upgrade GraphiQL to version 1.0.3 (#3693)
- Docs: Upgrade GraphQL Playground to version 1.7.23 (#3693)
Version 2.5.6
- Add support for Mercure 0.10 (#3584)
- Allow objects without properties (#3544)
- Fix Ramsey uuid denormalization (#3473)
- Revert #3331 as it breaks backwards compatibility
- Handle deprecations from Doctrine Inflector (#3564)
- JSON Schema: Missing JSON-LD context from Data Transformers (#3479)
- GraphQL: Resource with no operations should be available through relations (#3532)
Version 2.5.5
- Filter: Improve the RangeFilter query in case the values are equals using the between operator #3488
- Pagination: Fix bug with large values #3451
- Doctrine: use the correct type within
setParameter
of the SearchFilter #3331 - Allow
\Traversable
resources #3463 - Hydra:
hydra:writable
=>hydra:writeable
#3481 - Hydra: Show
hydra:next
only when it's available #3457 - Swagger UI: Missing default context argument #3443
- Swagger UI: Fix API docs path in swagger ui #3475
- OpenAPI: Export with unescaped slashes #3368
- OpenAPI: OAuth flows fix #3333
- JSON Schema: Fix metadata options #3425
- JSON Schema: Allow decoration #3417
- JSON Schema: Add DateInterval type #3351
- JSON Schema: Correct schema generation for many types #3402
- Validation: Use API Platform's
ValidationException
instead of Symfony's #3414 - Validation: Fix a bug preventing to serialize validator's payload #3375
- Subresources: Improve queries when there's only one level #3396
- HTTP: Location header is only set on POST with a 201 or between 300 and 400 #3497
- GraphQL: Do not allow empty cursor values on
before
orafter
#3360 - Bump versions of Swagger UI, GraphiQL and GraphQL Playground #3510
Version 2.5.4
- Add a local cache in
ResourceClassResolver::getResourceClass()
- JSON Schema: Fix generation for non-resource class
- Doctrine: Get class metadata only when it's needed in
SearchFilter
- GraphQL: Better detection of collection type
Version 2.5.3
- Compatibility with Symfony 5
- GraphQL: Fix
hasNextPage
whenoffset > itemsPerPage
Version 2.5.2
- Compatibility with Symfony 5 RC
- Compatibility with NelmioCorsBundle 2
- Fix the type of
ApiResource::$paginationPartial
- Ensure correct return type from
AbstractItemNormalizer::normalizeRelation
Version 2.5.1
- Compatibility with Symfony 5
- Fix a notice in
SerializerContextBuilder
- Fix dashed path segment generation
- Fix support for custom filters without constructor in the
@ApiFilter
annotation - Fix a bug that was preventing to disable Swagger/OpenAPI
- Return a
404
HTTP status code instead of500
whe the identifier is invalid (e.g.: invalid UUID) - Add links to the documentation in
@ApiResource
annotation's attributes to improve DX - JSON:API: fix pagination being ignored when using the
filter
query parameter - Elasticsearch: Allow multiple queries to be set
- OpenAPI: Do not append
body
parameter if it already exists - OpenAPI: Fix removal of illegal characters in schema name for Amazon API Gateway
- Swagger UI: Add missing
oauth2-redirect
configuration - Swagger UI: Allow changing the location of Swagger UI
- GraphQL: Fix an error that was occurring when
SecurityBundle
was not installed - HTTP/2 Server Push: Push relations as
fetch
Version 2.5.0
Read the curated changelog.
- Fix BC-break when using short-syntax notation for
access_control
- Fix BC-break when no item operations are declared
- GraphQL: Adding serialization group difference condition for
item_query
andcollection_query
types - JSON Schema: Fix command
Version 2.5.0 beta 2
- Allow to not declare GET item operation
- Add support for the Accept-Patch header
- Make the the
maximum_items_per_page
attribute consistent with other attributes controlling pagination - Allow to use a string instead of an array for serializer groups
- Test: Add an helper method to find the IRI of a resource
- Test: Add assertions for testing response against JSON Schema from API resource
- GraphQL: Add support for multipart request so user can create custom file upload mutations (#3041)
- GraphQL: Add support for name converter (#2765)